/* =============================================
   HAVEN CHURCH — Styles
   Template 24 · Church
   Palette: Carbon + Warm Ivory + Muted Moss
   Fonts: Sora (display) + Source Serif 4 (body)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Source+Serif+4:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --hv-carbon:        #2f3237;
  --hv-slate:         #4d5259;
  --hv-pewter:        #787d85;
  --hv-cloud:         #b5b8bd;
  --hv-mist:          #eceae7;
  --hv-ivory:         #f8f6f3;
  --hv-white:         #ffffff;
  --hv-moss:          #7d8c73;
  --hv-moss-deep:     #64735b;
  --hv-moss-glow:     rgba(125, 140, 115, .1);

  --hv-font-display:  'Sora', sans-serif;
  --hv-font-body:     'Source Serif 4', Georgia, serif;

  --hv-nav-height:    70px;
  --hv-banner-height: 34px;
  --hv-radius:        10px;
  --hv-radius-lg:     16px;
  --hv-shadow:        0 2px 16px rgba(0, 0, 0, .04);
  --hv-shadow-lg:     0 10px 40px rgba(0, 0, 0, .07);
  --hv-transition:    .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--hv-font-body);
  color: var(--hv-carbon);
  background: var(--hv-white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--hv-font-display);
  line-height: 1.2;
  font-weight: 600;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.hv-container {
  width: 88%;
  max-width: 1120px;
  margin: 0 auto;
}

/* ---------- Demo Banner ---------- */
.hv-demo-banner {
  background: var(--hv-carbon);
  color: var(--hv-cloud);
  text-align: center;
  padding: 8px 16px;
  font-family: var(--hv-font-display);
  font-size: .76rem;
  font-weight: 500;
  height: var(--hv-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  letter-spacing: .3px;
}

.hv-demo-banner a {
  color: var(--hv-moss);
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.hv-nav {
  position: fixed;
  top: var(--hv-banner-height);
  left: 0;
  width: 100%;
  height: var(--hv-nav-height);
  z-index: 960;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--hv-transition), border-color var(--hv-transition), box-shadow var(--hv-transition);
  border-bottom: 1px solid transparent;
}

.hv-nav.scrolled {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  border-color: var(--hv-mist);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .04);
}

/* When nav is transparent (over hero), links are white */
.hv-nav .hv-nav-links a { color: rgba(255, 255, 255, .75); }
.hv-nav .hv-nav-links a:hover { color: var(--hv-white); }
.hv-nav .hv-logo { color: var(--hv-white); }
.hv-nav .hv-nav-cta { border-color: rgba(255, 255, 255, .35); color: var(--hv-white) !important; }
.hv-nav .hv-nav-cta:hover { background: var(--hv-white) !important; color: var(--hv-carbon) !important; border-color: var(--hv-white); }
.hv-nav .hv-hamburger span { background: var(--hv-white); }

/* When scrolled, switch to dark text */
.hv-nav.scrolled .hv-nav-links a { color: var(--hv-pewter); }
.hv-nav.scrolled .hv-nav-links a:hover { color: var(--hv-carbon); }
.hv-nav.scrolled .hv-logo { color: var(--hv-carbon); }
.hv-nav.scrolled .hv-nav-cta { border-color: var(--hv-carbon) !important; color: var(--hv-carbon) !important; }
.hv-nav.scrolled .hv-nav-cta:hover { background: var(--hv-carbon) !important; color: var(--hv-white) !important; }
.hv-nav.scrolled .hv-hamburger span { background: var(--hv-carbon); }

.hv-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 88%;
  max-width: 1120px;
  margin: 0 auto;
}

