/* ============================================================
   THE POINTE CHURCH — SHARED FOUNDATION
   Palette: Coastal Peach (sky blue primary + soft peach accent)
   Linked by every page. Page-specific CSS stays in each page's
   inline <style> and overrides this file where needed.
   ============================================================ */

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

:root {
  /* Neutrals */
  --white:        #ffffff;
  --paper:        #fafaf9;
  --surface:      #f4f4f1;
  --surface-2:    #ecebe7;
  --line:         #e8e6e0;
  --line-soft:    rgba(10, 10, 10, 0.06);

  /* Text */
  --ink:          #1a1a1a;
  --text:         #2a2a2a;
  --text-mid:     #4a4a4a;
  --muted:        #8c8c8a;

  /* Sky blue — primary accent */
  --sky-light:    #d5edf6;
  --sky:          #b8e0ee;
  --sky-deep:     #5fb0d4;
  --sky-darker:   #2e8eb8;
  --tint:         #f1f8fb;

  /* Peach — secondary accent */
  --peach-soft:   #fff0e2;
  --peach:        #ffd5b8;
  --peach-deep:   #d97a4a;
  --peach-ink:    #6e3417;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

/* Accessibility — visible keyboard focus */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--sky-darker);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Reduced motion — calm scroll + animations site-wide */
@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;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.display {
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.025em; line-height: 0.95;
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--sky-darker);
}

/* Section spacing + background utilities */
section { padding: 130px 0; }
.section-paper { background: var(--paper); }
.section-surface { background: var(--surface); }
.section-tint { background: var(--tint); }
.section-white { background: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--sky-darker); transform: translateY(-2px); }
.btn-sky { background: var(--sky-deep); color: var(--white); }
.btn-sky:hover { background: var(--sky-darker); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: var(--surface); border-color: var(--ink); transform: translateY(-2px); }
.btn-peach { background: var(--peach); color: var(--peach-ink); }
.btn-peach:hover { background: var(--peach-deep); color: var(--white); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* Peach highlight under a headline word */
.hl-peach,
.hl-peach-on-tint {
  color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, var(--peach) 62%);
  padding: 0 6px;
}

/* ── HEADER / NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 249, 0.45);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(232, 230, 224, 0.4);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; max-width: 1400px; margin: 0 auto;
}
.nav-logo { display: block; line-height: 0; }
.nav-logo img { height: 52px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink);
  text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover { color: var(--sky-darker); }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 12px 24px; border-radius: 999px;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--sky-darker); transform: translateY(-1px); }
.nav-toggle {
  display: none; background: transparent; border: 0;
  color: var(--ink); cursor: pointer; padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--white); color: var(--text-mid);
  padding: 90px 32px 40px; border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px;
  margin-bottom: 70px;
}
.footer-brand img { height: 44px; margin-bottom: 24px; width: auto; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 320px; }
.footer-col h3,
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 24px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { color: var(--text-mid); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: var(--sky-darker); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 16px;
}

/* ── SHARED MOBILE — nav collapse + spacing ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 24px 32px; gap: 18px;
    box-shadow: 0 14px 40px -14px rgba(10, 10, 10, 0.12);
  }
  .nav-links.open a { font-size: 14px; }
  .nav-links.open .nav-cta { display: inline-flex; align-self: flex-start; }
  section { padding: 80px 0; }
  .container { padding: 0 24px; }
}
