/* ============================================================
   South Bay Stays — shared styles
   Palette: white, pale blue tint, royal blue accent, navy ink
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --white: #ffffff;
  --tint: #eef1fc;
  --royal: #2a3eb1;
  --royal-dark: #202f8a;
  --ink: #0f1730;
  --slate: #5c6784;
  --line: #dde2f3;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

a { color: inherit; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

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

header {
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

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

.brand .wordmark {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--royal);
}

.nav-links .cta {
  background: var(--royal);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.nav-links .cta:hover {
  background: var(--royal-dark);
  color: var(--white);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}

.hero-motif {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  max-width: 720px;
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 620px;
}

.eyebrow {
  color: var(--royal);
  font-size: 0.95rem;
  margin-bottom: 18px;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
}
.btn-primary:hover { background: var(--royal-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--royal); color: var(--royal); }

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

section { padding: 80px 0; }

.section-tint { background: var(--tint); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

/* ---------- Value grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.value-card .num {
  color: var(--royal);
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  margin-bottom: 14px;
  display: block;
}

/* ---------- Split layout (about-style) ---------- */

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

.split h2 { margin-bottom: 20px; font-size: clamp(1.8rem, 3vw, 2.3rem); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 28px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step:first-child { border-top: none; }

.step .step-index {
  font-family: 'Fraunces', serif;
  color: var(--royal);
  font-size: 1.1rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: left;
}

.cta-band h2 { color: var(--white); margin-bottom: 16px; font-size: clamp(1.8rem, 3vw, 2.3rem); }
.cta-band p { color: #b9c0d8; }
.cta-band .btn-primary { background: var(--royal); }
.cta-band .btn-primary:hover { background: #4256d6; }

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

footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-row .brand .wordmark { font-size: 1rem; }
.footer-meta { color: var(--slate); font-size: 0.9rem; }

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

@media (max-width: 800px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.cta) { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-motif { width: 90%; opacity: 0.5; }
}

/* ---------- Image placeholders ---------- */

.img-placeholder {
  background: var(--tint);
  border: 1px dashed #b9c3e8;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: var(--slate);
  font-size: 0.8rem;
  padding: 16px;
  min-height: 120px;
}

.img-placeholder svg {
  width: 22px;
  height: 22px;
  opacity: 0.4;
}

.img-placeholder .ph-label {
  color: var(--slate);
}

.img-placeholder .ph-note {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-media.img-placeholder {
  aspect-ratio: 5 / 4;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

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

.gallery-grid .img-placeholder {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.team-grid .img-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  min-height: 0;
  max-width: 96px;
  margin: 0 auto 12px;
  padding: 8px;
}

.team-member p.name {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 2px;
}

.team-member p.role {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
