/* Gentle Hands Companionship — stylesheet */

:root {
  --paper: #FCF8F7;
  --blush: #F4E3E5;
  --rose: #C98C9A;
  --plum: #6B4566;
  --plum-deep: #4B2F46;
  --ink: #3A2E38;
  --muted: #6D5E6A;
  --sage: #8AA389;
  --sage-soft: #E6EDE3;
  --line: #E7D6D9;

  --font-display: "Gilda Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}

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

html {
  font-size: 112.5%; /* 18px base: easier reading for older visitors */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--plum-deep);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; max-width: 38em; }

a { color: var(--plum); text-underline-offset: 0.2em; }
a:hover { color: var(--plum-deep); }

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--plum);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Blossom mark */
.blossom, .brand-mark { display: inline-block; }
.blossom, .brand-mark { --petal: var(--rose); --heart: var(--plum); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--plum);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--plum); }
.btn-quiet:hover { background: var(--blush); color: var(--plum-deep); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1.2rem; font-size: 0.95rem; }
.btn-light { background: #fff; border-color: #fff; color: var(--plum-deep); }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--plum-deep); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 248, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--plum-deep);
}
.brand-mark { width: 2.4rem; height: 2.4rem; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand-name small {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.3rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
}
.site-nav ul a:hover { background: var(--blush); color: var(--plum-deep); }
.site-nav ul a[aria-current="page"] { color: var(--plum); background: var(--blush); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: 600 0.95rem var(--font-body);
  color: var(--plum-deep);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(75, 47, 70, 0.35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 0.8rem 1rem; font-size: 1.1rem; }
  .site-nav .btn { align-self: flex-start; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-blush { background: var(--blush); }
.section-sage { background: var(--sage-soft); }

.lede { font-size: 1.2rem; color: var(--ink); }
.muted { color: var(--muted); }

.section-head { max-width: 40rem; margin-bottom: 2.75rem; }

/* Page heading (inner pages) */
.page-head {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.page-head .blossom-float {
  position: absolute;
  right: max(-4rem, calc(50% - 44rem));
  top: -3rem;
  width: clamp(12rem, 26vw, 20rem);
  height: clamp(12rem, 26vw, 20rem);
  opacity: 0.35;
  pointer-events: none;
}
.page-head h1 { max-width: 14em; }
.page-head p { font-size: 1.2rem; max-width: 34em; }

/* Home hero */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--plum);
  margin-bottom: 1rem;
}
.hero h1 { max-width: 13em; }

.hero-art { margin: 0; position: relative; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-art figcaption {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* The one orchestrated moment: petals open on load */
.bloom .petal {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  /* petals sit inside rotated <g> wrappers so this transform doesn't replace the rotation */
  animation: open 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.bloom g:nth-child(2) > .petal { animation-delay: .08s; }
.bloom g:nth-child(3) > .petal { animation-delay: .16s; }
.bloom g:nth-child(4) > .petal { animation-delay: .24s; }
.bloom g:nth-child(5) > .petal { animation-delay: .32s; }
.bloom .bloom-heart { animation: heart 0.8s .5s ease-out both; transform-box: fill-box; transform-origin: center; }
@keyframes open { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes heart { from { transform: scale(0); } to { transform: scale(1); } }

@media (max-width: 799px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 20rem; margin: 0 auto; order: -1; }
}

/* Blossom list (services preview, approach, etc.) */
.bloom-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem 2.5rem;
}
.bloom-list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.bloom-list .blossom { width: 1.05rem; height: 1.05rem; flex: none; transform: translateY(0.15rem); }
@media (min-width: 640px) { .bloom-list.two-col { grid-template-columns: 1fr 1fr; } }

/* Home: services preview */
.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.preview-grid .section-head { margin-bottom: 0; }
@media (max-width: 799px) { .preview-grid { grid-template-columns: 1fr; } }

/* Home: why families choose */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}
.reasons li {
  background: #fff;
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
  padding: 1.5rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--plum-deep);
}
.reasons .blossom { display: block; width: 1.4rem; height: 1.4rem; margin-bottom: 0.9rem; }
.reasons .blossom { --petal: var(--sage); }

/* Service area line */
.area {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-top: 2.5rem;
  color: var(--muted);
}
.area strong { color: var(--plum-deep); font-weight: 600; }

/* CTA band */
.cta-band {
  background: var(--plum-deep);
  color: #fff;
  border-radius: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; max-width: 16em; }
.cta-band p { color: #EBDCE6; font-size: 1.15rem; }
.cta-band .blossom {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 16rem;
  height: 16rem;
  opacity: 0.18;
}
.cta-band .blossom { --heart: #fff; }
.cta-band .actions { position: relative; }

/* Services page */
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 4rem);
}
.service {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.service h2 {
  font-size: 1.65rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.service h2 .blossom { width: 1.3rem; height: 1.3rem; flex: none; }
.service p { margin-bottom: 0.5rem; }
@media (max-width: 719px) { .service-list { grid-template-columns: 1fr; } }

.note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--sage-soft);
  border-radius: 1rem;
  max-width: 40rem;
}
.note p { margin: 0; }

/* Pricing page */
.rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.rate {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.rate:first-child { border-left: 0; }
.rate h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--plum);
  margin: 0 0 0.2rem;
}
.price-unit { color: var(--muted); margin-bottom: 1.1rem; }
.rate p:last-child { margin-bottom: 0; }
@media (max-width: 799px) {
  .rates { grid-template-columns: 1fr; }
  .rate { border-left: 0; border-top: 1px solid var(--line); }
  .rate:first-child { border-top: 0; }
}

.packages-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 799px) { .packages-grid { grid-template-columns: 1fr; } }

