/* ============================================================
   Hearts at Home — homepage styles
   ============================================================ */

:root {
  --cream: #faf7f4;
  --cream-soft: #f6f1ec;
  --card: #f7f3ef;
  --white: #ffffff;
  --red: #a51c24;
  --red-dark: #8c151d;
  --red-deep: #931920;
  --ink: #211d1c;
  --muted: #6f6763;
  --line: #e9e1da;
  --line-soft: #efe8e1;
  --shadow-soft: 0 10px 30px rgba(60, 30, 25, 0.08);
  --radius-lg: 28px;
  --radius-md: 16px;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; background-color: #faf7f4; }

/* In-page nav targets (index.php#services / index.php#about): offset the
   scroll position by the sticky header height (96px) plus breathing room so
   the section heading isn't hidden under the header when scrolled to. */
#services,
#about,
#sms { scroll-margin-top: 112px; }

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  /* Faint leaf flourish, top-right + lower-left */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23e8d9c8' stroke-width='3' opacity='0.5'%3E%3Cpath d='M60 400 C 140 300, 200 220, 340 60'/%3E%3Cpath d='M150 290 q -60 -8 -78 -68 q 66 -4 78 68Z'/%3E%3Cpath d='M205 225 q 62 -14 68 -80 q -70 8 -68 80Z'/%3E%3Cpath d='M265 155 q -58 -10 -70 -66 q 62 -2 70 66Z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23e8d9c8' stroke-width='3' opacity='0.5'%3E%3Cpath d='M360 20 C 280 140, 200 220, 70 370'/%3E%3Cpath d='M280 130 q 62 6 82 64 q -68 6 -82 -64Z'/%3E%3Cpath d='M215 205 q -64 12 -72 78 q 72 -6 72 -78Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right -80px top 340px, left -110px top 1150px;
}

img { max-width: 100%; display: block; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.container {
  width: min(1140px, calc(100% - 48px));
  margin-inline: auto;
}

/* ------------------------------------------------------------
   Type helpers
   ------------------------------------------------------------ */

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-title em,
.hero-title em {
  font-style: normal;
  color: var(--red);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background-color: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(165, 28, 36, 0.25);
}
.btn-solid:hover { background-color: var(--red-dark); }

.btn-outline {
  border: 1px solid var(--line);
  color: var(--ink);
  background-color: var(--white);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-white {
  background-color: var(--white);
  color: var(--red);
}
.btn-white:hover { background-color: #f6ebe9; }

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 247, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 0;
}

/* Plain logo, sized to fill the full 96px header bar (the bar originally
   measured 12px padding + 72px logo + 12px padding = 96px; now 0 + 96 + 0,
   so the header height is unchanged). */
.brand { display: inline-flex; flex: none; }

.brand-logo { height: 96px; width: auto; }

.main-nav {
  display: flex;
  gap: 34px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding-block: 8px;
  position: relative;
}
.nav-link:hover { color: var(--red); }

.nav-link.active { color: var(--red); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--red);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-header {
  padding: 10px 20px;
  background-color: transparent;
}
.btn-header .icon { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero { position: relative; padding-top: 42px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

.hero-lede {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42ch;
  margin-bottom: 30px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; padding: 12px 12px 40px 0; }

.hero-blob {
  border-radius: 46% 46% 42% 50% / 52% 52% 40% 44%;
  overflow: hidden;
  aspect-ratio: 0.92;
  box-shadow: var(--shadow-soft);
}

.hero-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-badge {
  position: absolute;
  left: -8px;
  bottom: -6px;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 12px 32px rgba(60, 30, 25, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  gap: 4px;
}

.badge-number {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}

.badge-label {
  font-size: 0.72rem;
  color: var(--ink);
  line-height: 1.35;
  font-weight: 500;
}

/* Feature row */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 26px;
}

.feature { display: flex; align-items: flex-start; gap: 16px; }

.feature-icon,
.check,
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid rgba(165, 28, 36, 0.35);
  border-radius: 50%;
  flex: none;
}
.feature-icon .icon { width: 22px; height: 22px; }

.feature-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 24ch;
}

/* ------------------------------------------------------------
   Section cards (services, testimonial)
   ------------------------------------------------------------ */

.section-card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  width: min(1240px, calc(100% - 32px));
  margin: 44px auto;
}

.services { padding: 64px 0 60px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 44px;
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 34px 26px 30px;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: #f7ecea;
  color: var(--red);
  margin-bottom: 18px;
}
.service-icon .icon { width: 27px; height: 27px; }

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 30ch;
  margin-inline: auto;
}

.section-cta { text-align: center; margin-top: 36px; }

/* ------------------------------------------------------------
   Why choose
   ------------------------------------------------------------ */

