/* ============================================================
   Deer Creek Canine LP — v2 design system
   Driven by ui-ux-craft-kit:
     - Color: Veterinary Clinic palette (caring teal + warm orange)
       blended with Deer Creek's resort-green brand
     - Typography: "Soft Rounded" pairing — Varela Round + Nunito Sans
     - Pattern: Hero + Testimonials + CTA (validated CRO pattern)
   ============================================================ */

/* === Tokens === */
:root {
  --c-bg: #FAF7F2;            /* warm cream — pet-friendly bg, replaces cold #fafaf7 */
  --c-bg-alt: #F0EBE0;        /* slightly deeper cream for sections */
  --c-bg-card: #FFFFFF;
  --c-fg: #1A2421;            /* near-black with warm undertone */
  --c-fg-muted: #5A6660;
  --c-primary: #1F5D44;       /* deep forest green — Deer Creek brand */
  --c-primary-dark: #14422F;
  --c-primary-light: #E8F0EC;
  --c-accent: #EA580C;        /* warm orange — craft-kit veterinary palette */
  --c-accent-dark: #C2410C;
  --c-accent-light: #FFEDD5;
  --c-border: #E5DFD3;
  --c-star: #F59E0B;          /* gold for star ratings */

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(20, 36, 33, .06);
  --shadow-md: 0 8px 24px rgba(20, 36, 33, .10);
  --shadow-lg: 0 16px 56px rgba(20, 36, 33, .18);

  --space-xs: .5rem;
  --space-sm: .875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-fg);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-primary-dark); text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: 'Varela Round', 'Nunito Sans', sans-serif;
  line-height: 1.15; letter-spacing: -.01em; color: var(--c-fg);
  margin: 0 0 .5em;
  font-weight: 400;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lead { font-size: 1.1rem; color: var(--c-fg-muted); max-width: 720px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; min-height: 68px;
}
.brand-logo { height: 48px; width: auto; }
.phone-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-primary); color: white;
  padding: 13px 20px; border-radius: var(--r-md);
  font-weight: 700; font-size: 1rem;
  white-space: nowrap;
  min-height: 44px; /* a11y tap target */
  transition: background .15s, transform .05s;
}
.phone-cta:hover { background: var(--c-primary-dark); text-decoration: none; color: white; }
.phone-cta:active { transform: translateY(1px); }

/* === Hero === */
.hero {
  position: relative; overflow: hidden; min-height: 620px; padding: 72px 0 88px;
  color: white;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05); /* prevents edge artifacts on parallax-style overlay */
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(20, 36, 33, .92) 0%, rgba(20, 36, 33, .72) 45%, rgba(20, 36, 33, .45) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 56px; align-items: center;
}
.hero-copy h1 { color: white; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700;
  background: rgba(234, 88, 12, .92); color: white;
  padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.hero-sub { font-size: 1.18rem; color: #EAF1ED; margin: 18px 0 22px; max-width: 560px; line-height: 1.55; }

/* Rating badge in hero */
.rating-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
  padding: 10px 16px; border-radius: var(--r-pill);
  margin-bottom: 24px;
  font-size: .98rem;
  border: 1px solid rgba(255, 255, 255, .2);
}
.rating-stars { color: var(--c-star); letter-spacing: 2px; font-size: 1.05rem; }
.rating-text strong { font-weight: 700; }

.hero-trust {
  list-style: none; padding: 0; margin: 22px 0;
  display: grid; gap: 8px;
}
.hero-trust li { font-size: 1.02rem; color: #EAF1ED; }
.cta-mobile-only { display: none; margin-top: 18px; }

/* Hero form card */
.hero-form {
  background: white; color: var(--c-fg);
  padding: 36px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-width: 460px; margin-left: auto;
}
.form-title { font-size: 1.5rem; margin-bottom: 6px; color: var(--c-fg); }
.form-sub { font-size: .95rem; color: var(--c-fg-muted); margin-bottom: 22px; }
.lead-form label {
  display: block; font-weight: 700; font-size: .88rem; margin-bottom: 16px;
  color: var(--c-fg);
}
.lead-form input, .lead-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 13px 15px; border: 1.5px solid var(--c-border); border-radius: var(--r-md);
  font: inherit; background: var(--c-bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
  min-height: 44px;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(31, 93, 68, .15);
  background: white;
}
.lead-form textarea { resize: vertical; min-height: 76px; }

/* CTAs */
.cta {
  display: inline-block; padding: 15px 26px;
  border-radius: var(--r-md); font-weight: 700; font-size: 1.02rem;
  border: none; cursor: pointer; text-align: center;
  transition: background .15s, transform .05s, box-shadow .2s;
  min-height: 44px;
  font-family: inherit;
}
.cta:active { transform: translateY(1px); }
.cta-primary {
  background: var(--c-accent); color: white;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .35);
}
.cta-primary:hover {
  background: var(--c-accent-dark); text-decoration: none;
  box-shadow: 0 6px 20px rgba(234, 88, 12, .45);
}
.cta-secondary {
  background: white; color: var(--c-primary); border: 2px solid var(--c-primary);
}
.cta-secondary:hover { background: var(--c-primary); color: white; text-decoration: none; }
.cta-large { font-size: 1.1rem; padding: 18px 32px; }
.lead-form .cta { width: 100%; margin-top: 8px; }
.form-fineprint { font-size: .9rem; color: var(--c-fg-muted); margin-top: 14px; text-align: center; }
.form-success { text-align: center; padding: 40px 20px; }
.form-success h3 { color: var(--c-primary); }

/* === Trust bar === */
.trust-bar {
  background: var(--c-bg-alt);
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
}
.trust-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; }
.trust-item strong {
  color: var(--c-primary); font-size: 1.08rem;
  font-family: 'Varela Round', sans-serif;
}
.trust-item span { font-size: .82rem; color: var(--c-fg-muted); }