.package-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.1rem;
}
.package-table caption { text-align: left; }
.package-table th,
.package-table td {
  text-align: left;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.package-table thead th {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0;
}
.package-table td:last-child,
.package-table th:last-child { text-align: right; }
.package-table tbody th { font-weight: 500; }
.package-table td {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--plum);
}

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 799px) { .about-grid { grid-template-columns: 1fr; } }

.approach {
  background: #fff;
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
}
.approach h2 { font-size: 1.7rem; }
.approach .bloom-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.mission {
  margin: 0;
  text-align: center;
}
.mission .blossom { width: 2.6rem; height: 2.6rem; margin-bottom: 1.25rem; }
.mission h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.mission blockquote {
  margin: 0 auto;
  max-width: 24em;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  color: var(--plum-deep);
}
.mission blockquote p { max-width: none; margin: 0; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 859px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-details {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.contact-details li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-details li:first-child { padding-top: 0; }
.contact-details span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-details strong,
.contact-details a { font-size: 1.15rem; font-weight: 500; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  scroll-margin-top: 6rem;
}
.form-card h2 { font-size: 1.9rem; }

.field { margin-bottom: 1.35rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.25rem; }
.field-row > *, .field input { min-width: 0; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }

label, legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--plum-deep);
}
.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="password"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px var(--blush); }
textarea { min-height: 9rem; resize: vertical; }
[aria-invalid="true"] { border-color: #A3384F !important; }

fieldset { border: 0; margin: 0 0 1.35rem; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
}
.choice input:checked + span { background: var(--blush); border-color: var(--plum); color: var(--plum-deep); }
.choice input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }

.field-error { color: #A3384F; font-size: 0.95rem; margin: 0.35rem 0 0; }

.alert {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.alert p { margin: 0; }
.alert-success { background: var(--sage-soft); color: #2F4A33; }
.alert-error { background: #F8E1E5; color: #7A2338; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer {
  background: var(--plum-deep);
  color: #EBDCE6;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 719px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-light, .brand-light .brand-name { color: #fff; }
.brand-light .brand-name small { color: #D7C3D1; }
.footer-brand p { margin-top: 1rem; }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { padding: 0.25rem 0; }
.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: #CDB8C7;
}
.footer-base p { margin: 0; max-width: none; }


/* Spacing modifiers */
.section-flush-top { padding-top: 0; }
.section-tight-top { padding-top: 0; }
.about-subhead { margin-top: 2.5rem; font-size: 1.9rem; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236B4566' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

/* Booking page */
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 899px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-aside { order: -1; }
}
.booking-form { padding-top: clamp(1.25rem, 3vw, 2rem); }
.form-section {
  padding: 1.75rem 0 0.5rem;
  border-top: 1px solid var(--line);
}
.form-section:first-of-type { border-top: 0; padding-top: 0.5rem; }
.form-section > legend {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--plum-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  float: left;
  width: 100%;
}
.form-section > legend + * { clear: both; }
.sub-legend { font-weight: 600; margin-bottom: 0.6rem; }
.step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--blush);
  color: var(--plum);
  font: 600 0.95rem/1 var(--font-body);
}
.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.form-submit p { margin: 0; }

.book-aside { position: sticky; top: 6.5rem; }
@media (max-width: 899px) { .book-aside { position: static; } }
.book-aside h2 { font-size: 1.6rem; }
.next-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.next-steps li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.next-steps li:first-child { padding-top: 0; }
.next-steps p { margin: 0.15rem 0 0; color: var(--muted); }

.confirmation { grid-column: 1 / -1; max-width: 42rem; text-align: left; }
.confirmation-mark { width: 3.2rem; height: 3.2rem; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
