/* ============================================
   Rooted In Christ Florals — Shared Styles
   Garden scrollytelling. Tokens, base, nav, footer,
   shared primitives, motion. Motion gated on html.js.
   Animates transform / opacity / clip-path only.
   ============================================ */

/* Fonts load non-blocking from each page's <head> — do not re-add @import here. */

button, a { cursor: pointer; }

/* ── Tokens ─────────────────────────────────── */
:root {
  /* color — names kept from old sheet (inline var() use lives in the HTML) */
  --cream:      #FAF7FF;
  --blush:      #E4D2F4;
  --sage:       #C2A0DA;
  --sage-dark:  #7A46AE;
  --gold:       #9A5FC4;
  --charcoal:   #241047;
  --gray:       #6B587F;
  --light-gray: #F1E8FB;
  --white:      #FFFFFF;
  --shadow:     0 4px 20px rgba(90,40,140,0.08);
  --radius:     10px;

  /* color — new */
  --plum:       #4A2070;
  --surface-2:  #FBF5FF;
  --ink-soft:   #8474A0;
  --ring:       rgba(122,70,174,0.55);
  --petal-1:    #D9C2EE;
  --petal-2:    #C2A0DA;
  --petal-3:    #E4D2F4;

  /* fluid type */
  --text-xs:   clamp(0.72rem, 0.69rem + 0.15vw, 0.8rem);
  --text-sm:   clamp(0.85rem, 0.82rem + 0.18vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --text-lg:   clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --text-h3:   clamp(1.3rem, 1.05rem + 1.2vw, 1.85rem);
  --text-h2:   clamp(1.8rem, 1.3rem + 2.4vw, 2.9rem);
  --text-h1:   clamp(2.4rem, 1.4rem + 4.6vw, 4.4rem);

  /* spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  /* radii / elevation */
  --radius-lg:   20px;
  --radius-pill: 999px;
  --shadow-md:   0 10px 30px rgba(90,40,140,0.12);
  --shadow-lg:   0 20px 50px rgba(74,32,112,0.18);

  /* motion */
  --dur-fast:      160ms;
  --dur-normal:    420ms;
  --dur-slow:      700ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:     cubic-bezier(0.33, 0, 0.2, 1);
  --reveal-shift:  22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.75;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-lg); }

.section-label {
  font-family: 'Lato', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-1);
}

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(122, 70, 174, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 0 var(--space-4);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(74, 32, 112, 0.16);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  min-width: 0;       /* allow shrink so logo never crowds the links */
  flex-shrink: 1;
  overflow: hidden;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;   /* icon stays fixed; text shrinks */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
}

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

.nav-links a {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  transition: color var(--dur-fast) var(--ease-soft),
              background-color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--blush);
  color: var(--charcoal);
  padding: 0.55rem 1.25rem;
}
.nav-cta:hover,
.nav-cta.active {
  background: var(--white);
  color: var(--plum);
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-soft),
              opacity var(--dur-fast) var(--ease-soft);
}

/* ── Page Wrapper ───────────────────────────── */
.page-wrapper { padding-top: 70px; }

/* ── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.1fr 360px;
  align-items: center;
  gap: 0;
  overflow: hidden;
}

/* drifting petal layer (populated by scroll.js) */
.petal-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.petal {
  position: absolute;
  top: -8%;
  width: 14px;
  height: 14px;
  border-radius: 0 60% 0 60%;
  background: var(--petal-2);
  opacity: 0.5;
  /* will-change toggled dynamically by scroll.js initPetals/buildPetals */
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 4rem 5rem 5rem;
}

.hero-inline-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-md);
}

.hero-content .section-label { margin-bottom: var(--space-2); }

.hero-title {
  margin-bottom: var(--space-3);
  font-size: var(--text-h1);
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--sage-dark);
}

.hero-scripture {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--plum);
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
  border-left: 3px solid var(--sage);
}