/* === Service block === */
.service-block { padding: var(--space-2xl) 0; }
.service-block h2 { margin-bottom: 16px; }
.service-block .lead { margin-bottom: 48px; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pillar {
  background: var(--c-bg-card); padding: 30px; border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .2s;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pillar-icon { font-size: 2.2rem; margin-bottom: 14px; }
.pillar h3 { color: var(--c-primary); margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--c-fg-muted); }

/* === Testimonials (NEW v2) === */
.testimonials {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
}
.testimonials-head {
  display: flex; align-items: end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px;
}
.testimonials-head h2 { margin: 0; }
.testimonials-rating {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; border: 1px solid var(--c-border);
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: .98rem; box-shadow: var(--shadow-sm);
}
.testimonials-rating .rating-stars {
  color: var(--c-star); letter-spacing: 2px;
}
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  margin: 0;
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 6px; left: 18px;
  font-family: Georgia, serif; font-size: 4rem; line-height: 1;
  color: var(--c-accent-light); pointer-events: none;
}
.testimonial-card blockquote {
  margin: 0; font-style: italic; color: var(--c-fg);
  font-size: 1.02rem; line-height: 1.55; position: relative; z-index: 1;
}
.testimonial-card figcaption {
  display: flex; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--c-border);
  padding-top: 14px;
  font-size: .9rem;
}
.testimonial-card figcaption strong { color: var(--c-primary); font-size: 1rem; }
.testimonial-card figcaption span { color: var(--c-fg-muted); }
.testimonial-stars {
  color: var(--c-star); letter-spacing: 2px;
  position: absolute; top: 24px; right: 24px;
  font-size: .95rem;
}
.testimonials-disclaimer {
  font-size: .82rem; color: var(--c-fg-muted);
  text-align: center; margin: 28px 0 0;
  font-style: italic;
}

/* === Process === */
.process {
  background: var(--c-primary);
  color: white;
  padding: var(--space-2xl) 0;
  position: relative; overflow: hidden;
}
.process::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(234, 88, 12, .12) 0%, transparent 60%);
  pointer-events: none;
}
.process h2 { color: white; text-align: center; margin-bottom: 48px; position: relative; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  position: relative;
}
.step {
  background: rgba(255, 255, 255, .07);
  padding: 32px; border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(4px);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-accent); color: white;
  font-family: 'Varela Round', sans-serif; font-size: 1.4rem; font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .35);
}
.step h3 { color: white; margin-bottom: 12px; }
.step p { color: #D8E3DE; margin-bottom: 12px; line-height: 1.6; }
.step-link { color: #FFD5B8; font-weight: 700; }
.step-link:hover { color: white; }

/* === FAQ === */
.faq { padding: var(--space-2xl) 0; }
.faq h2 { margin-bottom: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.faq-item {
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 4px 22px;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--c-primary); }
.faq-item summary {
  cursor: pointer; padding: 20px 0;
  font-weight: 700; color: var(--c-fg); font-size: 1.06rem;
  list-style: none;
  position: relative; padding-right: 36px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 1.7rem; color: var(--c-primary);
  font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 20px; color: var(--c-fg-muted); margin: 0; line-height: 1.6; }

/* === Service area === */
.service-area { padding: var(--space-2xl) 0; background: var(--c-bg-alt); }
.service-area h2 { margin-bottom: 12px; }
.service-area .lead { margin-bottom: 28px; }
.city-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.city-list li {
  background: white; padding: 10px 18px; border-radius: var(--r-pill);
  font-size: .93rem; color: var(--c-primary);
  border: 1px solid var(--c-border);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.address-line {
  color: var(--c-fg-muted); font-size: 1rem;
  background: white; padding: 16px 22px; border-radius: var(--r-md);
  border: 1px solid var(--c-border); display: inline-block;
}

/* === Final CTA === */
.final-cta {
  padding: var(--space-2xl) 0;
  background: var(--c-fg); color: white; text-align: center;
  position: relative;
}
.final-cta h2 { color: white; margin-bottom: 32px; }
.final-cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.cta-fineprint { color: #AAB7B1; font-size: .92rem; margin-top: 8px; }

/* === Footer === */
.site-footer {
  background: #0A1410;
  color: #AAB7B1;
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid #1F2724;
  margin-bottom: 18px;
}
.footer-brand strong { color: white; font-size: 1.05rem; font-family: 'Varela Round', sans-serif; }
.footer-contact a { color: #D8E3DE; font-weight: 700; }
.footer-hours strong { color: white; font-family: 'Varela Round', sans-serif; }
.footer-fineprint { font-size: .85rem; color: #5A6660; }

/* === Sticky mobile call === */
.sticky-mobile-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--c-accent); color: white;
  padding: 18px; text-align: center;
  font-weight: 700; font-size: 1.1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
  min-height: 56px;
}
.sticky-mobile-call:hover { color: white; text-decoration: none; }

/* === Responsive === */
@media (max-width: 880px) {
  .hero { padding: 36px 0 56px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-form { max-width: 100%; margin: 0; padding: 28px; }
  .hero-copy { text-align: left; }
  .header-phone { display: none; }
  .sticky-mobile-call { display: block; }
  .cta-mobile-only { display: inline-block; }
  body { padding-bottom: 72px; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .trust-item:last-child { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .testimonials-head { flex-direction: column; align-items: flex-start; }
  .service-block, .process, .faq, .service-area, .final-cta, .testimonials {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-form { padding: 24px; }
  .container { padding: 0 18px; }
  .pillar, .testimonial-card { padding: 24px; }
  .step { padding: 26px; }
  .rating-badge { font-size: .92rem; padding: 8px 14px; }
}
