/* ============================================================
   Kay9Cuts Dog Grooming — Website (5-page)
   Calm boutique spa-for-dogs. One-to-one grooming, Southampton.
   ============================================================ */

:root {
  --ivory: #F8F5F0;
  --ivory-deep: #EFE8DC;
  --heather: #8B7BA3;
  --heather-deep: #5C4E76;
  --plum: #3A3242;
  --plum-soft: rgba(58, 50, 66, 0.68);
  --gold: #C3A16B;
  --gold-deep: #7A5C34;
  --white: #FFFFFF;
  --radius-arch: clamp(70px, 20vw, 220px) clamp(70px, 20vw, 220px) 14px 14px;
  --radius-soft: 16px;
  --shadow: 0 16px 40px rgba(58, 50, 66, 0.12);
  --shadow-lg: 0 26px 64px rgba(58, 50, 66, 0.18);
  --font-display: 'Marcellus', serif;
  --font-body: 'Mulish', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--plum);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.2; color: var(--plum); }
p { margin: 0; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--plum);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--heather-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Motion system =====
   Base state: everything fully visible (no-JS / reduced-motion safe).
   html.js is set synchronously in <head>, before first paint.
   Only inside prefers-reduced-motion:no-preference do we hide + animate. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease-out, transform 420ms ease-out;
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }

  html.js .hero-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms ease-out, transform 520ms ease-out;
  }
  html.js .hero-item.is-visible { opacity: 1; transform: none; }

  .card, .gallery__item, .benefit, .review-card, .process__step {
    transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
  }
  .card:hover, .gallery__item:hover, .benefit:hover, .review-card:hover, .process__step:hover { transform: translateY(-2px); }
  .btn:active, .nav-toggle:active { transform: scale(0.98); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--heather-deep);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(92, 78, 118, 0.3);
}
.btn--primary:hover { background: var(--plum); }
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn--outline {
  background: transparent;
  border-color: var(--heather-deep);
  color: var(--heather-deep);
}
.btn--outline:hover { background: var(--heather-deep); color: var(--white); }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ===== Top bar ===== */
.topbar {
  background: var(--plum);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar__item a { font-weight: 600; color: var(--white); }
.topbar__badge { display: none; color: var(--gold); font-weight: 500; letter-spacing: 0.02em; }
@media (min-width: 640px) { .topbar__badge { display: block; } }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 240, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 50, 66, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { height: 46px; width: 46px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--plum);
  line-height: 1.1;
}
.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 2px;
}
.nav { display: none; gap: 30px; font-weight: 600; font-size: 0.95rem; }
.nav a { color: var(--plum); position: relative; padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 250ms ease-out;
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--heather-deep); }
.header__cta { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; margin-left: auto; margin-right: 24px; }
  .header__cta { display: inline-flex; }
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--plum); border-radius: 2px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav--mobile-open {
  display: flex !important;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--ivory);
  flex-direction: column;
  padding: 10px 24px 24px;
  gap: 2px;
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(58, 50, 66, 0.08);
}
.nav--mobile-open a { padding: 13px 0; border-bottom: 1px solid rgba(58, 50, 66, 0.08); }
.nav--mobile-open a::after { display: none; }

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  padding: 76px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ivory-deep) 0%, var(--ivory) 100%);
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero__eyebrow {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--gold-deep);
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--heather-deep); }
.hero__lede {
  font-size: 1.08rem;
  color: var(--plum-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__actions .btn--ghost { border-color: var(--heather-deep); color: var(--heather-deep); }
.hero__actions .btn--ghost:hover { background: var(--heather-deep); color: var(--white); }
.hero__promise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--plum);
}
.hero__promise li { display: flex; align-items: center; gap: 8px; }
.hero__promise svg { width: 16px; height: 16px; color: var(--gold-deep); flex-shrink: 0; }
.hero__media { position: relative; }
.hero__media .arch { box-shadow: var(--shadow-lg); }
.hero__media-dot {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--heather);
  opacity: 0.16;
  z-index: -1;
  top: -30px; right: -20px;
}
@media (max-width: 619px) {
  .hero { padding: 56px 0 64px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* ===== Page banner (inner pages) ===== */
.page-hero {
  position: relative;
  padding: 128px 0 68px;
  background: var(--plum);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.page-hero__paw {
  width: 34px; height: 34px;
  margin: 0 auto 18px;
  color: var(--gold);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 1.04rem;
}
@media (max-width: 619px) { .page-hero { padding: 100px 0 52px; } }

/* ===== Arched image frame ===== */
.arch {
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: var(--ivory-deep);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Divider curves ===== */
.divider { display: block; line-height: 0; }
.divider svg { width: 100%; height: 56px; display: block; }
@media (max-width: 619px) { .divider svg { height: 34px; } }

/* ===== Sections ===== */
.section { padding: 96px 0; scroll-margin-top: 96px; }
@media (max-width: 719px) { .section { padding: 60px 0; } }
.section--alt { background: var(--ivory-deep); }
.section--dark { background: var(--plum); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255, 255, 255, 0.8); }

.eyebrow {
  display: block;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold); }
.section__title {
  text-align: center;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  max-width: 620px;
  margin: 0 auto 18px;
}
.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
}
.section__title--left { text-align: left; margin: 0 0 18px; max-width: none; }
.section__title--left::after { margin-left: 0; margin-right: auto; }
.section__lede {
  text-align: center;
  color: var(--plum-soft);
  max-width: 580px;
  margin: 0 auto 52px;
  font-size: 1.04rem;
}
.section--dark .section__lede { color: rgba(255, 255, 255, 0.78); }
.section__cta { text-align: center; margin-top: 44px; }

/* ===== One-to-one difference (promise band) ===== */
.promise-band {
  background: var(--plum);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.promise-band__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.35;
  max-width: 780px;
  margin: 0 auto;
  color: var(--white);
}
.promise-band__quote .accent { color: var(--gold); }
.promise-band__sub {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.promise-band__paw {
  width: 46px; height: 46px;
  margin: 0 auto 26px;
  color: var(--gold);
}

/* ===== Calm-benefits trio ===== */
.benefits {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  background: var(--white);
  border: 1px solid rgba(58, 50, 66, 0.08);
  border-radius: var(--radius-soft);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.benefit__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ivory-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit__icon svg { width: 26px; height: 26px; color: var(--heather-deep); }
.benefit h3 { font-size: 1.2rem; margin-bottom: 10px; }
.benefit p { color: var(--plum-soft); font-size: 0.95rem; }

/* ===== Services ===== */
.grid--services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(58, 50, 66, 0.08);
  border-radius: var(--radius-soft);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card h3 { font-size: 1.14rem; }
.card__price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-deep);
  background: var(--ivory-deep);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.card p { color: var(--plum-soft); font-size: 0.95rem; line-height: 1.55; }
.services-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.92rem;
  color: var(--plum-soft);
  font-style: italic;
}

/* ===== Process steps (services page: how a one-to-one groom works) ===== */
.process {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process__step {
  background: var(--white);
  border: 1px solid rgba(58, 50, 66, 0.08);
  border-radius: var(--radius-soft);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.process__step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.process__step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process__step p { color: var(--plum-soft); font-size: 0.92rem; }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { position: relative; }
.gallery__item .arch { aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.gallery__item figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--plum-soft);
}

/* ===== Reviews ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.review-card__quote { width: 30px; height: 24px; color: var(--gold); margin-bottom: 14px; }
.review-card p.review-card__text { color: var(--plum); line-height: 1.65; font-size: 1rem; font-style: italic; }
.review-card__author { margin-top: 20px; font-weight: 700; font-size: 0.9rem; color: var(--heather-deep); }
.review-card__author span { color: var(--plum-soft); font-weight: 400; }

/* ===== About ===== */
.about__grid { display: grid; gap: 48px; align-items: center; }
.about__content p { color: var(--plum-soft); line-height: 1.7; margin-bottom: 16px; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.about__stats div {
  background: var(--ivory-deep);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
}
.about__stats strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--heather-deep); }
.about__stats span { display: block; font-size: 0.78rem; color: var(--plum-soft); margin-top: 4px; }
@media (min-width: 860px) { .about__grid { grid-template-columns: 1.1fr 1fr; } }

.values {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .values { grid-template-columns: repeat(3, 1fr); } }

/* ===== Contact ===== */
.contact__grid { display: grid; gap: 48px; }
.contact__list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-size: 1.02rem; }
.contact__list svg { width: 20px; height: 20px; color: var(--gold-deep); flex-shrink: 0; }
.contact__list a:hover { color: var(--heather-deep); }
.contact__form {
  background: var(--white);
  border-radius: var(--radius-soft);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  color: var(--plum);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(58, 50, 66, 0.18);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  resize: vertical;
  color: var(--plum);
  background: var(--white);
  min-height: 44px;
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C4E76' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-row select:invalid { color: var(--plum-soft); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--heather-deep); outline-offset: 1px; }
.form-note { margin-top: 14px; font-size: 0.88rem; text-align: center; color: var(--heather-deep); font-weight: 600; min-height: 1.2em; }
@media (min-width: 860px) { .contact__grid { grid-template-columns: 1fr 1.1fr; } }

.map-placeholder {
  margin-top: 26px;
  border-radius: var(--radius-soft);
  border: 2px dashed var(--heather);
  background: repeating-linear-gradient(135deg, var(--ivory-deep), var(--ivory-deep) 10px, var(--ivory) 10px, var(--ivory) 20px);
  padding: 36px 20px;
  text-align: center;
  color: var(--heather-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
.map-placeholder svg { width: 28px; height: 28px; margin: 0 auto 10px; display: block; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--heather-deep);
  color: var(--white);
  text-align: center;
  padding: 76px 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 640px; margin: 0 auto; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 540px; margin: 16px auto 30px; font-size: 1.04rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .btn--primary { background: var(--white); color: var(--heather-deep); }
.cta-band .btn--primary:hover { background: var(--ivory); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* ===== Footer ===== */
.footer { background: var(--plum); color: rgba(255, 255, 255, 0.7); padding: 40px 0 32px; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  font-size: 0.85rem;
}
.footer .brand__text { color: var(--white); font-size: 1.1rem; }
.footer .brand__text small { color: var(--gold); }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-weight: 600; color: var(--white); min-height: 44px; display: inline-flex; align-items: center; }
.footer__links a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer__social a:hover { background: var(--gold); color: var(--plum); }
.footer__social svg { width: 18px; height: 18px; }
@media (min-width: 760px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ===== Floating call button ===== */
.call-fab {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--heather-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
}
.call-fab svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .call-fab { display: none; } }

/* ===== [ADD] placeholder tiles ===== */
.add-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-arch);
  background: repeating-linear-gradient(135deg, var(--ivory-deep), var(--ivory-deep) 10px, var(--ivory) 10px, var(--ivory) 20px);
  border: 2px dashed var(--heather);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--heather-deep);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 16px;
}
