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

:root {
  /* Green rebrand — "navy"/"gold" names retained as aliases to avoid churn.
     --navy = deep forest green (dark backgrounds + headings)
     --gold = deep brand green (accents on light backgrounds, buttons)
     --gold-light = bright green (accents on dark backgrounds, hovers) */
  --navy:       #1a2e22;
  --navy-light: #21392b;
  --charcoal:   #1c1c1c;
  --white:      #FFFFFF;
  --gold:       #2d6a4f;
  --gold-light: #52b788;
  --mint:       #d8f3dc;
  --light-grey: #F4F4F4;
  --mid-grey:   #6B7280;
  --border:     #E2E2E2;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1200px;
  --section-pad: 96px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; }

p { font-size: 1.05rem; color: var(--mid-grey); }

.lead {
  font-size: 1.2rem;
  color: var(--charcoal);
  line-height: 1.7;
  max-width: 640px;
}

/* ── Scroll Reveal ────────────────────────────────────────── */
/* Hidden state only applies when JS is active (.js set on <html> in head),
   so the site degrades gracefully to fully visible without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Reduced motion: keep a gentle opacity fade but no movement. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    transform: none;
    transition: opacity 1.1s ease;
    transition-delay: var(--reveal-delay, 0s);
  }
}

/* ── Utilities ────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gold-rule { width: 48px; height: 2px; background: var(--gold); margin-bottom: 24px; }
.gold-rule--center { margin-left: auto; margin-right: auto; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
              box-shadow 0.3s ease, transform 0.18s ease-out;
}
/* Hover: gentle lift + soft gold glow */
.btn:hover { transform: translateY(-3px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #245a42;
  box-shadow: 0 10px 28px rgba(45,106,79,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  box-shadow: 0 10px 24px rgba(82,183,136,0.25);
}

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

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Animated gold underline — slides in on hover, sits under the active page */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after { transition: none; }
}

.nav-contact {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav-contact:hover { color: var(--gold); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Non-hero page nav (dark immediately) ─────────────────── */
.nav--dark { background: var(--navy); }

@media (max-width: 768px) {
  .nav-links, .nav-contact { display: none; }
  .nav-toggle { display: flex; }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav.open .nav-contact {
    display: block;
    position: absolute;
    top: calc(100% + 180px); left: 0; right: 0;
    background: var(--navy);
    padding: 0 24px 24px;
    text-align: center;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(12,18,14,0.82) 0%, rgba(12,18,14,0.55) 35%, rgba(12,18,14,0.12) 64%, rgba(12,18,14,0.28) 100%),
    url('../public/images/hero.jpg') center/cover no-repeat;
}

/* Neutral grounding fade at the foot of the hero (keeps the photo's
   true colours — no brand tint over the photograph) */
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(12,18,14,0.85) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-eyebrow span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero h1 { color: var(--white); max-width: 780px; margin-bottom: 24px; }

.hero .lead { color: rgba(255,255,255,0.8); margin-bottom: 48px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Sectors ──────────────────────────────────────────────── */
.sectors {
  padding: var(--section-pad);
  background: var(--white);
}

.sectors-header { margin-bottom: 64px; }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

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

.sector-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--gold);
  transition: width 0.35s ease;
  z-index: 2;
}
.sector-card:hover::before { width: 100%; }
.sector-card:hover { background: var(--light-grey); }

.sector-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.sector-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sector-card:hover .sector-card-media img { transform: scale(1.06); }

.sector-card-body { padding: 36px 40px 48px; }

.sector-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  color: var(--gold);
}

.sector-card h3 { margin-bottom: 16px; }
.sector-card p { font-size: 0.97rem; }

@media (max-width: 768px) {
  .sectors-grid { grid-template-columns: 1fr; }
}

/* ── About Teaser ─────────────────────────────────────────── */
.about-teaser {
  background: var(--navy);
  padding: var(--section-pad);
}

.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-teaser h2 { color: var(--white); }
.about-teaser p { color: rgba(255,255,255,0.65); }
.about-teaser .gold-rule { margin-bottom: 20px; }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.about-pillar {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}
.about-pillar-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.about-pillar-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 768px) {
  .about-teaser-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Contact CTA ──────────────────────────────────────────── */
.contact-cta {
  padding: 96px 24px;
  background: var(--navy);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-cta h2 { margin-bottom: 16px; color: var(--white); }
.contact-cta p { margin: 0 auto 40px; max-width: 520px; color: rgba(255,255,255,0.65); }

.contact-cta-email {
  display: block;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.contact-cta-email:hover { color: var(--gold-light); }

/* ── About Page ───────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 160px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 540px; margin: 0 auto; text-shadow: 0 1px 10px rgba(0,0,0,0.35); }

/* Photographic page-hero backgrounds */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,18,14,0.62) 0%, rgba(12,18,14,0.48) 45%, rgba(12,18,14,0.82) 100%);
}
.page-hero-bg--about   { background-image: url('../public/images/about-hero.jpg'); }
.page-hero-bg--contact { background-image: url('../public/images/contact-hero.jpg'); background-position: center 22%; }

