/* Divine Grace Church — site styles
   Palette and type follow the original Divine Grace Church style guide. */

:root {
  --cream: #f8f5ef;
  --cream-2: #f1ece2;
  --paper: #fffdf9;
  --forest: #283b30;
  --forest-deep: #1f2f26;
  --forest-2: #2a4437;
  --sage: #626a62;
  --line: #dcd7cb;
  --gold: #9c834c;
  --gold-deep: #7c693e;
  --gold-light: #dfbc76;
  --white: #ffffff;

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(31, 47, 38, 0.45);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--sage); max-width: 60ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--cream-2); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest .lead, .section--forest p { color: rgba(248, 245, 239, 0.8); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* Eyebrow labels: "01 / About us" */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--forest .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-light); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 14px 24px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--forest); color: var(--cream); }
.btn--primary:hover { background: var(--forest-deep); }
.btn--gold { background: var(--gold-light); color: var(--forest-deep); }
.btn--gold:hover { background: #e8c98a; }
.btn--ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--cream); }
.btn--light { border-color: rgba(248,245,239,.7); color: var(--cream); background: transparent; }
.btn--light:hover { background: var(--cream); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow {
  font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--gold-deep);
  display: inline-flex; gap: 6px; align-items: center;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 239, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand-mark { width: 30px; height: 38px; flex: none; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1; letter-spacing: -0.02em; }
.brand-text small {
  display: block; margin-top: 5px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 999px;
  color: var(--forest); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-item.is-active > .nav-link { background: var(--cream-2); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-item.is-open .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  list-style: none; margin: 0; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1001px) {
  .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
  .nav-item:hover .chev { transform: rotate(180deg); }
}
.dropdown a {
  display: block; padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--forest); font-weight: 700; font-size: 0.95rem;
}
.dropdown a span { display: block; font-weight: 400; font-size: 0.82rem; color: var(--sage); }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--cream-2); }
.nav-cta { display: flex; gap: 8px; margin-left: 10px; }
.nav-cta .btn { padding: 11px 20px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--forest);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1000px) {
  /* backdrop-filter would trap the fixed menu inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 78px 0 0 0;
    background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; font-size: 1.15rem; padding: 16px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link:hover, .nav-link[aria-current="page"], .nav-item.is-active > .nav-link { background: none; }
  .dropdown {
    position: static; display: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent; padding: 4px 0 10px 8px;
  }
  .nav-item.is-open .dropdown { display: block; }
  .nav-cta { margin: 24px 0 0; flex-direction: column; }
  .nav-cta .btn { padding: 15px 20px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Home hero ---------- */
.hero { padding: 8px var(--gutter) 0; }
.hero-card {
  position: relative; max-width: 1400px; margin: 0 auto;
  min-height: min(84vh, 760px);
  border-radius: 28px; overflow: hidden;
  display: flex; align-items: flex-end;
  color: var(--cream);
}
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,47,38,.15) 0%, rgba(31,47,38,.35) 45%, rgba(31,47,38,.88) 100%);
}
.hero-content { position: relative; z-index: 1; padding: clamp(28px, 6vw, 72px); max-width: 820px; }
.hero-content h1 { color: var(--cream); }
.hero-content p { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(248,245,239,.88); max-width: 52ch; }
.hero-side {
  position: absolute; z-index: 1; right: 26px; top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%);
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.32em;
  color: rgba(248,245,239,.75);
}
@media (max-width: 700px) { .hero-side { display: none; } }

/* Service-times strip under the hero */
.times-bar { margin-top: -1px; padding: 0 var(--gutter); }
.times-card {
  max-width: 1100px; margin: -48px auto 0; position: relative; z-index: 2;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: center; gap: 0;
  padding: 10px;
}
.times-card > div { padding: 18px 22px; border-right: 1px solid var(--line); align-self: stretch; }
.times-card > .btn { align-self: center; }
.times-card > div:nth-child(3) { border-right: 0; }
.times-card .label { font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; font-family: var(--font-head); }
.times-card .value { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.times-card .note { font-size: .82rem; color: var(--sage); font-style: italic; line-height: 1.3; margin: 2px 0; }
.times-card .btn { margin: 0 12px; }
@media (max-width: 860px) {
  .times-card { grid-template-columns: 1fr; margin-top: -32px; }
  .times-card > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .times-card > div:nth-child(3) { border-bottom: 0; }
  .times-card .btn { margin: 8px 12px 12px; }
}

/* ---------- Interior page hero ---------- */
.page-hero { padding: 8px var(--gutter) 0; }
.page-hero-card {
  position: relative; max-width: 1400px; margin: 0 auto;
  min-height: clamp(320px, 46vh, 460px);
  border-radius: 28px; overflow: hidden;
  display: flex; align-items: flex-end; color: var(--cream);
}
.page-hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,47,38,.2), rgba(31,47,38,.85));
}
.page-hero-content { position: relative; z-index: 1; padding: clamp(28px, 5vw, 60px); max-width: 760px; }
.page-hero-content h1 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.page-hero-content p { color: rgba(248,245,239,.88); font-size: 1.12rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: rgba(248,245,239,.75); }
.crumbs a { color: inherit; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media .badge {
  position: absolute; left: -16px; bottom: 28px;
  background: var(--forest); color: var(--cream);
  padding: 18px 22px; border-radius: 14px; box-shadow: var(--shadow);
  font-family: var(--font-head); font-weight: 700; line-height: 1.3;
}
.split-media .badge small { display: block; color: var(--gold-light); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
@media (max-width: 860px) { .split-media .badge { left: 12px; } .split-media img { aspect-ratio: 4 / 3; } }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-row h2 { margin: 0; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-weight: 700; font-family: var(--font-head); }
.ticks li::before { content: "✦"; color: var(--gold); font-size: .9rem; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p { color: var(--sage); }
.card .link-arrow { margin-top: auto; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  background: var(--cream-2); color: var(--gold-deep);
  display: grid; place-items: center;
}
.card-icon svg { width: 24px; height: 24px; }

.photo-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  color: var(--cream); text-decoration: none; min-height: 340px;
}
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(31,47,38,.9)); }
.photo-card .photo-card-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; }
.photo-card h3 { margin-bottom: 4px; }
.photo-card p { margin: 0; color: rgba(248,245,239,.82); font-size: .95rem; }

