/* ============================================
   AHVS — AH Vet Solutions, Inc.
   Landing Page Stylesheet
   Brand: Dark olive on white. Disciplined.
   ============================================ */

:root {
  /* Brand Palette */
  --olive-deep: #253025;
  --olive: #344230;
  --olive-700: #2C3A28;
  --olive-soft: #4A5A44;
  --olive-tint: #E8E9DF;

  --off-white: #F6F4EC;
  --warm-gray: #E6E1D5;
  --paper: #FFFFFF;

  --text: #1F241F;
  --text-muted: #5E665D;
  --text-faint: #8A9088;
  --border: #DCDACE;
  --border-soft: #ECEAE0;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, "Times New Roman", serif;

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

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(31, 36, 31, 0.04), 0 1px 3px rgba(31, 36, 31, 0.06);
  --shadow-md: 0 6px 18px -8px rgba(31, 36, 31, 0.18), 0 2px 6px rgba(31, 36, 31, 0.05);
  --shadow-lg: 0 24px 60px -24px rgba(31, 36, 31, 0.25), 0 6px 14px -6px rgba(31, 36, 31, 0.08);

  --container: 1180px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--olive-deep); }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--olive-deep);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--olive);
  margin: 0 0 var(--s-4);
}
.eyebrow.light { color: rgba(255,255,255,0.7); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--s-4);
}
.section-title.light { color: var(--paper); }

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--olive);
  margin: var(--s-6) 0 var(--s-3);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 auto var(--s-7);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--s-8);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  background: var(--olive);
  color: var(--paper);
  border-color: var(--olive);
}
.btn-primary:hover {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
  background: var(--paper);
  color: var(--olive-deep);
  border-color: var(--paper);
}
.btn-large {
  padding: 18px 36px;
  font-size: 1rem;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: var(--s-5);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 44px; width: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:hover { color: var(--olive-deep); }
.primary-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--olive-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(52, 66, 48, 0.045), transparent 70%),
    var(--paper);
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 10vw, 128px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  left: 0;
  right: 0;
  pointer-events: none;
}
.hero::before { top: 20%; }
.hero::after { bottom: 12%; opacity: 0.5; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-logo {
  width: clamp(180px, 28vw, 320px);
  height: auto;
  margin-bottom: var(--s-7);
  filter: drop-shadow(0 8px 30px rgba(31, 36, 31, 0.08));
}
.hero-headline {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 600;
  max-width: 22ch;
  margin: 0 auto var(--s-5);
  line-height: 1.18;
}
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0 auto var(--s-7);
  line-height: 1.6;
}
.hero-badge {
  margin-top: var(--s-6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive-soft);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.hero-badge::before, .hero-badge::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--olive-soft);
  opacity: 0.5;
}

/* ============================================
   Services
   ============================================ */
.services {
  background: var(--off-white);
  padding: clamp(72px, 10vw, 120px) 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
}

.workshop-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--s-6);
  position: relative;
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  outline: none;
  min-height: 280px;
}
.workshop-card:hover,
.workshop-card:focus-visible,
.workshop-card.is-open {
  border-color: var(--olive);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.workshop-card:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.card-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--olive);
  margin-bottom: var(--s-4);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.card-number::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--olive);
  display: inline-block;
  opacity: 0.6;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--s-3);
  color: var(--olive-deep);
  line-height: 1.25;
}

