/* ========================================
   DRIVE REHABILITATION — Stylesheet
   ======================================== */

:root {
  --ink: #243D5B;
  --ink-soft: #2F4E70;
  --bone: #F5F0E6;
  --bone-light: #FBF8F2;
  --accent: #C5733E;
  --accent-dark: #A85C2C;
  --accent-soft: #E8C9A8;
  --text: #2A2A28;
  --text-muted: #6B6B65;
  --line: #D8D0C1;
  --success: #2D7D4F;
  --error: #B33A3A;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(15, 39, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 39, 36, 0.10);
  --shadow-lg: 0 24px 48px rgba(15, 39, 36, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  display: inline-block;
}
.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 60ch;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }
@media (max-width: 768px) { .section { padding: 4rem 0; } }

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.35s var(--ease);
  background: transparent;
}
.nav.scrolled {
  background: rgba(245, 240, 230, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
}
.nav.interior { background: rgba(245, 240, 230, 0.92); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.75; color: var(--ink); }
.logo svg {
  height: 36px;
  width: auto;
  display: block;
  fill: currentColor;
}
@media (max-width: 480px) {
  .logo svg { height: 30px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--accent-dark); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  padding: 0.65rem 1.3rem;
  background: var(--ink);
  color: var(--bone) !important;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bone) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: all 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--bone);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.4rem; }
  .hamburger { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--accent); color: var(--bone); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--bone); }
.btn-accent:hover { background: var(--accent-dark); color: var(--bone); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); }
.btn-arrow::after { content: '→'; transition: transform 0.25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* Hero */
.hero { padding: 10rem 0 5rem; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 50%; height: 120%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: 0.5;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 8rem 0 3rem; }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--accent-dark); font-weight: 400; }
.hero-ctas { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta div strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  display: block;
  font-weight: 500;
}
.hero-meta div span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--ink) 0%, var(--ink-soft) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(197, 115, 62, 0.28), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(232, 201, 168, 0.12), transparent 50%);
}

/* Photo variant — real image fills the frame with a caption overlay */
.hero-visual.hero-photo { background: var(--ink); }
.hero-visual.hero-photo::before { display: none; }
.hero-visual.hero-photo picture,
.hero-visual.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3.5rem 2rem 1.75rem;
  background: linear-gradient(to top, rgba(36, 61, 91, 0.92) 0%, rgba(36, 61, 91, 0.4) 60%, rgba(36, 61, 91, 0) 100%);
  color: var(--bone);
  z-index: 2;
}
.hero-photo-caption::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 0.9rem;
}
.hero-photo-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.hero-photo-caption span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.82;
  margin-top: 0.3rem;
}
.hero-visual-content {
  position: absolute;
  inset: 0;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--bone);
}
.hero-visual h3 { color: var(--bone); font-size: 2rem; line-height: 1.2; max-width: 85%; }
.hero-visual .quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--accent);
  line-height: 0.5;
  opacity: 0.9;
}
.hero-visual .caption {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Trust strip */
.trust-strip { background: var(--ink); color: var(--bone); padding: 1.75rem 0; }
.trust-items {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.trust-item svg { flex-shrink: 0; color: var(--accent); }

/* Section header */
.section-header { max-width: 720px; margin: 0 auto 4rem; text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }
.section-header h2 { margin-bottom: 1.2rem; }
.section-header p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bone-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.card ul { list-style: none; margin-top: 1rem; padding: 0; }
.card ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
}
.card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 600;
}

/* Steps */
.steps-section { background: var(--ink); color: var(--bone); }
.steps-section h2 { color: var(--bone); }
.steps-section .section-header p { color: rgba(245, 240, 230, 0.75); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step { position: relative; padding-top: 1rem; }
.step-num {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1rem;
  font-weight: 400;
}
.step h3 { color: var(--bone); margin-bottom: 0.8rem; font-size: 1.5rem; }
.step p { color: rgba(245, 240, 230, 0.8); font-size: 0.98rem; }

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.audience-item {
  background: var(--bone-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.25s var(--ease);
}
.audience-item:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.audience-item:hover h4 { color: var(--bone); }
.audience-item:hover p { color: rgba(245, 240, 230, 0.8); }
.audience-item h4 { margin-bottom: 0.5rem; color: var(--ink); transition: color 0.25s; }
.audience-item p { font-size: 0.92rem; color: var(--text-muted); transition: color 0.25s; }

/* Testimonials */
.testimonial-section { background: var(--bone-light); }
.testimonial { max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}
.testimonial blockquote::before { content: '\201C'; color: var(--accent); font-size: 1.2em; }
.testimonial blockquote::after { content: '\201D'; color: var(--accent); font-size: 1.2em; }
.testimonial cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}
.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
}
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bone-light);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item.open .faq-toggle {
  background: var(--accent);
  color: var(--bone);
  border-color: var(--accent);
  transform: rotate(45deg);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.3s var(--ease); }
.faq-item.open .faq-answer { max-height: 600px; padding-top: 1rem; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; }

