:root {
  --sea-deep: #103C4A;
  --sea-mid: #2F6E7D;
  --sea-glass: #E7EEEB;
  --terracotta: #C1633E;
  --olive: #6E7A46;
  --sand: #F6F1E7;
  --ink: #1E2A27;
  --line: rgba(16, 60, 74, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sea-deep);
}

a { color: inherit; }

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 231, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sea-deep);
  text-decoration: none;
}
.brand svg { width: 36px; height: 36px; flex-shrink: 0; }
nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}
nav ul a {
  text-decoration: none;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
nav ul a:hover, nav ul a.active { opacity: 1; border-color: var(--terracotta); }
@media (max-width: 720px) { nav ul { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 32px 90px;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 70px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--olive); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); line-height: 1.08; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero p.lede { font-size: 1.08rem; color: rgba(30,42,39,0.78); max-width: 46ch; margin-bottom: 34px; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--sea-deep); color: var(--sand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,60,74,0.25); }
.btn-ghost { border: 1.5px solid var(--sea-deep); color: var(--sea-deep); }
.btn-ghost:hover { background: var(--sea-deep); color: var(--sand); }

.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Page header (for non-home pages) ---------- */
.page-header {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 32px 60px;
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.page-header p { font-size: 1.05rem; color: rgba(30,42,39,0.75); max-width: 60ch; }

/* ---------- Wave divider ---------- */
.wave-divider { display: block; width: 100%; height: 46px; }
.wave-divider path { fill: var(--sea-glass); }

/* ---------- Sections ---------- */
section { padding: 90px 32px; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: rgba(30,42,39,0.72); font-size: 1.02rem; }

/* ---------- About ---------- */
#about, .about-section { background: var(--sea-glass); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.pillars { display: flex; flex-direction: column; gap: 22px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--sea-deep);
  color: var(--sand);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.pillar h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pillar p { font-size: 0.95rem; color: rgba(30,42,39,0.72); }

/* ---------- Values / story blocks (About page) ---------- */
.story-block { max-width: 72ch; margin-bottom: 28px; font-size: 1.02rem; color: rgba(30,42,39,0.8); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
}
.value-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.value-card p { font-size: 0.93rem; color: rgba(30,42,39,0.72); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--terracotta); }
.service-card:nth-child(2)::before { background: var(--olive); }
.service-card:nth-child(3)::before { background: var(--sea-mid); }
.service-card:nth-child(4)::before { background: var(--terracotta); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,60,74,0.1); }
.service-card svg { width: 30px; height: 30px; margin-bottom: 18px; color: var(--sea-deep); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { font-size: 0.93rem; color: rgba(30,42,39,0.72); margin-bottom: 14px; }
.service-card .detail { font-size: 0.88rem; color: rgba(30,42,39,0.58); border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Process steps (Services page) ---------- */
.process-list { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.process-step:last-child { border-bottom: none; }
.process-num { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--terracotta); font-weight: 600; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: 0.95rem; color: rgba(30,42,39,0.72); }

/* ---------- Testimonials ---------- */
#testimonials, .testimonials-section { background: var(--sea-deep); color: var(--sand); }
#testimonials .section-head h2, .testimonials-section .section-head h2 { color: var(--sand); }
#testimonials .section-head p, .testimonials-section .section-head p { color: rgba(246,241,231,0.7); }
.placeholder-note {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(246,241,231,0.1);
  color: rgba(246,241,231,0.75);
}
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial { background: rgba(246,241,231,0.06); border: 1px solid rgba(246,241,231,0.14); border-radius: 6px; padding: 30px 26px; }
.testimonial p.quote { font-size: 1.02rem; margin-bottom: 20px; font-style: italic; }
.testimonial .who { font-size: 0.86rem; color: var(--terracotta); font-weight: 600; }
.testimonial .who span { color: rgba(246,241,231,0.6); font-weight: 400; }

/* ---------- Contact ---------- */
#contact, .contact-page-section { text-align: center; }
#contact .section-inner, .contact-page-section .section-inner { max-width: 640px; }
#contact h2, .contact-page-section h2 { margin-bottom: 16px; }
#contact p, .contact-page-section p { color: rgba(30,42,39,0.72); margin-bottom: 34px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 40px 32px; }
.contact-card .btn-primary { margin-top: 6px; }

.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
  text-align: left;
}
.contact-detail { padding: 20px; background: var(--sea-glass); border-radius: 6px; }
.contact-detail .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--olive); font-weight: 600; margin-bottom: 6px; }
.contact-detail .value { font-size: 0.95rem; color: var(--ink); }

/* ---------- CTA banner (used on non-home pages) ---------- */
.cta-banner {
  background: var(--sea-deep);
  color: var(--sand);
  text-align: center;
  padding: 70px 32px;
}
.cta-banner h2 { color: var(--sand); margin-bottom: 14px; }
.cta-banner p { color: rgba(246,241,231,0.75); margin-bottom: 30px; max-width: 50ch; margin-left: auto; margin-right: auto; }

footer {
  padding: 36px 32px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(30,42,39,0.55);
  border-top: 1px solid var(--line);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--sea-deep);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: var(--sea-deep);
  color: var(--sand);
  transform: translateY(-2px);
}
.footer-social a svg { width: 17px; height: 17px; }