.hv-logo {
  font-family: var(--hv-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.3px;
  transition: color var(--hv-transition);
}

.hv-logo-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.hv-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hv-nav-links a {
  font-family: var(--hv-font-display);
  font-size: .82rem;
  font-weight: 500;
  transition: color var(--hv-transition);
  letter-spacing: .2px;
}

.hv-nav-cta {
  font-weight: 600 !important;
  border: 1.5px solid;
  padding: 8px 22px;
  border-radius: 50px;
  transition: all var(--hv-transition) !important;
}

/* Hamburger */
.hv-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 970;
}

.hv-hamburger span {
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  transition: var(--hv-transition);
}

.hv-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.hv-hamburger.active span:nth-child(2) { opacity: 0; }
.hv-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* Mobile Menu */
.hv-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--hv-white);
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 48px 36px;
  transition: right var(--hv-transition);
  box-shadow: -4px 0 24px rgba(0, 0, 0, .05);
}

.hv-mobile-menu.open { right: 0; }

.hv-mobile-menu a {
  font-family: var(--hv-font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--hv-carbon);
}

.hv-mobile-menu a:hover { color: var(--hv-moss-deep); }
.hv-mobile-menu hr { border: none; border-top: 1px solid var(--hv-mist); }

.hv-mobile-cta {
  border: 1.5px solid var(--hv-carbon);
  padding: 14px 28px;
  border-radius: 50px;
  text-align: center;
  font-weight: 600 !important;
}

/* ---------- Hero — Full Width ---------- */
.hv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: calc(var(--hv-banner-height) + var(--hv-nav-height));
}

.hv-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1507692049790-de58290a4334?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}

.hv-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(47, 50, 55, .55) 0%,
    rgba(47, 50, 55, .42) 40%,
    rgba(47, 50, 55, .60) 100%
  );
}

.hv-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 40px 20px;
}

.hv-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hv-font-display);
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.hv-hero-label::before,
.hv-hero-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, .25);
}

.hv-hero-content h1 {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--hv-white);
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -.5px;
}

.hv-hero-content h1 em {
  font-family: var(--hv-font-body);
  font-style: italic;
  font-weight: 400;
}

.hv-hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .7);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.85;
}

.hv-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hv-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hv-white);
  color: var(--hv-carbon);
  font-family: var(--hv-font-display);
  font-size: .88rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all var(--hv-transition);
  letter-spacing: .2px;
}

.hv-btn-white:hover {
  background: var(--hv-ivory);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

.hv-btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--hv-white);
  font-family: var(--hv-font-display);
  font-size: .88rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  transition: all var(--hv-transition);
}

.hv-btn-outline-white:hover {
  border-color: var(--hv-white);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-2px);
}

/* Hero service times bar */
.hv-hero-times {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  background: rgba(47, 50, 55, .7);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.hv-hero-times-inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 20px 0;
}

.hv-time-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hv-font-display);
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
}

.hv-time-item strong {
  color: var(--hv-white);
  font-weight: 600;
}

.hv-time-dot {
  width: 4px;
  height: 4px;
  background: var(--hv-moss);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Section Defaults ---------- */
.hv-section { padding: 100px 0; }

.hv-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.hv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hv-font-display);
  font-size: .7rem;
  font-weight: 600;
  color: var(--hv-pewter);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.hv-eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--hv-cloud);
}

.hv-section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--hv-carbon);
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.hv-section-header h2 em {
  font-family: var(--hv-font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--hv-moss-deep);
}

.hv-section-header p {
  font-size: 1.05rem;
  color: var(--hv-pewter);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Welcome ---------- */
.hv-welcome {
  background: var(--hv-ivory);
  border-bottom: 1px solid var(--hv-mist);
}

.hv-welcome-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.hv-welcome-rule {
  width: 36px;
  height: 1px;
  background: var(--hv-moss);
  margin: 0 auto 28px;
}

.hv-welcome h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--hv-carbon);
  margin-bottom: 18px;
  letter-spacing: -.3px;
}

.hv-welcome p {
  font-size: 1.1rem;
  color: var(--hv-slate);
  line-height: 1.9;
  margin-bottom: 14px;
}

