/* ============================================================
   CANOPI TECHNOLOGIES — STYLESHEET
   Design tokens + global styles + section styles
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --forest:       #0E3B2E;   /* primary brand green */
  --forest-deep:  #082B20;   /* darkest green — footer, deep panels */
  --forest-soft:  #155A45;   /* lighter green for hovers */
  --energy-blue:  #0E6E8C;   /* secondary accent — tech/data */
  --gold:         #C9A24A;   /* sparing accent — dividers, highlights */
  --paper:        #FAF9F5;   /* warm off-white background */
  --white:        #FFFFFF;
  --ink:          #16201C;   /* primary text */
  --muted:        #5E6E67;   /* secondary text */
  --line:         #E3E1D9;   /* hairline borders */
  --tint:         #EFF4F1;   /* light green-tinted section bg */
  --tint-blue:    #EAF3F5;   /* light blue-tinted section bg */

  /* Type */
  --font-display: 'Fraunces', serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1200px;
  --section-pad: 120px;
  --section-pad-mobile: 64px;
  --radius: 8px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest-deep);
  letter-spacing: -0.01em;
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--energy-blue);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: var(--section-pad) 0;
}

@media (max-width: 768px) {
  section { padding: var(--section-pad-mobile) 0; }
  .container { padding: 0 20px; }
}

/* Eyebrow label (mono, small caps, used above headings) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--energy-blue);
  display: inline-block;
  margin-bottom: 16px;
}

.eyebrow.on-dark { color: #7FD9C6; }
.eyebrow.gold { color: var(--gold); }

/* Section heading group */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover { background: var(--forest-soft); }

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-secondary:hover { background: var(--forest); color: var(--white); }

.btn-on-dark {
  background: var(--white);
  color: var(--forest-deep);
}
.btn-on-dark:hover { background: var(--gold); color: var(--forest-deep); }

.btn-ghost-on-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,245,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--forest-deep);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo span { color: var(--energy-blue); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--energy-blue); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest-deep);
  margin: 5px 0;
  transition: 0.25s;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    padding: 16px 32px;
    width: 100%;
    border-top: 1px solid var(--line);
  }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 600px at 85% -10%, rgba(14,110,140,0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 110%, rgba(201,162,74,0.10), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--energy-blue);
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.hero-stat .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--forest);
  display: block;
}
.hero-stat .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* --- Signature element: The Integration Map --- */
.integration-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}

.integration-map svg { width: 100%; height: 100%; }

.map-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.map-line.active {
  stroke: var(--energy-blue);
  stroke-width: 1.5;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 1.6s ease forwards;
}
.map-line.active.delay1 { animation-delay: 0.15s; }
.map-line.active.delay2 { animation-delay: 0.3s; }
.map-line.active.delay3 { animation-delay: 0.45s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.map-node {
  fill: var(--white);
  stroke: var(--line);
  stroke-width: 1.5;
}

.map-node.center {
  fill: var(--forest);
  stroke: var(--forest);
}

.map-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  fill: var(--ink);
  text-anchor: middle;
}

.map-label.center {
  fill: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
}

.map-sublabel {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--muted);
  text-anchor: middle;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .map-line.active { stroke-dashoffset: 0; animation: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .integration-map { max-width: 380px; margin-top: 40px; }
}

/* ============================================================
   OVERVIEW STRIP
   ============================================================ */
.overview {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.overview h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  margin-bottom: 20px;
}

.overview p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }

.overview-points { margin-top: 24px; display: grid; gap: 18px; }

.overview-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.overview-point .dot {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
  margin-top: 2px;
}

.overview-point div p { margin: 0; color: var(--ink); font-size: 15px; }
.overview-point strong { display: block; margin-bottom: 2px; font-size: 16px; color: var(--forest-deep); }

@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   SERVICES (homepage highlights + full section)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--energy-blue);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--forest); }

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Full services section (detailed) */
.service-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }

.service-detail .num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
  padding-top: 6px;
}

.service-detail h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.service-detail p {
  color: var(--muted);
  max-width: 720px;
}

@media (max-width: 700px) {
  .service-detail { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   WHY CANOPI
   ============================================================ */
.why-section {
  background: var(--forest-deep);
  color: var(--white);
}
.why-section .section-head h2 { color: var(--white); }
.why-section .section-head p { color: rgba(255,255,255,0.65); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.why-card {
  background: var(--forest-deep);
  padding: 36px 28px;
}

.why-card .why-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}

.why-card h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 10px;
}

.why-card p {
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTORS
   ============================================================ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sector-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
}

.sector-card .sector-icon {
  width: 36px; height: 36px;
  margin-bottom: 16px;
}
.sector-card .sector-icon svg { width: 100%; height: 100%; stroke: var(--energy-blue); }

.sector-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--forest-deep);
}

