:root {
  --color-background: #ffffff;
  --color-surface: #f3f8f8;
  --color-ink: #111111;
  --color-muted: #4a5152;
  --color-tide: #0b7a75;
  --color-tide-deep: #0a0a0a;
  --color-marsh: #2a9d97;
  --color-brass: #0b7a75;
  --color-line: #d6e3e2;
  --color-destructive: #a3261b;
  --radius-control: 4px;
  --radius-lg: 10px;
  --radius-md: 6px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-tide); }
a:hover { color: var(--color-brass); }
:focus-visible { outline: 3px solid var(--color-brass); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1rem; }

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-brass);
  margin: 0 0 1rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--color-muted); max-width: 40rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.brand { text-decoration: none; color: var(--color-tide-deep); display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.brand span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); }
.nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.8rem); }
.nav a { text-decoration: none; color: var(--color-ink); font-weight: 500; font-size: 0.95rem; }
.nav a[aria-current="page"] { color: var(--color-brass); }
.nav .phone { color: var(--color-tide); font-weight: 600; }
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; }
  .nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 0.5rem 1.1rem; }
  .nav .phone { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font: 600 1rem var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--color-brass); color: #fff; }
.btn-primary:hover { background: #085c58; color: #fff; }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: grid; align-items: end;
  color: #fff;
  background: var(--color-tide-deep) center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.9) 100%);
}
.hero-inner { position: relative; padding: 0 var(--pad) clamp(3rem, 8vh, 6rem); max-width: 62rem; }
.hero .kicker { color: #5fd3cb; }
.hero .lede { color: rgba(255,255,255,0.88); margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Page header (inner pages) */
.page-head { padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(2rem, 4vw, 3rem); background: var(--color-tide); color: #fff; }
.page-head .kicker { color: #5fd3cb; }
.page-head .lede { color: rgba(255,255,255,0.85); margin-top: 1rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 7rem) var(--pad); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.section-head p { max-width: 34rem; color: var(--color-muted); margin: 0; }
.section.alt { background: var(--color-surface); border-block: 1px solid var(--color-line); }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.card {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -18px rgba(0,0,0,0.35); color: inherit; }
.card-media { aspect-ratio: 4 / 3; background: #e2eeed; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-body p { color: var(--color-muted); margin: 0; font-size: 0.98rem; }
.card-more { margin-top: auto; padding-top: 0.6rem; font-weight: 600; color: var(--color-tide); font-size: 0.95rem; }
.card.skeleton { min-height: 360px; background: linear-gradient(90deg, #e8f1f1 0%, #f6fafa 50%, #e8f1f1 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
.state { padding: 2rem; border: 1px dashed var(--color-line); border-radius: var(--radius-lg); color: var(--color-muted); }
.state.error { color: var(--color-destructive); border-color: var(--color-destructive); }
.is-fetching { opacity: 0.55; transition: opacity 0.2s; }

/* Why section */
.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 1.3rem 0; border-top: 1px solid var(--color-line); display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.facts li:last-child { border-bottom: 1px solid var(--color-line); }
.facts strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--color-tide); line-height: 1.1; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* Areas */
.areas { background: var(--color-tide-deep); color: #fff; }
.areas .section-head p { color: rgba(255,255,255,0.78); }
.areas .kicker { color: #5fd3cb; }
.area-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.area-cols h3 { color: #5fd3cb; margin-bottom: 1rem; }
.area-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.area-list li { padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.14); break-inside: avoid; }

/* CTA band */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { max-width: 38rem; }

/* Service detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.detail-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.detail-body { font-size: 1.1rem; }
.detail-body p { margin-bottom: 1.1rem; }
.highlights { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.highlights li { padding: 0.75rem 0 0.75rem 1.6rem; border-top: 1px solid var(--color-line); position: relative; }
.highlights li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 0.6rem; height: 2px; background: var(--color-brass); }
.aside-box { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: 6rem; }
.aside-box h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .aside-box { position: static; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.15rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .req { color: var(--color-brass); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--color-ink);
  padding: 0.8rem 0.9rem;
  border: 1px solid #bfcfce; border-radius: var(--radius-md);
  background: #fff; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-tide); outline-offset: 1px; border-color: var(--color-tide); }
.field [aria-invalid="true"] { border-color: var(--color-destructive); }
.field .help { color: var(--color-muted); font-size: 0.9rem; margin: 0; }
.field .err { color: var(--color-destructive); font-size: 0.9rem; margin: 0; }
.field.checkbox { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field.checkbox input { width: auto; margin-top: 0.3rem; }
.form-error { color: var(--color-destructive); margin-bottom: 1rem; }
.form-actions { margin-top: 0.5rem; }
.thanks h2 { margin-bottom: 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { padding: 1rem 0; border-top: 1px solid var(--color-line); }
.contact-list li span { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.2rem; }
.contact-list a { font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { background: var(--color-tide-deep); color: rgba(255,255,255,0.8); padding: 3rem var(--pad) 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 2rem; }
.site-footer h2 { font-size: 1.2rem; color: #fff; margin-bottom: 0.6rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #5fd3cb; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.2rem 0; }
.legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-story h2 { margin-bottom: 1.25rem; }
.about-story p { max-width: 42rem; }
.aside-box .facts li { grid-template-columns: 5.5rem 1fr; }
.aside-box .facts strong { font-size: 1.35rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
