/* ============================================================
   CHAMBERS OF FARJAD KHAN — Main Stylesheet
   ============================================================ */

/* ── 1. Design Tokens ─────────────────────────────────────── */
:root {
  --navy:        #0A0F1E;
  --navy-mid:    #111827;
  --navy-light:  #1C2640;
  --gold:        #C9A84C;
  --gold-light:  #E2C27D;
  --gold-dim:    rgba(201,168,76,0.15);
  --off-white:   #F5F0E8;
  --text-muted:  rgba(255,255,255,0.55);
  --text-body:   rgba(255,255,255,0.80);
  --border-gold: rgba(201,168,76,0.30);
  --border-dim:  rgba(255,255,255,0.10);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }

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

/* ── 3. Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar             { width: 4px; }
::-webkit-scrollbar-track       { background: var(--navy); }
::-webkit-scrollbar-thumb       { background: rgba(201,168,76,0.4); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
::selection { background: var(--gold); color: var(--navy); }

/* ── 4. Utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5rem;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  flex-shrink: 0;
}

.eyebrow-text {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: #fff;
  line-height: 1.1;
  margin-top: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 500px;
  margin-top: 1rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

/* ── 5. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  min-height: 44px;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: none;
  padding-left: 0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
.btn-ghost:hover { color: var(--gold-light); }
.btn-ghost .btn-arrow { transition: transform 0.3s ease; }
.btn-ghost:hover .btn-arrow { transform: translateX(5px); }

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

.btn-lg { padding: 1rem 2.5rem; font-size: 0.7rem; }

.btn-navy {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 44px;
}
.btn-navy:hover { background: var(--navy); color: #fff; }

.btn-gold-outline-full {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  min-height: 44px;
}
.btn-gold-outline-full:hover { background: var(--gold); color: var(--navy); }

/* ── 6. Preloader ─────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.pl-corner {
  position: absolute;
  width: 32px;
  height: 32px;
}
.pl-tl { top: 2rem; left: 2rem; border-top: 1px solid rgba(201,168,76,0.4); border-left: 1px solid rgba(201,168,76,0.4); }
.pl-tr { top: 2rem; right: 2rem; border-top: 1px solid rgba(201,168,76,0.4); border-right: 1px solid rgba(201,168,76,0.4); }
.pl-bl { bottom: 2rem; left: 2rem; border-bottom: 1px solid rgba(201,168,76,0.4); border-left: 1px solid rgba(201,168,76,0.4); }
.pl-br { bottom: 2rem; right: 2rem; border-bottom: 1px solid rgba(201,168,76,0.4); border-right: 1px solid rgba(201,168,76,0.4); }

.pl-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pl-logo {
  width: 220px;
  height: auto;
  object-fit: contain;
  opacity: 0;
}

.pl-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(201,168,76,0.15);
  overflow: hidden;
}

.pl-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transform-origin: left center;
}

.pl-counter {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--gold);
  opacity: 0;
  min-width: 3ch;
  text-align: center;
}

/* ── 7. Navbar ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5rem;
  height: 100px;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  opacity: 0;
}

#navbar.scrolled {
  background-color: rgba(10,15,30,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
}

.nav-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.5rem 1.25rem;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px; min-height: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--gold);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger span:nth-child(1) { width: 24px; }
.hamburger span:nth-child(2) { width: 16px; }
.hamburger span:nth-child(3) { width: 24px; }

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg);  width: 22px; }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 22px; }

/* ── 8. Mobile Menu ───────────────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10,15,30,0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1),
              visibility 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

#mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Staggered link entrance when menu opens */
#mobile-menu .mob-link {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s ease;
}
#mobile-menu.is-open .mob-link { opacity: 1; transform: translateY(0); }
#mobile-menu.is-open .mob-link:nth-child(1)  { transition-delay: 0.15s; }
#mobile-menu.is-open .mob-link:nth-child(2)  { transition-delay: 0.20s; }
#mobile-menu.is-open .mob-link:nth-child(3)  { transition-delay: 0.25s; }
#mobile-menu.is-open .mob-link:nth-child(4)  { transition-delay: 0.30s; }
#mobile-menu.is-open .mob-link:nth-child(5)  { transition-delay: 0.35s; }
#mobile-menu.is-open .mob-link:nth-child(6)  { transition-delay: 0.40s; }
#mobile-menu.is-open .mob-link:nth-child(7)  { transition-delay: 0.45s; }
#mobile-menu.is-open .mob-link:nth-child(9)  { transition-delay: 0.50s; }

.menu-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.25rem;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 3rem;
}

.mob-link {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 400;
  color: #fff;
}
.mob-link:hover { color: var(--gold); }

.mob-social {
  display: flex;
  gap: 1rem;
  position: absolute;
  bottom: 2.5rem;
}

.mob-soc-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-dim);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mob-soc-icon:hover { border-color: var(--gold); color: var(--gold); }

/* ── 9. Hero ──────────────────────────────────────────────── */
#hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  background: var(--navy);
  overflow: hidden;
}

