/* =========================================
   COLD SPRING CHAPEL — Stylesheet
   Palette: aged linen, warm forest green,
   faded gold, deep charcoal
   ========================================= */

:root {
  --linen:       #F5F0E8;
  --linen-dark:  #EDE5D4;
  --green:       #3B5240;
  --green-light: #4E6B55;
  --gold:        #7A5F2A;  /* darkened: 4.5:1+ on linen and white */
  --gold-light:  #9E7A3A;  /* darkened: 3:1+ on green for large/icon text */
  --charcoal:    #2C2C2C;
  --warm-gray:   #5A5550;  /* darkened: 4.5:1 on linen */
  --white:       #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --radius: 4px;
  --transition: 0.3s ease;
}

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

/* ---- SKIP LINK (2.4.1) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 4px 4px;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---- FOCUS STYLES (2.4.7) ---- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--linen);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- SECTION SHARED ---- */
.section { padding: 5rem 0; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-title.light { color: var(--linen); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 1.1rem 0;
}
.navbar.scrolled {
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero-placeholder.jpg') center center / cover no-repeat;
  background-color: var(--green); /* fallback */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 45, 32, 0.62) 0%,
    rgba(20, 32, 22, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.2rem;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---- ABOUT ---- */
.about { background: var(--linen); }

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

.about-image-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--linen-dark), 8px 8px 0 var(--gold);
}

.about-img-caption {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--warm-gray);
  letter-spacing: 0.08em;
  text-align: center;
  font-style: italic;
}

.about-text p {
  color: var(--warm-gray);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

/* ---- SERVICES ---- */
.services {
  background: var(--green);
  text-align: center;
}

.services-inner { }

.service-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: background var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,0.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
  display: flex;
  justify-content: center;
  align-items: center;
}
.service-icon svg {
  stroke: var(--gold-light);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.service-time {
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.service-card p:last-child {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92); /* raised from 0.72 for 4.5:1 contrast */
  line-height: 1.6;
}

/* ---- CONTACT ---- */
.contact { background: var(--linen-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.address-block,
.service-detail-block {
  background: var(--linen);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.address-block p,
.service-detail-block p {
  margin: 0;
  line-height: 1.7;
  font-size: 0.97rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  height: 420px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--charcoal);
  padding: 3rem 0;
  text-align: center;
}

.footer-inner { }

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-address,
.footer-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85); /* raised for 4.5:1 contrast */
  margin-bottom: 0.2rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6); /* raised for contrast */
  margin-top: 1.2rem;
  letter-spacing: 0.05em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-img { height: 280px; }

  .service-card-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .map-wrap { height: 300px; }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--green);
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.7rem 1.5rem;
  }
  .nav-toggle { display: block; }

  .hero-title { font-size: 2.4rem; }
  .section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
  * { transition: none !important; }
}

.filter {display:none;}