/* ============================================================
   LANDMARK NETWORK — Global Stylesheet
   Colors: Primary #2E4E68 | Secondary #5C7586 | Accent #E47165
           Light BG #F4F6F8 | Dark #1C1C1C
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1C1C1C;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --primary:    #2E4E68;
  --secondary:  #5C7586;
  --accent:     #E47165;
  --light-bg:   #F4F6F8;
  --dark:       #1C1C1C;
  --white:      #FFFFFF;
  --max-width:  1200px;
  --nav-height: 76px;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: 700; }

p { font-size: 1.05rem; color: #444; line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--light { background: var(--light-bg); }
.section--dark  { background: var(--dark); color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.75); }
.section--primary { background: var(--primary); color: var(--white); }
.section--primary p { color: rgba(255,255,255,0.8); }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #d4604f;
  border-color: #d4604f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(228,113,101,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: #333;
  transform: translateY(-1px);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav.scrolled .nav__logo { filter: none; }
.nav.scrolled .nav__link { color: var(--dark); }
.nav.scrolled .nav__link:hover { color: var(--accent); }
.nav.scrolled .nav__cta { /* keep accent */ }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  height: 38px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.nav__cta:hover { background: #d4604f; transform: translateY(-1px); }
.nav__cta::after { display: none !important; }

/* Mobile menu toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
.nav.scrolled .nav__hamburger span { background: var(--dark); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,78,104,0.85) 0%, rgba(28,28,28,0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(228,113,101,0.2);
  border: 1px solid rgba(228,113,101,0.4);
  color: #f7a89f;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 span { color: var(--accent); }

.hero__sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 { margin-bottom: 1rem; }
.section-header p  { font-size: 1.1rem; }

/* ── 3-Column Feature Grid ────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  border-top: 4px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.pillar__number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.pillar h3 { margin-bottom: 0.75rem; }
.pillar p  { font-size: 0.97rem; }

/* ── Split (text + image) ─────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split--reverse .split__media { order: -1; }

.split__media {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.split__media img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

.split__content h2 { margin-bottom: 1.25rem; }
.split__content p  { margin-bottom: 1.5rem; }

.split__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat { }
.stat__number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.stat__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ── Church Grid ──────────────────────────────────────────── */
.churches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.church-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  border: 1px solid #e8e8e8;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.church-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.church-card__tier {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.25rem;
}

.tier-responsible { background: rgba(46,78,104,0.12); color: var(--primary); }
.tier-relational  { background: rgba(92,117,134,0.12); color: var(--secondary); }
.tier-resource    { background: rgba(244,246,248,1); color: #666; border: 1px solid #ddd; }

.church-card h4 { font-size: 1.1rem; font-weight: 800; }
.church-card__location { font-size: 0.875rem; color: #888; font-weight: 500; }
.church-card__pastor   { font-size: 0.875rem; color: #555; }

.church-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.5rem;
  transition: gap 0.2s;
}
.church-card__link:hover { gap: 0.6rem; }

/* ── Event Cards ──────────────────────────────────────────── */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.event-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform 0.3s;
}

.event-card:hover { transform: scale(1.02); }
.event-card:hover .event-card__arrow { transform: translateX(6px); }

.event-card__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  transition: transform 0.4s ease;
}
.event-card:hover .event-card__bg { transform: scale(1.05); }

.event-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,28,28,0.92) 0%, rgba(28,28,28,0.1) 60%);
}

.event-card__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
}

.event-card__logo {
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.event-card p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.event-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: gap 0.2s;
}

/* ── Member Portal ────────────────────────────────────────── */
.portal-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
}

.portal-login__box {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.1);
  text-align: center;
}

.portal-login__logo { height: 40px; margin: 0 auto 2rem; }

.portal-login__box h2 { margin-bottom: 0.5rem; }
.portal-login__box p  { margin-bottom: 2rem; font-size: 0.95rem; }

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus { border-color: var(--primary); }

.portal-error {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  display: none;
}

.portal-content { display: none; }

.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 4rem 0;
}

.portal-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
}

.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.portal-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portal-card__body {
  background: var(--primary);
  padding: 1.5rem;
  color: var(--white);
}

.portal-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.portal-card__body p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

/* ── Map / Network Section ────────────────────────────────── */
.network-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.network-stat__number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.network-stat__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ── Partnership Tiers ────────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tier-card {
  border-radius: 10px;
  padding: 2.5rem 2rem;
  border: 2px solid #e8e8e8;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tier-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.tier-card--featured {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tier-card--featured p,
.tier-card--featured .tier-item { color: rgba(255,255,255,0.8); }

.tier-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.tier-card h3 { margin-bottom: 0.75rem; }
.tier-card > p { margin-bottom: 1.5rem; font-size: 0.95rem; }

.tier-items { margin-top: 1.5rem; }

.tier-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.92rem;
  color: #444;
}

.tier-item__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-item__check::after {
  content: '✓';
  color: white;
  font-size: 10px;
  font-weight: 700;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3349 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer__brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer__logo {
  height: 34px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer__col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.65rem;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3349 100%);
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  color: var(--white);
}

.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 580px; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1.25rem 0;
}
.divider--center { margin: 1.25rem auto; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pillars        { grid-template-columns: 1fr; }
  .tiers          { grid-template-columns: 1fr; }
  .split          { grid-template-columns: 1fr; gap: 3rem; }
  .split--reverse .split__media { order: 0; }
  .split__media img { height: 340px; }
  .footer__grid   { grid-template-columns: 1fr 1fr; }
  .network-stats  { grid-template-columns: repeat(2, 1fr); }
  .portal-cards   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links     { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    gap: 1.25rem;
  }
  .nav__links.open .nav__link { color: var(--dark); }
  .nav__links.open .nav__link::after { background: var(--accent); }
  .nav.scrolled .nav__links.open { top: var(--nav-height); }

  .section { padding: 4rem 0; }
  .events-grid { grid-template-columns: 1fr; }
  .churches-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .portal-cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
