/* ============================================
   Woodlands Energy Holding — Design System
   Forest green + gold, serif/sans pairing
   ============================================ */

:root {
  /* Brand palette */
  --green-900: #0b2418;
  --green-800: #103324;
  --green-700: #174a33;
  --green-600: #1f5d40;
  --green-500: #2a7a55;
  --green-400: #4d9b76;
  --gold-600: #a8842b;
  --gold-500: #c8a951;
  --gold-400: #d8be72;
  --gold-300: #e6d59a;
  --ivory: #f6f1e6;
  --ivory-2: #fbf7ee;
  --paper: #ffffff;
  --ink: #14241a;
  --muted: #5a6a60;
  --line: rgba(20, 36, 26, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Type — Cormorant Garamond for headlines (institutional serif), Inter for body */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --block: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-32: 8rem;

  /* Type scale (fluid) */
  --t-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --t-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --t-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --t-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --t-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --t-2xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --t-3xl: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  --t-hero: clamp(3.25rem, 2.2rem + 5vw, 6rem);

  --radius: 4px;
  --radius-lg: 10px;
  --container: 1240px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}
p { max-width: 68ch; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-transform: none;
  margin: 0;
  color: var(--green-900);
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-600);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark {
  background: var(--green-900);
  color: var(--ivory);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .eyebrow { color: var(--gold-400); }
.section-dark .eyebrow::before { background: var(--gold-400); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.45;
  color: var(--green-800);
  font-weight: 400;
  letter-spacing: 0;
  max-width: 62ch;
}
.section-dark .lede { color: var(--ivory); opacity: 0.92; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.85rem 1.6rem;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--green-900);
}
.btn-primary:hover { background: var(--gold-400); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(216, 190, 114, 0.5);
}
.btn-ghost:hover { background: rgba(216, 190, 114, 0.1); border-color: var(--gold-400); }
.btn-dark {
  background: var(--green-800);
  color: var(--ivory);
}
.btn-dark:hover { background: var(--green-700); }
.btn .arrow { transition: transform 0.25s ease; flex: 0 0 auto; }
.btn:hover .arrow { transform: translateX(3px); }
.btn { max-width: 100%; word-break: break-word; overflow-wrap: anywhere; text-align: center; line-height: 1.3; }

/* CTA button — long email addresses must not overflow on mobile */
.cta .btn {
  max-width: min(100%, 480px);
  white-space: normal;
}
@media (max-width: 560px) {
  .cta .btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    justify-content: center;
  }
}
@media (max-width: 400px) {
  .cta .btn { font-size: 0.78rem; padding: 0.85rem 0.75rem; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-6) 0;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11, 36, 24, 0.96);
  backdrop-filter: blur(12px);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ivory);
}
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-name strong { display: block; font-weight: 500; }
.brand-name span {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 4px;
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: var(--s-8); }
.nav a {
  font-size: var(--t-sm);
  color: var(--ivory);
  opacity: 0.85;
  font-weight: 500;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.nav a:hover { opacity: 1; color: var(--gold-400); }
.nav a.active { color: var(--gold-400); opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ivory);
  padding: 8px;
}

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--green-900);
    padding: var(--s-4) var(--s-6) var(--s-6);
    border-top: 1px solid var(--line-dark);
  }
  .nav.open a { padding: var(--s-3) 0; border-bottom: 1px solid var(--line-dark); width: 100%; }
}

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.2; /* "80% transparent" */
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 36, 24, 0.55) 0%, rgba(11, 36, 24, 0.85) 100%),
    radial-gradient(ellipse at 30% 30%, rgba(168, 132, 43, 0.18), transparent 60%);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-900);
  z-index: -3;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8rem var(--s-6) 5rem;
  width: 100%;
}
.hero-title {
  font-size: var(--t-hero);
  color: var(--ivory);
  max-width: 18ch;
  margin: var(--s-6) 0 var(--s-6);
  letter-spacing: -0.02em;
  font-weight: 400;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-400);
  font-weight: 500;
}
.hero-sub {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  max-width: 56ch;
  color: rgba(246, 241, 230, 0.88);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: var(--s-8);
}
.hero-cta { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero-meta {
  position: absolute;
  bottom: var(--s-8);
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
  font-size: var(--t-xs);
  color: rgba(246, 241, 230, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-meta .scroll-hint { display: flex; align-items: center; gap: var(--s-2); }
.hero-meta .scroll-hint::after {
  content: '';
  width: 1px; height: 32px;
  background: rgba(216, 190, 114, 0.5);
  margin-left: var(--s-3);
  animation: pulse-line 2.5s ease-in-out infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
  padding-bottom: var(--s-16);
  padding-top: 9rem;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-900);
  z-index: -3;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 36, 24, 0.7) 0%, rgba(11, 36, 24, 0.92) 100%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
  width: 100%;
}
.page-hero h1 {
  color: var(--ivory);
  font-size: var(--t-3xl);
  max-width: 22ch;
  margin: var(--s-4) 0 var(--s-4);
}
.page-hero h1 em { font-style: italic; color: var(--gold-400); font-weight: 500; }
.page-hero p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  max-width: 60ch;
  color: rgba(246, 241, 230, 0.88);
  line-height: 1.45;
}

