/*
Theme Name: Meiji Electric
Theme URI: https://meijielectric.ph/
Author: Meiji Electric
Description: Custom Meiji Electric WordPress theme converted from the approved static homepage.
Version: 1.0.0
Text Domain: meiji-electric
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --red: #c1272d;
  --red2: #ae211f;
  --black: #131313;
  --gray: #6c757d;
  --light: #f8f9fa;
  --surface: #f5f5f5;
  --border: #e4e7ec;
  --wide: 1575px;
  --products: 1172px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--black);
  background: #fff;
  font-family: "Poppins", Arial, sans-serif
}

img {
  max-width: 100%
}

.site-shell {
  overflow: visible
}

a {
  text-decoration: none;
  color: inherit
}

button, input, textarea {
  font: inherit
}

.wide-container {
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .18)
}

.topbar {
  height: 70px;
  background: var(--red);
  color: #fff
}

.topbar-inner {
  width: min(1442px, calc(100% - 80px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.topbar-email {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px
}

.topbar-email svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8
}

.socials {
  display: flex;
  gap: 25px;
  align-items: center
}

.socials a {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: transform .18s, opacity .18s
}

.socials a:hover {
  transform: translateY(-2px);
  opacity: .72
}

.navbar {
  height: 100px;
  background: var(--light);
  border-bottom: 1px solid var(--red)
}

.navbar-inner {
  width: min(1560px, calc(100% - 52px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 38px
}

.brand {
  display: block;
  width: 147px;
  flex: none
}

.brand img {
  display: block;
  width: 147px;
  height: 70px;
  object-fit: contain
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  min-width: 0
}

.nav-item {
  position: relative
}

.nav-item>a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100px;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap
}

.nav-item>a:after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--red);
  left: 0;
  right: 100%;
  bottom: 36px;
  transition: right .18s
}

.nav-item:hover>a:after, .nav-item:focus-within>a:after {
  right: 0
}

.chevron {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px)
}

.dropdown {
  position: absolute;
  top: 78px;
  background: #fff;
  border-top: 1px solid var(--red);
  border-radius: 10px;
  box-shadow: 0 9px 20px rgba(0, 0, 0, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  pointer-events: none;
  transition: .16s;
  overflow: hidden
}

.has-dropdown:hover>.dropdown, .has-dropdown:focus-within>.dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto
}

.mega-menu {
  left: -50px;
  width: min(1040px, 85vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  padding: 42px 50px 38px
}

.mega-menu div {
  display: flex;
  flex-direction: column
}

.dropdown a {
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  padding: 7px 0;
  transition: color .15s, transform .15s
}

.dropdown a:hover {
  color: var(--red);
  transform: translateX(2px)
}

.small-dropdown>.dropdown {
  left: -40px;
  width: 347px;
  padding: 28px 50px 30px;
  display: flex;
  flex-direction: column;
  gap: 2px
}

.media-dropdown>.dropdown {
  left: -48px
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none
}

.search-box {
  width: 359px;
  height: 40px;
  border: 1.5px solid var(--red);
  border-radius: 28px;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  height: 100%;
  min-width: 0;
  flex: 1;
  padding: 0 19px;
  color: #333;
  font-family: "Inter", sans-serif;
  font-size: 16px
}

.search-box svg {
  width: 23px;
  height: 23px;
  margin-right: 18px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: block
}

.nav-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--black);
  stroke-width: 1.8
}

.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 42px;
  padding: 8px
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: #111;
  margin: 6px 0
}

/* Hero */
.hero {
  position: relative;
  height: min(681px, 35.47vw);
  min-height: 520px;
  background: #8f1e22;
  overflow: hidden;
}

.hero-slider, .hero-slide {
  position: absolute;
  inset: 0
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .48s ease
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible
}