.hero-tagline {
  font-size: var(--text-base);
  color: var(--gray);
  margin-bottom: var(--space-4);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-cross {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  pointer-events: none;
}

.hero-cross svg {
  width: 400px;
  height: auto;
}

.hero-logo-side {
  height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 3rem;
}

.hero-logo-img {
  width: min(420px, 85%);
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-family: 'Lato', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 2px solid transparent;
  min-height: 44px;
  transition: background-color var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
}

.btn-primary {
  background: var(--sage-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--plum); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--plum); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold:active { transform: translateY(0); }

/* ── Scripture Banner ───────────────────────── */
.scripture-banner {
  background: var(--sage);
  color: var(--charcoal);
  text-align: center;
  padding: var(--space-5) var(--space-4);
}
.scripture-banner blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}
.scripture-banner cite {
  display: block;
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: var(--space-2);
  opacity: 0.7;
}

/* ── Sections ───────────────────────────────── */
.section {
  padding: var(--space-section) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

.section-centered { text-align: center; }
.section-centered h2 { margin-bottom: 0.5rem; }
.section-centered p  { color: var(--gray); max-width: 560px; margin: 0 auto var(--space-4); }

.section-divider {
  width: 64px;
  height: 2px;
  background: var(--sage);
  margin: var(--space-2) auto;
  border-radius: 2px;
}

.featured-section { position: relative; }

/* ── Featured Grid (Home) ───────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  margin-bottom: var(--space-4);
}

.featured-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--dur-normal) var(--ease-out-expo),
              box-shadow var(--dur-normal) var(--ease-out-expo);
}
.featured-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* ── Services Cards ─────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--dur-normal) var(--ease-out-expo),
              box-shadow var(--dur-normal) var(--ease-out-expo);
}
.service-card:hover,
.service-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover .service-card-img,
.service-card:focus-within .service-card-img { transform: scale(1.03); }

.service-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.service-card-body { padding: var(--space-3); }

.service-card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}
.service-card-body h3 { margin-bottom: var(--space-1); }
.service-card-body p {
  font-size: var(--text-sm);
  color: var(--gray);
  line-height: 1.65;
}

/* ── About Split ────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-section) 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--sage);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content .section-label { margin-bottom: var(--space-1); }
.about-content h2 { margin-bottom: var(--space-3); }
.about-content p  { color: var(--gray); margin-bottom: var(--space-2); }

/* ── Gallery Page ───────────────────────────── */
.gallery-hero {
  background: var(--sage);
  color: var(--charcoal);
  text-align: center;
  padding: 5rem var(--space-4) 3rem;
}
.gallery-hero h1 { margin-bottom: var(--space-1); }
.gallery-hero p  { color: var(--plum); max-width: 520px; margin: 0 auto; }

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-4) 0;
}

.filter-btn {
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blush);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  min-height: 40px;
  transition: background-color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft),
              color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.filter-btn:hover { transform: translateY(-1px); }
.filter-btn:hover,
.filter-btn.active {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

/* Even grid, not a column masonry. The masonry rebalanced its columns each
   time a lazy image loaded, which shoved tiles between columns (the "appear
   and disappear" flicker) and left ragged, uneven column heights. A grid
   with a fixed tile aspect-ratio has stable box heights, so an image loading
   never reflows the layout, every row lines up, and filtering leaves no gap. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: var(--space-4);
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5; /* source photos are ~1440x1800 — near-zero crop */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}
.gallery-item:hover img,
.gallery-item:focus-within img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(36,16,71,0.94);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--white);
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.85;
  min-width: 44px;
  min-height: 44px;
  transition: opacity var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.lightbox-close:hover { opacity: 1; transform: scale(1.08); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.16);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-fast) var(--ease-soft);
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.32); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── Page Hero (inner pages) ────────────────── */
.page-hero {
  background: var(--sage);
  color: var(--charcoal);
  text-align: center;
  padding: 5rem var(--space-4) 3.5rem;
}
.page-hero h1 { margin-bottom: var(--space-1); }
.page-hero p  { color: var(--plum); max-width: 520px; margin: var(--space-1) auto 0; }

/* ── Services Page ──────────────────────────── */
.services-full {
  padding: var(--space-section) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--blush);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse  { direction: rtl; }
.service-row.reverse > * { direction: ltr; }

.service-row img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.service-row-content h3 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-2);
}
.service-row-content p {
  color: var(--gray);
  margin-bottom: var(--space-2);
}
.service-note {
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 700;
}

