/*
Theme Name:  Sterling Vantage
Theme URI:   https://sterlingvantage.com
Author:      Sterling Vantage
Author URI:  https://sterlingvantage.com
Description: A luxury private investment & advisory WordPress theme for Sterling Vantage. Built with Cormorant Garamond + Montserrat typography, navy/gold/green colour palette, and scroll-reveal animations.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sterling-vantage
Tags:        custom-background, custom-logo, custom-menu, featured-images, full-width-template, one-page
*/

/* ================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================================

   NEW PALETTE — Blackstone authority × Foxmont innovation
   ─────────────────────────────────────────────────────────
   Primary Brand  : #1F4E97  (Foxmont Blue)
   Brand Hover    : #2E64C5  (lighter blue)
   Accent         : #F39A32  (Foxmont Orange — strategic CTAs only)
   Dark Surface   : #070B14  (near-black authority)
   Background     : #F7F7F5  (Blackstone soft white)

   WCAG Notes
   ──────────
   White on #1F4E97  → 7.0:1  ✓ AAA
   White on #070B14  → 20:1   ✓ AAA
   #0A0C12 on #F7F7F5 → 17:1  ✓ AAA
   White on #F39A32  → 2.9:1  — use only for large bold UI text / icons
   ================================================================ */
:root {
  /* Dark Surfaces */
  --navy:         #070B14;
  --navy-light:   #0F1624;

  /* Primary Brand (Blue) — replaces green */
  --green:        #1F4E97;
  --green-light:  #2E64C5;
  --green-pale:   #dbeafe;

  /* Accent (Orange) — strategic use only */
  --gold:         #F39A32;
  --gold-rich:    #F5A93E;
  --gold-deep:    #C97A1A;

  /* Background & Neutrals */
  --cream:        #F7F7F5;
  --white:        #ffffff;

  /* Text */
  --ink:          #0A0C12;
  --ink-mid:      #374151;
  --ink-light:    #6B7280;

  /* Borders — blue-tinted, never gold */
  --border:       rgba(31,78,151,0.15);

  /* Layout */
  --max:          1200px;
  --nav-h:        72px;
  --radius:       0px;
  --transition:   0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.section-pad {
  padding: 110px 0;
}

/* ================================================================
   TYPOGRAPHY — SHARED SECTION HEADERS
   ================================================================ */
.section-header {
  margin-bottom: 60px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* Accent orange for eyebrow lines — strategic, deliberate */
.section-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-eyebrow-text {
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}

/* Italic em uses orange accent for emphasis */
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* Dark variant */
.dark-header .section-eyebrow-line { background: var(--gold-rich); }
.dark-header .section-eyebrow-text { color: var(--gold-rich); }
.dark-header .section-title        { color: var(--white); }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   BUTTONS
   ================================================================ */

/* Primary CTA — orange accent, high-intent actions */
.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 15px 34px;
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition), transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  color: var(--white);
}

/* Secondary outline — blue brand tint */
.btn-outline {
  border: 1px solid rgba(31,78,151,0.45);
  color: var(--green-light);
  padding: 15px 34px;
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: border-color var(--transition), background var(--transition);
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--green-light);
  background: rgba(31,78,151,0.08);
  color: var(--green-light);
}

/* ================================================================
   NAVIGATION
   ================================================================ */
#site-navigation {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.4s, box-shadow 0.3s, border-color 0.4s;
}

#site-navigation.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(31,78,151,0.15);
  box-shadow: 0 2px 28px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  transition: height 0.3s;
}

#site-navigation.scrolled .nav-inner {
  height: 62px;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

/* Diamond mark uses orange accent — brand identity mark */
.nav-logo-mark {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.nav-logo-mark span {
  transform: rotate(-45deg);
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--gold);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-text strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--white);
  transition: color var(--transition);
}

.nav-logo-text small {
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--gold-rich);
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 4px;
}

#site-navigation.scrolled .nav-logo-text strong { color: var(--ink); }

/* Primary Menu */
.primary-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.primary-menu a {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 10.5px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

/* Underline uses brand blue */
.primary-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-light);
  transition: width var(--transition);
}

.primary-menu a:hover {
  color: var(--green-light);
}

.primary-menu a:hover::after {
  width: 100%;
}

