/* ==========================================================================
   PowerWave AV — SECTIONS (mobile-first)
   a) Nav  b) Hero  c) Services  d) About  e) Shop  f) Testimonials
   g) Contact  h) Footer
   ========================================================================== */

/* Shared section rhythm */
.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section--alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-1) 14%, var(--surface-1) 86%, var(--bg) 100%);
}

/* ==========================================================================
   a) NAVIGATION — sticky, sits over the hero, frosted once scrolled
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  margin-bottom: calc(var(--nav-h) * -1); /* hero slides underneath */
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled,
.nav.is-open {
  background: rgba(4, 6, 11, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand img {
  height: 48px;
  width: auto;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.nav__toggle-bars span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav.is-open .nav__toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel — visibility keeps closed links out of the tab order */
.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--bg); /* fully opaque so hero text never ghosts through */
  border-bottom: 1px solid var(--border);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.nav.is-open .nav__menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.nav__menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.9rem 0.5rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.nav__link[aria-current="true"] {
  color: var(--blue-2);
}

.nav__cta {
  margin-top: 0.75rem;
}

.nav__cta .btn {
  width: 100%;
}

@media (min-width: 900px) {
  .nav__brand img { height: 58px; }
  .nav__toggle { display: none; }

  .nav__menu {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav__menu ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav__link {
    padding: 0.5rem 0.95rem;
    font-size: 1rem;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-wave);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }

  .nav__link:hover::after,
  .nav__link[aria-current="true"]::after {
    transform: scaleX(1);
  }

  .nav__cta { margin: 0 0 0 0.75rem; }
  .nav__cta .btn { width: auto; min-height: 44px; padding-inline: 1.3rem; }
}

/* ==========================================================================
   b) HERO — full viewport, Three.js waveform behind the copy
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 2.5rem) 0 6rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__scene.is-live {
  opacity: 1;
}

.hero__scene canvas {
  width: 100%;
  height: 100%;
}

/* Static fallback when WebGL/Three.js isn't available */
.hero__scene.is-fallback {
  opacity: 1;
  background:
    radial-gradient(60% 50% at 18% 62%, rgba(0, 102, 255, 0.4), transparent 70%),
    radial-gradient(50% 45% at 86% 72%, rgba(255, 102, 0, 0.32), transparent 70%),
    radial-gradient(40% 40% at 55% 40%, rgba(0, 191, 255, 0.14), transparent 70%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 6, 11, 0.62) 0%, rgba(4, 6, 11, 0.3) 45%, var(--bg) 100%);
}

@media (min-width: 900px) {
  .hero__overlay {
    background:
      linear-gradient(90deg, rgba(4, 6, 11, 0.7) 0%, rgba(4, 6, 11, 0.28) 52%, rgba(4, 6, 11, 0) 80%),
      linear-gradient(180deg, rgba(4, 6, 11, 0) 70%, var(--bg) 100%);
  }
}

.hero__content {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.02;
}

/* Each line sits in a mask so the text slides up into view */
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero__line-inner {
  display: block;
}

.hero__line-inner--blue {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__line-inner--orange {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  max-width: 36rem;
  /* keeps the paragraph crisp where wave lines pass behind it */
  text-shadow: 0 1px 14px rgba(4, 6, 11, 0.95), 0 0 2px rgba(4, 6, 11, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

/* Hidden until the Anime.js intro plays (or the `is-ready` fallback fires) */
.js .hero:not(.is-ready) [data-hero]:not([data-hero="line"]) {
  opacity: 0;
}

.js .hero:not(.is-ready) [data-hero="line"] {
  transform: translateY(110%);
}

/* Decorative equalizer bars (echo the logo) */
.eq {
  position: absolute;
  right: var(--gutter);
  bottom: 3.5rem;
  display: none;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  opacity: 0.9;
}

.eq span {
  width: 9px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to top, var(--orange-1), var(--orange-2));
  transform-origin: bottom;
  transform: scaleY(0.55);
  animation: eq-bounce 1.2s ease-in-out infinite alternate;
}

.eq span:nth-child(3n + 1) { animation-duration: 0.9s; }
.eq span:nth-child(3n + 2) { animation-duration: 1.4s; }
.eq span:nth-child(3n)     { animation-duration: 1.8s; }
.eq span:nth-child(odd)    { animation-delay: -0.45s; }
.eq span:nth-child(4n)     { animation-delay: -0.95s; }
.eq span:nth-child(5n)     { animation-delay: -1.3s; }

@keyframes eq-bounce {
  from { transform: scaleY(0.18); }
  to   { transform: scaleY(1); }
}

@media (min-width: 900px) {
  .eq { display: flex; }
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  display: none;
  width: 28px;
  height: 46px;
  margin-left: -14px;
  border: 2px solid var(--border-strong);
  border-radius: 16px;
}

.hero__cue-line {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--blue-2);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (min-width: 640px) and (min-height: 640px) {
  .hero__cue { display: block; }
}

/* ==========================================================================
   c) SERVICES
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-card);
  will-change: transform;
}

/* Cursor-following glow (--mx / --my set by services.js) */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 191, 255, 0.18), transparent 70%);
  transition: opacity 0.35s ease;
}