/* ── Contact Page ───────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-5);
  padding: var(--space-section) 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h2 { margin-bottom: var(--space-2); }
.contact-info p  { color: var(--gray); margin-bottom: var(--space-4); }

.contact-item {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid var(--blush);
  color: var(--sage-dark);      /* inline SVGs inherit this via currentColor */
}
.contact-icon svg { width: 21px; height: 21px; display: block; }

/* Real brand marks get their real colours, so they read as the actual service
   rather than a generic glyph. Each is a link to the business's own account,
   which is what these companies publish their marks for. */
.contact-icon--instagram {
  background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
  border-color: transparent;
  color: #fff;
}
.contact-icon--venmo {
  background: #008CFF;
  border-color: transparent;
  color: #fff;
}
.contact-icon--zelle {
  background: #6D1ED4;
  border-color: transparent;
  color: #fff;
}
/* the Zelle disc carries a letter, not an SVG — keep it legible on purple */
.contact-icon--zelle.contact-icon-text { color: #fff; }
.contact-item-text strong { display: block; font-size: var(--text-xs); letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray); margin-bottom: 0.2rem; }
/* Clickable contact values read as clickable: pointer cursor, underline on
   hover. Includes .copy-value, the click-to-copy buttons for the details that
   have no sensible URL to link to (Zelle handle, Instagram handle). */
.contact-item-text a,
.contact-item-text .copy-value {
  color: var(--charcoal);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft);
}
.contact-item-text a:hover,
.contact-item-text .copy-value:hover {
  color: var(--sage-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* .copy-value is a <button>; strip the UA chrome so it matches its siblings. */
.contact-item-text .copy-value {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; text-align: left;
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-4);
}
.social-link {
  width: 44px;
  height: 44px;
  background: var(--sage-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: background-color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.social-link:hover { background: var(--plum); transform: translateY(-3px); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: var(--space-3); }

.form-group { margin-bottom: var(--space-3); }
.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--blush);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: var(--text-sm);
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px var(--ring);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

/* ── About Page ─────────────────────────────── */
.about-full {
  max-width: 1200px;
  margin: 0 auto;
}

.mission-section {
  background: var(--blush);
  color: var(--charcoal);
  padding: var(--space-section) var(--space-4);
  text-align: center;
}
.mission-section h2 { margin-bottom: var(--space-2); }
.mission-section p  { color: var(--plum); max-width: 640px; margin: 0 auto var(--space-1); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-4);
  padding: var(--space-section) var(--space-4);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-2);
}
.value-item h3 { margin-bottom: var(--space-1); }
.value-item p  { font-size: var(--text-sm); color: var(--gray); }

.area-section {
  background: var(--light-gray);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.area-section h2 { margin-bottom: var(--space-2); }
.area-section p  { color: var(--gray); max-width: 520px; margin: 0 auto var(--space-4); }

.area-tags {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.area-tag {
  background: var(--white);
  border: 2px solid var(--blush);
  color: var(--charcoal);
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: border-color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.area-tag:hover { border-color: var(--sage); transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--sage-dark);
  color: rgba(255,255,255,0.85);
  padding: var(--space-5) var(--space-4) var(--space-4);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.75;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: var(--space-1);
}
.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
  font-size: var(--text-sm);
  display: inline-block;
  transition: color var(--dur-fast) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft);
}
.footer-col ul a:hover { color: var(--blush); transform: translateX(3px); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--space-1);
}
.footer-bottom .cross { color: var(--blush); }

/* ============================================
   Motion / reveal — gated on html.js
   With JS off, html has no .js class, so all
   reveal targets stay fully visible.
   ============================================ */

/* fade-up on enter */
/* An un-revealed element is invisible AND shifted 22px down, so without
   pointer-events:none it sits as a ghost layer over whatever is beneath it and
   swallows the first click. That is why links highlighted from the wrong spot
   and inputs needed a second click to focus. `will-change` is dropped too:
   holding a compositing layer on every reveal on the page is exactly what the
   perf guidance warns against, and Safari can keep the stale layer around. */
.js .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--dur-normal) var(--ease-out-expo),
              transform var(--dur-normal) var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
  pointer-events: none;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* staggered children: parent flags, children use per-item --reveal-delay set by scroll.js */
.js [data-reveal-stagger] > .reveal { transition-delay: var(--reveal-delay, 0ms); }