#site-navigation.scrolled .primary-menu a {
  color: var(--ink-light);
}

#site-navigation.scrolled .primary-menu a:hover {
  color: var(--green);
}

#site-navigation.scrolled .primary-menu a::after {
  background: var(--green);
}

/* Nav CTA — orange for highest-intent nav action */
.nav-cta {
  border: 1px solid rgba(31,78,151,0.6);
  color: #fff;
  background: var(--navy);
  padding: 9px 22px;
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

#site-navigation.scrolled .nav-cta {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

#site-navigation.scrolled .nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  display: block;
}

#site-navigation.scrolled .nav-hamburger span { background: var(--ink); }

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

/* Mobile Menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: rgba(247,247,245,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

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

#mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  width: 240px;
  text-align: center;
  transition: color 0.2s;
}

#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover { color: var(--green); }

/* Mobile CTA — orange, primary action */
#mobile-menu .mobile-cta {
  margin-top: 28px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 600;
  padding: 14px 40px;
  text-transform: uppercase;
  border-bottom: none;
  width: auto;
  display: inline-block;
}

#mobile-menu .mobile-cta:hover {
  background: var(--gold-deep);
  color: var(--white);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(7,11,20,0.96) 34%,
    rgba(7,11,20,0.85) 44%,
    rgba(7,11,20,0.0) 60%
  );
}

.hero-grid-overlay {
/*   position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31,78,151,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,78,151,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 70%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 70%); */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 40px 80px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

/* Orange eyebrow — premium brand marker */
.hero-eyebrow-line {
  width: 50px;
  height: 1px;
  background: var(--gold-rich);
}

.hero-eyebrow-text {
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 600;
  color: var(--gold-rich);
  text-transform: uppercase;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 300;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 680px;
}

/* Orange italic — key brand phrase */
.hero-headline em {
  font-style: italic;
  color: var(--gold-rich);
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  line-height: 1.5;
  max-width: 500px;
}

.hero-desc {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ================================================================
   SERVICES SECTION
   ================================================================ */
#services {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  overflow: hidden;
  position: relative;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
}

/* Top accent bar on hover — orange for energy */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
  z-index: 2;
}

.service-card:hover::after { transform: scaleX(1); }
.service-card:hover .service-photo { transform: scale(1.05); filter: grayscale(0%); }

.service-photo-wrap {
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

.service-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s, filter 0.4s;
  filter: grayscale(10%);
}

/* Dark card body — navy authority */
.service-body {
  padding: 30px 34px 36px;
  flex: 1;
  position: relative;
  background: var(--navy);
}

.service-num-bg {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 300;
  color: rgba(243,154,50,0.05);
  line-height: 1;
  position: absolute;
  bottom: 10px; right: 20px;
  user-select: none;
  pointer-events: none;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-bottom: 22px;
}

.service-list {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

/* Blue dash bullet */
.service-list-item::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--green-light);
  flex-shrink: 0;
  margin-top: 8px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-light);
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition);
}

.service-link:hover { gap: 16px; }
.service-link:hover { color: var(--green-light); }

/* ================================================================
   PHILOSOPHY SECTION
   ================================================================ */
#philosophy {
  background: var(--navy);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(243,154,50,0.15);
}

.phil-photo-strip {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36%;
  min-width: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.phil-photo-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, rgba(7,11,20,0.85) 40%, rgba(7,11,20,0.2) 100%);
}

.phil-container {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

.phil-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.tenets {
  display: flex;
  flex-direction: column;
}

.tenet {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(31,78,151,0.2);
}

.tenet:last-child { border-bottom: none; }

/* Blue tenet numbers — brand identity */
.tenet-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--green-light);
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: right;
  margin-top: 2px;
}

.tenet-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
}

.tenet-desc {
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
}

/* Quote uses blue left border */
.phil-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
  border-left: 2px solid var(--green-light);
  padding: 20px 20px 20px 26px;
  background: rgba(31,78,151,0.08);
  margin-bottom: 36px;
}

.phil-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.phil-eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--green-light);
  flex-shrink: 0;
}

