/* =====================================================
   STONEWELL CAPITAL PARTNERS — Navy brand palette
   ===================================================== */

:root {
  /* Brand palette (from official brand book) */
  --deep-navy: #1E2E4A;   /* PMS 289 C — primary base */
  --navy:      #25375a;   /* mid navy */
  --navy-900:  #131e33;   /* deepest navy (headers / hero) */
  --navy-950:  #0e1626;   /* near-black navy */
  --gold:      #B0823E;   /* deep bronze-gold — sampled from logo */
  --pale-gold: #C99A55;   /* bronze highlight */
  --gold-soft: #A8783A;   /* bronze core */
  --ivory:     #F8F6F0;   /* light sections */
  --pearl:     #EEEAE0;
  --stone:     #B8B0A1;   /* labels */
  --slate:     #7C7268;   /* body copy on light */
  --rule:      #D9D5CC;   /* dividers */

  --text-on-dark:      #f2efe9;
  --text-on-dark-soft: #d6dae1;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-on-dark);
  background: var(--navy-900);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Brand lockup ---------- */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { flex-shrink: 0; }
.brand-mark img, .brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .14em;
  font-size: 1.25rem;
  color: var(--ivory);
}
.brand-sub {
  font-size: .56rem;
  letter-spacing: .42em;
  color: var(--gold);
  margin-top: 4px;
  font-weight: 400;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,22,38,0);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(14,22,38,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(176,130,62,.18);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.main-nav { margin-left: auto; display: flex; gap: 26px; }
.main-nav a {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-on-dark-soft);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s var(--ease);
}
.main-nav a:hover { color: var(--ivory); }
.main-nav a:hover::after { width: 100%; }

/* Client Login — distinct call-to-action in the nav */
.main-nav a.nav-login {
  color: var(--gold);
  border: 1px solid rgba(176,130,62,.5);
  border-radius: 3px;
  padding: 6px 14px;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.main-nav a.nav-login::after { display: none; }
.main-nav a.nav-login:hover {
  color: var(--navy-950);
  background: var(--gold);
  border-color: var(--gold);
}

.lang-toggle {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
  border: 1px solid rgba(176,130,62,.38); border-radius: 30px;
  padding: 3px; background: rgba(14,22,38,.4);
}
.lang-toggle button {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer; border-radius: 24px;
  font-family: var(--font-sans); font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  color: var(--text-on-dark-soft); padding: 6px 11px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle button:hover { color: var(--ivory); }
.lang-toggle button.active { color: var(--navy-950); background: var(--gold); }
.lang-flag {
  width: 20px; height: 14px; border-radius: 2px; object-fit: cover; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.lang-code { line-height: 1; }
.lang-sep { display: none; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px; position: relative; }
.menu-btn span { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ivory); transition: .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 0; }
.menu-btn.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* ---------- Referral tag ---------- */
.referral {
  display: inline-block; margin-top: 44px;
  font-size: .64rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold);
}
.referral::before { content: "— "; opacity: .7; }

/* ---------- Section title ---------- */
.section { padding: 110px 0; position: relative; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: .02em;
  margin: 0;
  color: var(--ivory);
}
.title-rule { display: block; width: 54px; height: 2px; background: var(--gold); margin: 22px 0 46px; }

/* =====================================================
   HERO
   ===================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(100deg, rgba(9,16,30,.98) 0%, rgba(10,18,34,.93) 40%, rgba(11,20,37,.62) 72%, rgba(11,20,37,.42) 100%),
    url("assets/bg/exec-office.jpg");
  background-size: cover;
  background-position: center right;
}
.hero-bg::after {
  /* warm depth at the window/skyline side */
  content: ""; position: absolute; right: 0; bottom: 0; width: 55%; height: 70%;
  background: radial-gradient(80% 90% at 75% 100%, rgba(200,152,80,.10), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 80px; }
.hero-copy { max-width: 640px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0 0 28px;
  color: var(--ivory);
}
.lede { font-size: 1.2rem; line-height: 1.7; color: var(--text-on-dark-soft); max-width: 560px; margin: 0 0 36px; }
.hero-list-label {
  display: block; font-size: .64rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px; font-weight: 600;
}
.hero-list { border-left: 1px solid rgba(176,130,62,.4); padding-left: 22px; }
.hero-list li {
  font-size: 1.02rem; letter-spacing: .04em; color: var(--text-on-dark);
  padding: 8px 0;
}
.hero-list li::before { content: ""; }

/* =====================================================
   THE FIRM
   ===================================================== */
.firm {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16,25,42,.98) 0%, rgba(16,25,42,.93) 40%, rgba(16,25,42,.62) 72%, rgba(16,25,42,.40) 100%),
    url("assets/bg/lounge-full.jpg");
  background-size: cover;
  background-position: center right;
}
.firm .container { position: relative; z-index: 1; }
.firm-copy { max-width: 720px; columns: 1; }
.firm-copy p { font-size: 1.14rem; line-height: 1.75; color: var(--text-on-dark-soft); margin: 0 0 22px; }

/* =====================================================
   ADVISORY SERVICES
   ===================================================== */
