/* Maeanne's Heritage House — faithful rebuild of the live Wix site.
   Colors, fonts, and layout taken from the rendered original:
     headings  #3C1116   accents/buttons/footer  #760813
     body text #000       muted meta  #806363
     background #FFFAF1 (cream)
   Fonts: Old Standard TT (headings, serif), Arial (body). */

:root {
  --maroon-deep: #3C1116;
  --maroon:      #760813;
  --cream:       #FFFAF1;
  --ink:         #1c1c1c;
  --muted:       #806363;
  --line:        rgba(60, 17, 22, 0.2);
  --maxw:        1140px;
  --serif: "Old Standard TT", "Times New Roman", Georgia, serif;
  --serif-alt: "Century Schoolbook", "Century", Georgia, serif;
  --sans:  Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--maroon-deep); font-weight: 700; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 400; }
p  { margin: 0 0 1.1em; }
a  { color: var(--maroon); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 60px 0; }

/* ---------- Buttons (rectangular, Wix-style) ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--maroon);
  transition: background .18s ease, color .18s ease;
}
.btn--solid { background: var(--maroon); color: #fff; }
.btn--solid:hover { background: #5e0610; border-color: #5e0610; }
.btn--outline { background: transparent; color: var(--maroon); }
.btn--outline:hover { background: var(--maroon); color: #fff; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 18px 32px; }
.brand img { display: block; height: 92px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 40px; }
.nav__links a { color: var(--maroon-deep); text-decoration: underline; text-underline-offset: 4px; font-family: var(--serif); font-size: 1.15rem; }
.nav__links a:hover { color: var(--maroon); }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero__tagline { font-family: var(--serif-alt); color: var(--maroon-deep); font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.3; margin-bottom: 26px; }
.hero__body { max-width: 40ch; margin-bottom: 30px; }
.hero__img img { width: 100%; height: auto; display: block; }

/* ---------- Generic two-column feature (A higher standard of care) ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: start; }
.underline-h2 { position: relative; margin-bottom: 30px; padding-bottom: 14px; }
.underline-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 90px; height: 2px; background: var(--maroon); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.two-col > div:nth-child(2) { padding-left: 30px; border-left: 1px solid var(--line); }
.split__img img { width: 100%; height: auto; display: block; }

/* ---------- Personalized support (3 columns) ---------- */
.centered-title { text-align: center; margin-bottom: 52px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.trio__item { border-top: 1px solid var(--line); padding-top: 26px; }
.trio__icon { color: var(--maroon); font-size: 1.1rem; margin-bottom: 14px; }
.trio__item h4 { font-size: 1.15rem; margin-bottom: 12px; }
.trio__item p { font-size: .98rem; }

/* ---------- Why families trust ---------- */
.trust { max-width: 640px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 48px; }
.trust h3 { font-weight: 700; margin-bottom: 20px; }
.trust ul { margin: 0; padding-left: 20px; }
.trust li { margin-bottom: 10px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .9rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb span { margin: 0 8px; }

/* ---------- Service cards (book-online) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.svc {
  background: #fffdf9;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.svc__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.svc__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.svc__rule { border: none; border-top: 1px solid var(--line); margin: 0 0 16px; }
.svc__meta { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-bottom: 20px; }
.svc .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Service detail page ---------- */
.svc-detail { padding-top: 6px; padding-bottom: 40px; }
.svc-detail h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 6px 0 30px; }
.svc-detail__meta { display: inline-flex; border: 1px solid var(--line); margin-bottom: 8px; }
.svc-detail__meta span { padding: 16px 24px; color: var(--maroon-deep); font-size: .98rem; }
.svc-detail__meta span:not(:last-child) { border-right: 1px solid var(--line); }
.svc-detail__rule { border: none; border-top: 1px solid var(--line); margin: 30px 0; }
.svc-detail h2 { font-size: 1.55rem; margin-bottom: 18px; }
.svc-detail ul { margin: 0; padding-left: 20px; }
.svc-detail li { margin-bottom: 12px; }
.breadcrumb--detail { padding: 26px 0 30px; }

/* ---------- Booking / inquiry modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(28, 12, 14, 0.55); }
.modal__dialog {
  position: relative; z-index: 1; background: var(--cream);
  max-width: 520px; width: calc(100% - 40px); margin: 6vh auto 0;
  padding: 34px 34px 38px; border-top: 5px solid var(--maroon);
  box-shadow: 0 20px 60px rgba(28,12,14,.4); max-height: 88vh; overflow-y: auto;
}
.modal__close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.9rem; line-height: 1; color: var(--maroon-deep); cursor: pointer; }
.modal__dialog h3 { font-size: 1.7rem; margin-bottom: 10px; }
.modal__sub { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.modal__form label { display: block; font-family: var(--serif); color: var(--maroon-deep); font-size: 1rem; margin-bottom: 16px; }
.modal__form input, .modal__form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 2px; font: inherit; background: #fffdf9;
}
.modal__form input:focus, .modal__form textarea:focus { outline: none; border-color: var(--maroon); }
.modal__form .btn { width: 100%; margin-top: 6px; padding: 14px; font-size: 1rem; }
.modal__success h3 { margin-bottom: 10px; }

/* Shown by script.js only when a submission actually fails to reach Netlify. */
.modal__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e7a9a3;
  border-radius: 6px;
  background: #fdeceb;
  color: #8a2f26;
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 26px; text-align: center; }
.site-footer h4 { color: var(--maroon); font-size: 1.6rem; }
.footer-legal { text-align: right; color: var(--muted); font-size: .82rem; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero__img, .split__img { order: -1; }
  .trio { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col > div:nth-child(2) { padding-left: 0; border-left: none; }
  .services-grid { grid-template-columns: 1fr; }
  .brand img { height: 72px; }
  .nav__links { gap: 22px; }
  .footer-legal { text-align: center; }
}
