/* ---------------------------------------------------------------------------
   Equilibrium North — site styles
   Palette: deep navy sea, ice-teal accent, gold north star, warm paper.
--------------------------------------------------------------------------- */

:root {
  --navy-900: #0a1a2b;
  --navy-800: #0e2440;
  --navy-700: #143355;
  --teal: #4fa3b8;
  --teal-light: #8ecbdb;
  --gold: #d9a441;
  --paper: #f7f6f2;
  --ink: #1d2b3a;
  --ink-soft: #47586b;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(10, 26, 43, 0.10);
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--teal); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 164, 65, 0.35);
}

.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-lg { padding: 1rem 2.2rem; font-size: 1.1rem; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  color: var(--white);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-abbr {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: var(--teal-light);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--white); }

.site-nav .nav-cta {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 600;
}

.site-nav .nav-cta:hover { color: var(--navy-900); filter: brightness(1.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(79, 163, 184, 0.25), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(217, 164, 65, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  padding: clamp(4.5rem, 10vw, 7.5rem) 1.5rem clamp(6rem, 12vw, 9rem);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 { color: var(--white); }

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-waves {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(60px, 8vw, 120px);
  display: block;
}

/* Intro strip ------------------------------------------------------------ */

.intro { padding: 3rem 0 0.5rem; }

.intro-inner {
  max-width: 760px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.intro strong { color: var(--ink); }

/* Sections --------------------------------------------------------------- */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section-dark {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(79, 163, 184, 0.18), transparent 60%),
    var(--navy-800);
  color: rgba(255, 255, 255, 0.88);
}

.section-dark h2 { color: var(--white); }

/* Service cards ---------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--teal);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 26, 43, 0.14);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.card h3 { color: var(--navy-800); }

.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card li { margin-bottom: 0.35rem; }

.card li::marker { color: var(--gold); }

/* Principles ------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.principle h3 {
  color: var(--teal-light);
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
  display: inline-block;
}

.principle p { color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; }

/* About ------------------------------------------------------------------ */

.about-inner { max-width: 760px; }

.about-inner p { color: var(--ink-soft); font-size: 1.08rem; }

.about-inner strong { color: var(--navy-800); }

/* Contact ---------------------------------------------------------------- */

.section-contact {
  background:
    radial-gradient(700px 350px at 50% 120%, rgba(217, 164, 65, 0.16), transparent 65%),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.contact-inner { max-width: 640px; }

.section-contact h2 { color: var(--white); }

.section-contact p { margin-bottom: 2rem; }

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.footer-inner {
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-brand .brand-mark { width: 28px; height: 28px; }

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--white); }

.footer-legal { margin: 0; font-size: 0.82rem; }

/* Responsive -------------------------------------------------------------- */

@media (max-width: 860px) {
  .cards, .principles { grid-template-columns: 1fr; }
  .principles { gap: 1.75rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-800);
    padding: 0.5rem 0 1rem;
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.85rem 1.5rem;
    font-size: 1.05rem;
  }

  .site-nav .nav-cta {
    margin: 0.5rem 1.5rem 0;
    text-align: center;
  }

  .brand-name { font-size: 1rem; }
}
