/* Fancy Paws Pet Grooming: monochrome pet tailoring */
@font-face { font-family: 'DM Serif Display'; src: url('/assets/fonts/dmserif-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('/assets/fonts/worksans-var.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --surface: #F0F0EE;
  --text: #151515;
  --muted: #555555;
  --primary: #151515;
  --accent: #DADAD5;
  --border: #B8B8B2;
  --head: 'DM Serif Display', Georgia, serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --gutter: 20px;
  --gap: 64px;
  --max: 1120px;
}
@media (min-width: 900px) { :root { --gutter: 64px; --gap: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/27px var(--body); -webkit-font-smoothing: antialiased; }
@media (min-width: 900px) { body { font-size: 18px; line-height: 29px; } }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.section--dark :focus-visible { outline-color: #fff; }
.visually-hidden { 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) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--text); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { top: 12px; }

.h2 { font-size: 34px; line-height: 40px; margin-bottom: 32px; }
@media (min-width: 900px) { .h2 { font-size: 50px; line-height: 55px; margin-bottom: 48px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: 8px; background: var(--primary); color: #fff; border: 2px solid var(--primary); font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .18s ease; }
.btn:hover { background: #000; }
.btn--secondary { background: #fff; color: var(--text); }
.btn--secondary:hover { background: var(--surface); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--accent); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
@media (min-width: 900px) { .nav__inner { min-height: 80px; } }
.brand { display: block; }
.brand__logo { width: auto; height: 48px; }
@media (min-width: 900px) { .brand__logo { height: 64px; } }
.nav__toggle { min-height: 48px; padding: 0 18px; background: #fff; color: var(--text); border: 2px solid var(--text); border-radius: 8px; font: 600 15px/1 var(--body); cursor: pointer; }
.nav__toggle-close { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-open { display: none; }
.nav__toggle[aria-expanded="true"] .nav__toggle-close { display: inline; }
.nav__menu { display: none; }
.nav__menu.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--border); animation: menu-in .18s ease; }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nav__menu.is-open { animation: none; } }
.nav__menu a:not(.btn) { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--accent); }
.nav__menu a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__menu .btn { margin-top: 16px; }
@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu, .nav__menu.is-open { display: flex; flex-direction: row; align-items: center; gap: 32px; position: static; padding: 0; border: 0; animation: none; }
  .nav__menu a:not(.btn) { border: 0; min-height: 44px; }
  .nav__menu .btn { margin-top: 0; }
}

/* Hero: stacked photographic tailoring cover */
.hero { padding: 40px 0 64px; }
@media (min-width: 900px) { .hero { padding: 64px 0 96px; } }
.hero__grid { display: grid; gap: 24px; }
.hero__title { font-size: 48px; line-height: 1.03; max-width: 850px; }
.hero__rail { display: contents; }
.hero__intro { order: 1; }
.hero__photo { order: 2; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.hero__caption { order: 3; font-size: 14px; line-height: 21px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.hero__caption .text-link { color: var(--text); }
.hero__sub { max-width: 30ch; margin-bottom: 24px; }
.hero__actions { display: grid; gap: 12px; }
@media (min-width: 520px) { .hero__actions { grid-template-columns: auto auto; justify-content: start; } }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 480px 1fr; column-gap: 40px; row-gap: 48px; }
  .hero__title { grid-column: 1 / -1; font-size: 80px; line-height: 1.02; }
  .hero__photo { grid-column: 2; grid-row: 2; width: 480px; aspect-ratio: 6 / 7; }
  .hero__rail { display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; grid-column: 3; grid-row: 2; max-width: 230px; }
  .hero__sub { font-size: 18px; }
  .hero__actions { grid-template-columns: 1fr; }
  .hero__caption { flex-direction: column; justify-content: flex-start; padding-top: 16px; border-top: 1px solid var(--border); }
}

/* Sections */
.section { padding: var(--gap) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--primary); color: #fff; padding: 56px 0; }
@media (min-width: 900px) { .section--dark { padding: 96px 0; } }

.rows { border-top: 1px solid var(--border); }
.row { display: grid; gap: 12px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.row__title { font-size: 32px; line-height: 1.1; }
.row__body { display: grid; gap: 14px; max-width: 60ch; }
.row__body p { font-size: 17px; }
.row__body p + p { color: var(--muted); }
.row__body .text-link { color: var(--text); }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1.6fr; gap: 48px; padding: 48px 0; }
  .row__title { font-size: 44px; }
}

.prose { max-width: calc(640px + var(--gutter) * 2); }
.prose p { max-width: 60ch; margin-bottom: 20px; }
.prose p:first-of-type { font-size: 20px; line-height: 1.55; }
.prose p:last-child { margin-bottom: 0; font-weight: 600; }

.quote blockquote { margin: 0 0 20px; }
.quote blockquote p { font-family: var(--head); font-size: 44px; line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
@media (min-width: 900px) { .quote blockquote p { font-size: 88px; line-height: 1.02; } }
.quote figcaption { font-size: 14px; line-height: 21px; color: var(--accent); }
.quote__meta { margin-top: 32px; padding-top: 20px; border-top: 1px solid #444; font-size: 15px; }
.quote__meta a { color: #fff; text-underline-offset: 4px; }

/* Contact */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.details { margin: 0; display: grid; gap: 20px; }
.details div { display: grid; gap: 2px; }
.details dt { font-size: 14px; line-height: 21px; color: var(--muted); }
.details dd { margin: 0; }
.details dd > a:not(.text-link) { font-weight: 600; text-underline-offset: 4px; }

.form { background: var(--surface); padding: 28px 20px; border-radius: 8px; }
@media (min-width: 900px) { .form { padding: 40px; } }
.form__title { font-size: 28px; line-height: 1.15; margin-bottom: 24px; }
.field { margin: 0 0 20px; }
.field > label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input[type="text"], .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 8px; background: #fff; color: var(--text); font: 400 17px/1.4 var(--body); }
.field textarea { resize: vertical; min-height: 120px; }
.field--choice { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.field--choice legend { width: 100%; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; background: #fff; border: 1px solid var(--muted); border-radius: 8px; cursor: pointer; font-weight: 500; }
.choice input { width: 20px; height: 20px; accent-color: var(--text); margin: 0; flex: none; align-self: center; }
.choice:has(input:checked) { border: 2px solid var(--text); }
.field [aria-invalid="true"] { border: 2px solid #A0141E; }
.field__error { color: #A0141E; font-size: 14px; font-weight: 600; margin-top: 4px; }
.field__error:empty { display: none; }
.form__status { margin-top: 16px; font-weight: 500; }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { padding: 14px 16px; background: #fff; border-left: 3px solid var(--text); }
.form__status[data-state="error"] { color: #A0141E; }

.footer { background: var(--surface); padding: 48px 0; font-size: 15px; line-height: 1.6; }
.footer__inner { display: grid; gap: 16px; }
.footer__logo { height: 56px; width: auto; }
.footer a { text-underline-offset: 3px; }
.footer__credit { font-size: 13px; color: var(--muted); }

.js-motion [data-fade-in] { opacity: 0; }