/* Mobile image strip (hidden on desktop) */
.hero-mobile-img {
  display: none;
  position: relative;
  width: 100%;
  height: 42vh;
  flex-shrink: 0;
}
.hero-mobile-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-mobile-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--navy) 100%);
}

/* Left panel */
.hero-left {
  position: relative;
  z-index: 10;
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 4rem 5rem 5rem;
}

/* Right panel (desktop) */
.hero-right {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  overflow: hidden;
  z-index: 1;
}
.hero-right-inner {
  position: absolute;
  inset: 0;
}
.hero-right-inner img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-right-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,15,30,0.65) 0%, transparent 55%);
}

/* Rotating badge */
.rotating-badge {
  position: absolute;
  bottom: 2rem; right: 2rem;
  width: 90px; height: 90px;
  animation: rotateSlow 20s linear infinite;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Headline */
.hero-headline { margin-bottom: 2rem; }

.hl-clip {
  overflow: hidden;
  line-height: 1;
}

.hl-inner {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  transform: translateY(100%);
}

.name-clip { position: relative; }

.hl3 { position: relative; }

.name-outline {
  display: block;
  -webkit-text-stroke: 1.5px var(--gold);
  color: transparent;
}

.name-fill {
  position: absolute;
  top: 0; left: 0;
  display: block;
  color: var(--gold);
  clip-path: inset(0 100% 0 0);
  white-space: nowrap;
}

/* Sub + CTAs */
.hero-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  max-width: 440px;
  margin-bottom: 2.5rem;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0;
}

/* Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-dim);
  opacity: 0;
}

.stat-item {
  padding: 1.5rem 2rem 0;
}
.stat-item:first-child { padding-left: 0; }
.stat-item:not(:last-child) {
  border-right: 1px solid var(--border-dim);
}

.stat-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.stat-val {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-suf {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* ── 10. Section Shared ───────────────────────────────────── */
.section {
  padding: 7rem 0;
  background: var(--navy-mid);
}

.section-dark {
  background: var(--navy);
}

/* Scroll reveal — initial state driven by GSAP fromTo, no CSS needed */

/* ── 11. Services ─────────────────────────────────────────── */
/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tab {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1.25rem;
  border: 1px solid var(--border-dim);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  min-height: 36px;
}
.tab:hover,
.tab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.srv-card {
  padding: 2rem 2rem 2rem 0;
  border-top: 1px solid var(--border-dim);
  cursor: default;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.srv-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
  background: rgba(201,168,76,0.04);
}
.srv-card.dimmed { opacity: 0.3; pointer-events: none; }

.srv-icon {
  color: var(--gold);
  margin-bottom: 1rem;
}

.srv-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}
.srv-card:hover .srv-name { color: var(--gold-light); }

.srv-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.srv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.5rem;
  transition: color 0.2s ease;
}
.srv-link:hover { color: var(--gold-light); }

/* ── 12. Case Studies ─────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--navy-mid);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.case-card:hover { transform: translateY(-6px); }

.case-img-wrap {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.case-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.6s ease;
}
.case-card:hover .case-img { transform: scale(1.06); }

.case-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,15,30,0.6) 100%);
}

.case-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--navy-mid);
  color: var(--gold);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-gold);
}

.case-badge-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.case-featured .case-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201,168,76,0.4);
  pointer-events: none;
}

.case-body {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.case-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.case-featured .case-title { font-size: 1.35rem; }

.case-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dim);
}

.case-court {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.case-link {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s ease;
}
.case-link:hover { color: var(--gold-light); }

/* ── 13. Founder (redesigned) ─────────────────────────────── */
.section-founder-new {
  background: var(--navy);
  padding: 8rem 0;
}

.founder-new-wrap {
  display: flex;
  align-items: flex-start;
  gap: 5rem;
}

.founder-new-text {
  flex: 1;
  min-width: 0;
}

.founder-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.founder-eyebrow .eyebrow-line { background: var(--gold); }

.founder-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.founder-para {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}

.founder-quote {
  margin: 1.75rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold);
}
.founder-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #fff;
  line-height: 1.55;
}
.founder-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.75rem;
}

.founder-creds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}
.cred {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-body);
}
.cred-check {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* Floating portrait */
.founder-float-wrap {
  flex-shrink: 0;
  width: 240px;
  animation: founderFloat 5s ease-in-out infinite;
}
.founder-float-img {
  display: block;
  width: 240px;
  height: 315px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--gold);
  outline: 6px solid rgba(201,168,76,0.08);
  box-shadow: 0 28px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--border-gold);
}
@keyframes founderFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

/* ── 14. PDF Case Cards ────────────────────────────────────── */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pdf-card {
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-top: 2px solid var(--gold);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pdf-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.pdf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdf-icon-wrap {
  color: var(--gold);
  opacity: 0.75;
  flex-shrink: 0;
}

.pdf-badge {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dim);
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}
.pdf-badge-gold {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(201,168,76,0.06);
}

.pdf-body { flex: 1; }

.pdf-meta {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.pdf-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.pdf-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-body);
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
  transition: gap 0.2s ease;
}
.pdf-link:hover { gap: 0.75rem; }

/* ── 15. Careers ───────────────────────────────────────────── */
.careers-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.careers-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin: 1.25rem 0 2rem;
  max-width: 520px;
}