.phil-eyebrow-text {
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 600;
  color: var(--green-light);
  text-transform: uppercase;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar {
  background: rgba(31,78,151,0.06);
  border: 1px solid rgba(31,78,151,0.2);
  padding: 16px 20px;
  transition: border-color var(--transition), background var(--transition);
}

.pillar:hover {
  border-color: var(--green-light);
  background: rgba(31,78,151,0.12);
}

.pillar-title {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--green-light);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.pillar-text {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
#about {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  font-size: 13px;
  line-height: 2;
  color: var(--ink-light);
  font-weight: 300;
  margin-bottom: 16px;
}

.about-text p:first-of-type {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* Metric grid — blue border grid */
.about-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 40px;
  background: rgba(31,78,151,0.15);
  border: 1px solid rgba(31,78,151,0.15);
}

.metric-box {
  background: var(--navy);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Orange bottom accent on metric boxes — key statistics */
.metric-box:nth-child(odd)  { border-bottom: 2px solid var(--gold); }
.metric-box:nth-child(even) { border-bottom: 2px solid var(--gold-rich); }

/* Orange metric values — key stats get accent treatment */
.metric-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--gold-rich);
  line-height: 1;
}

.metric-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

.about-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Orange badge number — highlighted stat */
.about-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.about-badge-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ink-light);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
}

/* Markets panel — blue left border */
.about-markets {
  padding: 24px;
  background: var(--navy);
  border-left: 2px solid var(--green);
}

.about-markets-title {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold-rich);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(243,154,50,0.1);
}

.market-row:last-child { border-bottom: none; }

.market-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--white);
}

/* Blue tag — sector identifier */
.market-tag {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--green-light);
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(31,78,151,0.1);
  padding: 3px 10px;
  border: 1px solid rgba(31,78,151,0.25);
}

/* ================================================================
   PORTFOLIO SECTION
   ================================================================ */
#portfolio {
  background: var(--navy);
  border-top: 1px solid rgba(243,154,50,0.15);
}

/* Orange eyebrow on dark bg — premium brand signal */
#portfolio .section-title          { color: var(--white); }
#portfolio .section-eyebrow-line   { background: var(--gold-rich); }
#portfolio .section-eyebrow-text   { color: var(--gold-rich); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.portfolio-card {
  background: var(--navy-light);
  border: 1px solid rgba(31,78,151,0.2);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.portfolio-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(31,78,151,0.35);
  transform: translateY(-4px);
  border-color: rgba(31,78,151,0.5);
}

.portfolio-card:hover .portfolio-photo { transform: scale(1.05); }

.portfolio-photo-wrap {
  overflow: hidden;
  height: 155px;
}

.portfolio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.portfolio-body {
  padding: 20px 18px 24px;
}

/* Blue sector label */
.portfolio-sector {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--green-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.portfolio-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  font-weight: 300;
}

/* ================================================================
   HEADQUARTERS SECTION
   ================================================================ */
#headquarters {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.hq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.hq-text p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-light);
  font-weight: 300;
  margin-bottom: 28px;
}

/* Blue left border address block */
.hq-address {
  padding: 22px 24px;
  margin-bottom: 26px;
  background: var(--navy);
  border-left: 2px solid var(--green);
}

.hq-address-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--green-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.hq-address-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--white);
  line-height: 1.7;
}

.hq-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hq-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hq-photo-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hq-photo-item:first-child { grid-column: span 2; }
.hq-photo-item img { width: 100%; display: block; object-fit: cover; transition: transform 0.5s; }
.hq-photo-item:first-child img { height: 250px; }
.hq-photo-item:not(:first-child) img { height: 160px; }
.hq-photo-item:hover img { transform: scale(1.04); }

.hq-photo-label {
  position: absolute;
  bottom: 10px; left: 12px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hq-buttons .btn-outline { border-color: rgba(31,78,151,0.35); color: var(--green); }
.hq-buttons .btn-outline:hover { border-color: var(--green); background: rgba(31,78,151,0.06); color: var(--green); }

/* ================================================================
   FOOTER
   ================================================================ */
#colophon {
  background: var(--navy);
  border-top: 1px solid rgba(243,154,50,0.15);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 50px;
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(31,78,151,0.15);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo-text strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--white);
  font-weight: 600;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  font-weight: 300;
  max-width: 300px;
}

