/* ============================================
   Sussex Congregation of Jehovah's Witnesses
   Premium NPO Website — style.css
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --navy: #1a2f5a;
  --navy-dark: #0f1d3a;
  --navy-light: #2a4478;
  --gold: #c8962a;
  --gold-light: #e0b44d;
  --gold-dark: #a57a1e;
  --white: #ffffff;
  --light-gray: #f5f7fa;
  --medium-gray: #dce1e8;
  --text-dark: #1e2a3a;
  --text-muted: #5a6a7a;
  --shadow-sm: 0 2px 8px rgba(26, 47, 90, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 47, 90, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 47, 90, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; }
p { margin-bottom: 1rem; }

/* --- Utility --- */
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.bg-light { background: var(--light-gray); }
.bg-navy { background: var(--navy); color: var(--white); }

.section-subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-weight: 300;
}

.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border: none; margin: 1rem auto 2rem;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  box-shadow: 0 4px 15px rgba(200, 150, 42, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(200, 150, 42, 0.5);
  color: var(--navy-dark);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  color: var(--white);
}

/* ============================
   HEADER
   ============================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.99);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  border-radius: 6px;
}
.org-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1.2;
}

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  align-items: center;
}
.nav-list li a {
  display: block;
  padding: 8px 13px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.2px;
}
.nav-list li a:hover,
.nav-list li a.active {
  color: var(--gold-dark);
  background: rgba(200,150,42,0.08);
}
.nav-list li a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 75px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,29,58,0.82), rgba(26,47,90,0.7));
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 40px 24px;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  opacity: 0.92;
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
}
.hero-mini {
  min-height: 45vh;
  margin-top: 75px;
}

/* ============================
   CARDS — Glassmorphism
   ============================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220,225,232,0.6);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,150,42,0.3);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 28px;
}
.card-body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}
.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--navy-dark);
}

/* ============================
   QUOTE / SCRIPTURE BANNER
   ============================ */
.quote-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 60px 24px;
  text-align: center;
  color: var(--white);
}
.quote-banner blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}
.quote-banner cite {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gold-light);
  font-style: normal;
  font-weight: 500;
}

/* ============================
   TWO-COLUMN LAYOUT
   ============================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.two-col-text h2 { margin-bottom: 1rem; }
.two-col-text p { color: var(--text-muted); }
.two-col-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.two-col-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 50px 0;
}
.stat-item {
  text-align: center;
  padding: 20px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================
   SCHEDULE TABLE
   ============================ */
.schedule-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}
.schedule-card table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-card th {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.schedule-card td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--medium-gray);
  font-size: 0.95rem;
}
.schedule-card tr:last-child td { border-bottom: none; }
.schedule-card tr:hover td { background: var(--light-gray); }

/* ============================
   STEPS / PROCESS
   ============================ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}
.step-item {
  padding: 30px 20px;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.step-item h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.step-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================
   FAQ ACCORDION
   ============================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.active { border-color: var(--gold); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--light-gray); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  transition: transform var(--transition);
  font-size: 1.2rem;
  color: var(--gold);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================
   CONTACT FORM
   ============================ */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,42,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Contact info cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.contact-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.contact-card .c-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.contact-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.contact-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ============================
   GALLERY ROW
   ============================ */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover img { transform: scale(1.08); }

/* ============================
   LOCATION / MAP CARD
   ============================ */
.map-card {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--medium-gray);
}
.map-card h3 { margin-bottom: 0.75rem; }
.map-card p { color: var(--text-muted); margin-bottom: 0.5rem; }

/* ============================
   CTA BANNER
   ============================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 60px 24px;
  text-align: center;
  color: var(--white);
  border-radius: var(--radius);
  margin: 40px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================
   ICON LIST
   ============================ */
.icon-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
}
.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-dark);
}
.icon-list li .li-icon {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 2px;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 6px;
}
.footer-org-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.5rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold-light); }

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Success message */
.success-msg {
  background: #d4edda;
  color: #155724;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
}

/* ============================
   RESPONSIVE — TABLET
   ============================ */
@media (max-width: 1024px) {
  .nav-list li a { padding: 8px 9px; font-size: 0.82rem; }
  .org-name { font-size: 0.9rem; }
  .header-logo { width: 36px; height: 36px; }
  .two-col { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================
   RESPONSIVE — MOBILE
   ============================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 75px; right: -100%;
    width: 280px;
    height: calc(100vh - 75px);
    background: var(--white);
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right var(--transition);
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open { right: 0; }

  .nav-list {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }
  .nav-list li a {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--light-gray);
    border-radius: 0;
    white-space: normal;
  }
  .nav-list li a.active::after { display: none; }

  .hero { min-height: 65vh; }
  .hero-content h1 { font-size: 1.8rem; }

  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .gallery-row { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }

  .section-padding { padding: 50px 0; }
}

@media (max-width: 480px) {
  .org-name { display: none; }
  .stats-bar { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: 1fr; }
}
