/* ============================================
   TABORA — SERVICE PAGE STYLES
   Page-specific styles for /services/<slug>/.
   Loads after main.css. Uses the same design tokens.
   ============================================ */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  background: var(--cream);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 65%; height: 100%;
  background-image: url('/hero-bg.webp');
  background-size: cover;
  background-position: center left;
  opacity: 0.18;
  mask-image: linear-gradient(270deg, black 0%, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, black 0%, black 30%, transparent 100%);
  pointer-events: none;
}
.page-hero .shell { position: relative; z-index: 1; }
.page-hero .crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--mute); text-decoration: none; letter-spacing: 0.04em;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}
.page-hero .crumb:hover { color: var(--terracotta-deep); }
.page-hero .crumb svg { transform: rotate(180deg); flex: 0 0 auto; }
.page-hero h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  margin-bottom: 22px;
  max-width: 18ch;
  line-height: 1.0;
}
.page-hero h1 em { color: var(--terracotta-deep); }
.page-hero .lede { max-width: 50ch; }


/* ---------- Overview (rich prose) ---------- */
.overview {
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 70px);
  background: var(--cream);
}
.overview-inner { max-width: 720px; }
.overview-inner h2 {
  margin: 14px 0 28px;
  max-width: 18ch;
}
.overview-inner h2 em { color: var(--terracotta-deep); }
.overview-inner p {
  font-size: 17px; line-height: 1.65; color: var(--text-soft);
  margin-bottom: 20px; max-width: 64ch;
}
.overview-inner p strong { color: var(--ink); font-weight: 600; }
.overview-inner p:last-child { margin-bottom: 0; }


/* ---------- Scope (4-col card grid) ---------- */
.scope {
  background: var(--cream-deep);
  padding: clamp(56px, 8vw, 110px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.scope-head { margin-bottom: 56px; max-width: 60ch; }
.scope-head h2 { margin: 12px 0 16px; max-width: 18ch; }
.scope-head h2 em { color: var(--terracotta-deep); }
.scope-intro { font-size: 16px; color: var(--text-soft); line-height: 1.55; max-width: 50ch; }
.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
.scope-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px 22px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.scope-card::before {
  content: "";
  position: absolute; top: 0; left: 22px; right: 22px;
  height: 2px; background: var(--terracotta);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0.4); transform-origin: left;
  transition: transform 0.3s ease;
}
.scope-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px -20px rgba(31,57,73,0.25);
}
.scope-card:hover::before { transform: scaleX(1); }
.scope-card h3 {
  font-size: 17px; font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.scope-card p {
  font-size: 14px; line-height: 1.55; color: var(--text-soft);
  margin: 0; max-width: none;
}
.scope-card p a {
  color: var(--terracotta-deep);
  text-decoration: underline;
  text-decoration-color: rgba(184,85,31,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}
.scope-card p a:hover { text-decoration-color: var(--terracotta); }


/* ---------- Process (numbered steps) ---------- */
.process {
  background: var(--cream);
  padding: clamp(56px, 8vw, 110px) 0;
}
.process-head { margin-bottom: 56px; max-width: 60ch; }
.process-head h2 { margin: 12px 0 0; max-width: 20ch; }
.process-head h2 em { color: var(--terracotta-deep); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 72px);
}
.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.process-num {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 56px);
  font-variation-settings: "opsz" 60;
  font-weight: 400;
  color: var(--terracotta-deep);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-style: italic;
  flex: 0 0 auto;
  width: clamp(48px, 5vw, 64px);
}
.process-body h3 {
  font-size: 19px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
}
.process-body p {
  font-size: 15px; line-height: 1.6; color: var(--text-soft);
  margin: 0; max-width: 50ch;
}


