/* ========================================================================
   Alicia's Pet Services — design tokens
   ======================================================================== */
:root {
  --cream: #f7f2ea;
  --cream-light: #fbf8f3;
  --paper: #ffffff;
  --ink: #2a201a;
  --ink-soft: #564a42;
  --ink-mute: #8a7e75;
  --rule: #e6dccf;
  --rule-soft: #efe7da;
  --accent: #a25738;
  --accent-hover: #8a4a30;
  --accent-soft: #d4a78a;
  --accent-faint: #f0dfd0;
  --sage: #7b8b6f;
  --shadow-sm: 0 1px 2px rgba(80, 50, 30, 0.05);
  --shadow: 0 2px 10px rgba(80, 50, 30, 0.06);
  --shadow-lg: 0 12px 40px rgba(80, 50, 30, 0.08);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --max-w: 72rem;
  --measure: 38rem;
  --font-serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========================================================================
   Reset & base
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 18, "SOFT" 30;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); }

p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* ========================================================================
   Layout primitives
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 720px) {
  .container { padding: 0 2rem; }
}

.section { padding: 3rem 0; }
@media (min-width: 720px) { .section { padding: 4.5rem 0; } }
.section--tight { padding: 2rem 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ========================================================================
   Header / nav
   ======================================================================== */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background-color: rgba(247, 242, 234, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand em { font-style: italic; color: var(--accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a:not(.btn) {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--accent); }
.nav-links a:not(.btn)[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 719px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav-links a:not(.btn) {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav-links a:not(.btn):last-child { border-bottom: 0; }
  .nav-links a.btn { align-self: flex-start; margin-top: 0.5rem; }
  .nav[data-open="true"] .nav-links { display: flex; }
}
@media (min-width: 720px) {
  .nav-toggle { display: none; }
}

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--cream-light); }
.btn--primary:hover { background: var(--accent-hover); color: var(--cream-light); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream-light); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ========================================================================
   Hero
   ======================================================================== */
.hero {
  padding: 3rem 0 2rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 880px) {
  .hero { padding: 5rem 0 3rem; }
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
}
.hero h1 {
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

/* hero illustration: composed warm shapes */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 28rem;
  margin: 0 auto;
}
.hero-art svg {
  width: 100%;
  height: 100%;
}

/* ========================================================================
   Service cards
   ======================================================================== */
.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .service-grid.is-summary { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}
.service-card .price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
}
.service-card .price-meta {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-top: -0.25rem;
}
.service-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
}
.service-card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* full service entry (services page) */
.service-detail {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  grid-template-columns: 1fr;
}
.service-detail:last-of-type { border-bottom: 0; }
@media (min-width: 720px) {
  .service-detail {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3rem 0;
  }
}
.service-detail .placeholder-photo {
  background: var(--accent-faint);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.service-detail h2 { margin-top: 0; }
.service-detail .price-line {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-variation-settings: "opsz" 36;
  margin-bottom: 0.5rem;
}

/* ========================================================================
   Placeholder photo SVG
   ======================================================================== */
.placeholder-photo svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ========================================================================
   About page
   ======================================================================== */
.about-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }
}
.about-portrait {
  background: var(--accent-faint);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  max-width: 22rem;
  margin: 0 auto;
  overflow: hidden;
}
.values-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.values-list li {
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.values-list strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

/* ========================================================================
   Additional details box (services page)
   ======================================================================== */
.detail-box {
  background: var(--cream-light);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .detail-box { padding: 2.5rem 2.5rem; }
}
.detail-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
.detail-box li { margin-bottom: 0.35rem; }

/* ========================================================================
   Forms
   ======================================================================== */
.form-intro {
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.intake-form {
  display: grid;
  gap: 2.5rem;
}
.form-section {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
}
@media (min-width: 720px) {
  .form-section { padding: 2.25rem 2.5rem; }
}
.form-section legend,
.form-section > h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  padding: 0;
  color: var(--ink);
}
.form-section .section-hint {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .field-grid--2 { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field > label,
.field > .field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.field .hint {
  font-size: 0.825rem;
  color: var(--ink-mute);
}
.field .req { color: var(--accent); margin-left: 0.15rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream-light);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
}
textarea { resize: vertical; min-height: 5.5rem; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--accent-faint);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23564a42' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.choice-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choice-group legend,
.choice-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: block;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--cream-light);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.92rem;
  transition: background-color 0.15s, border-color 0.15s;
  user-select: none;
}
.choice:hover { border-color: var(--accent-soft); }
.choice input { accent-color: var(--accent); margin: 0; }
.choice:has(input:checked) {
  background: var(--accent-faint);
  border-color: var(--accent);
}

.field-block { margin-top: 1.25rem; }
.field-block:first-child { margin-top: 0; }

.pet-block { padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--rule-soft); }
.pet-block:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.pet-block h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.add-pet-btn {
  margin-top: 1.5rem;
}

/* netlify honeypot — hide visually but keep in DOM */
.hp { position: absolute; left: -9999px; visibility: hidden; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--accent-faint);
  border-radius: var(--radius);
  margin-top: 1rem;
}
.consent-row input { margin-top: 0.25rem; accent-color: var(--accent); }
.consent-row label { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }

.form-submit {
  display: flex;
  justify-content: center;
  padding: 1rem 0 0;
}
.form-submit .btn { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  background: #2a201a;
  color: #d4c8bc;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.site-footer a { color: #f0dfd0; }
.site-footer a:hover { color: var(--cream-light); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
}
.footer-grid h4 {
  color: #f0dfd0;
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.footer-grid p { font-size: 0.95rem; color: #b8aa9c; }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream-light);
  margin-bottom: 0.5rem;
  display: block;
}
.footer-brand em { font-style: italic; color: var(--accent-soft); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #4a3a30;
  font-size: 0.85rem;
  color: #8a7e72;
  text-align: center;
}

/* ========================================================================
   Page heads
   ======================================================================== */
.page-head {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 720px) { .page-head { padding: 5rem 0 3rem; } }
.page-head h1 { margin: 0 0 0.5rem; }
.page-head p { color: var(--ink-soft); font-size: 1.1rem; max-width: var(--measure); }

/* ========================================================================
   Utility
   ======================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

[hidden] { display: none !important; }

/* ========================================================================
   Inquiry form (homepage + contact page)
   ======================================================================== */
.inquiry-section {
  background: var(--cream-light);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.inquiry-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .inquiry-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
  }
}
.inquiry-intro h2 { margin-top: 0; }
.inquiry-intro p { color: var(--ink-soft); }

.inquiry-form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .inquiry-form { padding: 2rem 2rem; }
}
.inquiry-form .field-grid { gap: 1rem; }
.inquiry-form .hint { font-size: 0.825rem; color: var(--ink-mute); margin-top: -0.4rem; }

.form-error {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fbe6e0;
  border: 1px solid #d99178;
  border-radius: var(--radius-sm);
  color: #7a2a17;
  font-size: 0.95rem;
}
.form-hint {
  text-align: center;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}

/* ========================================================================
   "For confirmed clients" banner on intake.html
   ======================================================================== */
.confirmed-clients-banner {
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}
.confirmed-clients-banner strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.confirmed-clients-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: none;
}
.confirmed-clients-banner a { color: var(--accent); }

/* screen-reader-only utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
