/* ============================================================================
   Soul & Sensitive Paws — styles.css
   Phase 1: design tokens, reset, base typography, layout primitives.
   Later phases layer component styles on top of these tokens.
   ========================================================================== */

/* ------------------------------- TOKENS ---------------------------------- */
:root {
  /* Palette */
  --cream: #F5EFE6;
  --cream-2: #EFE7DB;
  --taupe: #B8A78F;
  --cocoa: #4A3728;
  --cocoa-2: #5B4636;
  --copper: #C08552;
  --copper-ink: #8F5626; /* AA-compliant copper for text/links/buttons on cream */
  --rose-gold: #D8A48F;
  --rose: #E7C4B8;
  --white: #FFFDFA;
  --label: #7E6A50; /* AA-compliant warm label text on cream */

  /* Semantic colors */
  --bg: var(--cream);
  --bg-alt: var(--cream-2);
  --surface: var(--white);
  --text: var(--cocoa);
  --text-soft: var(--cocoa-2);
  --accent: var(--copper-ink);
  --accent-fill: var(--copper); /* lighter copper for decorative fills only */
  --accent-soft: var(--rose-gold);
  --border: rgba(74, 55, 40, 0.14);

  /* Typography */
  --font-script: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-100: 0.875rem;
  --fs-200: 1rem;
  --fs-300: 1.125rem;
  --fs-400: 1.375rem;
  --fs-500: 1.75rem;
  --fs-600: 2.25rem;
  --fs-700: 3rem;
  --fs-800: clamp(3rem, 8vw, 5rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Radius / shadow */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(74, 55, 40, 0.08);
  --shadow: 0 10px 30px rgba(74, 55, 40, 0.12);
  --shadow-lg: 0 20px 50px rgba(74, 55, 40, 0.16);

  /* Layout */
  --container: 1120px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.25s;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-200);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------- TYPOGRAPHY --------------------------------- */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--text);
  font-weight: 600;
}

.brand-script,
.hero-title-script {
  font-family: var(--font-script);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  max-width: 68ch;
}

/* ------------------------------ LAYOUT ----------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section {
  padding-block: var(--sp-9);
}

.section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section-title {
  font-size: var(--fs-600);
  text-align: center;
  margin-bottom: var(--sp-7);
}

.cards {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
}

.card-title {
  font-size: var(--fs-400);
  margin-bottom: var(--sp-3);
}

/* ------------------------------ BUTTONS ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: var(--sp-3) var(--sp-5);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-lg {
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-300);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--cocoa);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------- ACCESSIBILITY ------------------------------- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -3rem;
  background: var(--accent);
  color: var(--white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur) var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ---------------------- REDUCED MOTION PREFERENCE ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn:hover {
    transform: none;
  }
}

/* ============================================================================
   PHASE 2 — HEADER / NAV / HERO
   ========================================================================== */

/* -------------------------------- HEADER --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand {
  text-decoration: none;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-script {
  font-family: var(--font-script);
  font-size: var(--fs-400);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cocoa);
  line-height: 1;
}

/* --------------------------- PRIMARY NAV --------------------------------- */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin: 0;
}

.primary-nav a {
  color: var(--text-soft);
  font-weight: 600;
  text-decoration: none;
  padding-block: var(--sp-2);
  position: relative;
}

.primary-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Active-link underline (set by JS via .is-active) */
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease);
}

.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a.is-active:not(.nav-cta)::after {
  transform: scaleX(1);
}

.nav-cta {
  color: var(--white);
}

.nav-cta:hover {
  color: var(--white);
}

/* --------------------------- HAMBURGER ----------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cocoa);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------- HERO --------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--sp-8), 12vw, var(--sp-9));
  background:
    radial-gradient(120% 90% at 80% -10%, var(--rose) 0%, transparent 55%),
    radial-gradient(100% 80% at 0% 110%, var(--rose-gold) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}

/* Soft paw-print motif using layered radial dots */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(74, 55, 40, 0.05) 1.5px, transparent 2px);
  background-size: 34px 34px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--fs-100);
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.hero-title {
  margin: 0;
}

.hero-title-script {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cocoa);
  line-height: 1.08;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: var(--fs-500);
  font-style: italic;
  color: var(--cocoa-2);
  margin: 0;
  max-width: 24ch;
}

.hero-sub {
  font-size: var(--fs-300);
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-3);
}

/* ------------------------- RESPONSIVE (nav) ------------------------------ */
@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur) var(--ease);
  }

  .primary-nav.is-open {
    max-height: 70vh;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
  }

  .primary-nav li {
    border-bottom: 1px solid var(--border);
  }

  .primary-nav li:last-child {
    border-bottom: 0;
    margin-top: var(--sp-3);
  }

  .primary-nav a {
    display: block;
    padding-block: var(--sp-4);
  }

  .nav-cta {
    text-align: center;
  }
}

