/* ══════════════════════════════════════════════════════
   FRAME THEORY — MASTER STYLESHEET
   Apple SF Pro · Premium B2B Agency
══════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --font-display: -apple-system, "SF Pro Display", BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-text:    -apple-system, "SF Pro Text",    BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --cream:   #FFF8E7;
  --cream2:  #F5EDD4;
  --ink:     #0D0D0D;
  --ink2:    #1a1a1a;
  --gold:    #C8922A;
  --gold2:   #E5A93A;
  --muted:   #6B6050;
  --border:  #E2D5BB;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #fff; }


/* ── Noise overlay ──────────────────────────── */
body::after {
  content: ''; position: fixed; inset: 0;
  z-index: 9000; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px;
}

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* custom cursor removed — system cursor used */
}

/* ── Page transition ────────────────────────── */
#page-transition {
  position: fixed; inset: 0; background: var(--ink);
  z-index: 9500; transform: scaleY(0); transform-origin: bottom;
}

/* ── Layout ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 22px; } }

/* ── Shared type ────────────────────────────── */
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.0;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 600; letter-spacing: -.02em; line-height: 1.1;
}
.label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.body-lg { font-size: 1.05rem; font-weight: 300; line-height: 1.8; color: var(--muted); }
.body-md { font-size: .92rem;  font-weight: 300; line-height: 1.8; color: var(--muted); }
.accent-line { width: 40px; height: 2px; background: var(--gold); margin: 20px 0; }

/* ── Scroll reveal ──────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(46px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(.93); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }
[data-delay="6"] { transition-delay: .6s; }
[data-delay="7"] { transition-delay: .7s; }
[data-delay="8"] { transition-delay: .8s; }

/* ════════════════════════════════════════════
   NAVBAR  — the whole thing, clean from scratch
════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 8000;
  /* no background initially — sits over dark hero */
  background: transparent;
  transition: background .45s ease, box-shadow .45s ease;
}

/* After scroll → frosted cream glass */
.nav.scrolled {
  background: rgba(255, 248, 231, 0.93);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--border);
}

/* ── Logo ───────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 42px;
  flex-shrink: 0;
  z-index: 1;
}

/* dark version — visible on cream / scrolled nav */
.nav-logo .logo-dark  { display: block;  height: 40px; width: auto; object-fit: contain; }
/* light/white version — visible on dark hero */
.nav-logo .logo-light { display: none;   height: 40px; width: auto; object-fit: contain; }

/* When nav is over dark hero (before scroll) → swap to light logo */
.nav.on-dark:not(.scrolled) .logo-dark  { display: none;  }
.nav.on-dark:not(.scrolled) .logo-light { display: block; }

/* ── Centre navigation links ────────────────── */
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-family: var(--font-text);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover        { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active       { color: var(--gold); }

/* Links are lighter on dark hero */
.nav.on-dark:not(.scrolled) .nav-links a       { color: rgba(255,248,231,.5); }
.nav.on-dark:not(.scrolled) .nav-links a:hover { color: var(--cream); }

/* ── Right side: CTA + hamburger ───────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.nav-cta {
  font-family: var(--font-text);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 9px 20px;
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--cream); }

.nav.on-dark:not(.scrolled) .nav-cta {
  color: var(--cream);
  border-color: rgba(255,248,231,.35);
}
.nav.on-dark:not(.scrolled) .nav-cta:hover {
  background: var(--gold); border-color: var(--gold); color: var(--ink);
}

/* ── Hamburger ──────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 5px;
  cursor: pointer !important;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: .3s;
}
.nav.on-dark:not(.scrolled) .hamburger span { background: var(--cream); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile full-screen nav ─────────────────── */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--ink); z-index: 7999;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 28px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem); font-weight: 700;
  color: var(--cream); text-decoration: none; letter-spacing: -.03em;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .mob-sub {
  font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,248,231,.22); margin-top: 20px;
}

