/* =========================================================
   Connected Home Health Care — Design System
   Aesthetic: Warm, modern, premium home care
   Palette: Royal purple + cream + soft lavender
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Color palette — deep purple + cream + soft lavender */
  --ink: #1F1424;
  --ink-soft: #3A2A45;
  --brand: #4A1D5C;
  --brand-deep: #341340;
  --brand-soft: #ECE2F2;
  --accent: #8B5FA3;
  --accent-soft: #F1E8F5;
  --cream: #FAF7F4;
  --cream-deep: #EFEBE3;
  --white: #FFFFFF;
  --muted: #6F6677;
  --muted-soft: #B8AEC0;
  --border: #E5DDE5;
  --border-strong: #C8BACB;

  --placeholder-bg: #FFF3B0;
  --placeholder-text: #6B5A00;
  --placeholder-border: #E8C547;

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

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --max-width: 1240px;
  --shadow-sm: 0 1px 2px rgba(31, 20, 36, 0.04), 0 1px 3px rgba(31, 20, 36, 0.06);
  --shadow: 0 4px 12px rgba(31, 20, 36, 0.06), 0 2px 4px rgba(31, 20, 36, 0.04);
  --shadow-lg: 0 12px 32px rgba(31, 20, 36, 0.08), 0 4px 8px rgba(31, 20, 36, 0.04);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; font-family: var(--font-body); letter-spacing: -0.01em; }

p { margin-bottom: var(--space-4); }
p.lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); }

.italic-emphasis { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-5); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--space-5); }

section { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-7) 0; }

.bg-cream { background: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-brand-soft { background: var(--brand-soft); }
.bg-brand { background: var(--brand); color: var(--cream); }
.bg-brand h1, .bg-brand h2, .bg-brand h3 { color: var(--white); }



.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: -0.01em;
}

.logo-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark img { height: 72px; width: auto; display: block; }
.logo:hover { color: var(--brand); }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; align-items: center; gap: var(--space-5); }

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--brand); }
.nav-link.active { color: var(--brand); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--brand);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.nav-cta:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-2); color: var(--ink); }

@media (max-width: 1000px) {
  .nav-list { display: none; }
  .nav-toggle { display: flex; align-items: center; gap: var(--space-2); }
  .nav-cta { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
  .logo-mark img { height: 56px; }
  .logo { font-size: 1.05rem; }

  .nav-list.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-list.is-open .nav-link { padding: var(--space-3); border-bottom: 1px solid var(--border); }
  .nav-list.is-open .nav-link:last-child { border-bottom: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-secondary { background: var(--white); color: var(--brand); border: 1.5px solid var(--brand); }
.btn-secondary:hover { background: var(--brand-soft); border-color: var(--brand-deep); }

.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #74508A; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-lg { padding: 1.05rem 1.85rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-10);
  background: var(--cream);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  position: relative;
}

.hero-content > * + * { margin-top: var(--space-5); }
.hero-content .eyebrow { margin-bottom: var(--space-3); }
.hero-content h1 { margin-top: 0; }
.hero-content p.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 50ch; }

.hero-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-lg);
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  color: var(--brand-deep);
}

.hero-image-placeholder .icon { width: 80px; height: 80px; margin-bottom: var(--space-4); opacity: 0.7; }
.hero-image-placeholder .label { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: var(--space-2); }
.hero-image-placeholder .description { font-size: 0.9rem; color: var(--ink-soft); max-width: 30ch; }

@media (max-width: 900px) {
  .hero { padding: var(--space-7) 0 var(--space-8); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-image { max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 3; }
}

.trust-strip { background: var(--brand); color: var(--cream); padding: var(--space-4) 0; }
.trust-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.trust-strip-phone { display: flex; align-items: center; gap: var(--space-3); font-size: 1.1rem; font-weight: 600; color: var(--white); }
.trust-strip-phone .label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); font-weight: 500; }
.trust-strip-meta { display: flex; gap: var(--space-6); font-size: 0.9rem; color: var(--cream); opacity: 0.9; flex-wrap: wrap; }
.trust-strip-meta span { display: flex; align-items: center; gap: var(--space-2); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.service-card:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-card-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: all var(--transition);
}

.service-card:hover .service-card-icon { background: var(--brand); color: var(--white); }
.service-card h3 { margin-bottom: var(--space-3); color: var(--ink); }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: var(--space-4); flex-grow: 1; }
.service-card-link { color: var(--brand); font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-2); transition: gap var(--transition); }
.service-card:hover .service-card-link { gap: var(--space-3); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.section-header .eyebrow { margin-bottom: var(--space-3); }
.section-header h2 { margin-bottom: var(--space-3); }
.section-header p { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.6; }
.section-header.left { text-align: left; margin-left: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.feature { text-align: left; }
.feature-icon { width: 48px; height: 48px; color: var(--accent); margin-bottom: var(--space-3); }
.feature h3 { margin-bottom: var(--space-2); font-size: 1.2rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-5); counter-reset: step; }

.step {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-3);
  line-height: 1;
  font-style: italic;
}