/* ---------- Sections ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
  align-items: end;
}
.section-head h2 { max-width: 18ch; }
@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; gap: var(--s-6); margin-bottom: var(--s-8); }
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: var(--s-8); }
  .two-col.reverse > :first-child { order: 0; }
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -20px rgba(11, 36, 24, 0.35);
}
.image-frame.wide { aspect-ratio: 5/4; }
.image-frame.landscape { aspect-ratio: 16/10; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 36, 24, 0.2));
  pointer-events: none;
}

/* ---------- Companies cards (homepage) ---------- */
.companies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 980px) { .companies { grid-template-columns: 1fr; gap: var(--s-4); } }

.company-card {
  position: relative;
  background: var(--green-800);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid var(--line-dark);
  min-height: 480px;
}
.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(11, 36, 24, 0.5);
}
.company-card .card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.company-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.company-card:hover .card-img img { transform: scale(1.05); }
.company-card .card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 36, 24, 0.2), rgba(11, 36, 24, 0.85));
}
.company-card .card-tag {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 2;
  font-size: var(--t-xs);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(11, 36, 24, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216, 190, 114, 0.3);
}
.company-card .card-body {
  padding: var(--s-8) var(--s-6) var(--s-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.company-card h3 {
  color: var(--ivory);
  font-size: 1.75rem;
  margin-bottom: var(--s-3);
}
.company-card h3 em { color: var(--gold-400); font-style: italic; font-weight: 500; display: block; }
.company-card .card-desc {
  color: rgba(246, 241, 230, 0.78);
  font-size: var(--t-sm);
  line-height: 1.6;
  margin-bottom: var(--s-6);
  flex: 1;
}
.company-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 0.04em;
}
.company-card .card-link .arrow { transition: transform 0.25s; }
.company-card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  margin-top: var(--s-12);
}
@media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border-top: 1px solid rgba(216, 190, 114, 0.3); padding-top: var(--s-4); }
.pillar .pillar-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  display: inline;
  margin-right: var(--s-2);
}
.pillar h4 {
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
  display: inline;
}
/* Force a line break after the h4 so the paragraph drops below */
.pillar h4::after { content: ''; display: block; margin-bottom: var(--s-3); }
.pillar p {
  color: rgba(246, 241, 230, 0.75);
  font-size: var(--t-sm);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Service / capability list ---------- */
.feat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8) var(--s-12);
  margin-top: var(--s-8);
}
@media (max-width: 768px) { .feat-list { grid-template-columns: 1fr; gap: var(--s-6); } }
.feat-list-3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
@media (max-width: 980px) { .feat-list-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .feat-list-3 { grid-template-columns: 1fr; } }
.feat {
  display: flex;
  gap: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.section-dark .feat { border-top-color: rgba(216, 190, 114, 0.25); }
.feat-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-600);
  min-width: 38px;
  font-style: normal;
  font-weight: 700;
}
.section-dark .feat-num { color: var(--gold-400); }
.feat h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-2);
  color: var(--green-900);
}
.section-dark .feat h4 { color: var(--ivory); }
.feat p {
  font-size: var(--t-sm);
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.section-dark .feat p { color: rgba(246, 241, 230, 0.75); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  margin-top: var(--s-12);
  padding-top: var(--s-8);
  border-top: 1px solid rgba(216, 190, 114, 0.3);
  text-align: center;
  justify-items: center;
}
.stat { text-align: center; width: 100%; }
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); text-align: center; justify-items: center; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-5, 1.25rem) var(--s-4); }
}
.stat .stat-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.stat .stat-label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(246, 241, 230, 0.7);
  font-weight: 500;
}

/* ---------- HQ section ---------- */
.hq {
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}
.hq-container { position: relative; z-index: 1; max-width: 1100px; }

/* Panorama image — full-width banner above the content */
.hq-panorama {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(11, 36, 24, 0.35);
  margin-bottom: var(--s-12);
  position: relative;
}
.hq-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hq-panorama::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(11, 36, 24, 0.15));
  pointer-events: none;
}
@media (max-width: 720px) {
  .hq-panorama { aspect-ratio: 16/9; margin-bottom: var(--s-10, 2.5rem); border-radius: var(--radius); }
}
@media (max-width: 480px) {
  .hq-panorama { aspect-ratio: 4/3; margin-bottom: var(--s-8); }
}

/* Centered text content */
.hq-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hq-content .eyebrow { justify-content: center; }
.hq-content h2 { margin: var(--s-4) 0 var(--s-5, 1.25rem); }
.hq-content .lede { margin: 0 auto var(--s-8); max-width: 56ch; }

