/* =========================================================
   GOAT Vet — Theme Stylesheet
   Palette derived from the Gaia Animal Clinic mark:
   the looped dog/cat line drawing in warm gold, soft grey,
   and warm charcoal ink on a cream ground.
   ========================================================= */

* {
  font-family: "Maven Pro", sans-serif !important;
}

:root {
  /* --- Core palette (from logo) --- */
  --gaia-gold:        #C98A3F;   /* dog body — primary accent */
  --gaia-gold-deep:    #A86B2C;  /* hover/pressed state */
  --gaia-gold-tint:    #F2DDBB;  /* light fills, badges */
  --gaia-grey:         #ADADAE; /* cat body — secondary accent */
  --gaia-grey-tint:    #E7E5E1;
  --gaia-ink:          #2B241D; /* line-art charcoal — headings/text */
  --gaia-ink-soft:      #5B5249;
  --gaia-cream:        #FBF6EE; /* page background */
  --gaia-cream-deep:    #F3EBDC;
  --gaia-white:        #FFFFFF;

  /* --- Semantic tokens --- */
  --bg:            var(--gaia-cream);
  --bg-alt:        var(--gaia-cream-deep);
  --surface:       var(--gaia-white);
  --text:          var(--gaia-ink);
  --text-soft:     var(--gaia-ink-soft);
  --accent:        var(--gaia-gold);
  --accent-deep:   var(--gaia-gold-deep);
  --accent-tint:   var(--gaia-gold-tint);
  --line:          rgba(43, 36, 29, 0.12);

  /* --- Type scale --- */
  --font-display: 'Maven Pro', sans-serif;
  --font-body:    'Maven Pro', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  border-radius: 2px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--gaia-white);
  box-shadow: 0 10px 24px -10px rgba(201, 138, 63, 0.65);
}
.btn-primary:hover { background: var(--accent-deep); }

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

.btn-light {
  background: var(--gaia-white);
  color: var(--accent-deep);
}

/* ---------------------------------------------------------
   Header / Nav
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a { color: var(--text-soft); transition: color .15s ease; }
.nav-links a:hover { color: var(--accent-deep); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent-deep); }

@media (max-width: 880px) {
  .wrap.nav { position: relative; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -28px rgba(43,36,29,0.35);
    padding: 8px 24px 14px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 60px;
}

.hero-loop {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 620px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  margin-top: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
  position: relative;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 480px;
  margin: 20px 0 32px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-soft);
}
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gaia-grey-tint);
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: inline-block;
}
.hero-trust .avatars span:first-child { margin-left: 0; }

/* hero visual card stack */
.hero-visual {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 30px 70px -32px rgba(43, 36, 29, 0.28);
  border: 1px solid var(--line);
}

.hero-visual .mark-watermark {
  position: absolute;
  width: 220px;
  bottom: -30px;
  left: -40px;
  opacity: 0.9;
}

.hero-stat-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.hero-stat {
  flex: 1;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.hero-stat .num { font-family: var(--font-display); font-size: 24px; color: var(--accent-deep); font-weight: 700; }
.hero-stat .label { font-size: 12px; color: var(--text-soft); margin-top: 2px; }

.queue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
}
.queue-card .pet {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 14px;
}
.queue-card .pet .dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gaia-gold), var(--gaia-grey));
}
.queue-card .status {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.status-waiting { background: var(--accent-tint); color: var(--accent-deep); }
.status-progress { background: var(--gaia-grey-tint); color: var(--text-soft); }
.status-done { background: #DCEBD9; color: #3C6B38; }

/* ---------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--text-soft); font-size: 16px; margin-top: 12px; }

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

/* ---------------------------------------------------------
   Why GOAT Vet — split panel
   --------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.why-grid h2 { font-size: clamp(26px, 3.2vw, 34px); }
.why-grid p { color: var(--text-soft); margin: 18px 0 30px; }
.why-actions { display: flex; gap: 14px; }

.device-frame {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
}
.device-bubbles { position: relative; height: 360px; }
.bubble {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -14px rgba(43,36,29,0.35);
  font-size: 24px;
}
.bubble-1 { top: 10px; left: 0; background: var(--accent-tint); }
.bubble-2 { top: 40px; right: 20px; background: var(--gaia-grey-tint); }
.bubble-3 { bottom: 30px; left: 30px; background: var(--gaia-grey-tint); }
.bubble-4 { bottom: 0; right: 0; background: var(--accent-tint); }

.device-card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  background: var(--gaia-ink);
  color: var(--gaia-white);
  border-radius: 22px;
  padding: 20px;
}
.device-card .balance { font-family: var(--font-display); font-size: 26px; margin: 6px 0 4px; }
.device-card .sub { font-size: 11px; color: rgba(255,255,255,0.6); }
.device-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12px; }
.device-card .pill { background: var(--accent); border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 11px; }

/* ---------------------------------------------------------
   Feature cards
   --------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -28px rgba(43,36,29,0.35);
  border-color: var(--accent-tint);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-soft); margin: 0 0 14px; }
.feature-card .know-more { font-size: 13px; font-weight: 700; color: var(--accent-deep); }

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-loop { display: none; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------
   Workflow strip (visit lifecycle — order matters, so numbered)
   --------------------------------------------------------- */
.flow-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.flow-step {
  text-align: center;
  padding: 0 14px;
  position: relative;
}
.flow-step .n {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
  margin: 0 auto 14px;
  position: relative; z-index: 2;
}
.flow-step h4 { font-size: 15px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--text-soft); margin: 0; }
.flow-strip::before {
  content: "";
  position: absolute;
  top: 19px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  z-index: 1;
}
@media (max-width: 900px) {
  .flow-strip { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .flow-strip::before { display: none; }
}

/* ---------------------------------------------------------
   Contact CTA band
   --------------------------------------------------------- */
.cta-band {
  background: var(--gaia-ink);
  color: var(--gaia-white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--gaia-white); }
.cta-band p { color: rgba(255,255,255,0.65); margin: 14px 0 30px; }
.cta-band .mark-watermark {
  position: absolute;
  width: 320px;
  right: -60px;
  bottom: -80px;
  opacity: 0.08;
}

/* ---------------------------------------------------------
   Clinic stories / testimonials
   --------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.story-media {
  height: 180px;
  background: linear-gradient(135deg, var(--gaia-gold), var(--gaia-grey));
  position: relative;
  display: flex; align-items: flex-end; padding: 16px;
}
.story-media .badge {
  background: rgba(255,255,255,0.92);
  color: var(--accent-deep);
  font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.story-body { padding: 22px; }
.story-body .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); }
.story-body h3 { font-size: 18px; margin: 8px 0 10px; }
.story-body p { font-size: 14px; color: var(--text-soft); }

@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Trusted-by strip
   --------------------------------------------------------- */
.trusted-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  opacity: 0.75;
  filter: grayscale(1);
}
.trusted-strip span { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-soft); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--gaia-ink);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.footer-brand strong { color: var(--gaia-white); font-family: var(--font-display); font-size: 19px; }
.footer-top p.tag { font-size: 14px; max-width: 260px; color: rgba(255,255,255,0.55); }
.footer-col h5 { color: var(--gaia-white); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,0.62); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .legal-links { display: flex; gap: 18px; }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 44px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
