/* WolfCuts Dog Grooming
   Colours are sampled from Harri's logo. */

:root {
  --paper: #F7EADB;   /* page background */
  --cream: #EFDABF;   /* logo background, used for alternate bands */
  --rose: #D69B8D;    /* logo circle */
  --orange: #D38243;  /* logo wordmark, decoration only (fails text contrast) */
  --rust: #9C4A14;    /* darker wordmark tone for text and buttons */
  --rust-dark: #7E3A0E;
  --lilac: #E7C3D9;   /* logo arc lettering */
  --ink: #3B2318;
  --line: #D9BFA3;

  --display: 'Lilita One', 'Arial Rounded MT Bold', sans-serif;
  --body: 'Figtree', system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  --nav-offset: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, iframe { max-width: 100%; display: block; }

h1, h2, h3, dt {
  font-family: var(--display);
  font-weight: 400;
  color: var(--rust);
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: var(--rust); text-underline-offset: 0.18em; }
a:hover { color: var(--rust-dark); }

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

section[id], .contact-form { scroll-margin-top: calc(var(--nav-offset) + 1rem); }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--rust);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  z-index: 200;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  border: 2px solid var(--rust);
  border-radius: 999px;
  background: var(--rust);
  color: #fff;
  font: 700 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--rust); }
.btn-ghost:hover { background: var(--rust); color: #fff; }
.btn-small { padding: 0.55em 1.1em; font-size: 0.95rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--cream);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.6rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--orange);
  text-decoration: none;
}
.brand span { color: var(--rust); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:not(.btn):hover { color: var(--rust); text-decoration: underline; }
.nav-links .social { display: flex; gap: 0.75rem; }
.nav-links .social a { display: flex; padding: 0.25rem; }
.nav-links .social .icon { width: 1.35rem; height: 1.35rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0.4rem;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .icon { width: 1.6rem; height: 1.6rem; display: block; }

@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 2px solid var(--cream);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--cream); }
  .nav-links .social { gap: 1.25rem; padding-top: 0.75rem; }
  .nav-links .social a { padding: 0.25rem 0; border-bottom: 0; }
  .nav-links .social .icon { width: 1.6rem; height: 1.6rem; }
  .nav-links .btn { margin-top: 1rem; justify-content: center; }
}

/* ---------- Section shells ---------- */
.booking, .services, .instagram, .find, .about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
}

.section-intro { max-width: 40rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.hero h1 { max-width: 14ch; }
.lede { font-size: 1.2rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.hero-hours { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; margin: 0; }
.hero-art img { width: 100%; max-width: 30rem; height: auto; margin-inline: auto; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 17rem; }
  .hero h1 { max-width: none; }
}

/* ---------- Booking steps (a real sequence, so numbered) ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 46% 54% 50% 50% / 55% 48% 52% 45%;
  background: var(--lilac);
  color: var(--rust);
  font: 1.6rem/1 var(--display);
}
.steps p { margin: 0; max-width: 32ch; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- Prices: the rose band echoes the logo's circle ---------- */
.prices { padding: 0 clamp(0.5rem, 2vw, 1.5rem); }
.prices-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
  background: var(--rose);
  /* slightly uneven corners, like the hand-drawn circle in the logo */
  border-radius: 3.5rem 2.5rem 4rem 3rem / 3rem 4rem 2.75rem 3.5rem;
  color: var(--ink);
}
.prices h2 { color: var(--ink); }