/* Orange footer column titles — brand hierarchy signal */
.footer-col-title {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold-rich);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 300;
}

/* Blue hover on footer links */
.footer-links a:hover { color: var(--green-light); }

.footer-contact-item {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.footer-contact-item strong {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Blue contact links */
.footer-contact-item a {
  color: var(--green-light);
  text-decoration: none;
  transition: color var(--transition);
}

/* Orange hover on contact links — warmth, approachability */
.footer-contact-item a:hover { color: var(--gold-rich); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

/* Social buttons — blue border, blue hover */
.social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(31,78,151,0.25);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.social-btn:hover {
  border-color: var(--green-light);
  color: var(--green-light);
}

/* ================================================================
   STANDARD WORDPRESS PAGE / POST CONTENT
   ================================================================ */
.site-main {
  padding-top: var(--nav-h);
}

.entry-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 40px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-mid);
  font-weight: 300;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 16px;
  margin-top: 40px;
  line-height: 1.2;
}

.entry-content h1 { font-size: 48px; }
.entry-content h2 { font-size: 36px; }
.entry-content h3 { font-size: 26px; }
.entry-content h4 { font-size: 20px; }

.entry-content p { margin-bottom: 20px; }

/* Blue inline links */
.entry-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover { color: var(--green-light); }

.entry-content ul,
.entry-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }

/* Blue blockquote border */
.entry-content blockquote {
  border-left: 2px solid var(--green-light);
  padding: 20px 26px;
  background: rgba(31,78,151,0.04);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--ink-mid);
  margin: 32px 0;
  line-height: 1.6;
}

.entry-header {
  background: var(--navy);
  padding: 80px 40px;
  text-align: center;
}

.entry-header .entry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}

.wp-block-image img { border: 1px solid var(--border); }

/* ================================================================
   WORDPRESS WIDGETS & COMMENTS
   ================================================================ */
.widget-title {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Blue focus ring — brand-consistent, WCAG 2.1 compliant */
:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid    { grid-template-columns: repeat(2, 1fr); }
  .phil-layout       { grid-template-columns: 1fr; gap: 50px; }
  .phil-photo-strip  { display: none; }
  .about-layout      { grid-template-columns: 1fr; gap: 50px; }
  .hq-layout         { grid-template-columns: 1fr; gap: 50px; }
  .footer-top        { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .container         { padding: 0 24px; }
  .section-pad       { padding: 72px 0; }
  .primary-menu      { display: none; }
  .nav-cta.desktop   { display: none; }
  .nav-hamburger     { display: flex; }
  #mobile-menu       { display: flex; }
  .services-grid     { grid-template-columns: 1fr; }
  .portfolio-grid    { grid-template-columns: 1fr 1fr; }
  .hero-headline     { font-size: clamp(36px, 10vw, 52px); }
  .footer-top        { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .portfolio-grid    { grid-template-columns: 1fr; }
  .about-metrics     { grid-template-columns: 1fr 1fr; }
  .hero-buttons      { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   PRIORITY OVERRIDES — loaded last, highest specificity wins
   ============================================================= */
.hero-overlay { height: 100%; width: 100%; position: absolute; background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 120%); }
.hero-eyebrow-line { display: none; }
.hero-eyebrow-text { text-align: center; display: block; margin: 0 auto; }
.custom-logo { width: 110px; }
.site-main { padding-top: 0; }
.site-branding { display: none; }
.section-header { margin-bottom: 20px; }
.nav-cta { background: var(--navy); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-outline { background: rgba(10,14,23,0.85); color: #fff !important; }
.hero-content { background: transparent; max-width: 555px; padding: calc(var(--nav-h) + 0px) 40px 80px; text-align: center; }
.hero-bg::after { display: none; }
.hero-desc { color: #fff; }
.hero-bg { background-position: center left; }
#site-navigation { border-bottom: 0; }
.hero-headline { font-size: 50px; }
#site-navigation.scrolled { height: 68px; }
.hero-buttons { justify-content: center; }
#bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }

@media (max-width: 768px) {
  .hero-headline { font-size: 29px; }
  .hero-content { padding: 50px; }
  .hero-overlay { background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 120%); }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: flex-start; align-items: center; }
  #bg-video { position: absolute; }
  .hero-overlay { background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 100%); }
}