.hero-slide>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.hero-copy {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: min(1074px, 62vw);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.hero-copy-right {
  right: max(10.1vw, 80px);
  align-items: flex-end;
  text-align: right
}

.hero-copy-left {
  left: max(11.1vw, 80px);
  align-items: flex-start;
  text-align: left
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(44px, 3.125vw, 60px);
  line-height: .84;
  font-weight: 700;
  text-transform: uppercase;
  white-space: pre-wrap;
}

.hero-copy p {
  margin: 0;
  width: min(810px, 100%);
  font-size: clamp(23px, 1.2vw, 23px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
}

.hero-copy-right p {
  margin-left: auto
}

.hero-copy-left p {
  margin-right: auto
}

.btn {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 50px;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s
}

.btn:hover {
  transform: translateY(-1px)
}

.btn-hero {
  background: #fff;
  color: var(--red);
  border-color: #fff;
  min-width: 190px
}

.btn-hero:hover {
  background: var(--red);
  color: #fff
}

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red)
}

.btn-red:hover {
  background: #fff;
  color: var(--red);
  border-color: var(--red)
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer
}

.hero-arrow img {
  width: 40px;
  height: 40px
}

.hero-prev {
  left: 6.15vw
}

.hero-next {
  right: 6.15vw
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 63px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: url('../../assets/owl-dot-white.svg') center/10px 10px no-repeat;
  cursor: pointer
}

.hero-dots button.active {
  background-image: url('../../assets/owl-dot-active.svg')
}

/* Ticker */
.ticker {
  height: 70px;
  background: var(--red);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 35px;
  white-space: nowrap;
  animation: tickerMove 30s linear infinite
}

.ticker-track span {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase
}

.ticker-track img {
  width: 9px;
  height: 10px
}

@keyframes tickerMove {
  to {
    transform: translateX(-33.333%)
  }
}

/* About */
.about-section {
  padding: 100px 0 70px
}

.about-grid {
  width: min(1575px, calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 20px;
  overflow: hidden
}

.about-card {
  min-height: 386px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.intro-card {
  background: #f6f6f6;
  justify-content: space-between
}


.intro-card h2, .products-section h2, .switches-heading h2, .contact-info h2 {
  font-family: "Archivo", sans-serif;
  font-size: 40px;
  line-height: 50px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0
}

.intro-card p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.52;
  color: var(--gray);
  margin: 20px 0 0
}

.about-card.intro-card p {
  margin-top: 20px;
  margin-bottom: 50px;
}

.text-link {
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 16px
}

.text-link span {
  display: inline-block;
  transition: transform .18s
}

.text-link:hover span {
  transform: translateX(4px);
}

.inline-cta-arrow {
  display: block;
  width: 6px;
  height: 10px;
  flex: none
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}

.btn .inline-cta-arrow {
  margin-left: 1px
}

.btn-red:hover .shop-all-arrow {
  filter: brightness(0) saturate(100%) invert(19%) sepia(45%) saturate(3819%) hue-rotate(340deg) brightness(94%) contrast(84%)
}


.mantra-card {
  background: #fff url('../../assets/mantra-background.png') center/cover no-repeat
}

.mantra-card h3 {
  font-family: "Archivo", sans-serif;
  color: var(--red);
  font-size: 32px;
  line-height: 1.08;
  text-transform: uppercase;
  margin: 0
}

.power-card {
  background: var(--red);
  color: #fff
}

.connectivity-card {
  background: #6c757d;
  color: #fff
}

.security-card {
  background: #131313;
  color: #fff
}

.about-card>img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 50px
}

/* .security-card>img {
  width: 43px;
  height: 46px
} */

.about-card>div h3 {
  font-family: "Archivo", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 10px
}

.about-card>div p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0
}

/* Products */
.products-section {
  width: min(var(--products), calc(100% - 48px));
  margin: auto;
  padding: 60px 0;
}

.products-section h2 {
  margin-bottom: 50px
}

.product-carousel-shell {
  position: relative;
  width: 100%
}

.product-carousel-viewport {
  width: 100%;
  overflow: hidden
}

.product-grid {
  display: flex;
  gap: 20px;
  transition: transform .42s ease;
  will-change: transform
}

.product-card {
  flex: 0 0 calc((100% - 60px)/4)
}

.product-carousel-nav {
  position: absolute;
  top: 280px;
  z-index: 6;
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity .18s, transform .18s;
  border-radius: 4px
}

