/* Kari-Anne Hair Studio — main stylesheet */
:root {
  --ink: #161616;
  --ink-2: #222;
  --paper: #ffffff;
  --paper-2: #f5f6f2;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e4e6df;
  --lime: #a5ea1c;
  --lime-dark: #5f8f00;
  --radius: 14px;
  --max: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper-2);
  padding-bottom: 76px; /* room for the mobile action bar */
}

img { max-width: 100%; display: block; }
a { color: var(--lime-dark); }
a:hover { color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.logo { text-decoration: none; line-height: 1; display: inline-flex; flex-direction: column; align-items: flex-start; }
.logo .name {
  font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500;
  color: #fff; font-size: 30px; letter-spacing: .01em;
}
.logo .sub {
  color: var(--lime); font-weight: 500; letter-spacing: .42em; font-size: 10.5px;
  margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--lime); align-self: stretch; text-align: center;
  padding-left: .42em; /* balances the letter-spacing */
}
.logo:hover .name { color: #fff; }

.nav { display: flex; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: #ddd; text-decoration: none; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
}
.nav a:hover { color: #fff; background: #2c2c2c; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--lime); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); }
.hero img { width: 100%; height: 360px; object-fit: cover; }
.intro { background: var(--ink); color: #fff; padding: 26px 0 30px; border-top: 3px solid var(--lime); }
.intro .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.intro h1 { font-size: clamp(26px, 4.5vw, 36px); font-weight: 500; line-height: 1.15; }
.intro p { color: #cfcfcf; margin-top: 6px; }
.intro .buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.page-title { background: var(--ink); color: #fff; padding: 36px 0 32px; }
.page-title h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 500; }
.page-title p { color: #cfcfcf; margin-top: 6px; max-width: 40em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; border: 0;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #b8f53a; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; color: #fff; }

/* ---------- Layout ---------- */
main { padding: 32px 0 48px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 820px) {
  .grid.two { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}

.card { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.card h2 { font-size: 22px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.card h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.card p + p { margin-top: 10px; }
.card.dark { background: var(--ink); color: #eee; border-color: var(--ink); }
.card.dark h2, .card.dark h3 { color: var(--lime); }
.card.dark a { color: #fff; }

.feature { display: block; text-decoration: none; color: inherit; transition: transform .15s; }
.feature:hover { transform: translateY(-2px); color: inherit; }
.feature .more { color: var(--lime-dark); font-weight: 500; margin-top: 10px; display: inline-block; }

/* ---------- Price list ---------- */
.price-group + .price-group { margin-top: 26px; }
.price-group h2 { padding-bottom: 8px; border-bottom: 2px solid var(--lime); margin-bottom: 6px; }
.prices { list-style: none; }
.prices li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.prices li:last-child { border-bottom: 0; }
.prices .price { white-space: nowrap; font-weight: 500; color: var(--ink); }
.prices .price small { font-weight: 400; color: var(--muted); font-size: 13px; margin-right: 3px; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

/* ---------- Sidebar info ---------- */
.hours { list-style: none; margin-top: 6px; }
.hours li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #2e2e2e; }
.hours li:last-child { border-bottom: 0; }
.hours .closed { color: #888; }
.info-list { list-style: none; }
.info-list li + li { margin-top: 4px; }
.offer { margin-top: 18px; padding: 14px; border-radius: 10px; background: #232a14; color: #e8f6c8; font-size: 15px; }

.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 14px; background: #ddd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aaa; padding: 28px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer a { color: #ddd; }
.site-footer .logo .name { font-size: 24px; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22,22,22,.96); backdrop-filter: blur(6px);
}
.action-bar .btn { flex: 1; }
@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
}

@media (max-width: 520px) {
  .site-header .wrap { justify-content: center; }
  .nav a { padding: 6px 10px; font-size: 14px; }
  .hero img { height: 220px; }
  .card { padding: 20px; }
}

/* ---------- Logo (the original Kari-Anne Hair Studio logo, as on the cards and shop sign) ---------- */
.site-header { position: relative; background: #000; }
.logo-full { display: block; line-height: 0; padding: 22px 0; }
.logo-full img { display: block; width: 300px; height: auto; }
@media (max-width: 520px) {
  .logo-full { width: 100%; padding: 18px 0 10px; }
  .logo-full img { width: 78%; max-width: 300px; margin: 0 auto; }
}
.site-footer { background: #000; }
.footer-logo img { display: block; width: 220px; height: auto; margin: 4px 0; }
@media (max-width: 520px) { .footer-logo img { width: 190px; } }

/* ---------- Booking page ---------- */
.booking { display: grid; gap: 16px; }
.step h2 { display: flex; align-items: center; gap: 10px; }
.step .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 600; flex: none;
}
.muted { color: var(--muted); }
.small { font-size: 14px; margin-top: 10px; }
.choice-group { font-size: 14px !important; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) !important; margin: 18px 0 8px !important; }
.choice-group:first-child { margin-top: 4px !important; }
.choices { display: grid; gap: 8px; }
.choices.row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 10px 16px; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px;
}
.choice:hover { border-color: #b9c2a6; }
.choice[aria-checked="true"] { border-color: var(--lime-dark); background: #f3fbe2; box-shadow: inset 0 0 0 1px var(--lime-dark); }
.choice-meta { color: var(--muted); font-size: 15px; white-space: nowrap; }
.choice.pill { width: auto; border-radius: 999px; padding: 10px 18px; }

.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.date {
  flex: none; width: 66px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: inherit; color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; scroll-snap-align: start;
}
.date .wd, .date .m { font-size: 13px; color: var(--muted); }
.date .d { font-size: 22px; font-weight: 500; line-height: 1.1; }
.date[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.date[aria-checked="true"] .wd, .date[aria-checked="true"] .m { color: var(--lime); }

.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time {
  min-height: 46px; font: inherit; font-weight: 500; cursor: pointer;
  background: var(--paper); color: var(--text); border: 1.5px solid var(--line); border-radius: 10px;
}
.time:hover { border-color: #b9c2a6; }
.time[aria-checked="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.summary { display: grid; gap: 6px; background: var(--paper-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary span { color: var(--muted); }
.summary strong { text-align: right; font-weight: 500; }

#details-form { display: grid; gap: 14px; }
#details-form label { display: grid; gap: 6px; font-weight: 500; }
#details-form small { font-weight: 400; color: var(--muted); font-size: 14px; }
#details-form input, #details-form textarea {
  font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
#details-form input:focus, #details-form textarea:focus { outline: none; border-color: var(--lime-dark); box-shadow: 0 0 0 3px #a5ea1c55; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-block { width: 100%; min-height: 54px; font-size: 17px; }
.btn:disabled { opacity: .6; cursor: wait; }
.form-error { background: #fdecec; color: #8a1c1c; border-radius: 10px; padding: 10px 14px; }
.step.done { border-color: var(--lime-dark); }
.grid > * { min-width: 0; }
.booking, .booking > * { min-width: 0; max-width: 100%; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }
.g-item { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #111; aspect-ratio: 4 / 5; font: inherit; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.g-item:hover img { transform: scale(1.04); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; color: #fff; font-size: 15px; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 12px 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 8px; object-fit: contain; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-size: 17px; text-align: center; }
.lightbox button { position: fixed; z-index: 2; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
/* Five menu items on one line on phones */
@media (max-width: 520px) {
  .nav { gap: 0; justify-content: center; flex-wrap: nowrap; }
  .nav a { padding: 6px 8px; font-size: 13px; letter-spacing: .04em; }
}
@media (max-width: 360px) { .nav a { padding: 6px 5px; font-size: 12px; } }
