/* ============================================================
   Grace Church — Shared Stylesheet
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --navy:       #2c3e4a;
  --slate-blue: #5D768B;
  --mist-blue:  #8fa8b8;
  --pale-shore: #b8c8d4;
  --ivory:      #F8EFE5;
  --off-white:  #f0eee8;
  --card-white: #ffffff;
  --card-border: #ddd8cf;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', Arial, sans-serif;

  --radius: 8px;
  --shadow: 0 2px 12px rgba(44, 62, 74, 0.10);
  --transition: 0.2s ease;

  --max-width: 1160px;
  --section-pad: 5rem 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background: var(--ivory);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--slate-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Links (centre) */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--mist-blue);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-links a.active {
  color: #fff;
  border-bottom: 2px solid var(--pale-shore);
  padding-bottom: 2px;
}

/* Social icons (right) */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-social a {
  color: var(--mist-blue);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.nav-social a:hover {
  color: #fff;
}

.nav-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mist-blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state */
.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);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--mist-blue);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.footer-left p {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--mist-blue);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: var(--mist-blue);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: #fff;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-copy {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(143,168,184,0.6);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--slate-blue);
  color: #fff;
  border-color: var(--slate-blue);
}

.btn-primary:hover {
  background: #4a6070;
  border-color: #4a6070;
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  text-decoration: none;
  color: #fff;
}

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

.btn-dark:hover {
  background: #1e2c36;
  border-color: #1e2c36;
  text-decoration: none;
  color: #fff;
}

/* ============================================================
   DARK HERO (Beliefs / Sermons / Support)
   ============================================================ */
.hero-dark {
  background: var(--navy);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-dark h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-dark p {
  max-width: 700px;
  margin: 0 auto 1rem;
  color: var(--mist-blue);
  font-size: 1.05rem;
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.home-hero {
  background: var(--ivory);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.home-hero .eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-blue);
  margin-bottom: 1rem;
}

.home-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--navy);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.home-hero .tagline {
  font-size: 1.1rem;
  color: #555;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

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

/* ============================================================
   SERVICE TIMES BAR
   ============================================================ */
.service-times {
  background: var(--navy);
  color: #fff;
  padding: 1.75rem 1.5rem;
}

.service-times-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.service-time-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-time-item svg {
  width: 22px;
  height: 22px;
  fill: var(--pale-shore);
  flex-shrink: 0;
}

.service-time-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-blue);
  margin-bottom: 0.1rem;
}

.service-time-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
}

.service-time-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ============================================================
   WHERE / WHY / WHO CARDS
   ============================================================ */
.cards-section {
  background: var(--off-white);
  padding: var(--section-pad);
}

.cards-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  color: var(--slate-blue);
}

.card-icon svg {
  width: 44px;
  height: 44px;
  fill: var(--slate-blue);
}

.card h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

/* ============================================================
   SCRIPTURE QUOTE
   ============================================================ */
.scripture-block {
  background: var(--navy);
  padding: 5rem 1.5rem;
  text-align: center;
}

.scripture-block blockquote {
  max-width: 780px;
  margin: 0 auto;
}

.scripture-block blockquote p {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: #fff;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.scripture-block blockquote cite {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--pale-shore);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   MEET THE PASTOR
   ============================================================ */
.pastor-section {
  background: var(--ivory);
  padding: var(--section-pad);
}

.pastor-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
}

.pastor-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--pale-shore);
  flex-shrink: 0;
}

.pastor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder if no image */
.pastor-image-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--pale-shore);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--card-border);
}

.pastor-image-placeholder svg {
  width: 100px;
  height: 100px;
  fill: var(--slate-blue);
  opacity: 0.5;
}

.pastor-text .section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-blue);
  margin-bottom: 0.75rem;
}

.pastor-text h2 {
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.pastor-text .pastor-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--slate-blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.pastor-text p {
  color: #555;
  font-size: 1rem;
}

/* ============================================================
   BELIEFS PAGE
   ============================================================ */
.beliefs-section {
  background: var(--ivory);
  padding: var(--section-pad);
}

.beliefs-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.belief-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 1.5rem;
  align-items: start;
}