.hv-welcome p:last-of-type { margin-bottom: 0; }

/* ---------- What to Expect ---------- */
.hv-expect {
  background: var(--hv-white);
}

.hv-expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.hv-expect-card {
  text-align: center;
  padding: 36px 24px;
}

.hv-expect-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--hv-moss-glow);
  border: 1px solid rgba(125, 140, 115, .2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hv-moss-deep);
  transition: all var(--hv-transition);
}

.hv-expect-card:hover .hv-expect-icon {
  background: var(--hv-moss);
  border-color: var(--hv-moss);
  color: var(--hv-white);
}

.hv-expect-card h3 {
  font-size: 1.05rem;
  color: var(--hv-carbon);
  margin-bottom: 10px;
  font-weight: 600;
}

.hv-expect-card p {
  font-size: .95rem;
  color: var(--hv-pewter);
  line-height: 1.7;
}

/* ---------- Ministries (Alternating Rows) ---------- */
.hv-ministries {
  background: var(--hv-ivory);
  border-top: 1px solid var(--hv-mist);
  border-bottom: 1px solid var(--hv-mist);
}

.hv-ministry-rows {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.hv-ministry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hv-ministry-row:nth-child(even) .hv-ministry-image { order: 2; }
.hv-ministry-row:nth-child(even) .hv-ministry-text { order: 1; }

.hv-ministry-image {
  border-radius: var(--hv-radius-lg);
  overflow: hidden;
  box-shadow: var(--hv-shadow-lg);
}

.hv-ministry-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform .5s ease;
}

.hv-ministry-image:hover img { transform: scale(1.03); }

.hv-ministry-text .hv-eyebrow { display: flex; }

.hv-ministry-text h3 {
  font-size: 1.5rem;
  color: var(--hv-carbon);
  margin-bottom: 12px;
  letter-spacing: -.3px;
}

.hv-ministry-text p {
  font-size: 1.02rem;
  color: var(--hv-pewter);
  line-height: 1.85;
  margin-bottom: 24px;
}

.hv-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--hv-font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--hv-moss-deep);
  transition: gap var(--hv-transition);
}

.hv-link-arrow:hover { gap: 10px; }

/* ---------- Events ---------- */
.hv-events {
  background: var(--hv-white);
}

.hv-events-list {
  max-width: 780px;
  margin: 0 auto;
}

.hv-event-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--hv-mist);
  transition: all var(--hv-transition);
}

.hv-event-item:first-child { border-top: 1px solid var(--hv-mist); }

.hv-event-item:hover { padding-left: 8px; }

.hv-event-date {
  text-align: center;
}

.hv-event-date-month {
  font-family: var(--hv-font-display);
  font-size: .65rem;
  font-weight: 700;
  color: var(--hv-moss-deep);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hv-event-date-day {
  font-family: var(--hv-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--hv-carbon);
  line-height: 1.1;
  letter-spacing: -.5px;
}

.hv-event-info h3 {
  font-size: 1.05rem;
  color: var(--hv-carbon);
  margin-bottom: 4px;
  font-weight: 600;
}

.hv-event-info p {
  font-size: .9rem;
  color: var(--hv-pewter);
  line-height: 1.6;
}

.hv-event-time {
  font-family: var(--hv-font-display);
  font-size: .82rem;
  font-weight: 600;
  color: var(--hv-pewter);
  white-space: nowrap;
}

/* ---------- Pastoral Letter ---------- */
.hv-pastoral {
  background: var(--hv-ivory);
  border-top: 1px solid var(--hv-mist);
  border-bottom: 1px solid var(--hv-mist);
}

.hv-pastoral-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.hv-pastoral-photo {
  border-radius: var(--hv-radius-lg);
  overflow: hidden;
  box-shadow: var(--hv-shadow);
}

.hv-pastoral-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hv-pastoral-text blockquote {
  font-family: var(--hv-font-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--hv-slate);
  line-height: 1.85;
  margin-bottom: 24px;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--hv-moss);
}