/* ---------- Why us (4-col) ---------- */
.why {
  background: var(--cream-deep);
  padding: clamp(56px, 8vw, 110px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.why-head { margin-bottom: 56px; max-width: 60ch; }
.why-head h2 { margin: 12px 0 0; max-width: 18ch; }
.why-head h2 em { color: var(--terracotta-deep); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.why-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 24px;
  position: relative;
}
.why-num {
  font-family: ui-monospace, monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.why-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.why-card h3 em { font-style: italic; color: var(--terracotta-deep); }
.why-card p {
  font-size: 14px; line-height: 1.55; color: var(--text-soft);
  margin: 0; max-width: none;
}


/* ---------- Local (Florida-specific prose) ---------- */
.local {
  padding: clamp(56px, 8vw, 110px) 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.local::before {
  content: "";
  position: absolute; top: 0; left: -10%;
  width: 60%; height: 100%;
  background-image: url('/hero-bg.webp');
  background-size: cover;
  background-position: center right;
  opacity: 0.10;
  mask-image: linear-gradient(90deg, black 0%, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 30%, transparent 100%);
  pointer-events: none;
}
.local .shell { position: relative; z-index: 1; }
.local-inner {
  max-width: 680px;
  margin-left: auto;
}
.local-inner h2 {
  margin: 14px 0 28px;
  max-width: 22ch;
}
.local-inner h2 em { color: var(--terracotta-deep); }
.local-inner p {
  font-size: 17px; line-height: 1.65; color: var(--text-soft);
  margin-bottom: 18px; max-width: 60ch;
}
.local-inner p strong { color: var(--ink); font-weight: 600; }
.local-inner p:last-child { margin-bottom: 0; }


/* ---------- FAQ (details/summary accordion) ---------- */
.faq {
  background: var(--cream-deep);
  padding: clamp(56px, 8vw, 110px) 0;
  border-top: 1px solid var(--rule);
}
.faq-head { margin-bottom: 48px; max-width: 60ch; }
.faq-head h2 { margin: 12px 0 0; }
.faq-list {
  max-width: 780px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  transition: background 0.18s ease;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--cream); }
.faq-q {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.faq-toggle {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 0.25s ease;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--terracotta);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.faq-toggle::before { width: 14px; height: 2px; }
.faq-toggle::after { width: 2px; height: 14px; }
.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}
.faq-a {
  padding: 0 28px 24px 28px;
  border-top: 1px solid var(--rule);
}
.faq-a p {
  font-size: 15px; line-height: 1.65;
  color: var(--text-soft);
  margin: 16px 0 0;
  max-width: 60ch;
}
.faq-a p strong { color: var(--ink); font-weight: 600; }


/* ---------- Other services (cross-link cards) ---------- */
.other-services {
  background: var(--cream);
  padding: clamp(56px, 8vw, 110px) 0;
}
.other-services .section-num { margin-bottom: 12px; }
.other-services > .shell > h2 {
  margin-bottom: 40px;
  max-width: 18ch;
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.other-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 26px 64px;
  text-decoration: none;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.other-card::before {
  content: "";
  position: absolute; top: 0; left: 26px; right: 26px;
  height: 3px; background: var(--terracotta);
  border-radius: 6px 6px 0 0;
  transform: scaleX(0.3); transform-origin: left;
  transition: transform 0.3s ease;
}
.other-card:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
  box-shadow: 0 24px 40px -22px rgba(31,57,73,0.3);
}
.other-card:hover::before { transform: scaleX(1); }
.other-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.other-card p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--text-soft);
  margin: 0; max-width: none;
}
.other-card-arrow {
  position: absolute;
  bottom: 24px; right: 26px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--terracotta-deep);
  transition: background 0.2s ease, transform 0.25s ease, color 0.2s ease;
}
.other-card:hover .other-card-arrow {
  background: var(--terracotta);
  color: var(--paper);
  transform: translateX(4px);
}


/* ---------- Service CTA (dark final panel) ---------- */
.service-cta {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(72px, 10vw, 130px) 0;
  overflow: hidden;
}
.service-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('/hero-bg.webp');
  background-size: cover; background-position: center;
  opacity: 0.12;
  pointer-events: none;
}
.service-cta .shell { position: relative; z-index: 1; text-align: center; }
.service-cta .eyebrow { color: var(--terracotta); }
.service-cta .eyebrow::before { background: var(--terracotta); }
.service-cta h2 {
  color: var(--cream);
  font-size: clamp(36px, 5.4vw, 64px);
  margin: 14px auto 22px;
  max-width: 22ch;
}
.service-cta h2 em { color: var(--terracotta); }
.service-cta p {
  color: rgba(250,246,236,0.78);
  font-size: 17px; line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto 36px;
}
.service-cta-row {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid   { grid-template-columns: repeat(2, 1fr); }
  .other-grid { grid-template-columns: 1fr; max-width: 600px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .scope-grid   { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-num  { font-size: 42px; width: 44px; }
  .local-inner  { margin-left: 0; }

  .faq-item summary { padding: 18px 22px; gap: 14px; }
  .faq-q            { font-size: 15px; }
  .faq-a            { padding: 0 22px 20px; }

  .other-card        { padding: 24px 22px 60px; }
  .other-card-arrow  { bottom: 22px; right: 22px; }
}