.why { padding: 40px 0 24px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 64px;
}

.why-media { position: relative; padding-bottom: 34px; }

.why-photo {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  object-position: 50% 35%;
  box-shadow: var(--shadow-soft);
}

.trust-card {
  position: absolute;
  left: -18px;
  bottom: 0;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(60, 30, 25, 0.14);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  max-width: 300px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: #f7ecea;
  flex: none;
}
.trust-icon .icon { width: 20px; height: 20px; }

.trust-text h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.trust-text p { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

.why-intro {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 16px;
}

.checklist {
  list-style: none;
  margin: 20px 0 18px;
  display: grid;
  gap: 13px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.check .icon { width: 21px; height: 21px; }

.why-closing {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------
   Testimonial
   ------------------------------------------------------------ */

.testimonial { padding: 30px 0; margin-top: 20px; }

.testimonial-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.quote-mark { color: var(--red); flex: none; }
.quote-mark .icon { width: 44px; height: 44px; }

.quote {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.65;
  max-width: 34ch;
  flex: 1 1 auto;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.quote-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-meta { display: flex; flex-direction: column; }
.quote-name { font-size: 0.9rem; font-weight: 700; }
.quote-role { font-size: 0.8rem; color: var(--muted); }

.quote-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  margin-left: auto;
}

.quote-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background-color: var(--white);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.quote-arrow:hover { border-color: var(--red); color: var(--red); }
.quote-arrow .icon { width: 18px; height: 18px; }

.quote-dots { display: flex; gap: 7px; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background-color: #d9cfc7;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}
.dot.active { background-color: var(--red); }

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */

.cta { padding: 26px 0 0; }

.cta-band {
  background: linear-gradient(135deg, #a51c24 0%, #7e1218 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.05fr 1.3fr;
  gap: 44px;
  align-items: center;
}

.cta-main { display: flex; gap: 22px; align-items: flex-start; }

.cta-icon {
  width: 66px;
  height: 66px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cta-icon .icon { width: 32px; height: 32px; }

.cta-copy h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.cta-copy p {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  max-width: 46ch;
}

.cta-info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  justify-content: end;
}

.cta-col .icon { width: 22px; height: 22px; margin-bottom: 10px; }

.cta-col h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cta-col p,
.cta-col a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cta-col a:hover { color: var(--white); text-decoration: underline; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer { padding: 34px 0 40px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy { font-size: 0.82rem; color: var(--muted); }

.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--red); }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { border-color: var(--red); color: var(--red); }
.footer-social .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1000px) {
  .main-nav { gap: 22px; }

  .hero-grid { gap: 32px; }

  .testimonial-inner { flex-wrap: wrap; }
  .quote { max-width: none; flex-basis: 100%; }
  .quote-controls { margin-left: 0; }

  .cta-band { grid-template-columns: 1fr; }
  .cta-info { justify-content: start; }
}

@media (max-width: 820px) {
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    transform: none;
    flex-direction: column;
    gap: 0;
    background-color: var(--cream);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { padding-block: 12px; }
  .nav-link.active::after { display: none; }

  .nav-toggle { display: inline-flex; }
  .btn-header span { display: none; }
  .btn-header { padding: 10px 13px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 480px; margin-inline: auto; padding-right: 0; }
  .hero-badge { left: 0; }

  .features { grid-template-columns: 1fr; gap: 22px; }
  .feature-text p { max-width: none; }

  .services { padding: 48px 0 44px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card p { max-width: none; }

  .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .trust-card { left: 0; }

  .cta-band { padding: 34px 26px; }
  .cta-main { flex-direction: column; }
  .cta-info { grid-template-columns: 1fr; gap: 22px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* ------------------------------------------------------------
   Subpage template (template.html — page-title + generic content)
   ------------------------------------------------------------ */

.page-title {
  padding: 46px 0 8px;
  text-align: center;
}

.page-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.page-heading em {
  font-style: normal;
  color: var(--red);
}

.page-intro {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
  margin: 14px auto 0;
}

.page-content { padding: 36px 0 10px; }

.page-content p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* 404 page: center the action button under the page-title text */
.not-found { padding-bottom: 48px; }

.not-found .container {
  display: flex;
  justify-content: center;
}

/* ------------------------------------------------------------
   Contact page
   ------------------------------------------------------------ */

.contact-page { padding-bottom: 40px; }

.contact-card {
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 30px 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(165, 28, 36, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions { margin-top: 16px; }

.contact-form .btn { border: none; }

/* ------------------------------------------------------------
   Contact sidebar
   Desktop: two columns — the form card plus a company-details
   card (email / phone / address / service area, license line).
   The sidebar stacks below the form on smaller screens.
   ------------------------------------------------------------ */

.contact-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1060px;
  margin-inline: auto;
}

/* Details card sits LEFT of the form on desktop; DOM keeps the form
   first so the stacked mobile order is form, then details. */
.contact-layout .contact-side { grid-column: 1; grid-row: 1; }
.contact-layout .contact-card { grid-column: 2; grid-row: 1; }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 24px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.side-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.side-item > .icon {
  width: 19px;
  height: 19px;
  color: var(--red);
  margin-top: 2px;
}

.side-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.side-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-text a,
.side-value {
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.side-text a:hover { color: var(--red); }

.side-address {
  font-size: 0.9rem;
  font-style: normal;
  color: var(--ink);
  line-height: 1.55;
}

/* Scoped under .contact-side so this outranks the generic
   `.page-content p` rule (0,2,0 vs 0,1,1). */
.contact-side .side-license {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout .contact-side,
  .contact-layout .contact-card { grid-column: auto; grid-row: auto; }
}

@media (max-width: 640px) {
  .contact-card { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Contact form feedback
   Success banner (after ?sent=1) and validation error line, shown
   above the form inside .contact-card.
   ------------------------------------------------------------ */

.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid;
  font-size: 0.88rem;
  line-height: 1.5;
}

.form-notice .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.form-notice-success {
  background-color: var(--cream-soft);
  border-color: rgba(165, 28, 36, 0.22);
  color: var(--red-deep);
}

.form-notice-error {
  background-color: #fdf1f1;
  border-color: rgba(165, 28, 36, 0.35);
  color: var(--red-dark);
}

/* ------------------------------------------------------------
   SMS consent checkbox
   Optional opt-in above the submit button: compact checkbox on
   the left, small muted disclosure text on the right.
   ------------------------------------------------------------ */

.sms-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
}

.sms-consent input[type="checkbox"] {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

.sms-consent span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.sms-consent a {
  color: var(--red);
  text-decoration: none;
}
.sms-consent a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Legal pages (privacy.php, terms.php)
   Reuses the subpage page-title block; .legal narrows the body copy
   to a comfortable reading width and sets h2 / paragraph / list rhythm.
   ------------------------------------------------------------ */
.legal-updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.legal-page { padding-bottom: 40px; }

.legal {
  max-width: 760px;
  margin-inline: auto;
}

.legal h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
}

.legal h2:first-child { margin-top: 0; }

.legal h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 22px 0 8px;
}

.legal p { margin-bottom: 12px; }

.legal ul {
  margin: 0 0 14px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal li { margin-bottom: 6px; }

.legal strong { color: var(--ink); font-weight: 600; }

.legal a {
  color: var(--red);
  text-decoration: none;
}
.legal a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   Sitemap page (pages/sitemap.php)
   Two compact link groups in cards, centered in the reading column.
   ------------------------------------------------------------ */
.sitemap-page { padding-bottom: 40px; }

.sitemap-grid {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sitemap-group {
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px 26px 24px;
}

.sitemap-group h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.sitemap-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sitemap-group li {
  font-size: 0.95rem;
  line-height: 1.4;
}

.sitemap-group a {
  color: var(--red);
  font-weight: 500;
  text-decoration: none;
}
.sitemap-group a:hover { text-decoration: underline; }

.sitemap-group span {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 4px;
}

@media (max-width: 640px) {
  .sitemap-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Services page (content-services.php — one-column service list)
   ------------------------------------------------------------ */

.services-page { padding-bottom: 48px; }

.services-list {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-row:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

/* Reuses .service-icon from the homepage cards; row layout needs no bottom gap */
.service-row .service-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.service-row-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-row-text p {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .service-row { gap: 16px; padding: 18px 18px; }
  .service-row .service-icon { width: 52px; height: 52px; }
  .service-row .service-icon .icon { width: 23px; height: 23px; }
}

/* ------------------------------------------------------------
   About page (content-about.php — centered column, value cards,
   stats strip reusing .features, closing line + CTA)
   ------------------------------------------------------------ */

.about-page { padding-bottom: 48px; }

.about-col {
  max-width: 800px;
  margin-inline: auto;
}

.about-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
}
.about-heading:first-child { margin-top: 0; }

.about-col > p { margin-bottom: 12px; }

.about-col .text-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-col .text-link:hover { color: var(--red-dark); }

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}

.value-cards .service-card { padding: 24px 20px 22px; }

/* Stats strip: tighter than the homepage feature row */
.about-stats {
  padding-top: 28px;
  padding-bottom: 8px;
}

.about-closing {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  text-align: center;
  font-size: 1.05rem;
  margin-top: 28px;
}

.about-cta {
  text-align: center;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .value-cards { grid-template-columns: 1fr; }
  .about-stats { gap: 22px; padding-top: 20px; }
}