.price-table {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  table-layout: fixed; /* equal-width size columns */
}
.price-table .col-label { width: 28%; }
.price-table th,
.price-table td {
  padding: 0.8rem 0.5rem;
  text-align: center;
}
.price-table thead tr { background: var(--cream); }
.price-table thead th {
  vertical-align: bottom;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--rust);
}
.size-dog {
  display: block;
  margin: 0 auto 0.35rem;
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.size-dog.s1 { width: 20px; height: 20px; }
.size-dog.s2 { width: 26px; height: 26px; }
.size-dog.s3 { width: 33px; height: 33px; }
.size-dog.s4 { width: 42px; height: 42px; }

/* Service groups: a heading row, then one row per coat type */
.price-table tbody + tbody { border-top: 2px solid var(--line); }
.price-table tr.group th {
  padding: 1.1rem 1.25rem 0.2rem;
  text-align: left;
  font: 1.35rem/1.2 var(--display);
  color: var(--rust);
}
.price-table tbody th[scope="row"] {
  padding-left: 1.25rem;
  text-align: left;
  font-weight: 500;
}
.price-table tbody td {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.price-table tbody tr:last-child > * { padding-bottom: 1.1rem; }

.price-table .from {
  display: block;
  font-size: 0.75rem;
  line-height: 1.1;
  opacity: 0.75;
}
.span-bar .from { display: inline; }

/* A price that covers several sizes sits on a bar spanning those columns */
.span-bar {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: var(--cream);
  line-height: 1.3;
}
.span-bar small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.8;
}

@media (max-width: 600px) {
  .price-table .col-label { width: 31%; }
  .price-table th,
  .price-table td { padding: 0.65rem 0.2rem; }
  .price-table thead th { font-size: 0.75rem; }
  .price-table tr.group th { padding: 1rem 0.9rem 0.1rem; font-size: 1.2rem; }
  .price-table tbody th[scope="row"] { padding-left: 0.9rem; font-size: 0.9rem; white-space: nowrap; }
  .price-table tbody td { font-size: 1.05rem; }
}

/* ---------- Services ---------- */
.service-list {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.service-list dt {
  font-size: 1.6rem;
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 0.6rem;
  border-bottom: 5px solid var(--lilac);
}
.service-list dd { margin: 0; max-width: 34ch; }

@media (max-width: 760px) {
  .service-list { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- Instagram ---------- */
.instagram { padding-top: 0; }
.instagram-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.instagram-head h2 { margin: 0; }
.feed-fallback {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 1.15rem;
  border: 3px dashed var(--rose);
  border-radius: 24px;
}

/* ---------- Find us ---------- */
.find {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.detail { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 1.1rem; }
.detail .icon { color: var(--rust); margin-top: 0.2em; }
.find .btn { margin-top: 0.5rem; }
.map iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 28px;
  background: var(--cream);
}

@media (max-width: 760px) {
  .find { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  border-top: 2px solid var(--cream);
}
.about-text { max-width: 38rem; font-size: 1.15rem; }

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li + li { margin-top: 0.9rem; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--rust); text-decoration: underline; }
.contact-list .icon { color: var(--rust); }

.contact-form {
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: grid;
  gap: 0.35rem;
}
.contact-form label { font-weight: 700; margin-top: 0.75rem; }
.contact-form .optional { font-weight: 400; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--rust); outline: none; }
.contact-form textarea { resize: vertical; }
.contact-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.contact-form select:focus { border-color: var(--rust); outline: none; }
.contact-form input[type="date"] { min-height: 3.1rem; } /* iOS Safari collapses empty date inputs */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.field-row > div { display: grid; gap: 0.35rem; align-content: start; }
.field-hint { margin: 0; font-size: 0.85rem; opacity: 0.8; }
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}
.contact-form .btn { justify-self: start; margin-top: 1.25rem; }
.honeypot { position: absolute; left: -9999px; }
.form-status { margin: 0.5rem 0 0; min-height: 1.6em; font-weight: 500; }
.form-status.ok { color: #2F6B35; }
.form-status.error { color: #A11D1D; }

@media (max-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem var(--gutter) 3rem;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: var(--cream); }
.footer-social { display: flex; justify-content: center; gap: 1.25rem; }
.footer-social .icon { width: 1.6rem; height: 1.6rem; }
.site-footer .small { font-size: 0.9rem; opacity: 0.8; }