.product-carousel-nav:hover:not(:disabled) {
  transform: scale(1.04)
}

.product-carousel-nav:disabled {
  opacity: .4;
  cursor: default
}

.product-carousel-nav img {
  display: block;
  width: 40px;
  height: 40px
}

.product-carousel-prev {
  left: -108px
}

.product-carousel-prev img {
  transform: rotate(180deg)
}

.product-carousel-next {
  right: -108px
}


.product-card {
  min-width: 0;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 28px rgba(0, 0, 0, .13)
}

.product-visual {
  height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  overflow: hidden
}

.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.product-img {
  position: relative;
  z-index: 1;
  width: min(158px, 68%);
  height: 203px;
  object-fit: contain;
  filter: drop-shadow(-2px 4px 4px rgba(0, 0, 0, .14));
  transition: transform .22s
}

.product-img.panel {
  height: 211px
}

.product-card:hover .product-img {
  transform: scale(1.03)
}

.heart {
  position: absolute;
  z-index: 2;
  left: 17px;
  top: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 4px 2px rgba(0, 0, 0, .25);
  font-size: 23px;
  color: #222;
  cursor: pointer
}

.heart.active {
  color: var(--red)
}

.product-copy {
  padding: 31px 10px;
  background: #fff
}

.category {
  display: block;
  color: var(--red);
  font-size: 16px;
  line-height: 1.16;
  margin-bottom: 5px
}

.product-copy h3 {
  font-size: 18px;
  line-height: 1.16;
  font-weight: 600;
  margin: 0 0 20px;
  min-height: 63px
}

.product-copy p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.16;
  color: var(--gray);
  margin: 0 0 12px;
  min-height: 93px
}

.product-copy strong {
  display: block;
  color: var(--red);
  font-size: 16px;
  font-weight: 500
}

.section-cta {
  text-align: center;
  margin-top: 30px
}

.new-products-section {
  padding-top: 85px;
  padding-bottom: 86px
}

/* Switches & Outlets */
.switches-section {
  width: min(1576px, calc(100% - 48px));
  margin: 0 auto;
  position: relative
}

.switches-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin-bottom: 50px;
  gap: 24px
}

.switch-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row;
  overflow: visible;
}

.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-width: 0
}

.gallery-item>img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s
}

.gallery-item:hover>img:first-child {
  transform: scale(1.015)
}

.outlet-one, .switch-one {
  grid-column: span 3;
  aspect-ratio: 788/434
}

.outlet-two, .outlet-three {
  grid-column: span 2;
  aspect-ratio: 525/434
}

.switch-two {
  grid-column: span 2;
  aspect-ratio: 526/434
}

.eye-button {
  position: absolute;
  left: var(--eye-x);
  top: var(--eye-y);
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  transition: transform .18s;
}

.eye-button:hover {
  transform: translate(-50%, -50%) scale(1.08)
}

.eye-button.active {
  transform: translate(-50%, -50%) scale(1.03)
}

.eye-button img {
  display: block;
  width: 48px;
  height: 48px
}

.series-detail {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 0;
  width: min(670px, calc(100% - 24px));
  min-height: 260px;
  background: #fff;
  border-radius: 20px;
  padding: 43px 48px 40px;
  box-shadow: 0 5px 0 var(--red), 0 12px 28px rgba(0, 0, 0, .09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, visibility .2s, transform .2s;
}

.series-detail.open {
  opacity: 1;
  visibility: visible;
  transform: none
}

.detail-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: #777;
  cursor: pointer
}

.detail-kicker {
  font-size: 15px;
  color: #d52027;
  text-transform: uppercase
}

.series-detail h3 {
  font-size: 34px;
  line-height: 1.08;
  margin: 14px 0 2px;
  font-weight: 600
}

.series-detail h3 em {
  font-style: italic;
  color: var(--red);
  font-weight: 600
}

.series-detail p {
  font-size: 16px;
  line-height: 1.2;
  color: #555;
  margin: 0;
  max-width: 560px
}

.detail-rule {
  width: 78px;
  height: 1px;
  background: var(--red);
  margin: 24px 0 13px
}

