/* ================================================================
   FNX BRANDS — MAINTENANCE / COMING SOON
   style.css
   ================================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --blue:       #1e7ab8;
  --blue-dark:  #155d8f;
  --gray-logo:  #6b6e72;
  --gray-bg:    #787c81;
  --white:      #ffffff;
  --black:      #0a0a0a;
  --off-white:  #f7f7f5;
  --text:       #1a1a1a;
  --text-muted: #888888;
  --border:     #e4e4e0;

  --nav-h:      72px;
  --pad-x:      clamp(20px, 4vw, 64px);
  --radius:     2px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--off-white);
  min-height: 100dvh;
  padding-top: var(--nav-h);
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

ul { list-style: none; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar__inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ── Brand text (replaces logo) ── */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 4px solid var(--blue);
  padding-left: 12px;
}

.navbar__brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 22px);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.navbar__brand-address {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: clamp(9px, 0.75vw, 11px);
  color: var(--text-muted);
  letter-spacing: 0.2px;
  white-space: nowrap;
  line-height: 1;
}

/* ── Nav links ── */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.navbar__links li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 14px;
  position: relative;
  transition: color 0.2s;
}

.navbar__links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.navbar__links li a:hover { color: var(--blue); }
.navbar__links li a:hover::after { transform: scaleX(1); }

/* ── Right actions ── */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.navbar__search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  padding: 0 12px;
  gap: 6px;
  height: 34px;
  background: #fafafa;
}

.navbar__search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--text);
  width: 130px;
}

.navbar__search input::placeholder { color: #bbb; }

.navbar__search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.navbar__icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.navbar__icon-btn svg {
  width: 18px;
  height: 18px;
}

.navbar__icon-btn:hover {
  background: var(--off-white);
  color: var(--blue);
}

/* ── Hamburger ── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.navbar__hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.navbar__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu drawer ── */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px var(--pad-x) 20px;
  animation: slideDown 0.3s var(--ease);
}

.mobile-menu.open { display: block; }

.mobile-menu ul li a {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu ul li a:hover {
  color: var(--blue);
  padding-left: 8px;
}

/* ================================================================
   HERO SLIDER
   ================================================================ */
.hero {
  position: relative;
  width: 100%;
  /* 16:9 on desktop, taller on mobile */
  height: clamp(340px, 56vw, 620px);
  overflow: hidden;
  background: var(--black);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  will-change: opacity;
  overflow: hidden;
}

.hero__slide.active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* overridden per-slide by JS */
  transform: scale(1.06);
  transform-origin: center center;
  animation: none;
  pointer-events: none;
}

.hero__slide.active img {
  animation: kenBurns 9s ease forwards;
}

@keyframes kenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}

/* Overlay darkens the image for text legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.28) 50%,
      rgba(0,0,0,0.55) 100%
    );
}

/* ── Caption (centre) ── */
.hero__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hero__caption-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  background: rgba(0,0,0,0.28);
  padding: 5px 14px;
  margin-bottom: 10px;
  transition: opacity 0.5s;
}

.hero__caption-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(34px, 6vw, 80px);
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.5px;
  transition: opacity 0.5s;
}

.hero__caption-label.fading,
.hero__caption-heading.fading { opacity: 0; }

/* ── Counter dots (bottom-left, like reference) ── */
.hero__counter {
  position: absolute;
  bottom: 20px;
  left: clamp(20px, 3vw, 40px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.h-dot {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.25s;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}

.h-dot.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.h-dot:hover { color: var(--white); }

/* ── Arrow (right side) ── */
.hero__arrow {
  position: absolute;
  right: clamp(16px, 2.5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--white);
}

.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow:hover { background: rgba(255,255,255,0.32); }

/* ================================================================
   MAINTENANCE BANNER
   ================================================================ */
.banner {
  background: var(--white);
  padding: clamp(52px, 6vw, 88px) var(--pad-x);
  border-bottom: 1px solid var(--border);
}

.banner__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.banner__tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.banner__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  color: var(--text);
  letter-spacing: 1px;
}

.banner__sub {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 520px;
  margin-top: 4px;
}

/* ── Notify form ── */
.notify {
  margin-top: 20px;
  width: 100%;
  max-width: 460px;
}

.notify__label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
  text-align: left;
}

.notify__row {
  display: flex;
  width: 100%;
  border: 1px solid var(--border);
}

.notify__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
}

.notify__input::placeholder { color: #bbb; }

.notify__input.error {
  background: #fff5f5;
  border-right: none;
}

.notify__btn {
  background: var(--blue);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0 28px;
  flex-shrink: 0;
  transition: background 0.2s;
  white-space: nowrap;
}

.notify__btn:hover { background: var(--blue-dark); }

.notify__ok {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
}

.notify__ok.show { display: flex; }

/* ================================================================
   PROMO CARDS  — 3-column grid (mirrors reference)
   ================================================================ */
.promo {
  background: var(--off-white);
  padding: clamp(40px, 5vw, 72px) var(--pad-x);
}

.promo__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}

.promo__card {
  position: relative;
  overflow: hidden;
  background: #ddd;
  /* equal height via aspect-ratio */
  aspect-ratio: 3 / 4;
}

.promo__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.7s var(--ease);
}

.promo__card:hover img { transform: scale(1.04); }

/* CTA */
.promo__cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.85);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  padding: 13px 0;
  transition: background 0.2s, letter-spacing 0.2s;
}

.promo__cta:hover {
  background: var(--blue);
  letter-spacing: 4px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: clamp(24px, 3vw, 36px) var(--pad-x);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer brand text (replaces logo) */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}

.footer__brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

.footer__brand-address {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  line-height: 1.4;
}

.footer__copy {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   RESPONSIVE — Tablet ≤ 900px
   ================================================================ */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  .navbar__links  { display: none; }
  .navbar__search { display: none; }
  .navbar__hamburger { display: flex; }

  .hero { height: clamp(300px, 62vw, 480px); }
}

/* ================================================================
   RESPONSIVE — Mobile ≤ 640px
   ================================================================ */
@media (max-width: 640px) {
  :root { --nav-h: 58px; --pad-x: 20px; }

  /* Force all images to centre on mobile */
  .hero__slide img,
  .promo__card img { object-position: center center !important; }

  .hero { height: clamp(260px, 70vw, 420px); }

  .hero__caption-heading { font-size: clamp(26px, 8vw, 44px); }

  .promo__inner {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .promo__card { aspect-ratio: 4 / 3; }

  .notify__row { flex-direction: column; border: none; gap: 0; }
  .notify__input {
    border: 1px solid var(--border);
    border-bottom: none;
    font-size: 16px; /* prevent iOS zoom */
  }
  .notify__btn { padding: 14px; text-align: center; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__links { gap: 14px; }

  /* Hide address on small screens to keep nav clean */
  .navbar__brand-address { display: none; }
}

/* ================================================================
   RESPONSIVE — Small mobile ≤ 400px
   ================================================================ */
@media (max-width: 400px) {
  .promo__inner { max-width: 100%; }
  .banner__title { font-size: 28px; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide img,
  .promo__card img { transition: none; animation: none; }
}