.sector-card p { font-size: 14px; color: var(--muted); }

@media (max-width: 1000px) {
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .sectors-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOW WE WORK (numbered process — earned use of numbering)
   ============================================================ */
.process-section { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.process-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  padding: 0 20px 0 0;
  position: relative;
}

.process-step::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--line);
  margin-bottom: 28px;
}
.process-step:first-child::before { background: linear-gradient(to right, transparent, var(--line) 10%); }

.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.process-step h4 {
  font-size: 17px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--forest-deep);
}
.process-step p { font-size: 14px; color: var(--muted); }

@media (max-width: 1000px) {
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 600px) {
  .process-track { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities-section { background: var(--tint); }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.capability-tag {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--forest-deep);
  text-align: center;
}

.capability-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
  max-width: 720px;
}

@media (max-width: 1000px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.partner-type-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}

.partner-type-card .ptype-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--energy-blue);
  margin-bottom: 12px;
  display: block;
}

.partner-type-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--forest-deep);
}
.partner-type-card p { font-size: 14.5px; color: var(--muted); }

/* Selected relationships strip */
.relationships {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

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

.relationship-row {
  background: var(--white);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}

.relationship-row .rel-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--forest-deep);
  font-family: var(--font-display);
}
.relationship-row .rel-type {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.relationship-row p { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .partners-grid { grid-template-columns: 1fr; }
  .relationships-grid { grid-template-columns: 1fr; }
  .relationship-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing-cta {
  background: var(--forest);
  color: var(--white);
  text-align: center;
}
.closing-cta .eyebrow { color: #BFE3D9; }
.closing-cta h2 {
  color: var(--white);
  font-size: clamp(28px, 5vw, 46px);
  max-width: 760px;
  margin: 0 auto 20px;
}
.closing-cta p {
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 18px;
}
.closing-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ABOUT PAGE SECTIONS
   ============================================================ */
.about-hero {
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

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

.about-block h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.about-block p { color: var(--muted); margin-bottom: 14px; }

.problem-stat {
  background: var(--forest-deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 24px;
}
.problem-stat .num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.problem-stat p { color: rgba(255,255,255,0.75); margin: 0; font-size: 15px; }

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--white);
}
.mv-card .eyebrow { margin-bottom: 12px; }
.mv-card p { color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .about-grid, .mission-vision-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Leadership */
.leadership-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--white);
}
.leadership-row .leader-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--forest-deep);
}
.leadership-row .leader-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--energy-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  display: block;
}
.leadership-row p { color: var(--muted); margin: 0; }

@media (max-width: 700px) {
  .leadership-row { grid-template-columns: 1fr; }
}

/* ============================================================
   IMAGE PLACEHOLDERS
   (Styled gradient placeholders standing in for photography —
   see image-prompts.md for the photography brief)
   ============================================================ */
.img-placeholder {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest) 0%, var(--energy-blue) 100%);
  display: flex;
  align-items: flex-end;
  min-height: 220px;
}
.img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 14px);
}
.img-placeholder .img-tag {
  position: relative;
  margin: 16px;
  padding: 8px 14px;
  background: rgba(8,43,32,0.55);
  backdrop-filter: blur(4px);
  color: #E8F4F1;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-image { min-height: 460px; border-radius: var(--radius); }
@media (max-width: 900px) { .hero-image { min-height: 320px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info-block {
  margin-bottom: 28px;
}
.contact-info-block .ci-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--energy-blue);
  display: block;
  margin-bottom: 6px;
}
.contact-info-block .ci-value { font-size: 17px; color: var(--forest-deep); font-weight: 600; }
.contact-info-block .ci-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }

.partnership-banner {
  background: var(--tint-blue);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 8px;
}
.partnership-banner p { font-size: 14.5px; color: var(--ink); margin: 0; }
.partnership-banner strong { color: var(--energy-blue); }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row { margin-bottom: 22px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--forest-deep);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--energy-blue);
  outline: none;
}
textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

.form-success {
  display: none;
  background: var(--tint);
  border: 1px solid var(--forest-soft);
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--forest-deep);
  margin-top: 18px;
}
.form-success.visible { display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row.two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-logo span { color: #7FD9C6; }

.footer-grid p { font-size: 14px; max-width: 280px; }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