.series-detail>a {
  color: var(--red);
  font-size: 16px;
  font-weight: 500;
}

.series-detail>a span {
  display: inline-block;
  transition: transform .18s;
}

.series-detail>a:hover span {
  transform: translateX(4px);
}

/* Contact */
.contact-section {
  width: min(1300px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 41.77% 58.23%;
  padding: 100px 0;
}

.contact-info {
  background: #f5f5f5;
  border-radius: 20px 0 0 20px;
  padding: 50px
}

.contact-info>p {
  font-size: 16px;
  line-height: 1.55;
  margin: 20px 0 40px
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 54px
}

.contact-row>img {
  width: 50px;
  height: 54px;
  flex: none
}

.contact-row>div {
  display: flex;
  flex-direction: column
}

.contact-row small {
  font-size: 16px;
  color: #940000;
  font-weight: 200;
  line-height: 1.25
}

.contact-row a {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.25
}

.contact-row a:hover {
  color: var(--red)
}

.contact-form {
  padding: 72px 50px 50px;
  background: #fff;
  border-radius: 0 20px 20px 0
}

.contact-form h3 {
  font-size: 33px;
  line-height: 50px;
  font-weight: 500;
  margin: 0 0 5px
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  color: #3d3d3d;
  margin-bottom: 13px
}

.contact-form input, .contact-form textarea {
  border: 0;
  outline: 0;
  background: #f5f5f5;
  border-radius: 12px;
  height: 44px;
  padding: 10px 13px
}

.contact-form textarea {
  height: 121px;
  resize: vertical
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.form-submit {
  width: 100%;
  height: 44px;
  border-radius: 20px;
  border: 0;
  background: #d40029;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: .18s
}

.form-submit:hover {
  background: #fff;
  color: #d40029;
  border: 2px solid #d40029;

  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.form-message {
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
  margin: 8px 0 0;
  text-align: center
}

/* Visit */
.visit-section {
  background: #f5f5f5;
  padding: 100px 0
}

.visit-heading {
  text-align: center;
  margin-bottom: 50px
}

.visit-heading h2, .blogs-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 50px;
  line-height: 50px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 20px
}

.visit-heading p {
  font-size: 16px;
  font-weight: 300;
  margin: 0
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.location-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 20px;
  min-height: 119px;
  box-shadow: 0 4px 2px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
  outline: none;
}

.location-card.active {
  border-color: var(--red)
}

.location-card:hover, .location-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15)
}

.location-card strong {
  font: 400 16px/28.8px "Inter", sans-serif;
  text-transform: uppercase
}

.location-card>span {
  font: 400 16px/28.8px "Inter", sans-serif
}

.direction-link {
  font: 600 18px/28px "Inter", sans-serif;
  color: var(--red)
}

.direction-link span {
  display: inline-block;
  transition: transform .18s
}

.direction-link:hover span {
  transform: translateX(4px)
}

.google-map-wrap {
  width: 100%;
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05)
}

.google-map-wrap iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 20vw, 390px);
  border: 0
}

/* Blogs */
.blogs-section {
  padding: 100px 0
}

.blogs-heading {
  text-align: center;
  margin-bottom: 50px
}

.blogs-heading p {
  font: 400 16px/28.8px "Inter", sans-serif;
  margin: 0
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px
}

.blog-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .1)
}

.blog-card>img {
  display: block;
  width: 100%;
  height: 192px;
  object-fit: cover;
  transition: transform .25s
}

.blog-card:hover>img {
  transform: scale(1.02)
}

.blog-copy {
  padding: 24px
}

.blog-copy time {
  font: 500 12px/16.8px "JetBrains Mono", monospace;
  letter-spacing: .6px;
  color: #d52027
}

.blog-copy h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  margin: 12px 0
}

.blog-copy p {
  font: 400 16px/24px "Inter", sans-serif;
  color: #5c6477;
  margin: 0 0 18px
}

.blog-copy>a {
  font: 600 18px/28px "Inter", sans-serif;
  color: #d52027
}

.blog-copy>a span {
  display: inline-block;
  margin-left: 5px;
  transition: transform .18s
}

