/* ==========================================================================
   THE MOTLEY MUTT — Salon & Boutique
   Design tokens: terracotta + deep teal, Playfair Display + DM Sans,
   8px spacing grid.
   ========================================================================== */

:root {
  /* --- Palette --- */
  --color-primary:      #C26E3A;   /* terracotta — brand warmth */
  --color-primary-hover: #A85A2C;
  --color-accent:       #2D6A5A;   /* deep teal — CTAs, trust */
  --color-accent-hover: #1F5245;
  --color-dark:         #1E1D1A;   /* near-black text */
  --color-muted:        #6E6B63;   /* secondary text */
  --color-bg:           #FAF7F2;   /* page background */
  --color-bg-alt:       #F0EBE3;   /* alternating sections */
  --color-card:         #FFFFFF;
  --color-hero:         #F5F0E8;   /* hero background */
  --color-divider:      rgba(0, 0, 0, 0.08);
  --color-white:        #FFFFFF;

  /* --- Typography --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* --- Type scale --- */
  --text-h1:    clamp(2.5rem, 5vw, 3.5rem);   /* 40–56px */
  --text-h2:    clamp(1.75rem, 3vw, 2rem);     /* 28–32px */
  --text-h3:    clamp(1.25rem, 2vw, 1.5rem);   /* 20–24px */
  --text-body:  1rem;                           /* 16px */
  --text-lg:    1.125rem;                       /* 18px */
  --text-sm:    0.875rem;                       /* 14px */
  --text-xs:    0.75rem;                        /* 12px */
  --text-label: 0.6875rem;                      /* 11px */

  /* --- Spacing (8px grid) --- */
  --space-1:  0.5rem;    /*  8px */
  --space-2:  1rem;      /* 16px */
  --space-3:  1.5rem;    /* 24px */
  --space-4:  2rem;      /* 32px */
  --space-5:  3rem;      /* 48px */
  --space-6:  4rem;      /* 64px */
  --space-7:  6rem;      /* 96px */
  --space-8:  8rem;      /* 128px */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-dark);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-accent-hover); }

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---------- Focus (accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-dark);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p + p { margin-top: var(--space-2); }

.label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-7) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-header {
  margin-bottom: var(--space-6);
}

.section-header h2 {
  margin-bottom: var(--space-1);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-logo:hover { opacity: 0.85; }

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 3px;
  font-size: var(--text-label) !important;
  letter-spacing: 0.12em;
  transition: background 0.2s;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
  color: var(--color-white) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child  { bottom: 4px; }

.nav-toggle.open span:first-child {
  transform: rotate(45deg);
  top: 9px;
}
.nav-toggle.open span:last-child {
  transform: rotate(-45deg);
  bottom: 9px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4) var(--space-7);
  position: relative;
  overflow: hidden;
  background: var(--color-hero);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(194, 110, 58, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(45, 106, 90, 0.05) 0%, transparent 50%);
  z-index: 0;
}

/* Subtle paw-print pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.03;
  background-image: url("/images/icon-paw.png");
  background-size: 60px 60px;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 520px;
  max-width: 90vw;
  margin: 0 auto var(--space-5);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto var(--space-5);
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--fill {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.btn--fill:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: drift 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-hint svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-muted);
}

@keyframes drift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Quick Stats ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.stat {
  padding: var(--space-2);
}

.stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
}

.stat .desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-divider);
  padding: var(--space-5) var(--space-4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  margin-bottom: var(--space-1);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

.pricing-note {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--color-card);
  border-left: 3px solid var(--color-primary);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.pricing-note strong {
  color: var(--color-dark);
}

/* ---------- Boutique ---------- */
.boutique-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.boutique-text p {
  font-size: var(--text-lg);
  color: var(--color-muted);
}

.boutique-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.boutique-cat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-bg-alt);
  border-radius: 4px;
}

.boutique-cat img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.boutique-cat span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
}

/* ---------- About Content ---------- */
.about-content {
  max-width: 720px;
}

.about-content p {
  font-size: var(--text-lg);
  color: var(--color-muted);
}

/* ---------- Promise ---------- */
.promise {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--color-card);
  border: 1px solid var(--color-divider);
  border-radius: 4px;
  max-width: 720px;
}

.promise h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promise p {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.map-embed iframe {
  width: 100%;
  border-radius: 4px;
}

/* ---------- Details ---------- */
.detail-block {
  margin-bottom: var(--space-2);
}

.detail-block h3 {
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.detail-block p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.8;
}

.detail-list {
  list-style: none;
}

.detail-list li {
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}

.detail-list li:first-child {
  border-top: 1px solid var(--color-divider);
}

.detail-list li a {
  color: var(--color-muted);
  transition: color 0.2s;
}

.detail-list li a:hover {
  color: var(--color-accent);
}

/* ---------- Contact Form ---------- */
.contact-block {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-divider);
  background: var(--color-card);
  color: var(--color-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45, 106, 90, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.btn--form {
  align-self: flex-start;
  border-color: var(--color-accent);
  color: var(--color-white);
  background: var(--color-accent);
  cursor: pointer;
}

.btn--form:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  padding: var(--space-5) 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-body);
  color: var(--color-white);
}

.footer-tagline {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.footer-right {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.footer-right a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-right a:hover {
  color: var(--color-white);
}

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

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item summary {
  padding: var(--space-3) 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: var(--space-2);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .boutique-grid,
  .location-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .boutique-categories {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 90vh;
    padding-top: calc(64px + var(--space-6));
  }

  .hero-logo {
    width: 340px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 375px) {
  .hero-logo {
    width: 280px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1);
  }

  .boutique-categories {
    grid-template-columns: 1fr;
  }
}
