/* =============================================
   Unity Christian Church — Global Stylesheet
   /styles.css
   ============================================= */

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

/* Global link defaults */
a { color: #fff; text-decoration: none; }
a:visited { color: #fff; }
a:hover { color: var(--gold); }
.nav-links-desktop a,
.nav-links-desktop a:visited,
.nav-links-desktop a:link { color: rgba(255,255,255,0.78); }
.nav-links-desktop a:hover { color: var(--gold); background: rgba(255,255,255,0.1); }
.nav-links-desktop a.active,
.nav-links-desktop a.active:visited { color: #fff; background: rgba(255,255,255,0.1); }
.footer-links a,
.footer-links a:visited,
.footer-links a:link { color: rgba(255,255,255,0.52); }
.footer-links a:hover { color: var(--gold); }
.footer-contact-item a,
.footer-contact-item a:visited { color: rgba(255,255,255,0.52); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom a,
.footer-bottom a:visited { color: rgba(255,255,255,0.28); }
.footer-bottom a:hover { color: var(--gold); }
.social-btn,
.social-btn:visited { color: rgba(255,255,255,0.55); }
.social-btn:hover { color: #fff; }
.btn:visited { color: inherit; }
.btn-navy:visited { color: #fff; }
.btn-red:visited { color: #fff; }
.btn-white:visited { color: var(--red); }
.btn-white-outline:visited { color: #fff; }
.btn-ghost:visited { color: #fff; }
.btn-outline-navy:visited { color: var(--navy); }
.text-link,
.text-link:visited { color: var(--red); }
.text-link:hover { color: var(--red); }
.back-link,
.back-link:visited { color: var(--mid-gray); }
.back-link:hover { color: var(--navy); }

:root {
  --navy:       #1F355E;
  --navy-dark:  #172848;
  --red:        #DE1430;
  --red-dark:   #b81027;
  --cream:      #F6F1E8;
  --soft-white: #FCFBF8;
  --charcoal:   #2B2B2B;
  --blue-gray:  #D8E1EA;
  --gold:       #C8A96B;
  --mid-gray:   #5C6370;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--soft-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* Alternate link color */
.alt-a, .alt-a:link, .alt-a:visited { color: #1F355E; }
.alt-a:hover { color: var(--gold); }

/* Plan a Visit nav highlight */
.nav-links-desktop a.nav-visit,
.nav-links-desktop a.nav-visit:link,
.nav-links-desktop a.nav-visit:visited { color: #fff; background: var(--red); border-radius: 4px; }
.nav-links-desktop a.nav-visit:hover { background: var(--red-dark); color: #fff; }
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; height: 68px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-logo-text { line-height: 1.15; }
.nav-logo-name { font-family: 'Playfair Display', serif; font-size: 0.98rem; font-weight: 600; color: #fff; display: block; }
.nav-logo-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-gray); display: block; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links-desktop { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
.nav-links-desktop a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45rem 0.8rem; border-radius: 4px; transition: color 0.2s, background 0.2s; }
.nav-links-desktop a:hover, .nav-links-desktop a.active { color: #fff; background: rgba(255,255,255,0.1); }
.nav-inactive { opacity: 0.4; cursor: not-allowed !important; pointer-events: none; }
.nav-cta { background: #fff; color: var(--red); text-decoration: none; padding: 0.55rem 1.3rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 6px; border: 2px solid #fff; transition: background 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; }
.nav-cta:link, .nav-cta:visited { color: var(--red); }
.nav-cta:hover { background: var(--red); color: #fff; border-color: var(--red); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

/* ── PAGE HERO (interior pages) ── */
.page-hero { background: var(--navy); padding: 8rem 2rem 5rem; text-align: center; position: relative; overflow: hidden; margin-top: -68px; padding-top: calc(8rem + 68px); }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(200,169,107,0.1) 0%, transparent 70%); pointer-events: none; }
.page-hero-eyebrow { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; position: relative; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 1rem; position: relative; }
.page-hero p { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto; line-height: 1.7; position: relative; }

/* ── STICKY SUB-NAV (about, ministries) ── */
.sub-nav, .section-nav { position: sticky; top: 68px; z-index: 50; background: #fff; border-bottom: 2px solid var(--blue-gray); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.sub-nav-inner, .section-nav-inner { max-width: 1100px; margin: 0 auto; display: flex; }
.sub-nav a, .section-nav a { flex: 1; text-align: center; padding: 1rem; text-decoration: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid-gray); border-right: 1px solid var(--blue-gray); border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s, background 0.2s; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.sub-nav a:link, .sub-nav a:visited,
.section-nav a:link, .section-nav a:visited { color: var(--mid-gray); }
.sub-nav a:last-child, .section-nav a:last-child { border-right: none; }
.sub-nav a:hover, .section-nav a:hover { color: var(--navy); background: var(--cream); }
.sub-nav a.active, .section-nav a.active { color: var(--navy); border-bottom-color: var(--red); }
.sub-nav a span, .section-nav a span { font-size: 1.2rem; }

/* ── SECTION TYPOGRAPHY ── */
.section-tag { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem; }
.section-rule { width: 36px; height: 2px; background: var(--red); margin-bottom: 1.2rem; }
.section-rule-center { margin-left: auto; margin-right: auto; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
.section-body { font-size: 1rem; color: var(--mid-gray); line-height: 1.78; max-width: 600px; }

/* ── LAYOUT UTILITIES ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-start { align-items: start; }

/* Section padding */
.section { padding: 5rem 2rem; }
.section-sm { padding: 3rem 2rem; }
.section-lg { padding: 7rem 2rem; }

/* Background variants */
.bg-white { background: #fff; }
.bg-soft { background: var(--soft-white); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.bg-red { background: var(--red); }

/* ── CARDS ── */
.card { background: #fff; border: 1px solid var(--blue-gray); border-radius: 8px; overflow: hidden; transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(31,53,94,0.1); border-color: var(--navy); }
.card-body { padding: 1.5rem 1.8rem; }
.card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.card-text { font-size: 0.9rem; color: var(--mid-gray); line-height: 1.7; }

/* Card on dark background */
.card-dark { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 2rem 1.8rem; transition: background 0.25s, border-color 0.25s; }
.card-dark:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.card-dark .card-icon { font-size: 1.8rem; margin-bottom: 1rem; display: block; }
.card-dark .card-title { color: #fff; font-size: 1.1rem; margin-bottom: 0.6rem; }
.card-dark .card-text { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.7; }

/* ── ICON ROW ── */
.icon-row { display: flex; align-items: flex-start; gap: 1rem; }
.icon-row-icon { width: 40px; height: 40px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.icon-row-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 0.2rem; }
.icon-row-value { font-size: 0.92rem; font-weight: 600; color: var(--charcoal); }
.icon-row-value a { color: var(--navy); text-decoration: none; }
.icon-row-value a:hover { color: var(--red); }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 0.85rem 1.8rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer; font-family: inherit; transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.2s; }
.btn:hover { transform: translateY(-2px); }

.btn-navy, .btn-navy:link, .btn-navy:visited { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }

.btn-red, .btn-red:link, .btn-red:visited { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: transparent; color: var(--red); }

.btn-outline-navy, .btn-outline-navy:link, .btn-outline-navy:visited { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.btn-outline-red, .btn-outline-red:link, .btn-outline-red:visited { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }

.btn-white, .btn-white:link, .btn-white:visited { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; }

.btn-white-outline, .btn-white-outline:link, .btn-white-outline:visited { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-white-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

.btn-ghost, .btn-ghost:link, .btn-ghost:visited { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

.btn-gold-outline, .btn-gold-outline:link, .btn-gold-outline:visited { background: transparent; color: var(--gold); border-color: rgba(200,169,107,0.5); }
.btn-gold-outline:hover { border-color: var(--gold); background: rgba(200,169,107,0.1); color: #fff; }

/* ── TEXT LINK ── */
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); text-decoration: none; transition: gap 0.2s; }
.text-link::after { content: '→'; }
.text-link:hover { gap: 0.65rem; }

.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-gray); text-decoration: none; margin-bottom: 2rem; transition: color 0.2s; }
.back-link::before { content: '←'; }
.back-link:hover { color: var(--navy); }

/* ── BADGE / TAG ── */
.badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 100px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge-navy { background: var(--navy); color: rgba(255,255,255,0.85); }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-gray { background: var(--blue-gray); color: var(--mid-gray); }

/* ── ALERTS / NOTICES ── */
.alert { padding: 0.85rem 1rem; border-radius: 6px; font-size: 0.9rem; margin-bottom: 1.5rem; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.alert-error ul { padding-left: 1.2rem; margin-top: 0.3rem; }
.alert-error li { margin-bottom: 0.2rem; }

/* ── FORM ELEMENTS ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.required-star { color: var(--red); margin-left: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=url], input[type=password], select, textarea {
  padding: 0.75rem 1rem; border: 2px solid var(--blue-gray); border-radius: 6px;
  font-family: inherit; font-size: 0.95rem; color: var(--charcoal);
  outline: none; transition: border-color 0.2s; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
textarea { resize: vertical; min-height: 120px; }
.hint { font-size: 0.75rem; color: var(--mid-gray); }

/* ── SUCCESS / ERROR BOXES ── */
.success-box { background: #f0fdf4; border: 1px solid #86efac; color: #166534; padding: 2rem; border-radius: 6px; text-align: center; }
.success-box .success-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; }
.success-box h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #166534; margin-bottom: 0.5rem; }
.success-box p { font-size: 0.92rem; line-height: 1.65; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--mid-gray); }
.empty-state .empty-icon { font-size: 4rem; opacity: 0.25; margin-bottom: 1rem; }
.empty-state h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.95rem; max-width: 420px; margin: 0 auto 1.5rem; line-height: 1.7; }

/* ── CTA BAND ── */
.cta-band { padding: 3rem 2rem; }
.cta-band-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.cta-band-title { font-family: 'Playfair Display', serif; font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; color: #fff; line-height: 1.2; }
.cta-band-sub { font-size: 0.95rem; color: rgba(255,255,255,0.8); margin-top: 0.3rem; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── FOOTER ── */
footer { background: var(--navy-dark); padding: 3rem 2rem 1.5rem; border-top: 3px solid var(--red); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; text-decoration: none; }
.footer-logo-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.footer-logo-name { font-family: 'Playfair Display', serif; font-size: 0.92rem; font-weight: 600; color: #fff; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.72; margin-bottom: 1.2rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.social-btn { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); font-size: 0.75rem; text-decoration: none; font-weight: 700; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.social-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col-title { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-links a { color: rgba(255,255,255,0.52); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.52); margin-bottom: 0.45rem; }
.footer-contact-item a { color: rgba(255,255,255,0.52); text-decoration: none; }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: rgba(255,255,255,0.28); }
.footer-bottom a { color: rgba(255,255,255,0.28); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.55); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Home link — mobile dropdown only */
/* Mobile menu — hidden by default, shown via JS */
.mobile-menu { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links-desktop { display: none; }
  .mobile-home { display: block; }
  .mobile-menu {
    display: none;
    position: fixed; top: 68px; left: 0; right: 0;
    background: #172848;
    flex-direction: column;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu ul { list-style: none; width: 100%; }
  .mobile-menu ul li a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    background: #172848;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mobile-menu ul li a:link,
  .mobile-menu ul li a:visited { color: rgba(255,255,255,0.85); }
  .mobile-menu ul li a:hover { background: #1F355E; color: #fff; }
  .mobile-menu ul li a.active { background: #DE1430; color: #fff; }
  .mobile-menu ul li a.nav-visit,
  .mobile-menu ul li a.nav-visit:visited { background: var(--red); color: #fff; }
  .mobile-menu ul li a.nav-visit:hover { background: var(--red-dark); }
  .nav-hamburger { display: flex; }
  .nav-logo-icon { width: 32px; height: 32px; }
  .nav-logo-name { font-size: 0.85rem; }
  .nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .sub-nav a, .section-nav a { font-size: 0.65rem; padding: 0.85rem 0.5rem; }
  .sub-nav a span, .section-nav a span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