.blog-copy>a:hover span {
  transform: translateX(4px)
}

.btn-blogs {
  padding-inline: 14px;
  height: 38px;
  font-weight: 500
}

/* Footer */
.footer {
  background: var(--red);
  color: #fff;
  padding: 50px 0 26px
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 72px
}

.footer-logo {
  display: block;
  width: 147px;
  height: 70px;
  object-fit: contain
}

.footer-brand>p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  margin: 20px 0 30px;
  max-width: 330px
}

.footer-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px
}

.footer-address {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px
}

.footer-address>img {
  width: 20px;
  height: 18px;
  object-fit: contain;
  margin-top: 2px
}

.footer-address:nth-child(2)>img {
  width: 18px;
  height: 16px;
  margin-left: 1px
}

.footer-address-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.35
}

.footer-address-copy strong {
  font-weight: 600
}

.footer-address-copy span {
  font-weight: 300
}

.footer-columns {
  display: grid;
  grid-template-columns: .8fr 1.1fr 1.5fr .8fr;
  gap: 55px
}

.footer-columns>div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0
}

.footer-columns h3 {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px
}

.footer-columns a {
  font-size: 16px;
  font-weight: 300;
  overflow-wrap: anywhere;
  text-decoration: none
}

/* Only the phone-number portion underlines on hover.
   Labels such as "Sales:" and "Viber:" stay un-underlined. */
.footer-phone-link {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .32em;
  width: fit-content
}

.footer-phone-label {
  text-decoration: none
}

.footer-phone-number {
  text-decoration: none
}

.footer-phone-link:hover .footer-phone-number {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px
}

.payments {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.payment-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none
}

.payment-icon img {
  display: block;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain
}

.payment-icon:last-child img {
  max-width: 26px;
  max-height: 26px
}

.footer-bir-seal {
  display: block;
  width: 170px;
  max-width: 100%;
  margin-top: 16px;
}

.footer-bir-seal img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-bir-dialog-open {
  overflow: hidden;
}

.footer-bir-dialog {
  width: 780px;
  max-width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.footer-bir-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.footer-bir-dialog__toolbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 4px 8px;
  background: #fff;
}

.footer-bir-dialog__close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--red, #c1272d);
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}

.footer-bir-dialog__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.footer-bir-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .85);
  margin-top: 57px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 25px
}

.footer-socials a {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  transition: opacity .18s, transform .18s
}

.footer-socials a:hover {
  opacity: .72;
  transform: translateY(-2px)
}

.footer-socials img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain
}

.footer-bottom p {
  font-size: 16px;
  font-weight: 300;
  margin: 0
}

/* Large laptop */
@media(max-width:1600px) {
  .navbar-inner {
    width: calc(100% - 36px);
    gap: 24px
  }

  .nav-menu {
    gap: 18px
  }

  .nav-item>a {
    font-size: 13px
  }

  .search-box {
    width: 290px
  }

  .about-card {
    padding: 38px
  }

  .footer-columns {
    gap: 34px
  }
}

/* Tablet / small laptop */
@media(max-width:1280px) {
  .contact-section {
    padding: 70px 30px;
  }

  .mobile-menu-toggle {
    display: block
  }

  .navbar-inner {
    position: relative
  }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 28px 24px;
    box-shadow: 0 14px 24px rgba(0, 0, 0, .12);
  }

  .nav-menu.open {
    display: flex
  }

  .nav-item>a {
    height: auto;
    padding: 11px 0
  }

  .nav-item>a:after {
    bottom: 6px
  }

  .dropdown, .mega-menu, .small-dropdown>.dropdown {
    position: static;
    width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 8px 0 8px 18px
  }

  .has-dropdown.mobile-open>.dropdown {
    display: grid
  }

  .mega-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
  }

  .nav-actions {
    margin-left: auto
  }

  .search-box {
    width: min(320px, 32vw)
  }

  .hero {
    min-height: 470px;
    height: clamp(470px, 44vw, 590px)
  }

  .hero-copy {
    width: min(760px, 68vw);
    gap: 34px
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(38px, 4vw, 50px);
    line-height: 1
  }

  .hero-copy p {
    font-size: clamp(16px, 1.7vw, 20px)
  }

  .hero-copy-left {
    left: 12vw
  }

  .hero-copy-right {
    right: 12vw
  }

  .hero-dots {
    bottom: 35px
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .about-card {
    min-height: 330px
  }

  .security-card {
    grid-column: 1/-1
  }

  .products-section {
    width: min(760px, calc(100% - 48px))
  }



  .product-copy h3, .product-copy p {
    min-height: 0
  }

  .contact-section {
    grid-template-columns: 1fr 1.12fr
  }

  .contact-info, .contact-form {
    padding: 38px
  }

  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 45px
  }
}

