/* Site stylesheet for index.html, consent.html and legal/privacy-policy.html.
   Design source: ccphc-media/ccphc-mockup.html (approved). */

:root {
  --green: #173D37;
  --green-dark: #0F2925;
  --green-line: #2E5A52;
  --cream: #F8F6F0;
  --sage: #E4E9DE;
  --sand: #F5EEE0;
  --ink: #25332F;
  --muted: #4F625C;
  --mist: #CFE0D8;
  --white: #FFFFFF;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

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

html { background: var(--cream); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; }
p, ul, ol, figure, blockquote { margin: 0; }
img { max-width: 100%; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section { padding: 96px 24px; }
.section--sage { background: var(--sage); }
.section--sand { background: var(--sand); }

.section-head {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}
.section-head--center {
  max-width: none;
  text-align: center;
  align-items: center;
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.15;
  color: var(--green);
}
.section-intro { color: var(--muted); max-width: 620px; }

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--green-dark); color: var(--white); }
.btn--light { background: var(--sand); color: var(--green); font-weight: 700; padding: 16px 28px; }
.btn--light:hover { background: var(--white); color: var(--green); }
.btn--outline { background: transparent; border: 1.5px solid var(--sage); color: var(--white); padding: 15px 26px; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn--large { font-weight: 700; font-size: 18px; padding: 18px 34px; }

/* NAV */
.nav {
  background: var(--cream);
  border-bottom: 1px solid var(--sage);
  padding: 18px 24px;
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
}
.wordmark-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav-links a:not(.btn):hover { color: var(--green); text-decoration: underline; }
.nav-cta { padding: 11px 20px; font-size: 15px; }

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background: #2C5A52;
  color: var(--white);
  padding: 120px 24px 140px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 61, 55, 0.55), rgba(23, 61, 55, 0.85));
}
.hero-inner { position: relative; }
.hero-text {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--mist);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--sand);
}
.hero-lede { font-size: 18px; color: var(--sage); max-width: 620px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.hero-number { font-size: 17px; color: var(--white); }
.hero-number a { display: inline-block; padding: 8px 0; color: var(--white); font-weight: 700; }
.hero-number a:hover { color: var(--sand); }
.hero a:focus-visible { outline-color: var(--sand); }
.hero-trust { margin-top: -6px; font-size: 15px; color: var(--mist); }

/* WHY CHOOSE US */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why-card h3 { font-size: 19px; color: var(--green); }
.why-card p { color: var(--muted); }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #C9D5C9;
}
.service-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}
.section .service-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  color: var(--green);
}
.service-body p { color: var(--muted); }
.section .service-body .service-price { font-weight: 700; color: var(--green); }
.service-body .btn { align-self: flex-start; margin-top: auto; }

/* WHAT'S INCLUDED */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.split-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.split-media {
  flex: 1 1 380px;
  min-width: 0;
}
.split-media img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--sand);
}
.check-list {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px 24px;
}
.check-list li { display: flex; gap: 10px; }
.check-list li::before { content: "\2713"; color: var(--green); font-weight: 700; }
.small-note { font-size: 15px; color: var(--muted); }

/* PRICING */
.pricing-inner { max-width: 900px; margin: 0 auto; }
.pricing-inner .section-head { margin-bottom: 32px; }
.price-table {
  background: var(--white);
  border-radius: 20px;
  padding: 8px 32px;
  margin-bottom: 32px;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--sage);
}
.price-row:last-child { border-bottom: 0; }
.price-name { font-weight: 600; }
.price-amount { font-family: var(--serif); font-size: 24px; color: var(--green); }
.price-quote { color: var(--muted); }
.pricing-inner .small-note { text-align: center; }

