/* Tarpawley Grooming
   White pages (always light, like the original site), one photo per
   section, forest green from the team's polos for headings and buttons. */
:root {
  --bg: #ffffff;
  --soft: #f5f5f5;        /* footer, table headers */
  --ink: #111111;
  --muted: #555555;
  --green: #24503d;       /* headings, buttons */
  --on-green: #ffffff;
  --line: #e5e5e5;

  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --radius: 6px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--green);
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--on-green);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 16px; }
.nav ul a:hover,
.nav ul a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--soft); filter: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.more { color: var(--green); font-weight: 600; text-underline-offset: 4px; }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section + .section { border-top: 1px solid var(--line); }
.h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 24px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split > * { min-width: 0; }
.split img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3.4; }
.split.flip .split-media { order: 2; }
.split-text { display: grid; gap: 20px; justify-items: start; }

/* ---------- Hero ---------- */
.hero { padding-block: 56px 72px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 500px; }
.hero img { aspect-ratio: 4 / 3.3; object-position: 50% 65%; }
.hero .meta { font-size: 15px; color: var(--muted); }

/* ---------- About ---------- */
.about { max-width: 720px; display: grid; gap: 18px; }
.about .h2 { margin-bottom: 4px; }

/* ---------- Lists ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.price-list { list-style: none; margin: 0; padding: 0; width: 100%; font-variant-numeric: tabular-nums; }
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.price-list li:first-child { border-top: 1px solid var(--line); }
.price-list span:last-child { color: var(--muted); white-space: nowrap; }
.note { color: var(--muted); }

/* ---------- Cocopup banner ---------- */
.banner {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  background: #2a2420 url("../images/cocopup.jpg") center 40% / cover no-repeat;
  text-align: center;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); }
.banner h2 {
  position: relative;
  color: #ffffff;
  font-size: clamp(32px, 4.4vw, 52px);
  padding: 0 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  background: var(--soft);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .9; }
.gallery-foot { margin-top: 20px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  padding: 12px;
  cursor: pointer;
}
.lb-close { top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(8px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(8px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* ---------- Reviews ---------- */
.reviews { columns: 2; column-gap: 56px; }
.reviews blockquote { margin: 0 0 28px; font-size: 17px; break-inside: avoid; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.visit > * { min-width: 0; }
.visit-info { display: grid; gap: 20px; justify-items: start; }
.label { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.status { font-weight: 600; color: var(--green); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th,
.hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours tr:first-child th,
.hours tr:first-child td { border-top: 1px solid var(--line); }
.hours td { text-align: right; }
.hours tr.today th,
.hours tr.today td { font-weight: 700; }

/* ---------- Inner pages ---------- */
.page-head { padding-block: 56px 8px; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); }
.page-head p { margin-top: 12px; font-size: 18px; color: var(--muted); max-width: 620px; }
.page-head + .section { border-top: 0; padding-top: 40px; }

.contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.contact-list > div { display: grid; gap: 8px; align-content: start; justify-items: start; }
.contact-list h2 { font-size: 22px; }
.contact-list .number { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.contact-list .number:hover { text-decoration: underline; }
.contact-list p { color: var(--muted); }

/* ---------- Price list ---------- */
.price-posters { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-posters a { display: block; max-width: 100%; }
.price-posters img { width: 100%; border: 1px solid var(--line); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.price-block { display: grid; gap: 10px; align-content: start; min-width: 0; }
.price-block h3 { font-size: 24px; }
.price-block .price-list { margin-top: 6px; }
.price-block .price-list span:last-child { color: var(--ink); font-weight: 600; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 6px; }
.price-table th,
.price-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 400; }
.price-table th:first-child { text-align: left; }
.price-table thead th { font-size: 14px; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); }
.price-table td { font-weight: 600; }
.price-foot { display: grid; gap: 16px; justify-items: start; max-width: 640px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 36px 0 12px; }
.legal h3 { font-size: 21px; margin: 28px 0 10px; }
.legal p,
.legal ul,
.legal ol { margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal .table-wrap { overflow-x: auto; margin: 16px 0 32px; }
.legal table { border-collapse: collapse; width: 100%; }
.legal th,
.legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* ---------- 404 ---------- */
.lost { display: grid; gap: 18px; justify-items: start; padding-block: 96px; }
.lost h1 { font-size: clamp(36px, 5vw, 56px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); padding-block: 48px 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-grid h2 { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.footer-grid img { height: 28px; width: auto; margin-bottom: 12px; }
.footer-grid a { text-underline-offset: 3px; }
.footer-list { list-style: none; padding: 0; margin: 0; font-variant-numeric: tabular-nums; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Mobile call / WhatsApp bar ---------- */
.action-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section { padding-block: 56px; }
  .split,
  .visit { grid-template-columns: 1fr; gap: 28px; }
  .split.flip .split-media { order: 0; }
  .hero { padding-block: 32px 48px; }
  .hero .split-media { order: 2; }
  .reviews { columns: 1; }
  .contact-list { grid-template-columns: 1fr; gap: 28px; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner { min-height: 300px; }
}

@media (max-width: 720px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .site-header .wrap { height: 64px; }
  .logo img { height: 28px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gallery { gap: 6px; }
  .price-posters,
  .price-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }

  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}