/* Contact blocks: 4-col on desktop, stacked & centered on mobile */
.hq-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8) var(--s-6);
  margin-top: var(--s-10, 2.5rem);
  text-align: center;
}
@media (max-width: 880px) {
  .hq-info { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
}
@media (max-width: 560px) {
  .hq-info { grid-template-columns: 1fr; gap: var(--s-5, 1.25rem); }
}
.hq-block { min-width: 0; }
.hq-block h4 {
  font-family: var(--sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.hq-block p {
  color: var(--green-800);
  font-size: var(--t-base);
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: none;
}
.hq-block p a { word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 881px) {
  .hq-block p { font-size: 0.92rem; }
}
@media (max-width: 880px) and (min-width: 561px) {
  .hq-block p { font-size: 0.95rem; }
}
.hq-block a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.hq-block a:hover { color: var(--gold-600); }

/* ---------- CTA section ---------- */
.cta {
  background: var(--green-900);
  color: var(--ivory);
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) var(--s-6);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200, 169, 81, 0.12), transparent 65%);
}
.cta-inner { position: relative; z-index: 1; max-width: 750px; margin: 0 auto; }
.cta h2 { color: var(--ivory); margin-bottom: var(--s-6); font-size: var(--t-3xl); }
.cta h2 em { color: var(--gold-400); font-style: italic; font-weight: 500; }
.cta p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  line-height: 1.45;
  color: rgba(246, 241, 230, 0.88);
  margin-bottom: var(--s-8);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #060f0a;
  color: rgba(246, 241, 230, 0.7);
  padding: var(--s-16) 0 var(--s-8);
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-12);
  margin-bottom: var(--s-12);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand { color: var(--ivory); margin-bottom: var(--s-4); }
.footer-brand p { font-size: var(--t-sm); max-width: 38ch; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-400);
  margin: 0 0 var(--s-4);
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { font-size: var(--t-sm); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; letter-spacing: 0.05em; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Misc ---------- */
.divider-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  margin: var(--s-16) 0;
  opacity: 0.4;
}

/* ---------- Mobile optimization ---------- */
@media (max-width: 880px) {
  /* Larger, easier-to-tap hamburger */
  .nav-toggle {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  /* Mobile nav links: comfortable tap targets */
  .nav.open a {
    padding: var(--s-4) 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }
}

@media (max-width: 720px) {
  /* HQ Towers image: compact landscape so it doesn't dominate the screen */
  .hq .image-frame { aspect-ratio: 16/10; max-height: 220px; }
  .hq .image-frame img { object-position: center 30%; }
  .hq-grid { gap: var(--s-6); }

  /* Contact blocks: tighter, smaller type */
  .hq-info { margin-top: var(--s-5, 1.25rem); gap: var(--s-4); }
  .hq-block h4 { font-size: 0.6875rem; letter-spacing: 0.14em; margin-bottom: 0.25rem; }
  .hq-block p { font-size: 0.875rem; line-height: 1.4; }

  /* Hero: tighten padding and tune type */
  .hero-inner { padding: 7rem var(--s-4) 6rem; }
  .hero-title { margin: var(--s-4) 0; max-width: none; }
  .hero-sub { margin-bottom: var(--s-6); }
  .hero-cta { gap: var(--s-3); width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
  .hero-meta {
    bottom: var(--s-4);
    padding: 0 var(--s-4);
    gap: var(--s-3);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }
  .hero-meta .scroll-hint::after { height: 24px; }

  /* Page hero on subsidiary pages */
  .page-hero { min-height: 60vh; padding-top: 7rem; padding-bottom: var(--s-8); }
  .page-hero-inner { padding: 0 var(--s-4); }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); max-width: none; }

  /* Comfortable container padding */
  .container { padding: 0 var(--s-4); }

  /* Buttons: enforce comfortable tap target */
  .btn { min-height: 48px; padding: 0.85rem 1.4rem; }

  /* Section spacing tighter on mobile */
  .section { padding: clamp(3rem, 12vw, 5rem) 0; }

  /* Stats: 2 col still, but tighten */
  .stats { gap: var(--s-6) var(--s-4); }

  /* Image frames: less extreme aspect ratios on small screens */
  .image-frame { aspect-ratio: 4/5; }
  .image-frame.wide { aspect-ratio: 4/3; }
  .image-frame.landscape { aspect-ratio: 4/3; }

  /* Headings: tighter leading */
  h1, h2 { line-height: 1.1; }

  /* Header padding: compact */
  .site-header { padding: var(--s-4) 0; }

  /* Brand mark: keep readable */
  .brand-mark { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  /* Stack stats grid to single column on very small screens */
  .stats { grid-template-columns: 1fr; }
  /* Tighter section heads */
  .section-head { margin-bottom: var(--s-6); }
  /* Hero CTAs full width */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  /* Hide hero meta on very small — reclaim vertical space */
  .hero-meta { display: none; }
  /* Compact hero on small screens */
  .hero { min-height: auto; }
  .hero-inner { padding: 6rem var(--s-4) 4rem; }
  /* Smaller hero headline on tiny screens */
  .hero-title { font-size: clamp(2.25rem, 11vw, 3.25rem); line-height: 1.1; }
}

/* Prevent horizontal overflow from any wide element */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
/* Break long email/url strings on small screens so they don’t blow out grid columns */
@media (max-width: 720px) {
  .footer-col a, .cta a, .cta p, .hq-block p { word-break: break-word; overflow-wrap: anywhere; }
}
