/* ============================================================
   VetBeacon — styles.css
   Shared across all pages. Section comments mark major zones.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600&display=swap');

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

:root {
  --navy:      #002147;
  --navy-dark: #001530;
  --gold:      #DAA520;
  --gold-dim:  #b8891a;
  --offwhite:  #f5f5f0;
  --muted:     #9a9a9a;
  --body-bg:   #f0efe9;
  --card-bg:   #ffffff;
  --radius:    6px;
  --transition: 0.22s ease;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: #1a1a1a;
  background: var(--body-bg);
}

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

/* ── Typography helpers ── */
.headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.subheadline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218,165,32,0.35);
  outline: none;
}

.btn-outline {
  background: transparent;
  color: var(--offwhite);
  border-color: var(--offwhite);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--offwhite);
  color: var(--navy-dark);
  transform: translateY(-2px);
  outline: none;
}

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Gold divider ── */
.gold-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 0 auto 1.5rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid rgba(218,165,32,0.25);
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  gap: 1rem;
}

/* Logo in header */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo img {
  height: 108px;
  width: auto;
}

/* Pulse animation on .logo-beacon class added to logo wrapper */
.header-logo .beacon-pulse circle.pulse-ring {
  animation: beacon-pulse 2.4s ease-out infinite;
  transform-origin: 52px 28px;
}

/* Site nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.site-nav li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--offwhite);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.site-nav li a:hover, .site-nav li a:focus-visible {
  color: var(--gold);
  background: rgba(218,165,32,0.08);
  outline: none;
}
.site-nav li.nav-cta a {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 0.4rem 1.2rem;
  margin-left: 0.5rem;
}
.site-nav li.nav-cta a:hover {
  background: var(--gold-dim);
  color: var(--navy-dark);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--offwhite);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s 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: var(--navy);
  color: var(--offwhite);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Chevron/beacon background motif */
#hero::before {
  content: '';
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40,240 L150,130 L260,240' fill='none' stroke='rgba(218,165,32,0.06)' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M55,210 L150,115 L245,210' fill='none' stroke='rgba(218,165,32,0.10)' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M75,180 L150,100 L225,180' fill='none' stroke='rgba(218,165,32,0.16)' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='150' cy='60' r='24' fill='none' stroke='rgba(218,165,32,0.12)' stroke-width='2'/%3E%3Ccircle cx='150' cy='60' r='14' fill='rgba(218,165,32,0.08)'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  margin-bottom: 1.4rem;
  color: var(--offwhite);
}

.hero-headline span { color: var(--gold); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(245,245,240,0.78);
  max-width: 540px;
  margin-bottom: 2.4rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ============================================================
   TRUST / PROBLEM SECTION
   ============================================================ */
#trust {
  background: var(--offwhite);
  padding: 5rem 0;
}

#trust .section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.75rem;
}

#trust .section-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

#trust .section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 3rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.trust-card {
  background: var(--card-bg);
  border: 1px solid #e2e0d8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;
}

.trust-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  background: var(--navy);
  color: var(--offwhite);
  padding: 5.5rem 0;
}

#services .section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.75rem;
}

#services .section-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  color: var(--offwhite);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(218,165,32,0.2);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  background: rgba(218,165,32,0.08);
  border-color: rgba(218,165,32,0.5);
  transform: translateY(-4px);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--offwhite);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 0.92rem;
  color: rgba(245,245,240,0.72);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works {
  background: var(--body-bg);
  padding: 5.5rem 0;
}

#how-it-works .section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.75rem;
}

#how-it-works .section-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-align: center;
  color: var(--navy);
  margin-bottom: 3.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

/* Connector line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(218,165,32,0.3) 100%);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
}

.step-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.step h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.step p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}

/* ============================================================
   ABOUT / CREDIBILITY
   ============================================================ */
#about-teaser {
  background: var(--navy);
  color: var(--offwhite);
  padding: 5rem 0;
}

.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--offwhite);
  margin-bottom: 1.2rem;
}

.about-text p {
  font-size: 0.97rem;
  color: rgba(245,245,240,0.78);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-text .learn-more {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(218,165,32,0.4);
  padding-bottom: 2px;
  transition: border-color var(--transition), color var(--transition);
}
.about-text .learn-more:hover { border-color: var(--gold); }

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.credential-block {
  border: 1px solid rgba(218,165,32,0.25);
  border-radius: var(--radius);
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  max-width: 340px;
  width: 100%;
}

.credential-block .stat {
  margin-bottom: 1.5rem;
}
.credential-block .stat:last-child { margin-bottom: 0; }

.credential-block .stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
}

.credential-block .stat-label {
  font-size: 0.9rem;
  color: rgba(245,245,240,0.65);
  margin-top: 0.2rem;
}

/* ============================================================
   CTA BAND
   ============================================================ */
#cta-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #003366 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 5rem 0;
  text-align: center;
}

#cta-band h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--offwhite);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#cta-band h2 span { color: var(--gold); }

#cta-band p {
  font-size: 1.05rem;
  color: rgba(245,245,240,0.72);
  max-width: 480px;
  margin: 0 auto 2.4rem;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy-dark);
  color: rgba(245,245,240,0.65);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(218,165,32,0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .footer-logo {
  margin-bottom: 1rem;
}
.footer-brand .footer-logo a {
  display: block;
  width: fit-content;
}
.footer-brand .footer-logo img {
  width: 190px;
  height: auto;
  max-width: 100%;
  opacity: 0.92;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 260px;
  color: rgba(245,245,240,0.55);
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(245,245,240,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--offwhite); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(245,245,240,0.4);
}

.footer-bottom a {
  color: rgba(245,245,240,0.45);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--offwhite); }

/* ============================================================
   PLACEHOLDER PAGES
   ============================================================ */
.placeholder-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--body-bg);
}

.placeholder-content {
  text-align: center;
  padding: 4rem 2rem;
}

.placeholder-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.placeholder-content p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

/* ============================================================
   INTAKE FORM MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 48, 0.82);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(3px);
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}

.modal-header {
  background: var(--navy);
  padding: 1.75rem 2rem 1.5rem;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.modal-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--offwhite);
  letter-spacing: 0.02em;
}

.modal-header p {
  font-size: 0.9rem;
  color: rgba(245,245,240,0.68);
  margin-top: 0.3rem;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245,245,240,0.6);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { color: var(--offwhite); background: rgba(255,255,255,0.1); }

.modal-body {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #d0cfc8;
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fafaf8;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(218,165,32,0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23002147' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 0.95rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-body { padding: 1.5rem; }
}

/* ============================================================
   BEACON PULSE ANIMATION
   (Applied via CSS to SVG pulse rings inside .header-logo)
   ============================================================ */
@keyframes beacon-pulse {
  0%   { r: 9; opacity: 0.5; }
  70%  { r: 20; opacity: 0; }
  100% { r: 9; opacity: 0; }
}

/* JS adds class="pulsing" to header logo wrapper — the CSS
   then targets the SVG's pulse-ring circles via the inline SVG
   approach in main.js */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-teaser-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-visual { justify-content: flex-start; }

  .steps-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid::before { display: none; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  /* Nav collapse */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 2px solid rgba(218,165,32,0.25);
    gap: 0.1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav li a {
    display: block;
    padding: 0.7rem 0.5rem;
    font-size: 1.05rem;
  }
  .site-nav li.nav-cta { margin-top: 0.5rem; }
  .site-nav li.nav-cta a { text-align: center; margin-left: 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  #hero { padding: 4rem 0 3.5rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}
