/* TapPaws by TapWorks. Sunset look, light only, mobile first. */
:root {
  --bg: #fbf1ec;
  --fg: #4a1b0c;
  --muted: #993c1d;
  --card: #fff;
  --line: #f0cdbf;
  --accent: #b8431f;
  --accent-fg: #fff;
  --grad: linear-gradient(135deg, #d2542a, #a63a17);
  --radius: 16px;
  --shadow: 0 6px 18px rgba(166, 58, 23, 0.22);
  color-scheme: light;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hidden { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, #ffe4d6, var(--bg) 300px);
  background-repeat: no-repeat;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: #a63a17; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Skip link: visible only when focused. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--card);
  color: var(--fg);
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { padding-block: 12px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex;
  gap: 6px;
  min-height: 44px;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
}
.brand-icon { width: 28px; height: 28px; fill: var(--accent); flex: none; }
.brand-name { font-weight: 800; font-size: 1.25rem; }
.brand-by { color: var(--muted); font-size: 0.9375rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: var(--accent-fg);
  box-shadow: var(--shadow);
}
.btn:hover { color: var(--accent-fg); }
/* Small text sits on the solid accent so it meets 4.5:1. */
.btn-small { background: var(--accent); }
/* Large bold text (19px+) on the gradient meets the 3:1 large-text ratio. */
.btn-large {
  background: var(--accent);
  background-image: var(--grad);
  min-height: 52px;
  padding: 12px 28px;
  font-size: 1.1875rem;
}
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Hero */
.hero {
  display: grid;
  gap: 24px;
  padding-block: 24px 40px;
  align-items: center;
}
.lead { font-size: 1.1875rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-price { font-weight: 700; color: var(--muted); }
.hero-art img { width: 100%; max-width: 420px; margin-inline: auto; }

/* Sections and cards */
.section { padding-block: 32px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.steps, .features, .price-list { list-style: none; margin: 0; padding: 0; }
.steps, .features { display: grid; gap: 16px; }
.step { position: relative; padding-top: 24px; }
.step .icon { margin-bottom: 8px; }
.step p, .feature p { margin: 0; }
.step-num {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  background-image: var(--grad);
  color: var(--accent-fg);
  font-weight: 800;
  font-size: 1.1875rem;
}
.feature { display: flex; gap: 16px; align-items: flex-start; }

/* Price */
.price-card { text-align: left; }
.price { font-size: 1.25rem; color: var(--muted); }
.price-amount { font-size: 2.75rem; font-weight: 800; color: var(--fg); margin-right: 4px; }
.price-list { margin-bottom: 20px; }
.price-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 0; }
.faq-list summary {
  cursor: pointer;
  min-height: 44px;
  padding: 14px 48px 14px 20px;
  font-weight: 700;
  list-style: none;
  position: relative;
  border-radius: var(--radius);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}
.faq-list details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq-list details p { padding: 0 20px 16px; margin: 0; }

/* Order form */
.order-form { display: grid; gap: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); }
.field-row { display: grid; gap: 4px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--fg);
  background: var(--card);
  border: 1.5px solid #b8735a;
  border-radius: 12px;
}
textarea { resize: vertical; }
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: #a63a17; border-width: 2px; }
::placeholder { color: #8a5a48; opacity: 1; }

.field-error {
  margin: 0 0 8px;
  min-height: 1.4em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #a63a17;
}
.field-error:empty { min-height: 0; margin-bottom: 12px; }

.field-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
}
.field-check input {
  width: 26px;
  height: 26px;
  margin: 9px 0;
  accent-color: var(--accent);
}
.field-check label { font-weight: 400; }
.field-check .field-error { grid-column: 1 / -1; }

.cf-turnstile { min-height: 65px; margin-block: 8px; }
.btn-submit { width: 100%; margin-top: 8px; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status:focus { outline: none; }

/* Text for screen readers only. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-status:empty { margin: 0; }

/* Honeypot: off-screen, never shown to people. */
.trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order-card { position: relative; }

/* Footer */
.site-footer {
  margin-top: 24px;
  padding-block: 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }

/* Other pages (privacy) share this file: give their content a readable column. */
body:not(.home) {
  max-width: 760px;
  margin-inline: auto;
  padding: 16px;
}

/* Wider screens */
@media (min-width: 720px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-block: 40px 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .order-card, .price-card { padding: 32px; }
  .btn-submit { width: auto; justify-self: start; }
}

/* Motion only for people who have not asked to reduce it. */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { animation: fade-up 0.6s ease-out both; }
  .hero-art.fade-up { animation-delay: 0.12s; }
  .btn { transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(166, 58, 23, 0.28); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Privacy page draft banner (task 10) */
.notice-draft {
  border: 2px solid currentColor;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}