/* Tablet portrait */
@media(max-width:900px) {
  .topbar-inner {
    width: calc(100% - 36px)
  }

  .socials {
    gap: 17px
  }

  .search-box {
    display: none
  }

  .hero {
    height: 500px;
    min-height: 500px
  }

  .hero-copy, .hero-copy-left, .hero-copy-right {
    left: 70px;
    right: 70px;
    top: 50%;
    width: auto;
    align-items: center;
    text-align: center;
  }

  .hero-copy h1,
  .hero-copy h2 {
    white-space: normal
  }

  .hero-copy p {
    margin-inline: auto
  }

  .hero-prev {
    left: 15px
  }

  .hero-next {
    right: 15px
  }

  .about-section {
    padding: 70px 0
  }

  .about-grid {
    width: calc(100% - 36px)
  }

  .switches-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px
  }

  .switch-gallery {
    grid-template-columns: 1fr 1fr
  }

  .outlet-one, .switch-one, .outlet-two, .outlet-three, .switch-two {
    grid-column: auto;
    aspect-ratio: 788/434;
  }

  .switch-two {
    grid-column: 1/-1;
    aspect-ratio: 788/434
  }

  .series-detail {
    width: min(620px, calc(100% - 24px))
  }

  .contact-section {
    display: block;
    width: calc(100% - 36px)
  }

  .contact-info {
    border-radius: 20px 20px 0 0
  }

  .contact-form {
    border-radius: 0 0 20px 20px
  }

  .location-grid {
    grid-template-columns: 1fr
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Mobile */
@media(max-width:640px) {
  .contact-section {
    padding: 50px 20px;
  }

  .wide-container {
    width: calc(100% - 32px)
  }

  .topbar {
    height: 48px
  }

  .topbar-inner {
    width: calc(100% - 28px)
  }

  .topbar-email {
    font-size: 12px
  }

  .socials {
    gap: 12px
  }

  .socials a {
    font-size: 13px
  }

  .navbar {
    height: 76px
  }

  .navbar-inner {
    width: 100%;
    height: 76px;
    padding: 0 16px;
    gap: 10px
  }

  .brand, .brand img {
    width: 112px
  }

  .brand img {
    height: 56px
  }

  .nav-menu {
    top: 76px;
    padding-inline: 20px
  }

  .nav-actions {
    gap: 10px
  }

  .nav-icon {
    width: 21px;
    height: 21px
  }

  .nav-icon svg {
    width: 21px;
    height: 21px
  }

  .hero {
    height: 520px;
    min-height: 520px
  }

  .hero-slide>img {
    object-position: center
  }

  .hero-copy, .hero-copy-left, .hero-copy-right {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 80px;
    transform: none;
    width: auto;
    align-items: center;
    text-align: center;
    gap: 18px
  }

  .hero-text {
    gap: 12px
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.02;
    white-space: normal
  }

  .hero-copy p {
    font-size: 13px;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden
  }

  .btn {
    height: 40px;
    padding-inline: 27px;
    font-size: 13px
  }

  .btn-hero {
    min-width: 150px
  }

  .hero-arrow {
    width: 36px;
    height: 36px
  }

  .hero-arrow img {
    width: 36px;
    height: 36px
  }

  .hero-prev {
    left: 10px
  }

  .hero-next {
    right: 10px
  }

  .hero-dots {
    bottom: 15px;
    gap: 8px
  }

  .hero-dots button {
    width: 8px;
    height: 8px;
    background-size: 8px
  }

  .ticker {
    height: 54px
  }

  .ticker-track {
    gap: 25px
  }

  .ticker-track span {
    font-size: 14px
  }

  .about-section {
    padding: 55px 0
  }

  .about-grid {
    display: block;
    width: calc(100% - 32px);
    border-radius: 16px
  }

  .about-card {
    min-height: 0;
    padding: 32px
  }

  .intro-card {
    gap: 34px
  }

  .intro-card h2, .products-section h2, .switches-heading h2, .contact-info h2 {
    font-size: 30px;
    line-height: 36px
  }

  .products-section {
    width: calc(100% - 32px);
    padding: 50px 0
  }

  .products-section h2 {
    margin-bottom: 30px
  }



  .product-visual {
    height: min(300px, 76vw)
  }

  .switches-section {
    width: calc(100% - 32px);
    margin: 20px auto 65px
  }

  .switch-gallery {
    display: grid;
    grid-template-columns: 1fr
  }

  .outlet-one, .switch-one, .outlet-two, .outlet-three, .switch-two {
    grid-column: auto;
    aspect-ratio: 788/434
  }

  .eye-button, .eye-button img {
    width: 42px;
    height: 42px
  }

  .series-detail {
    width: calc(100% - 16px);
    padding: 30px 26px 28px;
    min-height: 0;
    border-radius: 16px;
  }

  .series-detail h3 {
    font-size: clamp(24px, 7vw, 30px)
  }

  .series-detail p {
    font-size: 14px
  }

  .detail-kicker, .series-detail>a {
    font-size: 14px
  }

  .contact-section {
    width: calc(100% - 32px)
  }

  .contact-info, .contact-form {
    padding: 28px 24px
  }

  .contact-form h3 {
    font-size: 29px;
    line-height: 38px
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0
  }

  .contact-row {
    gap: 15px
  }

  .contact-row>img {
    width: 44px;
    height: 48px
  }

  .contact-row a {
    font-size: 16px
  }

  .visit-section, .blogs-section {
    padding: 60px 0
  }

  .visit-heading {
    margin-bottom: 30px
  }

  .visit-heading h2, .blogs-heading h2 {
    font-size: 36px;
    line-height: 40px
  }

  .visit-heading p {
    font-size: 14px;
    line-height: 1.5
  }

  .location-card {
    padding: 18px;
    min-height: auto
  }

  .location-card>span {
    font-size: 14px;
    line-height: 1.55
  }

  .google-map-wrap iframe {
    height: 330px
  }

  .blog-grid {
    grid-template-columns: 1fr
  }

  .blog-card>img {
    height: 190px
  }

  .blog-copy {
    padding: 20px
  }

  .footer {
    padding: 45px 0 24px
  }

  .footer-columns {
    grid-template-columns: 1fr
  }

  .footer-addresses {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    align-items: flex-start;
    gap: 22px;
    flex-direction: column
  }
}

/* Very small phones */
@media(max-width:390px) {
  .topbar-email span {
    display: none
  }

  .socials {
    gap: 9px
  }

  .brand, .brand img {
    width: 102px
  }

  .nav-actions {
    gap: 8px
  }

  .mobile-menu-toggle {
    width: 36px;
    padding: 5px
  }

  .hero-copy {
    left: 18px !important;
    right: 18px !important
  }

  .hero-copy p {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .series-detail {
    padding: 25px 20px
  }

  .footer-bottom p {
    font-size: 12px
  }
}

/* Supplied footer SVG responsive refinements */
@media(max-width:1280px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 45px
  }

  .footer-brand>p {
    max-width: 600px
  }
}

@media(max-width:900px) {
  .footer-addresses {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:640px) {
  .footer-addresses {
    grid-template-columns: 1fr
  }

  .payment-icon {
    width: 48px;
    height: 48px
  }

  .footer-socials {
    gap: 20px
  }
}


/* Product carousel responsive behavior */
@media(max-width:1280px) {
  .product-card {
    flex-basis: calc((100% - 20px)/2)
  }

  .product-carousel-prev {
    left: -22px
  }

  .product-carousel-next {
    right: -22px
  }

  .product-carousel-nav {
    top: 150px
  }
}

@media(max-width:640px) {
  .product-card {
    flex-basis: 100%
  }

  .product-carousel-nav {
    width: 42px;
    height: 42px;
    top: 138px;
    padding: 1px;
    background: rgba(255, 255, 255, .94)
  }

  .product-carousel-nav img {
    width: 38px;
    height: 38px
  }

  .product-carousel-prev {
    left: 6px
  }

  .product-carousel-next {
    right: 6px
  }
}

/* Link hover refinements */
.text-link {
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.text-link:hover .inline-cta-arrow {
  text-decoration: none;
}

.series-detail>a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.series-detail>a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.detail-link-arrow {
  display: block;
  width: 6px;
  height: 10px;
  flex: none;
}

/* Standardized section spacing */
.about-section,
.products-section,
.new-products-section,
.switches-section,
.contact-section,
.visit-section,
.blogs-section {
  padding: 100px 0;
}

@media(max-width:1280px) {

  .about-section,
  .products-section,
  .new-products-section,
  .switches-section,
  .contact-section,
  .visit-section,
  .blogs-section {
    padding: 70px 30px;
  }
}

@media(max-width:640px) {

  .about-section,
  .products-section,
  .new-products-section,
  .switches-section,
  .contact-section,
  .visit-section,
  .blogs-section {
    padding: 50px 20px;
  }
}

/* ============================================================
   Navigation refinements
   ============================================================ */

/* Use a slightly wider inner shell so the logo sits a little farther left. */
.navbar-inner {
  width: min(1600px, calc(100% - 40px));
  gap: 34px;
}

/* The supplied nav logo is already exactly 147 x 70 and does not clip. */
.brand {
  width: 147px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 147px;
  overflow: visible;
}

.brand img {
  display: block;
  width: 147px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
  max-width: none;
}

/* Figma dropdown-arrow asset. */
.nav-item>a {
  gap: 8px;
}

.nav-dropdown-arrow {
  display: block;
  width: 10px;
  height: 6px;
  flex: 0 0 10px;
  object-fit: contain;
  transition: transform .18s ease;
}

.has-dropdown:hover>a .nav-dropdown-arrow,
.has-dropdown:focus-within>a .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Use actual supplied social SVGs in the red top bar. */
.socials a {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}

.socials a img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

/* Keep desktop nav compact enough to match the Figma header. */
@media(min-width:1601px) {
  .nav-menu {
    gap: 26px
  }
}

@media(max-width:1600px) {
  .navbar-inner {
    width: calc(100% - 32px);
    gap: 22px;
  }

  .nav-menu {
    gap: 18px
  }
}

/* Preserve existing mobile dimensions while using the new logo asset. */
@media(max-width:640px) {
  .navbar-inner {
    width: 100%;
    padding: 0 16px;
  }

  .brand,
  .brand img {
    width: 112px;
  }

  .brand {
    flex-basis: 112px;
    height: 56px;
  }

  .brand img {
    height: 56px;
  }
}



/* ============================================================
   CTA hover behavior
   ============================================================ */

/* CTA-style buttons: underline their text on hover. */
.btn:not(.btn-blogs):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Text CTAs. */
.text-link:hover,
.series-detail>a:hover,
.direction-link:hover,
.blog-copy>a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* View All Blogs is the one CTA that should never underline. */
.btn-blogs,
.btn-blogs:hover {
  text-decoration: none !important;
  border-radius: 0 !important;
}

/* Sticky header hardening */
html,
body {
  overflow-x: clip;
}

.site-shell {
  overflow: visible;
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}

.topbar,
.navbar {
  position: relative;
}


/* WordPress sticky-header hardening */
html,
body {
  overflow-x: clip;
}

.site-shell {
  overflow: visible !important;
}

.site-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  width: 100%;
}

body.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

.footer-credits {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  text-transform: none;
}

.footer-credits a {
  color: inherit;
  text-decoration: none;
}

.footer-credits a[href*="seo-hacker"],
.footer-credits a[href*="sean.si"] {
  font-weight: 700;
}

.footer-credits a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
