/* ==========================================================================
   The Old Church in Hope — Stylesheet
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --ivory: #FAF7F2;
  --charcoal: #2C2C2C;
  --warm-gray: #6B6560;
  --stone: #A69888;
  --sage: #7A8B6F;
  --deep-forest: #3D5A3E;
  --aged-gold: #C4A35A;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Lato", system-ui, sans-serif;
}

/* --- @font-face --- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato-bold.woff2") format("woff2");
}

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

html {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--ivory);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

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

/* --- Layout Utilities --- */
.container       { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.text-center     { text-align: center; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(166, 152, 136, 0.3);
}

.site-header nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-header .site-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
  transition: color 0.2s;
}
.site-header .site-title:hover { color: var(--sage); }

/* Desktop nav */
.desktop-nav { display: none; align-items: center; gap: 0.25rem; }
.desktop-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color 0.2s;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--sage); }
.desktop-nav a.active  { font-weight: 700; }

/* Hamburger button */
.menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
}
.menu-btn svg { width: 1.5rem; height: 1.5rem; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-hamburger { display: none; }
.menu-btn[aria-expanded="true"] .icon-close     { display: block; }

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid rgba(166, 152, 136, 0.3);
  background: var(--ivory);
  padding: 0.75rem 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color 0.2s, background 0.2s;
}
.mobile-menu a:hover { color: var(--sage); background: rgba(122, 139, 111, 0.05); }
.mobile-menu a.active { color: var(--sage); font-weight: 700; background: rgba(122, 139, 111, 0.1); }

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 50vh;
}
.hero--full { min-height: 100vh; }

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 44, 44, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1rem 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.125rem;
  color: rgba(250, 247, 242, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.btn {
  display: inline-block;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.25rem;
  font-size: 1.125rem;
  transition: background-color 0.2s, color 0.2s;
}
.btn-sage        { background: var(--sage); color: var(--ivory); }
.btn-sage:hover  { background: var(--deep-forest); }
.btn-ivory       { background: var(--ivory); color: var(--sage); }
.btn-ivory:hover { background: #fff; }

/* --- Sections --- */
.section {
  padding: 3rem 1rem;
}
.section--ivory { background: var(--ivory); }
.section--white { background: #fff; }
.section--sage  { background: var(--sage); color: var(--ivory); }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.section--sage .section-title { color: var(--ivory); }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--warm-gray);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}
.section--sage .section-subtitle { color: rgba(250, 247, 242, 0.9); }

/* --- Feature Cards (Home) --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  display: block;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(122, 139, 111, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 1.75rem; height: 1.75rem; color: var(--sage); }

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.feature-card:hover h3 { color: var(--sage); }

.feature-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
}

/* --- Rounded Image --- */
.rounded-image {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.rounded-image img { width: 100%; display: block; }

/* --- Prose (about, rental text blocks) --- */
.prose { color: var(--warm-gray); line-height: 1.7; }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ul li + li { margin-top: 0.5rem; }
.prose strong { color: var(--charcoal); }

/* Capacity callout */
.callout {
  background: rgba(122, 139, 111, 0.1);
  border: 1px solid rgba(122, 139, 111, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.callout-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 52rem;
  margin: 0 auto;
}

.pricing-card {
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(166, 152, 136, 0.3);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.pricing-card--highlighted {
  border-color: var(--sage);
  background: rgba(122, 139, 111, 0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.pricing-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.pricing-card > p:first-of-type {
  color: var(--warm-gray);
  margin-bottom: 1.5rem;
}

.pricing-card ul { margin-bottom: 1.5rem; }
.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--charcoal);
}
.pricing-card li + li { margin-top: 0.75rem; }
.pricing-card li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.pricing-card .price-cta {
  color: var(--sage);
  font-weight: 700;
  font-size: 1.125rem;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  background: #fff;
}
.gallery-item .img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--warm-gray);
  text-align: center;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-row + .contact-row { margin-top: 1.5rem; }

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(122, 139, 111, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.contact-icon svg { width: 1.25rem; height: 1.25rem; color: var(--sage); }

.contact-row h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.contact-row a {
  color: var(--sage);
  transition: color 0.2s;
}
.contact-row a:hover { color: var(--deep-forest); }

/* Directions details */
.directions {
  border: 1px solid rgba(166, 152, 136, 0.3);
  border-radius: 0.5rem;
  margin-top: 2.5rem;
}
.directions summary {
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  transition: color 0.2s;
}
.directions summary:hover { color: var(--sage); }
.directions .directions-body {
  padding: 0 1.25rem 1.25rem;
}
.directions .directions-body p + p { margin-top: 0.75rem; }

/* Map embed */
.map-wrap {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid rgba(166, 152, 136, 0.3);
}
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--deep-forest);
  color: rgba(250, 247, 242, 0.9);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.site-footer h3,
.site-footer h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}
.site-footer h3 { font-size: 1.25rem; }
.site-footer h4 { font-size: 1.125rem; }

.site-footer p,
.site-footer li {
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.6;
}

.footer-links li + li { margin-top: 0.5rem; }
.footer-links a,
.footer-contact a {
  color: rgba(250, 247, 242, 0.7);
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--aged-gold); }
.footer-contact li + li { margin-top: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.2);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.5);
  max-width: 72rem;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (min-width: 640px) {
  .site-header nav { padding: 0 1.5rem; height: 5rem; }
  .site-header .site-title { font-size: 1.25rem; }
  .container, .container-narrow { padding: 0 1.5rem; }
  .section { padding: 5rem 1.5rem; }
  .hero-content h1 { font-size: 3rem; }
  .hero-content p   { font-size: 1.25rem; }
  .footer-grid { padding: 4rem 1.5rem; gap: 3rem; grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card { padding: 2rem; }
  .section-title { font-size: 2.25rem; }
}

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .desktop-nav { display: flex; }
  .mobile-menu { display: none !important; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