/* MEET YOUR SITTERS */
.split--about { gap: 56px; }
.sitters-photo {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 480px;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--sage);
  border-radius: 20px;
}
.split--about .split-text { flex: 1 1 440px; gap: 18px; }
.split--about .split-text > p:not(.section-label) { color: var(--muted); }
.callout {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.callout h3 { font-size: 18px; color: var(--green); }
.callout p { font-size: 15px; color: var(--muted); }

/* REVIEWS (section is commented out in index.html until real reviews exist) */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}
.review {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.review blockquote { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--ink); }
.review figcaption { font-size: 15px; font-weight: 600; color: var(--muted); }

/* HOW WE PROTECT */
.protect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}
.protect-item {
  border-top: 2px solid var(--green);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.protect-item h3 { font-size: 18px; color: var(--green); }
.protect-item p { color: var(--muted); }

/* SERVICE AREAS */
.section--green { background: var(--green); color: var(--white); }
.section--green .section-label { color: var(--mist); }
.section--green h2 { color: var(--white); }
.section--green .section-intro { color: var(--sage); max-width: none; }
.areas-head { max-width: 760px; margin-bottom: 36px; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 28px;
}
.area-group h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: 0.06em; color: var(--sand); }
.area-group ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* HOW IT WORKS */
.steps {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
}
.step {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-number { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--green); }
.step h3 { font-size: 20px; color: var(--green); }
.step p { color: var(--muted); }

/* FAQ */
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-inner .section-head { margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--white);
  border-radius: 14px;
}
.faq-list summary {
  padding: 20px 24px;
  border-radius: 14px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--green);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  color: var(--muted);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin-top: -10px; padding: 0 24px 20px; color: var(--muted); }

/* FINAL CTA */
.cta-final { padding: 104px 24px; background: var(--sand); }
.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.cta-final h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.12;
  color: var(--green);
}
.cta-lede { font-size: 18px; color: var(--muted); }
.cta-final .btn { margin-top: 6px; }
.cta-number { font-family: var(--serif); font-size: 28px; }
.cta-number a { display: inline-block; padding: 6px 8px; color: var(--green); text-decoration: none; }
.cta-number a:hover { text-decoration: underline; }
.cta-final .small-note { color: var(--muted); }

/* FOOTER */
.footer {
  background: var(--green);
  color: var(--sage);
  padding: 48px 24px;
  font-size: 15px;
}
.footer a { color: var(--sage); }
.footer a:hover { color: var(--white); }
.footer a:focus-visible { outline-color: var(--sand); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-name { font-family: var(--serif); font-size: 20px; color: var(--white); }
.footer a { display: inline-block; padding: 7px 0; }
.footer-col { gap: 2px; }
.footer-powered {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--green-line);
  font-size: 13px;
  color: #A9C2BA;
  text-align: center;
}
.footer .footer-powered a { color: #A9C2BA; }
.footer .footer-powered a:hover { color: var(--white); }

/* LEGAL PAGES (consent.html, legal/privacy-policy.html) */
.legal-page .container { max-width: 860px; }
.legal-page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--green);
  margin-bottom: 1.5rem;
}
.section.legal-page h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin: 2rem 0 0.75rem;
}
.legal-page p,
.legal-page ul { margin: 0 0 1rem; line-height: 1.7; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page a { text-decoration: underline; }

/* PHONES */
@media (max-width: 700px) {
  .nav { padding: 14px 16px; }
  .nav-inner { gap: 10px 16px; }
  .nav-links { gap: 2px 16px; font-size: 15px; }
  .section { padding: 64px 16px; }
  .section h2 { font-size: 32px; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 72px 16px 88px; }
  .hero-text { gap: 18px; }
  .hero-tagline { font-size: 21px; }
  .hero-lede { font-size: 17px; }
  .service-body { padding: 24px; }
  .section .service-body h3 { font-size: 26px; }
  .split, .split--about { gap: 32px; }
  .split-media img { height: 300px; }
  .price-table { padding: 4px 20px; }
  .review { padding: 28px; }
  .cta-final { padding: 72px 16px; }
  .cta-final h2 { font-size: 34px; }
  .footer { padding: 40px 16px; }
}