.hv-pastoral-text .hv-pastoral-name {
  font-family: var(--hv-font-display);
  font-style: normal;
  font-size: .88rem;
  font-weight: 600;
  color: var(--hv-carbon);
  margin-bottom: 2px;
}

.hv-pastoral-text .hv-pastoral-title {
  font-family: var(--hv-font-display);
  font-size: .78rem;
  font-weight: 500;
  color: var(--hv-pewter);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- CTA ---------- */
.hv-cta {
  background: var(--hv-carbon);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hv-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(125, 140, 115, .08) 0%, transparent 60%);
}

.hv-cta-inner { position: relative; z-index: 1; }

.hv-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--hv-white);
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.hv-cta h2 em {
  font-family: var(--hv-font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--hv-moss);
}

.hv-cta p {
  font-size: 1.05rem;
  color: var(--hv-pewter);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hv-btn-moss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hv-moss);
  color: var(--hv-white);
  font-family: var(--hv-font-display);
  font-size: .88rem;
  font-weight: 600;
  padding: 14px 34px;
  border-radius: 50px;
  transition: all var(--hv-transition);
  letter-spacing: .2px;
}

.hv-btn-moss:hover {
  background: var(--hv-moss-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(125, 140, 115, .25);
}

/* ---------- Footer ---------- */
.hv-footer {
  background: var(--hv-ivory);
  padding: 60px 0 24px;
  border-top: 1px solid var(--hv-mist);
}

.hv-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 48px;
}

.hv-footer-brand .hv-logo {
  margin-bottom: 14px;
  color: var(--hv-carbon);
}

.hv-footer-brand p {
  font-size: .9rem;
  color: var(--hv-pewter);
  line-height: 1.7;
  max-width: 260px;
}

.hv-footer-col h4 {
  font-family: var(--hv-font-display);
  font-size: .68rem;
  font-weight: 700;
  color: var(--hv-pewter);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
}

.hv-footer-col ul li { margin-bottom: 10px; }

.hv-footer-col ul li a {
  font-family: var(--hv-font-display);
  font-size: .84rem;
  font-weight: 400;
  color: var(--hv-pewter);
  transition: color var(--hv-transition);
}

.hv-footer-col ul li a:hover { color: var(--hv-carbon); }

.hv-footer-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hv-footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--hv-mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hv-pewter);
  transition: all var(--hv-transition);
}

.hv-footer-social a:hover {
  border-color: var(--hv-carbon);
  color: var(--hv-carbon);
}

.hv-footer-bottom {
  border-top: 1px solid var(--hv-mist);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--hv-font-display);
  font-size: .76rem;
  color: var(--hv-cloud);
  letter-spacing: .3px;
}

.hv-footer-bottom a {
  color: var(--hv-cloud);
  transition: color var(--hv-transition);
}

.hv-footer-bottom a:hover { color: var(--hv-carbon); }

/* ---------- Scroll Reveal ---------- */
.hv-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.hv-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hv-ministry-row { grid-template-columns: 1fr; gap: 32px; }
  .hv-ministry-row:nth-child(even) .hv-ministry-image { order: 0; }
  .hv-ministry-row:nth-child(even) .hv-ministry-text { order: 0; }
  .hv-pastoral-inner { grid-template-columns: 1fr; gap: 32px; }
  .hv-pastoral-photo { max-width: 240px; }
  .hv-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hv-hamburger { display: flex; }
  .hv-nav-links { display: none; }
  .hv-expect-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .hv-hero-times-inner { flex-direction: column; align-items: center; gap: 14px; }
  .hv-event-item { grid-template-columns: 60px 1fr; }
  .hv-event-time { grid-column: 2; }
  .hv-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hv-footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .hv-section { padding: 70px 0; }
  .hv-hero-content h1 { font-size: 2.2rem; }
}