.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--ink-soft); margin-bottom: 0; }

.testimonial-block {
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}

.testimonial-block::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: var(--space-4);
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--space-5);
  position: relative;
}

.testimonial-attribution { font-size: 0.95rem; color: var(--ink-soft); }
.testimonial-attribution strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 0.1rem; }

.cta-section {
  background: var(--brand);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  margin: var(--space-7) 0;
}

.cta-section h2 { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: var(--space-3); }
.cta-section p { color: var(--cream); font-size: 1.125rem; opacity: 0.9; max-width: 560px; margin: 0 auto var(--space-6); }
.cta-section .btn-row { justify-content: center; }
.cta-section .btn-primary { background: var(--white); color: var(--brand-deep); }
.cta-section .btn-primary:hover { background: var(--cream); }
.cta-section .btn-secondary { background: transparent; color: var(--white); border-color: var(--cream); }
.cta-section .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.footer { background: var(--ink); color: var(--cream); padding: var(--space-8) 0 var(--space-5); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-7); margin-bottom: var(--space-7); }

.footer-brand .logo { color: var(--cream); margin-bottom: var(--space-4); }
.footer-brand .logo-mark { background: var(--white); border-radius: var(--radius-sm); padding: 0.4rem; display: inline-flex; }
.footer-brand .logo-mark img { height: 64px; }
.footer-brand p { color: var(--muted-soft); font-size: 0.9rem; line-height: 1.6; max-width: 32ch; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: var(--space-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-links a { color: var(--cream); opacity: 0.85; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent-soft); }

.footer-contact { color: var(--cream); opacity: 0.85; line-height: 1.7; }
.footer-contact a { color: var(--cream); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted-soft);
  font-size: 0.85rem;
}

.footer-bottom-links { display: flex; gap: var(--space-5); }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }

.form-field input, .form-field textarea, .form-field select {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  transition: all var(--transition);
  font-family: var(--font-body);
}

.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-field textarea { resize: vertical; min-height: 120px; }
.form-helper { font-size: 0.85rem; color: var(--muted); }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow);
}

.page-hero { background: var(--cream); padding: var(--space-8) 0 var(--space-7); text-align: center; }
.page-hero .eyebrow { margin-bottom: var(--space-3); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: var(--space-4);
  font-variation-settings: "opsz" 144;
}

.page-hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split.image-right { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } }

.split-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--cream-deep) 100%);
  position: relative;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
  color: var(--brand-deep);
}

.image-placeholder .icon { opacity: 0.6; margin-bottom: var(--space-3); }
.image-placeholder .label { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: var(--space-2); }
.image-placeholder .description { font-size: 0.85rem; color: var(--ink-soft); max-width: 28ch; }

.faq-list { display: flex; flex-direction: column; gap: var(--space-2); max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item[open] { border-color: var(--brand); box-shadow: var(--shadow); }

.faq-question {
  padding: var(--space-5);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  color: var(--ink);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 var(--space-5) var(--space-5); color: var(--ink-soft); }
.faq-answer p { margin-bottom: var(--space-3); }
.faq-answer p:last-child { margin-bottom: 0; }

.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); }

.area-pill {
  background: var(--white);
  border: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.area-pill:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.area-pill .icon { color: var(--accent); opacity: 0.7; flex-shrink: 0; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-5);
  margin-top: var(--space-5);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-badge .icon { color: var(--brand); flex-shrink: 0; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * { animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }

.hero-image { animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards; }

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


/* =========================================================
   Photos — make images fill their containers
   ========================================================= */
.hero-image img,
.split-image img,
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image,
.split-image {
  /* When an <img> is inside, don't show the placeholder gradient */
}
.hero-image:has(img),
.split-image:has(img) {
  background: var(--cream-deep);
}

/* Photo caption styling for the secondary about-page photo */
.photo-caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: var(--space-3);
  line-height: 1.4;
}


/* =========================================================
   Nav dropdowns (Services + Areas Served)
   ========================================================= */
.nav-item-dropdown {
  position: relative;
}

.nav-link-with-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-chevron {
  transition: transform var(--transition);
  opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 200;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.dropdown-link-overview {
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
  padding-bottom: 0.8rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.dropdown-link-overview:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

/* Small bridge to prevent dropdown from closing as cursor moves down */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* Mobile: dropdowns collapse into inline expandable items */
@media (max-width: 1000px) {
  .nav-item-dropdown { position: static; }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--cream);
    padding: var(--space-2) var(--space-4) var(--space-3);
    margin: 0 0 var(--space-2);
    border-radius: var(--radius-sm);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    display: none;
  }

  .nav-item-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .dropdown-chevron {
    margin-left: auto;
  }

  .nav-list.is-open .nav-link-with-dropdown {
    justify-content: space-between;
    width: 100%;
  }

  .dropdown-link {
    padding: 0.6rem 0.8rem;
    border-bottom: none;
  }

  .dropdown-link-overview {
    border-bottom: 1px solid var(--border);
  }
}