/* Ministry detail rows */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.feature .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.pill { font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--cream-2); color: var(--forest); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-media { order: 0; } }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step { counter-increment: step; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step::before { content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 1.05rem; margin-bottom: 14px; }
.step p { color: var(--sage); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Events */
.event { display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.event + .event { margin-top: 14px; }
.event-date { text-align: center; background: var(--forest); color: var(--cream); border-radius: 12px; padding: 12px 0; font-family: var(--font-head); line-height: 1.1; }
.event-date b { display: block; font-size: 1.8rem; font-weight: 800; }
.event-date small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; }
.event h3 { margin-bottom: 4px; }
.event p { margin: 0; color: var(--sage); font-size: .95rem; }
@media (max-width: 640px) { .event { grid-template-columns: 72px 1fr; } .event .btn { grid-column: 1 / -1; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(248,245,239,.18); border-radius: var(--radius); }
.stat { padding: 28px; border-right: 1px solid rgba(248,245,239,.18); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--gold-light); line-height: 1.1; }
.stat span { color: rgba(248,245,239,.8); font-size: .95rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(248,245,239,.18); } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }

/* Quote / CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px;
  background: var(--forest); color: var(--cream);
  padding: clamp(40px, 7vw, 80px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: var(--cream); margin: 0; }
.cta-band p { color: rgba(248,245,239,.8); }
.cta-band .btn-row { justify-content: flex-end; margin: 0; }
.cta-band::before {
  content: "†"; position: absolute; right: -10px; top: -60px;
  font-size: 320px; line-height: 1; color: rgba(223,188,118,.08); font-family: serif;
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--sage); }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; font-family: var(--font-head); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--forest);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(223,188,118,.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--sage); margin: 0; }
.form-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.notice { border-radius: 12px; padding: 14px 16px; font-weight: 700; margin-bottom: 18px; }
.notice--ok { background: #e7efe6; color: #23412c; }
.notice--err { background: #f7e6df; color: #7a2e17; }
.notice[hidden] { display: none; }

.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card-icon { margin: 0; flex: none; width: 44px; height: 44px; }
.contact-list b { display: block; font-family: var(--font-head); }
.contact-list span { color: var(--sage); }

/* Social feeds */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .social-grid { grid-template-columns: 1fr; } }
.feed { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 200px; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.feed-head h3 { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 1.1rem; }
.feed-head svg { width: 22px; height: 22px; }
.feed iframe { width: 100%; border: 0; border-radius: 12px; display: block; }
.feed-empty { text-align: center; padding: 40px 16px; color: var(--sage); border: 1.5px dashed var(--line); border-radius: 12px; }
.feed-empty p { margin: 0 0 14px; }

/* Give */
.give-card { background: var(--paper); border-radius: 22px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow); }
.give-card .btn { font-size: 1.05rem; padding: 16px 30px; }
.verse { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 500; line-height: 1.4; max-width: 30ch; margin: 0 auto; letter-spacing: -0.01em; }
.verse cite { display: block; margin-top: 16px; font-size: .85rem; font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.section--forest .verse cite { color: var(--gold-light); }

/* Footer */
.site-footer { background: var(--forest-deep); color: rgba(248,245,239,.78); padding: 72px 0 32px; margin-top: clamp(64px, 9vw, 120px); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--cream); margin-bottom: 16px; }
.site-footer h4 { color: var(--cream); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(248,245,239,.25); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(248,245,239,.14); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-bottom { align-items: flex-start; line-height: 1.7; }
.footer-legal { text-align: left; }
.footer-address { font-style: normal; text-align: right; }
.footer-contact { color: var(--cream); }
@media (max-width: 860px) {
  .footer-bottom { flex-direction: column; }
  .footer-legal, .footer-address { text-align: left; }
}
main > .section:last-child { padding-bottom: 0; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .photo-card img { transition: none; }
}
