:root {
  --ink: #0f241f;
  --pine: #164a3c;
  --teal: #1f6f5b;
  --mint: #d8efe6;
  --foam: #f3faf7;
  --sand: #eef2ef;
  --accent: #c45c26;
  --accent-soft: #f6e4d8;
  --line: rgba(15, 36, 31, 0.12);
  --shadow: 0 18px 50px rgba(15, 36, 31, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9f0e7 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #f7e8dc 0%, transparent 45%),
    var(--foam);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.topbar {
  background: var(--pine);
  color: #e8f6f0;
  font-size: .92rem;
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: .55rem 1.25rem;
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between;
}
.topbar a { color: #fff; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 250, 247, 0.88);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink);
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em;
}
.brand-text span { font-size: .78rem; color: #4d665e; }

.nav-links {
  display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .55rem .8rem; border-radius: 999px;
}
.nav-links a:hover { background: var(--mint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .85rem 1.25rem;
  font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(196, 92, 38, .28); }
.btn-primary:hover { background: #a84c1d; color: #fff; }
.btn-secondary { background: var(--pine); color: #fff; }
.btn-secondary:hover { color: #fff; background: #0f3329; }
.btn-ghost { background: transparent; color: var(--pine); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; color: var(--pine); }

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7fffb;
  background:
    linear-gradient(115deg, rgba(10, 28, 24, .88) 8%, rgba(22, 74, 60, .55) 48%, rgba(22, 74, 60, .25) 100%),
    url("/img/services/spine.jpg") center/cover no-repeat;
}
.hero-inner {
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 5.5rem 1.25rem 3.5rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700; line-height: 1; margin: 0 0 .55rem; letter-spacing: -.03em;
  color: #fff;
}
.hero-kicker {
  display: inline-block; margin-bottom: 1rem; letter-spacing: .08em; text-transform: uppercase;
  font-size: .78rem; font-weight: 700; color: #d7f3e8;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.15; margin: 0 0 1rem; max-width: 22ch; letter-spacing: -.02em;
  font-weight: 500; color: #eefaf4;
}
.hero p {
  max-width: 38rem; margin: 0 0 1.75rem; font-size: 1.08rem; color: #e4f4ed;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.section {
  max-width: 1120px; margin: 0 auto; padding: 4.5rem 1.25rem;
}
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 .6rem; letter-spacing: -.02em;
}
.section-head p { margin: 0; color: #425850; }

.grid-3 {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tile a.tile-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.tile-media {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--mint), #fff);
  overflow: hidden;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 1.2rem 1.25rem 1.4rem; }
.tile-body h3 {
  font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 .45rem; letter-spacing: -.01em;
}
.tile-body p { margin: 0; color: #4d665e; font-size: .95rem; }

.band {
  background: linear-gradient(135deg, var(--pine), #1d5d4b 55%, #2a7a63);
  color: #f2fffa;
}
.band .section-head p { color: #d5eee4; }
.band-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.prose { max-width: 46rem; }
.prose h1, .prose h2, .prose h3 { font-family: var(--font-display); letter-spacing: -.02em; }
.prose p { color: #334841; }

.page-hero {
  padding: 3.5rem 1.25rem 2rem;
  background:
    linear-gradient(180deg, rgba(216, 239, 230, .9), transparent),
    var(--foam);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { max-width: 1120px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 .75rem; letter-spacing: -.02em;
}
.page-hero p { margin: 0; max-width: 40rem; color: #425850; }
.breadcrumb { font-size: .9rem; margin-bottom: .85rem; color: #5b7269; }
.breadcrumb a { color: inherit; }

.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem .9rem; font: inherit; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.field-error { color: #a12622; font-size: .85rem; margin-top: .25rem; }
.alert {
  padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem;
  background: var(--mint); border: 1px solid #b7dccf;
}
.alert-error { background: #fdeceb; border-color: #f0c2bd; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: .25rem; }

.site-footer {
  background: var(--ink); color: #d7e7e0; margin-top: 2rem;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 3rem 1.25rem 2rem;
  display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr 1fr;
}
.site-footer h3 {
  font-family: var(--font-display); color: #fff; margin: 0 0 .8rem; font-size: 1.15rem;
}
.site-footer a { color: #d7e7e0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 1120px; margin: 0 auto; padding: 1rem 1.25rem 1.5rem;
  font-size: .88rem; color: #9fb4ab;
}
.float-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.2); text-decoration: none; font-weight: 800;
}
.float-wa:hover { color: #fff; transform: translateY(-2px); }

@media (max-width: 900px) {
  .grid-3, .grid-2, .footer-inner, .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { flex-wrap: wrap; }
  .mobile-nav { display: flex; width: 100%; gap: .5rem; flex-wrap: wrap; }
  .mobile-nav a {
    text-decoration: none; color: var(--ink); font-weight: 650; font-size: .9rem;
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .8rem;
  }
}
@media (min-width: 901px) {
  .mobile-nav { display: none; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

.faq-list { display: grid; gap: .65rem; margin: 1rem 0 1.5rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: .65rem 0 0; color: #425850; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: rise-in .7s ease both;
}
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .btn:hover, .float-wa:hover { animation: none; transform: none; }
}