/* ------------------------- RESPONSIVE (grids) ---------------------------- */
@media (min-width: 700px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================================
   PHASE 3 — ABOUT / SERVICES / PRICING
   ========================================================================== */

/* Shared section intro bits */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--fs-100);
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 0 0 var(--sp-2);
}

.section-eyebrow + .section-title {
  margin-top: 0;
}

.section-intro {
  max-width: 60ch;
  margin: calc(var(--sp-7) * -0.5) auto var(--sp-7);
  text-align: center;
  color: var(--text-soft);
  font-size: var(--fs-300);
}

/* -------------------------------- ABOUT ---------------------------------- */
.about-grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
  align-items: center;
}

.about-photo {
  margin: 0;
}

.photo-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  background:
    repeating-linear-gradient(45deg, var(--cream-2) 0 12px, var(--white) 12px 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* Polaroid-ish frame */
  padding: var(--sp-4);
}

/* Real image variant: photo fills the frame, no placeholder stripes/padding */
.photo-frame--img {
  padding: 0;
  background: none;
  object-fit: cover;
  overflow: hidden;
}

.about-photo-cap {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-soft);
  margin-top: var(--sp-4);
}

.about-lead {
  font-family: var(--font-serif);
  font-size: var(--fs-400);
  color: var(--cocoa);
  margin-bottom: var(--sp-4);
}

.about-copy p {
  margin-bottom: var(--sp-4);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.about-values li {
  position: relative;
  padding-left: var(--sp-6);
  font-weight: 600;
  color: var(--text-soft);
}

.about-values li::before {
  content: "\2665"; /* heart */
  position: absolute;
  left: 0;
  color: var(--accent-soft);
}

/* ------------------------------- SERVICES -------------------------------- */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-icon {
  display: inline-flex;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.service-list li {
  position: relative;
  padding-left: var(--sp-5);
  color: var(--text-soft);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* ------------------------------- PRICING --------------------------------- */
.pricing-cards {
  align-items: stretch;
}

@media (min-width: 820px) {
  .pricing-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.price-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  top: calc(var(--sp-4) * -1);
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  margin: 0;
}

.price {
  margin: var(--sp-3) 0 var(--sp-4);
}

.price-amount {
  font-family: var(--font-serif);
  font-size: var(--fs-700);
  font-weight: 700;
  color: var(--cocoa);
}

.price-unit {
  color: var(--text-soft);
  font-size: var(--fs-200);
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  text-align: left;
}

.price-list li {
  position: relative;
  padding-left: var(--sp-5);
  color: var(--text-soft);
}

.price-list li::before {
  content: "\2713"; /* check */
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.price-cta {
  margin-top: auto;
  align-self: center;
  min-width: 60%;
}

/* Tiered price rows (per-service size/coat pricing) */
.price-tiers {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 var(--sp-5);
  text-align: left;
}

.price-tiers li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px dashed var(--border);
}

.price-tiers li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tier-name {
  color: var(--text-soft);
}

.tier-name small {
  color: var(--taupe);
  font-size: 0.8em;
}

.tier-price {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-400);
  color: var(--cocoa);
  white-space: nowrap;
}

/* Shared "every groom includes" note under services + pricing */
.services-includes {
  max-width: 62ch;
  margin: var(--sp-6) auto 0;
  text-align: center;
  color: var(--text-soft);
}

.services-includes strong {
  color: var(--text);
}

/* Three-up services grid at wide widths */
@media (min-width: 900px) {
  .services-cards--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ------------------------- ABOUT two-column at md ------------------------ */
@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .photo-frame {
    max-width: none;
  }
}

/* ============================================================================
   PHASE 4 — CONTACT / SOCIAL / FAQ
   ========================================================================== */

.container-narrow {
  max-width: 760px;
}

/* -------------------------------- CONTACT -------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.contact-block-title {
  font-size: var(--fs-400);
  margin-bottom: var(--sp-4);
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.contact-lines li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: var(--fs-100);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--label);
}

.contact-lines a {
  font-weight: 600;
  font-size: var(--fs-300);
}

/* -------------------------------- SOCIAL --------------------------------- */
.contact-social-sub {
  color: var(--text-soft);
  margin-bottom: var(--sp-5);
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.social-list a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 600;
  background: var(--bg);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.social-list a:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
  background: var(--white);
}

.social-icon {
  flex: 0 0 auto;
  color: var(--accent);
}

.social-list a:hover .social-icon {
  color: var(--accent);
}

/* ---------------------------------- FAQ ---------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question-wrap {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-300);
  color: var(--text);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex: 0 0 auto;
  position: relative;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* horizontal bar */
.faq-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

/* vertical bar (becomes hidden when open -> minus) */
.faq-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.faq-panel {
  padding: 0 var(--sp-5) var(--sp-5);
}

.faq-panel p {
  color: var(--text-soft);
  margin: 0;
}
