/* ─────────────────────────────────────────────
   MADA GROUP — Clarity. By Design.
   One accent (gold), two fonts (Jost / Inter)
   ───────────────────────────────────────────── */

:root {
  --navy: #000634;
  --navy-2: #040b3f;
  --navy-3: #0b1550;
  --gold: #d4aa4c;
  --gold-soft: rgba(212, 170, 76, 0.16);
  --white: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.1);
  --head: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 { font-family: var(--head); font-weight: 300; letter-spacing: 0.01em; line-height: 1.15; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.4rem; font-weight: 400; }
em { font-style: normal; color: var(--gold); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--gold); color: var(--navy); padding: 0.5rem 1rem;
}
.skip:focus { top: 1rem; }

.container { width: min(1120px, 100% - 3rem); margin-inline: auto; position: relative; }
.center { text-align: center; }

/* ── NAV ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 6, 52, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--faint);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { width: 40px; height: 40px; border-radius: 50%; }
.nav-logo span {
  font-family: var(--head); font-size: 0.85rem; letter-spacing: 0.28em; text-transform: uppercase;
}
.nav-links { display: flex; gap: 2.25rem; }
.nav-links a {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  position: relative; padding-block: 0.25rem; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid rgba(212, 170, 76, 0.5); color: var(--gold);
  padding: 0.55rem 1.2rem; border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }

/* ── BUTTONS ── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 2rem; border-radius: 999px;
  font-family: var(--body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--gold); color: var(--navy); animation: pulse 3.2s var(--ease) infinite; }
.btn-solid:hover { box-shadow: 0 10px 30px -8px rgba(212, 170, 76, 0.55); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(212, 170, 76, 0.08); }

/* shimmer sweep across buttons */
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shimmer 5s var(--ease) infinite 1.6s;
}
.btn-outline::after { background: linear-gradient(110deg, transparent 35%, rgba(212, 170, 76, 0.28) 50%, transparent 65%); animation-delay: 2.4s; }

@keyframes shimmer { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 170, 76, 0.38); }
  50% { box-shadow: 0 0 0 10px rgba(212, 170, 76, 0); }
}

.link-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 0.3rem; border-bottom: 1px solid rgba(212, 170, 76, 0.35);
  transition: gap 0.35s var(--ease), border-color 0.35s;
}
.link-btn:hover { gap: 0.85rem; border-color: var(--gold); }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 6rem;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, var(--navy-3) 0%, var(--navy) 70%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.hero-motif {
  position: absolute; width: min(900px, 140vw); height: min(900px, 140vw);
  left: 50%; top: 42%; translate: -50% -50%;
  color: var(--gold); opacity: 0.07;
  animation: turn 180s linear infinite;
}
@keyframes turn { to { rotate: 360deg; } }

.hero-inner { position: relative; max-width: 760px; }
.hero-logo { position: relative; width: 168px; height: 168px; margin: 0 auto 2.5rem; }
.hero-logo img { position: relative; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(212, 170, 76, 0.25); }
.hero-glow {
  position: absolute; inset: -45%; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 170, 76, 0.28) 0%, rgba(212, 170, 76, 0.06) 40%, transparent 68%);
  animation: glow 6s ease-in-out infinite;
}
/* slow light sweep across the emblem */
.hero-logo::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  animation: sweep 7s ease-in-out infinite 1.5s;
}
@keyframes glow { 0%, 100% { opacity: 0.6; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes sweep { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

.hero-title { font-size: clamp(2.8rem, 7.5vw, 5.4rem); letter-spacing: 0.02em; margin-bottom: 1.5rem; }
.hero-title em { font-weight: 400; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 540px; margin: 0 auto 2.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero-arrow {
  position: absolute; bottom: 2rem; left: 50%; translate: -50% 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--faint); border-radius: 50%;
  transition: border-color 0.3s;
}
.hero-arrow:hover { border-color: var(--gold); }
.hero-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); opacity: 0.6; } 50% { transform: translateY(4px); opacity: 1; } }

.rise { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── SECTIONS ── */
.section { position: relative; padding-block: clamp(6rem, 12vw, 9rem); overflow: hidden; }
.section-alt { background: var(--navy-2); }
.section-head { max-width: 640px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem; margin-bottom: 1.25rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.lead { color: var(--muted); margin-top: 1.25rem; max-width: 560px; }

.section-motif {
  position: absolute; width: 560px; height: 560px; right: -180px; top: -120px;
  color: var(--gold); opacity: 0.05; pointer-events: none;
}
.section-motif-left { right: auto; left: -200px; top: auto; bottom: -200px; }

/* ── CARDS ── */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--faint);
  border-radius: 6px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 170, 76, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 170, 76, 0.12), 0 18px 50px -20px rgba(212, 170, 76, 0.35);
}

