/* ============================================================
   Finial Solar — site styles
   Palette: deep navy #1f3772 / #264783, cream #f7f5f0, white text
   Type: Cormorant Garamond (display serif) + Inter (body sans)
   ============================================================ */

:root {
  --navy:        #1f3772;
  --navy-2:      #264783;
  --navy-deep:   #182c5c;
  --cream:       #f7f5f0;
  --ink:         #1a2338;
  --muted:       #5b6478;
  --line:        rgba(255, 255, 255, 0.18);
  --line-dark:   rgba(26, 35, 56, 0.12);
  --maxw:        1180px;
  --serif:       "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ----- Serif display type ----- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.75;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}
.brand img { height: 30px; width: auto; }

/* dark logo variant for cream pages: invert the white logo */
.brand--ink img { filter: brightness(0) saturate(100%) invert(18%) sepia(38%) saturate(1600%) hue-rotate(200deg) brightness(92%) contrast(94%); }

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.nav a { position: relative; padding: 4px 0; transition: opacity 0.2s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { opacity: 1; }

/* header on navy vs on cream */
.site-header.on-navy { color: #fff; }
.site-header.on-cream { color: var(--ink); }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--navy);
  color: #fff;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* subtle radial glow */
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 7.2rem);
  max-width: 15ch;
}
.hero p.lead {
  margin-top: 34px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
}
.hero .cta-row { margin-top: 44px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 2px;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease;
}
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); background: var(--cream); }
.btn-outline { border: 1px solid currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 100px 0; }
.section-navy { background: var(--navy); color: #fff; }
.section-deep { background: var(--navy-deep); color: #fff; }
.section-cream { background: var(--cream); color: var(--ink); }

.intro {
  max-width: 62ch;
}
.intro h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  margin-bottom: 24px;
}
.intro p { font-size: 1.12rem; color: var(--muted); }
.section-navy .intro p, .section-deep .intro p { color: rgba(255,255,255,0.82); }

/* Services grid */
.services-head { max-width: 52ch; margin-bottom: 60px; }
.services-head h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--navy);
  padding: 44px 40px;
  transition: background 0.25s ease;
}
.card:hover { background: var(--navy-2); }
.card .num {
  font-family: var(--serif);
  font-size: 1.4rem;
  opacity: 0.5;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.7rem; margin-bottom: 14px; }
.card p { margin: 0; color: rgba(255,255,255,0.8); font-size: 1.02rem; }

/* ============================================================
   Team page
   ============================================================ */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 190px 0 90px;
}
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.page-head p { margin-top: 20px; max-width: 50ch; color: rgba(255,255,255,0.82); font-size: 1.15rem; }

.bio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.bio__photo img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(24,44,92,0.22);
}
.bio__body h2 { font-size: clamp(2rem, 4vw, 3rem); }
.bio__body .role {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-2);
  margin: 10px 0 26px;
}
.bio__body p { color: var(--muted); font-size: 1.1rem; margin: 0 0 20px; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-hero {
  background: var(--navy);
  color: #fff;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
}
.contact-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
.contact-hero p { margin-top: 24px; font-size: 1.2rem; color: rgba(255,255,255,0.84); max-width: 44ch; }
.contact-email {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 6px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.contact-email:hover { border-color: #fff; opacity: 0.9; }
.contact-meta { margin-top: 54px; display: flex; gap: 54px; flex-wrap: wrap; }
.contact-meta .item .label {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem;
  opacity: 0.6; margin-bottom: 8px; font-weight: 600;
}
.contact-meta .item a, .contact-meta .item span { font-size: 1.05rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--navy-deep);
  color: #fff;
  padding: 88px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 28px; }
.cta-band p { max-width: 48ch; margin: 0 auto 36px; color: rgba(255,255,255,0.82); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 48px;
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.site-footer img { height: 26px; }
.site-footer .foot-links { display: flex; gap: 30px; font-size: 0.95rem; }
.site-footer .foot-links a:hover { color: #fff; }
.site-footer .copy { width: 100%; font-size: 0.82rem; opacity: 0.5; letter-spacing: 0.02em; padding-top: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .wrap { padding: 0 22px; }
  .grid { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; gap: 36px; }
  .bio__photo { max-width: 420px; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: 0.25s; }

  .nav {
    position: absolute;
    top: 96px; right: 0; left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    color: #fff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav a { padding: 18px 22px; width: 100%; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav.open { max-height: 300px; }
}

@media (max-width: 480px) {
  .section, .contact-hero { padding-top: 130px; }
  .card { padding: 34px 26px; }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