/* SVG bloom: flower groups fade onto the (always-visible) cross beams.
   Opacity-ONLY — each flower <g> carries an SVG attribute
   transform="translate(x,y)" that positions it on the cross. A CSS
   `transform` would REPLACE that attribute transform and collapse every
   flower to the SVG origin (the post-launch "one squished corner flower"
   bug), so the bloom effect must never set transform on these groups. */
.js .bloom-sequence > g {
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out-expo);
  transition-delay: var(--bloom-delay, 0ms);
}
.js .bloom-sequence.is-blooming > g {
  opacity: 1;
}

/* scripture line reveal: scroll.js wraps lines in .sr-line */
.js .scripture-reveal .sr-line {
  display: block;
  opacity: 0;
  transform: translate3d(0, var(--reveal-shift), 0);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .scripture-reveal.is-visible .sr-line {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* parallax: scroll.js writes the translate and toggles will-change while active */

/* drifting petals keyframes (transform + opacity only) */
@keyframes petalDrift {
  0%   { transform: translate3d(0, -10%, 0) rotate(0deg); }
  100% { transform: translate3d(var(--petal-x, 20px), 112vh, 0) rotate(360deg); }
}
.js .petal {
  animation-name: petalDrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.petal-field.is-paused .petal { animation-play-state: paused; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cross { display: flex; opacity: 0.85; }
  .hero-cross svg { width: 240px; }
  .hero-inline-logo { width: 80px; height: 80px; margin-left: auto; margin-right: auto; }
  /* Single-column hero: center the content instead of hugging the left edge. */
  .hero-content { padding: 4rem 2rem; text-align: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-scripture {
    border-left: none;
    padding-left: 0;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions { justify-content: center; }
  .about-split { grid-template-columns: 1fr; padding: var(--space-5) var(--space-4); gap: var(--space-4); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .service-row.reverse { direction: ltr; }
  .contact-layout { grid-template-columns: 1fr; padding: var(--space-5) var(--space-4); }
}

/* Nav hamburger fires at 900px — at this width the 6-link row + long logo
   "Rooted In Christ Florals" start to collide; collapse to hamburger first. */
@media (max-width: 900px) {
  .nav { padding: 0 var(--space-3); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; width: 100%; background: rgba(122, 70, 174, 0.97); padding: 1rem 2rem 2rem; border-bottom: 1px solid rgba(255,255,255,0.12); gap: 0.5rem; align-items: center; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 1rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Keep two columns on phones — single-column wasted space and scrolling. */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-logo-side { padding: 1.5rem; }
  .hero-logo-img { width: min(240px, 60%); }
  .hero { min-height: auto; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-cross svg { width: 180px; }
}

/* ============================================
   Reduced motion — collapse ALL motion to a
   plain opacity fade or nothing. No travel, no
   drift, no parallax, no per-line cascade.
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* reveals: no transform travel; fade only (engine still sets is-visible) */
  .js .reveal,
  .js .scripture-reveal .sr-line {
    transform: none !important;
    transition: opacity var(--dur-fast) linear !important;
    transition-delay: 0ms !important;
  }
  .js .reveal.is-visible,
  .js .scripture-reveal.is-visible .sr-line {
    opacity: 1 !important;
    transform: none !important;
  }

  /* bloom: fade only, instantly. Never set transform on the flower groups —
     their SVG attribute translate must stay intact under reduced motion. */
  .js .bloom-sequence > g {
    transition: opacity var(--dur-fast) linear !important;
    transition-delay: 0ms !important;
  }
  .js .bloom-sequence.is-blooming > g { opacity: 1 !important; }

  /* petals + parallax: gone */
  .petal-field { display: none !important; }
  .js [data-parallax] { transform: none !important; will-change: auto; }

  /* hover transforms reduced to nothing meaningful */
  .btn:hover, .service-card:hover, .featured-grid img:hover,
  .gallery-item:hover img, .social-link:hover, .nav-links a:hover,
  .filter-btn:hover, .nav-cta:hover, .lightbox-close:hover,
  .area-tag:hover, .footer-col ul a:hover,
  .service-card:hover .service-card-img,
  .service-card:focus-within .service-card-img {
    transform: none !important;
  }
}
