/* Lizzie's Clear Ears — shared styles
   Colours are set once below (light, then dark). Change them here and every page updates. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --muted: #55656b;
  --teal: #1f6f78;
  --teal-dark: #174f56;
  --btn: #1f6f78;
  --btn-hover: #174f56;
  --mint: #e8f3f2;
  --cream: #faf8f4;
  --line: #dfe7e6;
  --alt-line: #ece6da;
  --notice: #fff8ec;
  --accent: #e0a458;
  --radius: 14px;
  --max: 1080px;
}

/* Dark colours. Used when the visitor's device is set to dark and they haven't
   chosen yet (this also covers visitors with JavaScript turned off). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0f191c;
    --surface: #172529;
    --ink: #e8f0f1;
    --muted: #a6b8bb;
    --teal: #5cc2cc;
    --teal-dark: #8edce3;
    --btn: #1f6f78;
    --btn-hover: #2a8791;
    --mint: #15302f;
    --cream: #121f22;
    --line: #2b3f43;
    --alt-line: #2b3f43;
    --notice: #2a2418;
  }
}

/* Dark colours when chosen with the toggle (keep in step with the block above). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f191c;
  --surface: #172529;
  --ink: #e8f0f1;
  --muted: #a6b8bb;
  --teal: #5cc2cc;
  --teal-dark: #8edce3;
  --btn: #1f6f78;
  --btn-hover: #2a8791;
  --mint: #15302f;
  --cream: #121f22;
  --line: #2b3f43;
  --alt-line: #2b3f43;
  --notice: #2a2418;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 64px 0; }
.alt { background: var(--cream); }
.mint { background: var(--mint); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: .6em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--bg); color: var(--ink); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--mint); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-left: auto; }
.site-header nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.site-header nav a:hover { color: var(--teal); }
.site-header nav a.btn { color: #fff; }

/* Dark mode toggle (only shown when JavaScript is available) */
.theme-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
html.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: var(--mint); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Buttons */
.btn { display: inline-block; background: var(--btn); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--btn); transition: background .15s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }
.btn-small { padding: 8px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--mint); color: var(--teal-dark); border-color: var(--teal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--mint), var(--bg)); padding: 72px 0 80px; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 620px; }

/* Cards and grids */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.alt .card { border-color: var(--alt-line); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--teal); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }

/* Pricing */
.price-card { text-align: center; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--teal); margin: .2em 0; }
.price-note { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 800; margin-bottom: 12px; }

/* Notices */
.notice { border-left: 5px solid var(--accent); background: var(--notice); padding: 16px 20px; border-radius: 8px; font-size: .97rem; }
.todo { background: #fff3a8; color: #1f2a2e; padding: 0 4px; border-radius: 4px; }

/* Reviews */
.reviews { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; }
.review .stars { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 8px; }
.review blockquote { margin: 0 0 14px; }
.review figcaption { font-weight: 700; }
.review figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--muted); margin-top: 32px; }

/* Booking placeholder */
.book-box { border: 2px dashed var(--teal); border-radius: var(--radius); padding: 40px 24px; background: var(--mint); text-align: center; margin: 28px 0; }

/* Legal pages */
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: #14292d; color: #d7e4e5; padding: 48px 0 28px; font-size: .96rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.fine { border-top: 1px solid #2a4348; margin-top: 32px; padding-top: 20px; font-size: .88rem; color: #a9bfc2; }

@media (max-width: 700px) {
  /* On phones the menu drops to its own row; the toggle stays top right beside the name */
  .site-header nav { order: 3; width: 100%; margin-left: 0; }
  .theme-toggle { order: 2; margin-left: auto; }
}
@media (max-width: 600px) {
  section { padding: 48px 0; }
  .hero { padding: 48px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