.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.brand { padding: 2.75rem 2.25rem 2.5rem; display: flex; flex-direction: column; min-height: 320px; }
.brand-num { font-family: var(--head); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 2.5rem; }
.brand h3 { font-size: 2rem; font-weight: 300; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.brand p { color: var(--muted); margin-bottom: 2rem; }
.brand .link-btn { margin-top: auto; align-self: flex-start; }

/* ── PRODUCTS ── */
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  padding-block: 1.75rem; margin-bottom: 2.5rem;
  border-block: 1px solid var(--faint);
  font-size: 0.9rem; color: var(--muted);
}
.tiers strong {
  display: block; margin-bottom: 0.35rem;
  font-family: var(--head); font-weight: 400; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
}
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.product { padding: 2rem 2rem 1.25rem; }
.product h3 { margin-bottom: 1rem; }
.product li + li { border-top: 1px solid var(--faint); }
.product a {
  display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.9rem;
  font-size: 0.92rem; color: var(--muted); transition: color 0.3s, padding 0.35s var(--ease);
}
.product a span:last-child { color: var(--gold); font-family: var(--head); letter-spacing: 0.04em; }
.product a:hover { color: var(--white); padding-left: 0.35rem; }
.note { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 4rem); counter-reset: s; }
.step { position: relative; padding-top: 2rem; border-top: 1px solid var(--faint); }
.step::before {
  content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 48px; background: var(--gold);
  transition: width 0.8s var(--ease);
}
.step:hover::before { width: 100%; }
.step-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.75rem;
  border: 1px solid rgba(212, 170, 76, 0.4); border-radius: 50%;
}
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin-bottom: 0.75rem; }
.step-num { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.15em; margin-right: 0.5rem; vertical-align: middle; }
.step p { color: var(--muted); max-width: 320px; }

/* ── CONNECT ── */
.connect { text-align: center; max-width: 720px; }
.connect .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--gold); }
.connect .lead { margin-inline: auto; }
.emails { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem; margin: 2.5rem 0; }
.emails { align-items: center; }
.emails a:not(.btn) {
  font-family: var(--head); font-size: clamp(1rem, 2vw, 1.2rem); letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(212, 170, 76, 0.35); padding-bottom: 0.2rem; transition: color 0.3s, border-color 0.3s;
}
.emails a:not(.btn):hover { color: var(--gold); border-color: var(--gold); }

.socials { display: flex; justify-content: center; gap: 0.75rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 44px; height: 44px; border: 1px solid var(--faint); border-radius: 999px; color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.socials a:hover { color: var(--gold); border-color: rgba(212, 170, 76, 0.6); transform: translateY(-3px); box-shadow: 0 8px 24px -12px rgba(212, 170, 76, 0.6); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; }
.socials span { display: none; }
.socials-lg { gap: 1rem; flex-wrap: wrap; }
.socials-lg a { width: auto; height: 48px; padding: 0 1.4rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.socials-lg span { display: inline; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--faint); padding-block: 4rem 2.5rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.footer-logo img { width: 72px; height: 72px; border-radius: 50%; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2.25rem; }
.footer-links a { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.official { font-size: 0.72rem; line-height: 1.7; color: rgba(244, 241, 234, 0.5); max-width: 560px; }
.copy { font-size: 0.78rem; color: rgba(244, 241, 234, 0.55); letter-spacing: 0.04em; }

/* ── SCROLL REVEAL ── */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 140ms), calc(var(--i, 0) * 140ms), 0s, 0s;
}
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.done { transition-delay: 0s; }
.js .card.reveal.visible:hover { transform: translateY(-6px); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .brands, .products, .tiers, .steps { grid-template-columns: 1fr; }
  .brand { min-height: 0; }
  .brand-num { margin-bottom: 1.5rem; }
}
@media (max-width: 480px) {
  .nav-logo span { display: none; }
  .hero-logo { width: 136px; height: 136px; }
  .hero-actions .btn { width: 100%; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .js .reveal { opacity: 1; transform: none; }
  .hero-canvas { display: none; }
}
