/* ==========================================================
   Edisto Oral Surgery — shared styles
   Palette: marsh green / sand ivory / brass / charcoal ink
   Type: Fraunces (display) + Public Sans (body/utility)
   ========================================================== */

:root {
  --marsh: #00004A;
  --marsh-dark: #000030;
  --sand: #F7F3EC;
  --brass: #666666;
  --brass-light: #A5A5BF;
  --ink: #24211D;
  --sage: #9BA0BE;
  --white: #FFFFFF;
  --line: rgba(36, 33, 29, 0.12);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1180px;
}

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em 0;
  color: var(--marsh-dark);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 420; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.34rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marsh-dark);
  font-weight: 600;
  margin-bottom: 1.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}

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

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--marsh-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.brand .mark { height: 42px; width: auto; flex-shrink: 0; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-text .name { font-size: 1.18rem; color: var(--marsh-dark); }
.brand .brand-text .tagline {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
}
.nav-links a.active { color: var(--marsh-dark); font-weight: 600; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--marsh);
  color: var(--sand) !important;
  padding: 11px 22px;
  border-radius: 2px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--marsh-dark); }

.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle {
    display: block;
    background: none; border: none; cursor: pointer;
    font-family: var(--sans); font-size: 0.85rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--marsh-dark); border: 1px solid var(--line);
    padding: 8px 14px;
  }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sand); padding: 20px 32px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: linear-gradient(180deg, #F7F3EC 0%, #EFE9DC 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { margin-bottom: 0.35em; }
.hero .lede {
  font-size: 1.15rem;
  color: #4A463E;
  max-width: 46ch;
  margin-bottom: 1.8em;
}

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

/* ---------- Hero — feature variant (homepage) ---------- */
.hero-feature {
  position: relative;
  overflow: hidden;
  background: var(--marsh);
  color: var(--sand);
  padding: 150px 0 120px;
}
.hero-feature .watermark {
  position: absolute;
  top: -14%;
  right: -6%;
  width: 620px;
  max-width: 62vw;
  opacity: 0.07;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 0;
}
.hero-feature .wrap {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0;
}
.hero-feature .eyebrow {
  color: var(--brass-light);
  border-color: rgba(247,243,236,0.25);
}
.hero-feature .eyebrow::before { background: var(--brass-light); }
.hero-feature h1 { color: var(--sand); margin-bottom: 0.3em; }
.hero-feature .lede {
  font-size: 1.2rem;
  color: #C6C9DE;
  max-width: 50ch;
  margin-bottom: 2em;
}
.btn-light { background: var(--sand); color: var(--marsh-dark); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.35); }
.btn-light:hover { background: var(--white); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(247,243,236,0.4); color: var(--sand); }
.btn-outline-light:hover { background: rgba(247,243,236,0.12); border-color: rgba(247,243,236,0.7); transform: translateY(-2px); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(247,243,236,0.18);
  font-size: 0.86rem;
  color: #A9AECB;
  letter-spacing: 0.01em;
}
.trust-strip span { white-space: nowrap; }

@media (max-width: 700px) {
  .hero-feature { padding: 110px 0 80px; }
  .hero-feature .watermark { width: 380px; top: -8%; right: -20%; }
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--marsh); color: var(--sand); box-shadow: 0 10px 24px -10px rgba(0,0,74,0.55); }
.btn-primary:hover { background: var(--marsh-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0,0,74,0.6); }
.btn-outline { border-color: var(--marsh); color: var(--marsh-dark); }
.btn-outline:hover { background: var(--marsh); color: var(--sand); transform: translateY(-2px); }

.hero-art { width: 100%; }

.watermark-soft {
  position: absolute;
  top: -12%;
  right: -4%;
  width: 460px;
  max-width: 52vw;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 860px) {
  .hero { padding: 90px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 280px; margin: 0 auto 20px; }
}