.card-short {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.card-expanded {
  font-size: 0.92rem;
  color: var(--text);
  margin: var(--s-4) 0 0;
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(4px);
  transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
  padding-top: 0;
  border-top: 1px solid transparent;
}

.workshop-card:hover .card-expanded,
.workshop-card:focus-visible .card-expanded,
.workshop-card.is-open .card-expanded {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  padding-top: var(--s-4);
  margin-top: var(--s-5);
  border-top-color: var(--border-soft);
}

.card-toggle {
  margin-top: auto;
  padding-top: var(--s-5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.25s ease;
}
.card-toggle svg { transition: transform 0.3s ease; }
.workshop-card:hover .card-toggle svg,
.workshop-card:focus-visible .card-toggle svg,
.workshop-card.is-open .card-toggle svg {
  transform: rotate(180deg);
}

/* ============================================
   Consulting
   ============================================ */
.consulting {
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--off-white);
}
.consulting-card {
  background: var(--olive-deep);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(255,255,255,0.06), transparent 65%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255,255,255,0.04), transparent 65%),
    linear-gradient(180deg, var(--olive) 0%, var(--olive-deep) 100%);
}
.consulting-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: var(--s-6);
}
.consulting-title {
  color: var(--paper);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 22ch;
  margin: 0 auto var(--s-5);
}
.consulting-body {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin: 0 auto var(--s-7);
  line-height: 1.65;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--paper);
}
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.portrait-card {
  background: var(--off-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.portrait-card img {
  width: 70%;
  margin: var(--s-3) auto var(--s-5);
}
.portrait-meta {
  border-top: 1px solid var(--border-soft);
  padding-top: var(--s-4);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portrait-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--olive-deep);
}
.portrait-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.cred-list {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.cred-list li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--olive);
  background: var(--olive-tint);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  text-align: center;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 var(--s-5);
}
.about-body p:last-child { margin-bottom: 0; }
.about-body em { color: var(--olive-deep); font-style: italic; }
.about-body strong { color: var(--olive-deep); }

/* ============================================
   Books
   ============================================ */
.books {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--off-white);
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  max-width: 880px;
  margin: 0 auto;
}
.book-card {
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--olive);
}
.book-cover-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--off-white);
}
.book-cover {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: var(--paper);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.book-cover.alt {
  background: linear-gradient(135deg, var(--olive-deep) 0%, #1A2118 100%);
}
.book-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  pointer-events: none;
}
.book-cover-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 1;
}
.book-cover-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.book-cover-author {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  z-index: 1;
}
.book-meta {
  padding: var(--s-5) var(--s-6) var(--s-6);
}
.book-meta h3 {
  font-size: 1.35rem;
  margin: 0 0 var(--s-3);
}
.book-meta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 var(--s-5);
  line-height: 1.6;
}
.book-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.book-card:hover .book-link svg {
  transform: translateX(3px);
  transition: transform 0.25s ease;
}

/* ============================================
   Digest
   ============================================ */
.digest {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--olive-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.digest::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 20%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
}
.digest-inner {
  text-align: center;
  position: relative;
  max-width: 720px;
}
.digest-mark {
  display: inline-flex;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-6);
  color: rgba(255,255,255,0.9);
}
.digest-body {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.82);
  max-width: 58ch;
  margin: 0 auto var(--s-6);
  line-height: 1.65;
}
.digest-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0;
}
.digest-status .dot {
  width: 8px;
  height: 8px;
  background: #B6D29A;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(182, 210, 154, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(182, 210, 154, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(182, 210, 154, 0.05); }
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--paper);
  text-align: center;
}
.final-cta-inner { max-width: 760px; margin: 0 auto; }
.final-cta-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto var(--s-7);
  line-height: 1.65;
}
.contact-lines {
  margin-top: var(--s-7);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}
.contact-lines a { color: var(--text); font-weight: 500; }
.contact-lines a:hover { color: var(--olive-deep); }
.contact-lines .sep { color: var(--text-faint); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--olive-deep);
  color: rgba(255,255,255,0.78);
  padding: var(--s-8) 0 var(--s-6);
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
}
.footer-brand { display: flex; align-items: center; gap: var(--s-4); }
.footer-logo {
  height: 56px;
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.footer-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
  font-size: 1.05rem;
}
.footer-contact {
  text-align: center;
}
.footer-contact p { margin: 0 0 4px; }
.footer-contact a { color: rgba(255,255,255,0.92); }
.footer-contact a:hover { color: var(--paper); }
.footer-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 6px !important;
}
.footer-meta { text-align: right; font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.footer-meta p { margin: 0; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }
  .portrait-card { max-width: 360px; margin: 0 auto; }
  .cred-list { max-width: 360px; margin: var(--s-5) auto 0; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--s-5);
  }
  .footer-brand { justify-content: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 480px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) 0;
  }
  .primary-nav li {
    border-top: 1px solid var(--border-soft);
  }
  .primary-nav li:first-child { border-top: none; }
  .primary-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  .primary-nav a::after { display: none; }

  .hero { padding: 56px 0 72px; }
  .hero-logo { width: 200px; margin-bottom: var(--s-6); }
  .section-head { margin-bottom: var(--s-6); }
  .contact-lines { gap: var(--s-2); font-size: 0.88rem; }
  .contact-lines .sep { display: none; }
  .contact-lines a { display: block; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