/* Service areas */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
@media (max-width: 768px) { .areas-grid { grid-template-columns: 1fr; } }
.area-block h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.area-towns { columns: 2; column-gap: 1.5rem; list-style: none; }
.area-towns li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text);
  break-inside: avoid;
}
.area-towns li::before {
  content: '•';
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* Final CTA */
.cta-section {
  background: var(--ink);
  color: var(--bone);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(197, 115, 62, 0.2), transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--bone); max-width: 18ch; margin: 0 auto 1.5rem; }
.cta-section p { color: rgba(245, 240, 230, 0.8); font-size: 1.15rem; max-width: 500px; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--ink-soft); color: rgba(245, 240, 230, 0.75); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.footer h4 {
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer a { color: rgba(245, 240, 230, 0.75); font-size: 0.95rem; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-brand .logo { color: var(--bone); margin-bottom: 1.5rem; display: inline-flex; }
.footer-brand .logo svg { height: 32px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info h3 { margin-bottom: 1.5rem; }
.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-child { border-bottom: none; }
.info-item-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-item div span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.info-item div a { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.info-item div a:hover { color: var(--accent-dark); }

.contact-form {
  background: var(--bone-light);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bone);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197, 115, 62, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: var(--error); font-size: 0.85rem; margin-top: 0.4rem; display: none; }
.form-field.error input,
.form-field.error textarea { border-color: var(--error); }
.form-field.error .form-error { display: block; }
.form-success {
  background: var(--success);
  color: var(--bone);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: none;
  font-weight: 500;
}
.form-success.show { display: block; }

/* About */
.bio-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .bio-grid { grid-template-columns: 1fr; } }
.bio-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink), var(--ink-soft));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bio-portrait img,
.bio-portrait picture,
.bio-portrait picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio-portrait.with-photo::before,
.bio-portrait.with-photo::after { display: none; }
.bio-portrait::before {
  content: 'AS';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  opacity: 0.55;
}
.bio-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(232, 201, 168, 0.15), transparent 60%);
}
.credentials-list { list-style: none; margin: 2rem 0; padding: 0; }
.credentials-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.credentials-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }
.credentials-list li:last-child { border-bottom: none; }
.credentials-list strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

/* Page hero */
.page-hero { padding: 9rem 0 4rem; background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(197, 115, 62, 0.25), transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--bone); max-width: 16ch; }
.page-hero .lead { color: rgba(245, 240, 230, 0.8); margin-top: 1.5rem; }
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(245, 240, 230, 0.65);
  margin-bottom: 1.5rem;
  list-style: none;
}
.breadcrumbs a { color: rgba(245, 240, 230, 0.75); }
.breadcrumbs a:hover { color: var(--accent); }

/* Service detail */
.service-detail {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-detail:last-child { border-bottom: none; }
@media (max-width: 768px) { .service-detail { grid-template-columns: 1fr; gap: 1.5rem; } }
.service-detail h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.service-detail .service-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
  display: block;
}
.service-detail ul { list-style: none; margin-top: 1rem; }
.service-detail ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.service-detail ul li:last-child { border-bottom: none; }
.service-detail ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 600;
}

/* Floating CTA */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  background: var(--accent);
  color: var(--bone);
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 768px) { .floating-cta { display: inline-flex; } }

/* Video section — responsive YouTube embeds */
.video-section { background: var(--bone-light); }
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--ink);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-style: italic;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* ============================================================
   NEIGHBORHOOD INDEX GRID (service-areas.html)
   ============================================================ */
.borough-section { margin-bottom: 4rem; }
.borough-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.neighborhood-card {
  background: var(--bone-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}
.neighborhood-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.neighborhood-card:hover {
  border-color: var(--accent-soft);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.neighborhood-card:hover::before { transform: scaleY(1); }
.neighborhood-card strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
}
.neighborhood-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
  display: block;
}
.neighborhood-card .arrow {
  font-size: 1.2rem;
  color: var(--accent-dark);
  opacity: 0.5;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  flex-shrink: 0;
}
.neighborhood-card:hover .arrow { opacity: 1; transform: translateX(3px); }

/* ============================================================
   BLOG — index grid + article typography
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--bone-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.blog-card a {
  display: block;
  padding: 2rem;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}
.blog-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.blog-card-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.blog-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.blog-card-arrow {
  color: var(--accent-dark);
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.blog-card:hover .blog-card-arrow { transform: translateX(4px); }

/* Blog article — long-form reading typography */
.blog-article h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.blog-article h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.blog-article p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.blog-article ul, .blog-article ol {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin: 1rem 0 1.5rem 1.5rem;
}
.blog-article ul li, .blog-article ol li {
  margin-bottom: 0.6rem;
}
.blog-article ul li::marker { color: var(--accent-dark); }
.blog-article ol li::marker { color: var(--accent-dark); font-weight: 700; }
.blog-article strong { color: var(--ink); font-weight: 600; }
.blog-article em { font-style: italic; }
.blog-article p a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.blog-article p a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