/* ---------- Marsh divider motif ---------- */
.divider {
  height: 64px;
  width: 100%;
  display: block;
}

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.section-alt { background: var(--white); }
.section-marsh { background: var(--marsh); color: var(--sand); }
.section-marsh h2, .section-marsh h3 { color: var(--sand); }
.section-marsh .eyebrow { color: var(--brass-light); border-color: rgba(247,243,236,0.25); }
.section-marsh .eyebrow::before { background: var(--brass-light); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.grid-photo-bio {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .grid-photo-bio { grid-template-columns: 1fr; }
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 1px dashed rgba(36,33,29,0.25);
  background: repeating-linear-gradient(135deg, rgba(36,33,29,0.03), rgba(36,33,29,0.03) 10px, transparent 10px, transparent 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #6b6658;
  font-size: 0.82rem;
  line-height: 1.5;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid rgba(36,33,29,0.06);
  box-shadow: 0 1px 2px rgba(20,20,50,0.04), 0 12px 28px -14px rgba(20,20,50,0.14);
  padding: 38px 34px;
  border-radius: 3px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(20,20,50,0.06), 0 22px 40px -16px rgba(20,20,50,0.20);
}
.card .icon { width: 34px; height: 34px; margin-bottom: 22px; color: var(--brass); }
.card h3 { margin-bottom: 0.5em; }
.card p { color: #4A463E; margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Process steps (real sequence -> numbered) ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brass);
}
.step h3 { margin-bottom: 0.3em; }
.step p { color: #4A463E; margin-bottom: 0; }

/* ---------- Quote / testimonial ---------- */
.quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--marsh-dark);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--brass);
  margin-top: 22px;
}
.section-marsh .quote { color: var(--sand); }
.section-marsh .quote cite { color: var(--brass-light); }

/* ---------- Info strip ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.info-strip .item { font-size: 0.95rem; }
.info-strip .item .eyebrow { display: block; margin-bottom: 0.4em; }
@media (max-width: 700px) { .info-strip { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Forms ---------- */
form.contact-form { display: grid; gap: 20px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--marsh-dark);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--ink);
  border-radius: 2px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.85rem;
  color: #6b6658;
  border-left: 2px solid var(--brass);
  padding-left: 14px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
}
.cta-banner h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--marsh-dark);
  color: var(--sage);
  padding: 64px 0 32px;
  font-size: 0.92rem;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer.site h4 {
  color: var(--sand);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1em;
}
footer.site .brand { color: var(--sand); margin-bottom: 14px; }
.footer-logo {
  width: 168px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 16px;
}
footer.site a:hover { color: var(--sand); }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site .bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(247,243,236,0.12);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #7C8B80;
}
@media (max-width: 700px) {
  footer.site .wrap { grid-template-columns: 1fr; }
}

/* ---------- Video embed ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--line);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-credit {
  font-size: 0.82rem;
  color: #6b6658;
  margin-top: 12px;
}
.video-credit a { text-decoration: underline; color: var(--marsh-dark); }

.photo-placeholder-wide {
  aspect-ratio: 21 / 9;
}
@media (max-width: 700px) {
  .photo-placeholder-wide { aspect-ratio: 4 / 3; }
}

/* ---------- River gallery (2 portrait photos) ---------- */
.river-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 40px auto;
}
.river-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(20,20,50,0.06), 0 22px 40px -16px rgba(20,20,50,0.20);
}
@media (max-width: 600px) {
  .river-gallery { grid-template-columns: 1fr; max-width: 340px; }
}

/* ---------- Montage crossfade (3 images) ---------- */
.montage {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--ink);
}
.montage img, .montage .montage-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: montageFade 12s infinite;
}
.montage img:nth-child(1), .montage .montage-slot:nth-child(1) { animation-delay: 0s; }
.montage img:nth-child(2), .montage .montage-slot:nth-child(2) { animation-delay: 4s; }
.montage img:nth-child(3), .montage .montage-slot:nth-child(3) { animation-delay: 8s; }
.montage-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8577;
  font-size: 0.85rem;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 10px, transparent 10px, transparent 20px);
}
@keyframes montageFade {
  0%, 4% { opacity: 0; }
  8%, 30% { opacity: 1; }
  34%, 100% { opacity: 0; }
}
@media (max-width: 700px) {
  .montage { aspect-ratio: 4 / 3; }
}

/* ---------- Family carousel ---------- */
.family-carousel {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(20,20,50,0.05), 0 24px 44px -18px rgba(20,20,50,0.28);
}
.family-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.family-carousel img.active { opacity: 1; }

/* ---------- Placeholder highlight ---------- */
.ph {
  background: rgba(102, 102, 102, 0.16);
  padding: 0 4px;
  border-radius: 2px;
}