.about-body {
  padding: var(--section-pad);
  background: var(--white);
}

.about-body-inner {
  display: grid;
  grid-template-columns: 5fr 3fr;
  gap: 80px;
  align-items: start;
}

.about-body h2 { margin-bottom: 24px; }
.about-body p { margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }

.about-sidebar {
  background: var(--light-grey);
  padding: 40px;
  border-top: 3px solid var(--gold);
}
.about-sidebar h4 { color: var(--navy); margin-bottom: 24px; }

.value-list { list-style: none; }
.value-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
}
.value-list li:last-child { border-bottom: none; }
.value-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* In-depth sector breakdown — navy cards */
.sector-detail { padding: var(--section-pad); background: var(--navy); }
.sector-detail-header { text-align: center; margin-bottom: 56px; }
.sector-detail-header h2 { color: var(--white); }
.sector-detail-header p { color: rgba(255,255,255,0.6); max-width: 560px; margin: 16px auto 0; }

.sector-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sector-detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 3px solid var(--gold);
  padding: 40px 32px;
}
.sector-detail-icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 24px; }
.sector-detail-card h3 { color: var(--white); margin-bottom: 12px; }
.sector-detail-tagline { color: rgba(255,255,255,0.7); font-size: 0.97rem; margin-bottom: 28px; }

.sector-facts { display: grid; gap: 0; }
.sector-facts > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sector-facts dt {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.sector-facts dd { font-size: 0.9rem; color: rgba(255,255,255,0.78); line-height: 1.5; }

/* How we work / process */
.process { padding: var(--section-pad); background: var(--light-grey); }
.process-header { margin-bottom: 48px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { border-top: 2px solid var(--gold); padding-top: 24px; }
.process-step-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { font-size: 0.92rem; }

@media (max-width: 768px) {
  .about-body-inner { grid-template-columns: 1fr; }
  .sector-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-page {
  padding: var(--section-pad);
  background: var(--white);
}

.contact-page-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}

.contact-form h2 { margin-bottom: 8px; }
.contact-form > p { margin-bottom: 40px; }

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 160px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; text-align: center; }

.form-note {
  font-size: 0.8rem;
  color: var(--mid-grey);
  margin-top: 12px;
}

/* Contact details panel */
.contact-details {
  background: var(--navy);
  padding: 48px 40px;
  color: var(--white);
}
.contact-details h3 { color: var(--white); margin-bottom: 32px; }

.contact-detail-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-detail-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.contact-detail-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.contact-detail-value {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.contact-detail-value a { color: var(--gold); transition: color 0.2s; }
.contact-detail-value a:hover { color: var(--gold-light); }

@media (max-width: 768px) {
  .contact-page-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Location Map ─────────────────────────────────────────── */
.map-section {
  background: var(--white);
  padding: 0 0 96px;
}
.map-section-header {
  margin-bottom: 32px;
}
.map-section-header h2 { margin-bottom: 12px; }
.map-section-header p { max-width: 600px; }

.map-embed-wrap {
  line-height: 0;
  max-width: 860px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
}
.map-embed {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.map-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.2s;
}
.map-link:hover { color: var(--navy); }

@media (max-width: 768px) {
  .map-embed { height: 240px; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #0f1b14;
  padding: 64px 24px 32px;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand img { height: 32px; margin-bottom: 20px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Success message ──────────────────────────────────────── */
.form-success {
  display: none;
  background: #EBF7EE;
  border: 1px solid #A7D7B0;
  color: #1D5C2A;
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-top: 16px;
}

/* ── Green rebrand: bright accents on dark backgrounds ─────────
   --gold (deep green) is tuned for light backgrounds. On dark
   sections the deep green has too little contrast, so these
   elements use --gold-light (bright green) instead. */
.hero-eyebrow span,
.nav-links a:hover,
.nav-links a.active,
.nav-contact:hover,
.about-pillar-label,
.contact-cta-email,
.sector-detail-icon,
.sector-facts dt,
.contact-detail-icon,
.contact-detail-value a,
.footer-col ul li a:hover,
.footer-bottom a:hover { color: var(--gold-light); }

.hero-eyebrow::before,
.nav-links a::after,
.about-teaser .gold-rule,
.contact-cta .gold-rule,
.sector-detail-header .gold-rule,
.page-hero .gold-rule { background: var(--gold-light); }

.about-pillar { border-left-color: var(--gold-light); }
.sector-detail-card { border-top-color: var(--gold-light); }