.careers-aside { padding-top: 1rem; }

.careers-card {
  background: var(--navy-light);
  border: 1px solid var(--border-dim);
  border-top: 2px solid var(--gold);
  padding: 2rem;
}

.careers-card-title {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.careers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.careers-list li {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-body);
  padding-left: 1.25rem;
  position: relative;
}
.careers-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 300;
}

/* Mobile menu divider */
.mob-divider {
  width: 100%;
  height: 1px;
  background: var(--border-gold);
  opacity: 0.3;
  margin: 0.5rem 0;
}

/* Mobile consultation link in menu */
.mob-link-cta {
  color: var(--gold) !important;
  border: 1px solid var(--border-gold);
  padding: 0.6rem 1.25rem;
  border-radius: 2px;
  margin-top: 0.5rem;
  display: inline-block;
  width: fit-content;
  transition: background 0.2s ease !important;
}
.mob-link-cta:hover {
  background: rgba(201,168,76,0.1);
}

/* ── 14. Testimonials ─────────────────────────────────────── */
.tst-wrap {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 3rem;
}

.tst-deco {
  position: absolute;
  top: -1rem; left: -1rem;
  font-family: var(--font-serif);
  font-size: clamp(100px,14vw,180px);
  color: var(--gold);
  opacity: 0.04;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

.tst-slide {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tst-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: #fff;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.tst-author {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.tst-role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.tst-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.tst-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tst-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.tst-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tst-dot {
  height: 6px;
  border-radius: 999px;
  background: var(--border-gold);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
  border: none;
}
.tst-dot.active {
  width: 24px !important;
  background: var(--gold);
}

/* ── 15. Contact ──────────────────────────────────────────── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 400px;
  margin: 1rem 0 2.5rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-info-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-gold);
  padding: 2.5rem;
}

.info-item { padding: 0.5rem 0; }

.info-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.info-val {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #fff;
  line-height: 1.55;
}
a.info-val:hover { color: var(--gold); }

.info-divider {
  height: 1px;
  background: var(--border-dim);
  margin: 1.25rem 0;
}

.info-social {
  display: flex;
  gap: 1.5rem;
}
.info-soc {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  letter-spacing: 0.1em;
}
.info-soc:hover { color: var(--gold); }

/* ── 16. Footer ───────────────────────────────────────────── */
#footer {
  background: #050810;
  border-top: 1px solid var(--border-gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  padding: 5rem 5rem 4rem;
  border-bottom: 1px solid var(--border-dim);
}

.footer-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-address {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: normal;
  margin-bottom: 1rem;
}

.footer-phone {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--gold);
  display: block;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-links a:hover { color: #fff; transform: translateX(4px); }

.footer-cta-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.footer-cta-note {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}
.footer-soc {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-soc:hover { border-color: var(--gold); color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: #fff; }

/* ── 17. Back to Top ──────────────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 2rem; right: 1.5rem;
  z-index: 50;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: var(--navy-mid);
  color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.3s ease, transform 0.3s ease;
}
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--gold); color: var(--navy); }

/* ── 18. Responsive ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .container { padding: 0 3rem; }
  #navbar { padding: 0 3rem; }
  .hero-left { padding: 7rem 3rem 5rem 3rem; }
  .footer-top { padding: 4rem 3rem 3rem; gap: 2rem; }
  .footer-bottom { padding: 1.5rem 3rem; }
  .pdf-grid { grid-template-columns: 1fr 1fr; }
  .careers-wrap { gap: 3rem; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  #navbar { padding: 0 1.5rem; height: 80px; }
  .nav-logo img { height: 80px; }

  #hero { flex-direction: column; }
  .hero-mobile-img { display: block; }
  .hero-left {
    width: 100%;
    padding: 2rem 1.5rem 3.5rem;
    text-align: center;
    align-items: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-right { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .pdf-grid { grid-template-columns: 1fr 1fr; }

  .founder-new-wrap { flex-direction: column-reverse; gap: 2.5rem; }
  .founder-float-wrap { align-self: flex-start; }

  .careers-wrap { grid-template-columns: 1fr; gap: 2.5rem; }

  .contact-container { grid-template-columns: 1fr; gap: 3rem; }

  .footer-top { grid-template-columns: 1fr 1fr; padding: 3rem 1.5rem 2rem; }
  .footer-bottom { padding: 1.25rem 1.5rem; flex-direction: column; align-items: center; text-align: center; }

  .container { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
  .tst-wrap { padding: 1rem 1rem; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .pdf-grid { grid-template-columns: 1fr; }
  .founder-creds { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-logo { height: 80px; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; justify-content: center; }
  .hl-inner { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .tst-arrow { display: none; }
  .section { padding: 4rem 0; }
  .section-founder-new { padding: 5rem 0; }
  .founder-new-wrap { gap: 2rem; }
  .founder-float-wrap { width: 220px; align-self: center; }
  .founder-float-img { width: 220px; height: 290px; }
  .careers-wrap { gap: 2rem; }
  .nav-logo img { height: 60px; }
  #navbar { height: 70px; }
}