.service-card[data-accent="orange"]::before {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 153, 0, 0.18), transparent 70%);
}

.service-card:hover::before,
.service-card:focus-within::before {
  opacity: 1;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(0, 191, 255, 0.4);
}

.service-card[data-accent="orange"]:hover,
.service-card[data-accent="orange"]:focus-within {
  border-color: rgba(255, 153, 0, 0.45);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: var(--glow-blue);
}

.service-card[data-accent="orange"] .service-card__icon {
  background: var(--grad-orange);
  color: var(--ink-on-accent);
  box-shadow: var(--glow-orange);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: var(--fs-h3);
}

.service-card__text {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.service-card__points {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.92rem;
}

.service-card__points li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-card__points li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-wave);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue-2);
}

.service-card[data-accent="orange"] .service-card__link {
  color: var(--orange-2);
}

.service-card__link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.service-card__link:hover svg {
  transform: translateX(5px);
}

/* ==========================================================================
   d) ABOUT
   ========================================================================== */
.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.about__copy {
  display: grid;
  gap: 1.25rem;
}

.about__copy p:not(.lead):not(.eyebrow) {
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .about { grid-template-columns: 1.1fr 0.9fr; }
}

.about__visual {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.about__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.about__ring--1 {
  inset: 0;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad-blue) border-box;
  opacity: 0.85;
}

.about__ring--2 {
  inset: 11%;
  background:
    linear-gradient(var(--surface-1), var(--surface-1)) padding-box,
    var(--grad-orange) border-box;
  opacity: 0.9;
}

.about__logo {
  position: absolute;
  inset: 22%;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #0c1426, #05070e 70%);
  border: 1px solid var(--border);
  box-shadow: var(--glow-blue), var(--glow-orange);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.about__logo img {
  width: 92%;
}

/* Trust indicators */
.stats {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  display: grid;
  gap: 0.35rem;
  padding: 1.6rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.4rem + 3.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-wave);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   e) SHOP — horizontal scroll-snap strip
   ========================================================================== */
.shop__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.shop__controls {
  display: none;
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .shop__controls { display: flex; }
}

.shop__scroller {
  margin: clamp(1.75rem, 4vw, 2.75rem) calc(var(--gutter) * -1) 0;
  padding: 0.5rem var(--gutter) 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  -webkit-overflow-scrolling: touch;
}

.shop__track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
}

.product-card {
  flex: 0 0 min(76vw, 290px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), border-color 0.3s ease;
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 191, 255, 0.4);
  }
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 50% 110%, rgba(0, 191, 255, 0.35), transparent 70%),
    linear-gradient(160deg, #101a30, #0a0f1c);
}