.belief-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 500;
  color: var(--pale-shore);
  line-height: 1;
  padding-top: 0.1rem;
  user-select: none;
}

.belief-content h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.belief-content p {
  font-size: 0.98rem;
  color: #555;
}

/* ============================================================
   SERMONS PAGE
   ============================================================ */
.youtube-banner {
  background: var(--off-white);
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.youtube-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.youtube-channel-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.youtube-channel-info svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.youtube-channel-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
}

.youtube-channel-sub {
  font-size: 0.85rem;
  color: #777;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FF0000;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.btn-subscribe:hover {
  background: #cc0000;
  text-decoration: none;
  color: #fff;
}

.btn-subscribe svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.sermons-section {
  background: var(--ivory);
  padding: var(--section-pad);
}

.sermons-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.sermon-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.sermon-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  overflow: hidden;
}

.sermon-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sermon-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 62, 74, 0.35);
  transition: background var(--transition);
}

.sermon-thumb:hover .sermon-play-overlay {
  background: rgba(44, 62, 74, 0.55);
}

.sermon-play-overlay svg {
  width: 52px;
  height: 52px;
  fill: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Placeholder thumb gradient (when no real thumbnail) */
.sermon-thumb-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2c3e4a 0%, #4a6070 100%);
}

.sermon-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sermon-series {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-blue);
  margin-bottom: 0.4rem;
}

.sermon-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.sermon-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.sermon-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-blue);
}

.sermon-watch-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sermon-watch-link:hover {
  color: var(--navy);
  text-decoration: none;
}

.sermons-view-all {
  margin-top: 3rem;
  text-align: center;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */
.support-section {
  background: var(--off-white);
  padding: var(--section-pad);
}

.support-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.support-card {
  background: var(--card-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.support-card h3 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.support-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
}

/* Dark card variant */
.support-card--dark {
  background: var(--navy);
  border-color: var(--navy);
}

.support-card--dark h3 {
  color: #fff;
}

.support-card--dark p,
.support-card--dark .account-detail {
  color: var(--mist-blue);
}

.account-detail {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.account-detail .account-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.account-row label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pale-shore);
}

.account-row span {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
}

.account-note {
  font-size: 0.85rem;
  color: var(--mist-blue);
  margin-top: 1rem;
  opacity: 0.85;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: var(--off-white);
  padding: var(--section-pad);
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
}

.faq-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--card-border);
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--slate-blue);
}

.faq-chevron {
  width: 22px;
  height: 22px;
  fill: var(--slate-blue);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item--open .faq-chevron {
  transform: rotate(180deg);
}

.faq-item--open .faq-question {
  color: var(--slate-blue);
}

.faq-answer {
  padding: 0 0 1.5rem;
}

.faq-answer p {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.75;
}

/* ============================================================
   RESPONSIVE — TABLET (768px–1023px)
   ============================================================ */
@media (max-width: 1023px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sermon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pastor-inner {
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
  }

  .pastor-image,
  .pastor-image-placeholder {
    width: 240px;
    height: 240px;
  }
}

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

  .nav-social {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    border-bottom: none;
    padding-bottom: 0.85rem;
  }

  .nav-links a.active {
    border-bottom: none;
    background: rgba(255,255,255,0.06);
    color: #fff;
  }

  /* Hero */
  .home-hero {
    padding: 4rem 1.25rem 3rem;
  }

  /* Service times */
  .service-times-inner {
    flex-direction: column;
    gap: 0;
  }

  .service-time-divider {
    width: 80%;
    height: 1px;
    margin: 1rem 0;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Sermon grid */
  .sermon-grid {
    grid-template-columns: 1fr;
  }

  /* Support grid */
  .support-grid {
    grid-template-columns: 1fr;
  }

  /* Pastor section */
  .pastor-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .pastor-image,
  .pastor-image-placeholder {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }

  /* Belief items */
  .belief-item {
    grid-template-columns: 60px 1fr;
  }

  .belief-number {
    font-size: 3.5rem;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  /* YouTube banner */
  .youtube-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