/* Responsive nav breakpoint */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .nav { padding: 0 22px; }
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer { background: var(--ink2); padding: 80px 0 40px; color: var(--cream); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 52px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,248,231,.07);
  margin-bottom: 32px;
}
.footer-logo-wrap { display: block; margin-bottom: 16px; text-decoration: none; }
.footer-logo-img  { height: 42px; width: auto; display: block; }
.footer-tagline   { font-size: .86rem; font-weight: 300; color: rgba(255,248,231,.32); line-height: 1.7; }
.footer-col h4 {
  font-size: .66rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: .85rem; font-weight: 300;
  color: rgba(255,248,231,.42); text-decoration: none; transition: color .2s;
}
.footer-col ul a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,248,231,.18); }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; gap: 26px; } }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-text);
  font-size: .77rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 15px 30px;
  position: relative; overflow: hidden;
  transition: all .35s var(--ease-out);
}
.btn-dark {
  background: var(--ink); color: var(--cream);
  border: 1.5px solid var(--ink);
}
.btn-dark::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); transform: translateX(-101%);
  transition: transform .4s var(--ease-out);
}
.btn-dark:hover            { color: var(--ink); border-color: var(--gold); }
.btn-dark:hover::before    { transform: translateX(0); }
.btn-dark span, .btn-dark svg { position: relative; z-index: 1; }

.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(255,248,231,.22);
}
.btn-ghost:hover { border-color: var(--gold2); color: var(--gold2); }

/* ════════════════════════════════════════════
   MARQUEE
════════════════════════════════════════════ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 17px 0; background: var(--cream);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track.reverse { animation-direction: reverse; }
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; color: var(--muted);
  display: flex; align-items: center; gap: 48px;
}
.marquee-item .dot { color: var(--gold); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════
   CLIENT SHOWCASE — brochure flag style
════════════════════════════════════════════ */
.client-showcase-section { padding: 120px 0; background: var(--ink); }

.showcase-header { text-align: center; margin-bottom: 60px; }
.showcase-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 800; color: var(--cream);
  letter-spacing: -.04em; margin-bottom: 12px;
}
.showcase-header .showcase-sub {
  font-size: .78rem; color: rgba(255,248,231,.26);
  letter-spacing: .08em; font-style: italic;
}

.showcase-region { margin-bottom: 14px; }

.region-flag-bar { display: flex; height: 5px; width: 100%; }
.flag-india   .s1 { flex:1; background:#FF9933; }
.flag-india   .s2 { flex:1; background:#FFFFFF; }
.flag-india   .s3 { flex:1; background:#138808; }
.flag-germany .s1 { flex:1; background:#000000; }
.flag-germany .s2 { flex:1; background:#DD0000; }
.flag-germany .s3 { flex:1; background:#FFCE00; }

.region-inner {
  background: rgba(255,248,231,.04);
  border: 1px solid rgba(255,248,231,.07);
  border-top: none; padding: 40px 40px 44px;
}

.region-title-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.region-title-row .flag-emoji { font-size: 1.4rem; }
.region-title-row h3 {
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
  color: rgba(255,248,231,.32); letter-spacing: .08em; text-transform: uppercase;
}
.region-title-row::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,248,231,.05);
}

.showcase-logos { display: flex; flex-wrap: wrap; gap: 10px; }

.showcase-chip {
  background: rgba(255,248,231,.05);
  border: 1px solid rgba(255,248,231,.1);
  padding: 13px 22px 13px 16px;
  display: flex; align-items: center; gap: 12px;
  position: relative; overflow: hidden;
  transition: border-color .3s;
}
.showcase-chip::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(200,146,42,.08);
  transform: translateX(-101%);
  transition: transform .4s var(--ease-out);
}
.showcase-chip:hover { border-color: rgba(200,146,42,.4); }
.showcase-chip:hover::before { transform: translateX(0); }

.chip-initial {
  width: 30px; height: 30px; border-radius: 3px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .75rem; font-weight: 800; color: var(--ink);
  flex-shrink: 0; position: relative; z-index: 1;
  transition: background .25s;
}
.showcase-chip:hover .chip-initial { background: var(--gold2); }

.chip-info { position: relative; z-index: 1; }
.chip-name {
  font-size: .84rem; font-weight: 500; color: rgba(255,248,231,.68);
  display: block; line-height: 1.2; transition: color .2s;
}
.chip-industry {
  font-size: .62rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,248,231,.2); margin-top: 2px; display: block;
}
.showcase-chip:hover .chip-name { color: var(--cream); }

@media (max-width: 768px) {
  .region-inner { padding: 24px 18px 28px; }
  .showcase-logos { gap: 8px; }
}
