/* ============================================================
   parishchurches.org — main stylesheet
   Palette: warm off-white / rose / near-black
   Type: Cormorant Galatia (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Galatia:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* --- Reset & base ----------------------------------------- */

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

:root {
  --bg:           #FAF7F5;
  --rose-light:   #EFE0DC;
  --rose-mid:     #C4908A;
  --rose-deep:    #A06860;
  --ink:          #2C2420;
  --ink-secondary:#6B4F4A;
  --border:       #DEC8C4;
  --white:        #FFFFFF;

  --font-display: 'Cormorant Galatia', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --col-width:    720px;
  --gutter:       2rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography ------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; }
h3 { font-size: 1.3rem; }

p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: var(--ink);
}

p:last-child { margin-bottom: 0; }

a {
  color: var(--rose-deep);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--ink); }

strong { font-weight: 500; }

/* --- Layout helpers --------------------------------------- */

.container {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

/* --- Site header ------------------------------------------ */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.site-header__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.03em;
  line-height: 1;
}

.site-header__sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--ink-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Navigation ------------------------------------------- */

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--rose-deep);
  border-bottom-color: var(--rose-mid);
}

/* --- Page hero -------------------------------------------- */

.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-hero--with-image {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  background: var(--rose-light);
}

.page-hero__image-slot {
  position: absolute;
  inset: 0;
  background: var(--rose-light);
  /* Replace with:
     background-image: url('images/your-image.jpg');
     background-size: cover;
     background-position: center;
  */
}

.page-hero__image-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,32,0.55) 0%, transparent 60%);
}

.page-hero__caption {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  color: var(--white);
}

.page-hero__caption h1 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.page-hero__caption p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
}

.page-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-mid);
  display: block;
  margin-bottom: 0.6rem;
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p  { color: var(--ink-secondary); font-size: 1.05rem; margin: 0; }

/* --- Section divider (cross motif) ------------------------ */

.divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 3rem 0;
  color: var(--border);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider__mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

/* --- Content sections ------------------------------------- */

.content-section {
  padding: 3rem 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
}

.content-section__label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-mid);
  display: block;
  margin-bottom: 0.8rem;
}

.content-section h2 {
  margin-bottom: 1.2rem;
  color: var(--ink);
}

/* --- Image slot (in-content) ------------------------------ */

.image-slot {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--rose-light);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 2rem 0;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-slot--portrait {
  aspect-ratio: 3 / 4;
  max-width: 280px;
}

.image-slot--square {
  aspect-ratio: 1;
  max-width: 320px;
}

.image-slot__placeholder {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-mid);
  opacity: 0.6;
  text-align: center;
  padding: 1rem;
}

/* --- App feature block ------------------------------------ */

.app-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.app-feature--reversed { direction: rtl; }
.app-feature--reversed > * { direction: ltr; }

.app-feature__image {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--rose-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 220px;
  margin: 0 auto;
}

.app-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-feature__body { padding-top: 0.5rem; }
.app-feature__body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

/* --- Store badges ----------------------------------------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--rose-mid);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--rose-deep);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.store-badge:hover {
  background: var(--rose-deep);
  color: var(--white);
  border-color: var(--rose-deep);
}

.store-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- Stat row --------------------------------------------- */

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 2rem 0;
}

.stat {
  flex: 1;
  min-width: 140px;
  padding: 1.4rem 1.6rem;
  border-right: 1px solid var(--border);
  background: var(--white);
}

.stat:last-child { border-right: none; }

.stat__number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--rose-deep);
  line-height: 1;
  display: block;
}

.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  display: block;
  margin-top: 0.3rem;
}

/* --- Pull quote ------------------------------------------- */

.pull-quote {
  border-left: 3px solid var(--rose-mid);
  padding: 0.8rem 0 0.8rem 1.6rem;
  margin: 2rem 0;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

/* --- Site footer ------------------------------------------ */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--white);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copy {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  font-weight: 300;
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-footer__links a {
  font-size: 0.78rem;
  color: var(--ink-secondary);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.site-footer__links a:hover { color: var(--rose-deep); }

/* --- Responsive ------------------------------------------- */

@media (max-width: 640px) {
  :root { --gutter: 1.2rem; }

  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .site-nav { gap: 1.2rem; }

  .app-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .app-feature--reversed { direction: ltr; }

  .stat-row { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
