:root {
  --red: #A02D33;
  --red-ink: #8E262B;
  --spruce: #22392C;
  --gold: #F7DA8A;
  --gold-ink: #6E5312;
  --wheat: #F9F3E2;
  --ink: #2A2118;
  --caption: #5C5347;
}

@font-face {
  font-family: 'Besley';
  src: url('../fonts/besley-700-800-latin.woff2') format('woff2');
  font-weight: 700 800;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Cabin';
  src: url('../fonts/cabin-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Cabin', sans-serif;
  color: var(--ink);
  background-color: var(--wheat);
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .besley, .numeral, .rates-val {
  font-family: 'Besley', serif;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
}

a {
  color: var(--red-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--spruce);
  outline-offset: 2px;
}

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

/* Container */
.container {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header {
  padding: 24px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Carved Sign */
.carved-sign {
  background-color: var(--spruce);
  border: 3px solid var(--gold-ink);
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  text-align: center;
  padding: 12px 16px;
  display: inline-block;
  color: var(--gold);
}
.carved-sign .name {
  font-family: 'Besley', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.carved-sign .ribbon {
  font-family: 'Cabin', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wheat);
}

.carved-sign.large {
  padding: 32px 48px;
}
.carved-sign.large .name {
  font-size: 2rem;
  line-height: 1.4;
}
.carved-sign.large .ribbon {
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.desktop-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.desktop-nav a:hover {
  color: var(--red-ink);
  text-decoration: none;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--red);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
  transition: background-color 0.2s;
  gap: 8px;
}
.btn:hover {
  background-color: var(--red-ink);
  text-decoration: none;
}
.btn-outline {
  background-color: transparent;
  color: var(--ink) !important;
  border: 2px solid var(--spruce);
}
.btn-outline:hover {
  background-color: var(--spruce);
  color: #fff !important;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
}
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid var(--spruce);
  border-radius: 4px;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav-content {
  position: absolute;
  top: 100%;
  right: 24px;
  background: var(--wheat);
  border: 1px solid var(--spruce);
  padding: 16px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; }
}

/* Hero Section */
.hero {
  padding: 48px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.kicker {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-ink);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  margin-bottom: 24px;
}
.hero p {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-trust {
  font-size: 0.85rem;
  color: var(--caption);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Milestone Monument */
.milestone {
  background: #fff;
  border: 1px solid var(--spruce);
  border-radius: 8px;
  padding: 48px;
  text-align: center;
}
.milestone-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-ink);
  margin-bottom: 16px;
}
.milestone-year {
  font-size: clamp(4.5rem, 10vw, 7.5rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 32px;
}
.milestone-timeline {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  font-size: 0.9rem;
}
.timeline-year {
  font-weight: 700;
  color: var(--spruce);
}

/* Hero Photo */
.hero-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Spruce Band */
.spruce-band {
  background-color: var(--spruce);
  color: #fff;
  padding: 64px 0;
}
.spruce-band .lead-line {
  font-family: 'Besley', serif;
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 64px;
  max-width: 800px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: 'Besley', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wheat);
}
.bbb-line {
  font-size: 0.85rem;
  color: var(--wheat);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Services */
.services-section {
  padding: 96px 0;
}
.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.services-section > p {
  font-size: 1.125rem;
  color: var(--caption);
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card.featured {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.service-card:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}
.service-card:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.service-card:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.service-card.featured img {
  height: 280px;
}
.service-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.service-price {
  font-family: 'Besley', serif;
  font-size: 2rem;
  color: var(--red);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.service-price span {
  font-family: 'Cabin', sans-serif;
  font-size: 0.9rem;
  color: var(--caption);
}
.service-desc {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 24px;
}
.service-link {
  margin-top: auto;
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .service-card.featured,
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4) {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* Story Section */
.story-section {
  padding: 96px 0;
}
.story-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .story-inner {
    grid-template-columns: 1fr;
  }
}
.story-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
.story-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.snapshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.snapshot-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #e0d8c8;
  margin-bottom: 8px;
}
.snapshot-item p {
  font-size: 0.75rem;
  color: var(--caption);
  line-height: 1.3;
}
@media (max-width: 768px) {
  .snapshots {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Care Standards */
.care-section {
  background-color: var(--wheat);
  padding: 96px 0;
}
.care-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
}
@media (max-width: 900px) {
  .care-grid { grid-template-columns: 1fr; }
}
.care-grid h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.vax-table {
  background: #fff;
  border-radius: 4px;
  margin: 24px 0;
}
.vax-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 0.95rem;
}
.vax-row:last-child {
  border-bottom: none;
}
.vax-row strong {
  font-weight: 700;
}

.generator-card {
  background-color: var(--spruce);
  color: #fff;
  padding: 48px 32px;
  border-radius: 8px;
}
.generator-card h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.generator-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Visit / Form */
.visit-section {
  padding: 96px 0;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
}
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; }
}
.visit-grid h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.hours-table {
  background: #f1ebd7;
  border-radius: 4px;
  margin: 32px 0;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.95rem;
}
.hours-row:last-child { border-bottom: none; }
.hours-row strong { font-weight: 700; }

.mock-form {
  background: #f1ebd7;
  padding: 32px;
  border-radius: 8px;
}
.mock-form h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-family: 'Cabin', sans-serif;
  font-size: 1rem;
}
.mock-form .btn {
  width: 100%;
  margin-top: 8px;
}
.form-note {
  font-size: 0.75rem;
  color: var(--caption);
  text-align: center;
  margin-top: 16px;
}

/* Footer */
footer {
  background-color: var(--spruce);
  color: #fff;
  padding: 64px 0 120px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-left p {
  font-size: 0.85rem;
  margin-top: 8px;
  color: var(--wheat);
}
.footer-right {
  text-align: right;
}
.footer-phone {
  font-family: 'Besley', serif;
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
}
.footer-right p {
  font-size: 0.85rem;
  margin-top: 8px;
  color: var(--wheat);
}
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; text-align: left; align-items: flex-start; }
  .footer-right { text-align: left; }
}

/* Sticky Call Bar */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--red);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-weight: 700;
  z-index: 1000;
}
@media (max-width: 767px) {
  .sticky-call {
    display: block;
  }
}

/* Preview Ribbon */
.preview-ribbon {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--ink);
  color: var(--wheat);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  font-size: 0.85rem;
}
@media (max-width: 767px) {
  .preview-ribbon {
    bottom: 54px; /* above sticky call */
    flex-wrap: wrap;
    gap: 8px;
  }
}
.ribbon-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ribbon-actions a {
  color: var(--gold);
  text-decoration: underline;
}
.ribbon-dismiss {
  background: none;
  border: none;
  color: var(--wheat);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* Animations - content stays visible by default; JS opts elements into the
   pre-reveal state only when they are below the first viewport */
@media (prefers-reduced-motion: no-preference) {
  .reveal.pre {
    opacity: 0;
    transform: translateY(20px);
  }
  .reveal {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Boarding Page Styles */
.page-header {
  position: relative;
  height: 360px;
  background: var(--spruce);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-header img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.page-header h1 {
  position: relative;
  color: #fff;
  z-index: 1;
  text-align: center;
}

.content-section {
  padding: 64px 0;
  max-width: 800px;
  margin: 0 auto;
}
.content-section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
.content-section p {
  margin-bottom: 16px;
}
.rates-table {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 32px;
}
.rates-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.rates-row:last-child { border-bottom: none; }
.rates-row strong { font-family: 'Besley', serif; font-size: 1.25rem; color: var(--red); }