.services {
  background:
    linear-gradient(180deg, rgba(15,23,40,.94) 0%, rgba(15,23,40,.96) 100%),
    url("assets/bg/conference.jpg");
  background-size: cover;
  background-position: center;
}
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(176,130,62,.20);
  border-left: 1px solid rgba(176,130,62,.20);
}
.card {
  background: var(--navy-900);
  border-right: 1px solid rgba(176,130,62,.20);
  border-bottom: 1px solid rgba(176,130,62,.20);
  padding: 42px 34px;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.card:hover { background: var(--deep-navy); }
.card-icon { color: var(--gold); display: inline-flex; margin-bottom: 18px; }
.card h3, .approach-item h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: .01em;
  color: var(--ivory);
  margin: 0 0 12px;
}
.card p { font-size: 1.0rem; line-height: 1.65; color: var(--text-on-dark-soft); margin: 0; }

/* =====================================================
   INDUSTRY EXPERTISE
   ===================================================== */
.industries { background: var(--navy-950); position: relative; overflow: hidden; }
.industries-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,16,30,.93) 0%, rgba(9,16,30,.95) 100%),
    url("assets/bg/partner-offices.jpg");
  background-size: cover;
  background-position: center;
}
.industries .container { position: relative; z-index: 1; }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 46px; }
.ind-col h3 {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(176,130,62,.25); font-weight: 500;
}
.ind-col li {
  font-size: 1.04rem; color: var(--text-on-dark-soft); padding: 7px 0 7px 18px;
  position: relative;
}
.ind-col li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg);
}

/* =====================================================
   APPROACH
   ===================================================== */
.approach {
  background:
    linear-gradient(90deg, rgba(16,25,42,.95) 0%, rgba(16,25,42,.90) 50%, rgba(16,25,42,.84) 100%),
    url("assets/bg/approach.jpg");
  background-size: cover;
  background-position: center;
}
.approach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 54px 60px; }
.approach-item { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; }
.approach-item .card-icon { margin: 0; grid-row: 1 / span 2; }
.approach-item p { font-size: 1.06rem; line-height: 1.65; color: var(--text-on-dark-soft); margin: 0; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact {
  background:
    linear-gradient(90deg, rgba(11,18,33,.80) 0%, rgba(11,18,33,.88) 45%, rgba(11,18,33,.92) 100%),
    linear-gradient(180deg, rgba(11,18,33,.62) 0%, rgba(11,18,33,.80) 100%),
    url("assets/bg/skyline.jpg");
  background-size: cover;
  background-position: center;
}
.contact-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.contact-brand { display: flex; flex-direction: column; align-items: flex-start; }
.contact-brand .brand-name { font-size: 1.8rem; margin-top: 18px; }
.contact-brand .brand-sub { font-size: .62rem; margin-top: 8px; }
.contact-note { font-size: 1.12rem; line-height: 1.7; color: var(--text-on-dark-soft); max-width: 470px; margin: 0 0 34px; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; font-size: .98rem; }
.contact-row .ci { color: var(--gold); margin-top: 2px; }
.contact-emails { display: flex; flex-direction: column; gap: 6px; }
.contact-row a { color: var(--text-on-dark); border-bottom: 1px solid transparent; transition: border-color .25s; }
.contact-row a:hover { border-color: var(--gold); color: var(--ivory); }
.contact-region { font-size: .9rem; line-height: 1.6; color: var(--text-on-dark-soft); opacity: .82; max-width: 470px; margin: 26px 0 0; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--navy-950); border-top: 1px solid rgba(176,130,62,.16); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding: 64px 28px 48px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-name { font-size: 1.15rem; }
.footer-col h4 {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px; font-weight: 500;
}
.footer-col p { font-size: .86rem; color: var(--text-on-dark-soft); margin: 0 0 12px; line-height: 1.6; }
.footer-col a { color: var(--text-on-dark-soft); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: .86rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 22px 28px;
  border-top: 1px solid rgba(176,130,62,.12);
}
.footer-legal { font-size: .72rem; color: var(--text-on-dark-soft); opacity: .75; }
.footer-referral { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 48px 28px 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   Scroll reveal
   ===================================================== */
.section .section-title, .section .title-rule, .card, .approach-item,
.ind-col, .firm-copy p, .hero-copy > * , .referral, .contact-brand, .contact-body {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.is-visible { opacity: 1 !important; transform: none !important; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .approach-grid { grid-template-columns: 1fr; gap: 38px; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .header-inner { gap: 14px; }
  /* Only the nav links collapse into the off-canvas menu */
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    flex-direction: column; background: var(--navy-950);
    padding: 110px 36px 40px; gap: 26px; transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 90; align-items: flex-start;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: .9rem; }
  /* Language switcher stays in the header — flags only, instant, no menu needed */
  .lang-toggle { margin-left: auto; gap: 2px; padding: 2px; }
  .lang-toggle button { padding: 6px 8px; gap: 0; }
  .lang-code { display: none; }
  .menu-btn { display: block; z-index: 95; }
  .section { padding: 80px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .section .section-title, .card, .approach-item, .ind-col, .firm-copy p,
  .hero-copy > *, .referral, .title-rule, .contact-brand, .contact-body { opacity: 1; transform: none; }
}

/* =====================================================
   Readability over photographic backgrounds
   ===================================================== */
.hero h1, .hero .lede, .hero-list li, .hero .referral,
.firm .section-title, .firm-copy p, .firm .referral,
.industries .section-title, .ind-col h3, .ind-col li, .industries .referral,
.approach .section-title, .approach-item h3, .approach-item p, .approach .referral,
.contact .section-title, .contact-note, .contact-row, .contact-row a {
  text-shadow: 0 1px 3px rgba(6,12,22,.55), 0 2px 16px rgba(6,12,22,.45);
}
/* Cards sit on their own solid panel — no shadow needed there */
.card h3, .card p { text-shadow: none; }