.product-card__media[data-tone="orange"] {
  background:
    radial-gradient(70% 80% at 50% 110%, rgba(255, 102, 0, 0.38), transparent 70%),
    linear-gradient(160deg, #1a1420, #0a0f1c);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__icon {
  color: var(--white);
  opacity: 0.9;
}

.product-card__icon svg {
  width: 72px;
  height: 72px;
  stroke-width: 1.2;
}

.product-card__media .badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
}

.product-card__media .tag-sample {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
}

.product-card__name {
  font-size: 1.1rem;
}

.product-card__blurb {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange-2);
}

.product-card__from {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.shop__cta {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* ==========================================================================
   f) TESTIMONIALS — carousel
   ========================================================================== */
.carousel {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.carousel__viewport {
  overflow: hidden;
  padding: 0.5rem 0.25rem 1rem;
  margin-inline: -0.25rem;
  touch-action: pan-y;
}

.carousel__track {
  --gap: 1.25rem;
  --per: 1;
  display: flex;
  gap: var(--gap);
  will-change: transform;
}

@media (min-width: 768px)  { .carousel__track { --per: 2; } }
@media (min-width: 1100px) { .carousel__track { --per: 3; } }

.t-card {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-card);
}

.t-card__stars {
  display: flex;
  gap: 0.2rem;
  color: var(--orange-2);
}

.t-card__stars svg {
  width: 20px;
  height: 20px;
}

.t-card__quote {
  margin: 0;
  flex: 1;
  font-size: 1.02rem;
  color: var(--text);
}

.t-card__who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.t-card__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-blue);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}

.t-card__meta {
  display: grid;
  line-height: 1.3;
}

.t-card__meta span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.carousel__dots {
  display: flex;
  gap: 0.15rem;
}

/* 44px hit-area around a small visible dot */
.carousel__dot {
  position: relative;
  width: 28px;
  height: 44px;
}

.carousel__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: transform 0.3s var(--ease), background 0.3s ease, width 0.3s var(--ease);
}

.carousel__dot[aria-current="true"]::after {
  width: 22px;
  margin-left: -11px;
  border-radius: 6px;
  background: var(--grad-wave);
}

/* ==========================================================================
   g) CONTACT
   ========================================================================== */
.contact {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 960px) {
  .contact { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
}

.contact__intro {
  display: grid;
  gap: 1.25rem;
}

.contact__details {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0, 191, 255, 0.12);
  border: 1px solid rgba(0, 191, 255, 0.3);
  color: var(--blue-2);
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__label {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__value {
  font-weight: 600;
  font-style: normal;
}

a.contact__value:hover {
  color: var(--blue-2);
}

.contact__hours {
  display: grid;
  gap: 0.15rem;
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.contact__hours div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 20rem;
}

.contact__hours dt {
  color: var(--text-muted);
}

.contact__hours dd {
  margin: 0;
  font-weight: 600;
}

.contact__map {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) invert(0.92) hue-rotate(180deg) contrast(0.9);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 36px 100%,
    radial-gradient(60% 70% at 50% 50%, rgba(0, 102, 255, 0.18), transparent 75%);
}

.map-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--orange-2);
}

.map-placeholder strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.map-placeholder small {
  max-width: 26rem;
  font-size: 0.82rem;
}

/* Form */
.form {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: var(--shadow-card);
}

.form h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.form__row {
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.form__submit {
  margin-top: 0.5rem;
}

.form__status {
  min-height: 1.5em;
  font-weight: 600;
}

.form__status[data-state="success"] { color: var(--success); }
.form__status[data-state="error"] { color: var(--danger); }

/* ==========================================================================
   h) FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  background: var(--black);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-wave);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 0.8fr 1fr; }
}

.footer__brand {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer__brand img {
  width: 190px;
}

.footer__brand p {
  max-width: 24rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer__social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s, background-color 0.25s;
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .footer__social:hover {
    transform: translateY(-3px);
    border-color: var(--orange-2);
    color: var(--orange-2);
    background: rgba(255, 153, 0, 0.08);
  }
}

.footer__heading {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-2);
}

.footer__col ul {
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__legal {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
