/* Shared styles used across all pages (home, blog, about).
   Page-specific sections (hero, services grid, contact form, etc.)
   live in a <style> block in each page — this file only holds the
   pieces that must look identical everywhere: nav, footer, buttons,
   section headings, and the color/spacing variables they all share. */

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

:root {
  --navy:     #0F1B2D;
  --navy-mid: #162438;
  --sage:     #5B8A6E;
  --sage-lt:  #7BAD90;
  --sage-dim: #3D6150;
  --cream:    #F0EDE6;
  --steel:    #8FA8B8;
  --white:    #FFFFFF;
  --divider:  rgba(143, 168, 184, 0.2);
  --max-w:    1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
}

/* ── CENTERING ── */
.page-center {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 27, 45, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  padding: 0 5%;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--sage-lt); }

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
nav ul a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav ul a:hover { color: var(--sage-lt); }
nav ul a.active { color: var(--sage-lt); }

.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--sage-lt) !important; color: var(--white) !important; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--sage);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--sage-lt); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--steel);
  color: var(--steel);
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); transform: translateY(-1px); }

.btn-submit {
  width: 100%;
  background: var(--sage);
  color: var(--white);
  border: none;
  padding: 0.85rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--sage-lt); }

/* ── SECTION HEADINGS ── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dim);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-intro {
  font-size: 1rem;
  color: #4A6070;
  max-width: 540px;
  margin-bottom: 3.5rem;
  line-height: 1.75;
}

/* ── PAGE HEADER (used on Blog / About / article pages) ── */
.page-header {
  background: var(--navy);
  padding: 10rem 5% 4rem;
}
.page-header .section-label { color: var(--sage-lt); }
.page-header .section-title { color: var(--white); }
.page-header .section-intro { color: var(--steel); margin-bottom: 0; }

/* ── FOOTER ── */
footer {
  background: #0A1420;
  padding: 2rem 5%;
  border-top: 1px solid var(--divider);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer p {
  font-size: 0.8rem;
  color: rgba(143,168,184,0.5);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav ul { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
