:root {
  --ink: #1f3a33; --muted: #5b6f68; --paper: #fdf9f1; --tint: #f3ead9; --line: #e2d6c1;
  --green: #24483e; --coral: #c8502e; --coral-dark: #a83f21; --white: #fff; --error: #a32020;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); max-width: 15em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
a { color: var(--coral-dark); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px max(16px, calc((100vw - 1040px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { color: var(--green); font: 700 1.15rem Georgia, serif; text-decoration: none; }
.mark { color: var(--coral); margin-right: 7px; }
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 13px 24px; background: var(--coral); color: var(--white); font-family: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--coral-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.small { padding: 8px 15px; font-size: .92rem; white-space: nowrap; }
.hero, .section { padding: 56px max(16px, calc((100vw - 1040px) / 2)); }
.hero { background: var(--green); color: #fff8ea; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { margin: 0 0 12px; color: #f2c7a8; font-weight: 700; }
.lead { max-width: 36em; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
.price strong { font-size: 1.5rem; }
.badges span { display: inline-block; margin: 16px 8px 0 0; padding: 3px 11px; border: 1px solid #f2c7a8; border-radius: 99px; font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 16px; margin-top: 24px; }
.card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.icon { width: 30px; height: 30px; color: var(--coral); flex: none; }
.card .icon { margin-bottom: 8px; }
.tint { background: var(--tint); }
.muted { color: var(--muted); margin-top: 0; }
form { max-width: 780px; }
fieldset { min-width: 0; margin: 20px 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
legend { padding: 0 8px; font-weight: 700; }
legend b { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 5px; background: var(--green); color: #fff; border-radius: 50%; font-size: .85rem; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choices.hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; gap: 9px; height: 100%; padding: 11px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.hours .choice span { flex-direction: column; gap: 0; text-align: center; font-size: .92rem; }
.choice small { color: var(--muted); font-weight: 400; }
.choice input:checked + span { border-color: var(--green); background: #e6f0ec; }
.choice input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 10px; }
.day { flex: 0 0 62px; display: flex; flex-direction: column; align-items: center; padding: 7px 2px; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; font: inherit; line-height: 1.2; cursor: pointer; }
.day b { font-size: 1.25rem; }
.day small { font-size: .74rem; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 7px; margin-top: 8px; }
.time { padding: 8px 2px; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.day[aria-pressed=true], .time[aria-pressed=true] { background: var(--green); border-color: var(--green); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.grid label { font-weight: 600; font-size: .93rem; }
.grid em { color: var(--muted); font-weight: 400; }
.wide { grid-column: 1 / -1; }
input:not([type=radio]):not([type=checkbox]), textarea { display: block; width: 100%; margin-top: 3px; padding: 10px; background: var(--white); color: var(--ink); border: 1.5px solid #bfb39e; border-radius: 7px; font-family: inherit; font-size: 16px; }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 15px; font-size: .92rem; }
.consent input { margin-top: 5px; }
.summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.error { padding: 10px 13px; background: #fdeaea; color: var(--error); border-radius: 7px; font-weight: 600; }
.done { max-width: 780px; margin-top: 20px; padding: 26px; background: var(--white); border: 2px solid var(--green); border-radius: 10px; }
.contact { display: flex; flex-wrap: wrap; gap: 22px; font-size: 1.25rem; font-weight: 700; }
footer { display: flex; justify-content: space-between; gap: 12px; padding: 22px max(16px, calc((100vw - 1040px) / 2)); background: var(--green); color: #fff8ea; font-size: .9rem; }
footer a { color: #fff8ea; }
.prose { max-width: 720px; margin: 0 auto; padding: 44px 16px; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .choices.hours { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  fieldset { padding: 16px 13px; }
  .summary .btn { width: 100%; }
  .brand { font-size: 1rem; }
}

/* Friendly theme */
:root { --ink: #41322c; --muted: #75635a; --paper: #fffaf3; --tint: #ffefe0; --line: #f3dfcd; --green: #2f8f83; --coral: #d9534f; --coral-dark: #b93d3a; }
body { font-family: "Nunito", ui-rounded, "SF Pro Rounded", "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3, .brand { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 800; letter-spacing: -.01em; }
.top { border-bottom: 0; box-shadow: 0 2px 14px rgba(150, 95, 60, .1); }
.brand { color: var(--ink); }
.btn { border-radius: 99px; box-shadow: 0 5px 0 var(--coral-dark); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--coral-dark); }
.btn.small { box-shadow: none; }
.btn.small:hover { transform: none; box-shadow: none; }
.hero { position: relative; overflow: hidden; background: linear-gradient(145deg, #ffe3c8, #ffd2c4 60%, #fbc8d0); color: var(--ink); border-radius: 0 0 36px 36px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .38); pointer-events: none; }
.hero::before { width: 330px; height: 330px; right: -90px; top: -100px; }
.hero::after { width: 190px; height: 190px; right: 13%; bottom: -105px; }
.hero > * { position: relative; z-index: 1; }
.hello { display: inline-block; margin: 0 0 18px; padding: 8px 18px; background: #fff; border-radius: 20px 20px 20px 4px; font-size: 1.15rem; font-weight: 800; box-shadow: 0 4px 14px rgba(150, 95, 60, .16); }
.badges span { border-color: var(--coral); }
.portrait { margin: 0 0 20px; width: 190px; padding: 7px; background: #fff; border-radius: 26px; box-shadow: 0 10px 26px rgba(120, 70, 45, .24); transform: rotate(-2deg); }
.portrait img { display: block; width: 100%; height: auto; border-radius: 20px; }
@media (min-width: 800px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 48px; align-content: center; }
  .hero > * { grid-column: 1; }
  .hero .hello { justify-self: start; }
  .hero .portrait { grid-column: 2; grid-row: 1 / span 6; align-self: center; width: 100%; margin: 0; transform: rotate(2deg); }
}
.card { border: 0; border-radius: 24px; box-shadow: 0 6px 20px rgba(150, 95, 60, .12); }
.card .icon { box-sizing: content-box; width: 30px; height: 30px; padding: 12px; border-radius: 50%; color: #fff; background: var(--coral); }
.card:nth-child(2) .icon { background: var(--green); }
.card:nth-child(3) .icon { background: #e59a2f; }
.card:nth-child(4) .icon { background: #8a6fc9; }
fieldset { border: 0; border-radius: 22px; padding-top: 24px; box-shadow: 0 4px 16px rgba(150, 95, 60, .1); }
legend { float: left; width: 100%; margin-bottom: 13px; padding: 0; font-size: 1.08rem; }
legend + * { clear: both; }
legend b { background: var(--coral); }
.choice span, .day, .time { border-radius: 16px; }
.choice input:checked + span { border-color: var(--green); background: #dff4f0; }
input:not([type=radio]):not([type=checkbox]), textarea { border-color: #e6cdb9; border-radius: 13px; background: #fffdfa; }
.done { border-color: var(--green); border-radius: 24px; }
.signoff { margin-bottom: 0; color: var(--coral-dark); font-size: 1.3rem; font-weight: 800; }
footer { background: var(--ink); }

/* Professional theme */
:root { --ink: #1f3440; --muted: #536773; --paper: #fbfcfc; --tint: #edf4f4; --line: #d6e3e4; --green: #1f6f78; --coral: #1f6f78; --coral-dark: #17545b; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
h1, h2, h3, .brand { font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-weight: 700; }
.mark { display: none; }
.btn { border-radius: 8px; box-shadow: none; transition: background .12s; }
.btn:hover { transform: none; box-shadow: none; }
.hero { background: #e4f0f1; border-radius: 0; }
.hero::before, .hero::after { display: none; }
.hello { padding: 0; background: none; border-radius: 0; box-shadow: none; color: var(--coral-dark); font-size: 1rem; font-weight: 700; }
.portrait { padding: 0; background: none; border-radius: 12px; box-shadow: none; transform: none; width: 150px; }
.portrait img { border-radius: 12px; }
@media (min-width: 800px) { .hero { grid-template-columns: minmax(0, 1fr) 230px; } .hero .portrait { transform: none; } }
.card, fieldset { border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.card .icon { background: var(--tint) !important; color: var(--coral-dark); }
.choice span, .day, .time { border-radius: 8px; }
input:not([type=radio]):not([type=checkbox]), textarea { border-color: #b9c9cb; border-radius: 7px; background: #fff; }
.choice input:checked + span { background: #e1f0f1; }
.done { border-radius: 10px; }

/* Grouped services */
.group-title { margin: 30px 0 0; color: var(--coral-dark); font-size: 1.2rem; }
.group-title + .cards { margin-top: 12px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 13px; align-content: start; padding: 15px; }
.card .icon { grid-row: 1 / span 2; width: 22px; height: 22px; padding: 9px; margin: 0; }
.card h3 { margin: 0 0 3px; font-size: 1.04rem; }
.card p { grid-column: 2; font-size: .92rem; line-height: 1.45; }
.choice-group { margin: 14px 0 6px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.choice-group:first-of-type { margin-top: 0; }
.choice .icon { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .choice span { gap: 6px; padding: 10px 7px; font-size: .86rem; }
  .choice .icon { width: 19px; height: 19px; }
}

.choices.hours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 350px) { .choices:not(.hours) { grid-template-columns: minmax(0, 1fr); } }

/* Calendar */
.days { display: block; max-width: 430px; overflow: visible; padding: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-title { font-size: 1.08rem; outline: none; }
.cal-nav { width: 42px; height: 42px; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: var(--tint); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { padding: 3px 0; color: var(--muted); font-size: .76rem; font-weight: 700; text-align: center; }
.cal-day { aspect-ratio: 1; min-width: 0; padding: 0; background: #e8f3f3; color: var(--ink); border: 1.5px solid transparent; border-radius: 8px; font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; }
.cal-day:hover:not(:disabled) { border-color: var(--green); }
.cal-day:disabled { background: none; color: #a9b6ba; font-weight: 400; cursor: default; }
.cal-day.today { border-color: #9dbcbf; }
.cal-day[aria-pressed=true] { background: var(--green); border-color: var(--green); color: #fff; }
.times-title { margin: 16px 0 4px; font-weight: 700; }

/* Homepage hero: the photo is small, so it is never shown much above its real size */
.hero { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); padding-top: 28px; padding-bottom: 32px; background: var(--green); color: #fff; }
.hero .portrait { flex: none; width: min(210px, 56vw); margin: 0 auto 20px; padding: 5px; background: #fff; border-radius: 16px; }
.hero .portrait img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hero .hello { color: #cfeeea; margin-bottom: 6px; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 8vw, 2.5rem); }
.hero .lead { margin: 0; font-size: 1rem; }
.hero .hero-actions { margin-top: 16px; gap: 10px 16px; }
.hero .btn { background: #fff; color: var(--coral-dark); }
.hero .btn:hover { background: #dff1ef; }
.hero .price a { color: #fff; }
@media (min-width: 800px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 64px; align-content: center; padding-top: 48px; padding-bottom: 48px; }
  .hero > * { grid-column: 1; }
  .hero .portrait { grid-column: 2; grid-row: 1 / span 6; align-self: center; width: 100%; margin: 0; padding: 6px; }
  .hero h1 { font-size: clamp(2.3rem, 3.8vw, 3.4rem); }
  .hero .lead { font-size: 1.08rem; }
}

/* Booking section matches the width of Services */
#booking, .done { max-width: none; }
@media (min-width: 800px) {
  #booking .choices:not(.hours) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #booking fieldset:has(#days) { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 44px; }
  #booking fieldset:has(#days) legend { grid-column: 1 / -1; }
  #booking #days { grid-column: 1; grid-row: 2 / span 2; }
  #booking .times-title { grid-column: 2; grid-row: 2; margin-top: 8px; }
  #booking #times { grid-column: 2; grid-row: 3; align-content: start; }
}

/* Admin */
.admin { max-width: 1040px; margin: 0 auto; padding: 26px 16px 60px; }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.panel { margin: 18px 0; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.booking { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.booking:first-of-type { border-top: 0; }
.booking p { margin: 0; }
.booking.cancelled { opacity: .55; }
.link-btn { background: none; border: 0; padding: 0; color: var(--coral-dark); font: inherit; text-decoration: underline; cursor: pointer; }
.inline { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; }
.inline label { font-weight: 600; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.stats div { padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .88rem; line-height: 1.25; }
.stats b { display: block; color: var(--ink); font-size: 1.6rem; }
.day-head { margin: 18px 0 2px; color: var(--coral-dark); font-size: 1.02rem; }
.warn { padding: 1px 8px; background: #fff0d6; color: #7a4b00; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.warn-box { padding: 10px 13px; background: #fff0d6; color: #6d4300; border-radius: 8px; font-size: .93rem; }
.login { max-width: 380px; margin: 60px auto; padding: 0 16px; }
@media (max-width: 660px) { .booking { grid-template-columns: 1fr; gap: 5px; } }
