/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
  /* Colors */
  --c-bg:          #F5EFE6;
  --c-bg-warm:     #EFE6D8;
  --c-accent:      #D98C5F;
  --c-accent-dark: #C4784D;
  --c-dark:        #6B4F3A;
  --c-text:        #2B2B2B;
  --c-text-muted:  #6A6A6A;
  --c-white:       #FFFAF5;
  --c-border:      rgba(107, 79, 58, 0.12);
  --c-sand:        #E6C9A8;

  /* Spacing (8px scale) */
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  40px;
  --s6:  48px;
  --s8:  64px;
  --s10: 80px;
  --s12: 96px;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 220ms ease;
  --t-slow: 350ms ease;

  /* Nav height */
  --nav-h: 68px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-dark);
}

p { color: var(--c-text-muted); line-height: 1.7; }


/* =============================================================
   LAYOUT UTILITIES
   ============================================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s3);
}

.section {
  padding: var(--s12) 0;
}

.section--beige {
  background: var(--c-bg-warm);
}

.section-header {
  margin-bottom: var(--s8);
  max-width: 560px;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s1);
}

.section-title {
  font-size: var(--text-4xl);
  color: var(--c-dark);
  margin-bottom: var(--s2);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  line-height: 1.7;
}
.section-lead--legal {
  font-size: var(--text-sm) !important;
  opacity: 0.6;
  font-style: italic;
  margin-top: var(--s2);
}

.section-cta {
  margin-top: var(--s6);
  text-align: center;
}


/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 14px 28px;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), transform var(--t-fast),
              box-shadow var(--t-base);
  white-space: nowrap;
  line-height: 1;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  border-color: var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  box-shadow: 0 4px 16px rgba(217, 140, 95, 0.40);
}

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

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--c-white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.75);
}

.btn-full { width: 100%; }


/* =============================================================
   NAV
   ============================================================= */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background var(--t-slow), box-shadow var(--t-slow);
}

.nav-wrapper--scrolled {
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--c-white);
  transition: color var(--t-base);
}
.nav-logo strong { font-weight: 700; }
.nav-logo-icon {
  width: 22px;
  height: 22px;
  color: var(--c-accent);
  flex-shrink: 0;
}
.nav-wrapper--scrolled .nav-logo { color: var(--c-dark); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.nav-links a {
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  border-radius: var(--r-sm);
  transition: color var(--t-base), background var(--t-base);
}
.nav-links a:hover { color: var(--c-white); background: rgba(255,255,255,0.10); }

.nav-wrapper--scrolled .nav-links a { color: var(--c-text-muted); }
.nav-wrapper--scrolled .nav-links a:hover { color: var(--c-dark); background: rgba(107,79,58,0.07); }

/* CTA link */
.nav-cta {
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
  padding: 8px 16px !important;
}
.nav-cta:hover {
  background: var(--c-accent-dark) !important;
  color: var(--c-white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: var(--s1);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-wrapper--scrolled .nav-toggle-bar { background: var(--c-dark); }

.nav-toggle--active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--active .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle--active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/*
  Hero background — replace this gradient with a real photo:
  background-image: url('your-photo.jpg');
  background-size: cover;
  background-position: center;
*/
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('photo/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(30, 15, 5, 0.82) 0%,
    rgba(30, 15, 5, 0.60) 50%,
    rgba(30, 15, 5, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
  padding-bottom: var(--s10);
  max-width: 1120px;
}

.hero-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--s2);
}

.hero-title {
  font-size: clamp(var(--text-4xl), 6vw, 72px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.10;
  margin-bottom: var(--s3);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: var(--s5);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.45);
  transition: color var(--t-base);
  animation: bounce 2.4s ease-in-out infinite;
}
.hero-scroll-hint svg { width: 24px; height: 24px; }
.hero-scroll-hint:hover { color: rgba(255,255,255,0.80); }

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


/* =============================================================
   VERSE SECTION
   ============================================================= */
.verse-section {
  background: var(--c-dark);
  padding: var(--s8) 0;
}

.verse-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.verse-block p {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  font-style: italic;
  letter-spacing: 0.01em;
  margin-bottom: var(--s2);
}

.verse-block cite {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-style: normal;
}

.verse-br { display: none; }
@media (min-width: 600px) { .verse-br { display: inline; } }


/* =============================================================
   ABOUT
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.about-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(217,140,95,0.13);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s3);
  color: var(--c-accent);
}
.about-card-icon svg { width: 22px; height: 22px; }

.about-card h3 {
  font-size: var(--text-xl);
  color: var(--c-dark);
  margin-bottom: var(--s2);
  font-weight: 600;
}

.about-card p {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  line-height: 1.65;
}


/* =============================================================
   MEETINGS / NABOŻEŃSTWA
   ============================================================= */
.meetings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.meeting-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.meeting-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.meeting-card--featured {
  background: var(--c-dark);
}

.meeting-badge {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(217,140,95,0.15);
  padding: 3px 10px;
  border-radius: 100px;
}

.meeting-day {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s1);
}
.meeting-card--featured .meeting-day { color: rgba(230,201,168,0.85); }

.meeting-time {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-dark);
  letter-spacing: -0.03em;
  margin-bottom: var(--s1);
}
.meeting-time span { font-size: 32px; }
.meeting-card--featured .meeting-time { color: var(--c-white); }

.meeting-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: var(--s2);
}
.meeting-card--featured .meeting-name { color: var(--c-white); }

.meeting-desc {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
}
.meeting-card--featured .meeting-desc { color: rgba(255,255,255,0.60); }

/* Address + stream bar */
.meetings-footer {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.meetings-address,
.meetings-stream {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: var(--s2) var(--s3);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}
.meetings-address svg,
.meetings-stream svg {
  width: 18px;
  height: 18px;
  color: var(--c-accent);
  flex-shrink: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-accent);
  margin-left: auto;
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow:hover { gap: 8px; color: var(--c-accent-dark); }
.link-arrow svg { width: 16px; height: 16px; }


/* =============================================================
   SERMONS / KAZANIA
   ============================================================= */
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.sermon-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.sermon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* sermon-thumb jest teraz <a> z prawdziwym zdjęciem z YouTube */
.sermon-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #4a2d18 0%, #6b4020 50%, #7d5030 100%);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.sermon-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.sermon-card:hover .sermon-thumb img { transform: scale(1.04); }

.sermon-thumb-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a2d18 0%, #7d5030 100%);
}

.sermon-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.22);
  transition: background var(--t-base);
}
.sermon-card:hover .sermon-thumb-inner { background: rgba(0, 0, 0, 0.35); }

.sermon-play {
  width: 52px;
  height: 52px;
  background: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.sermon-card:hover .sermon-play {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(0,0,0,0.45);
}
.sermon-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

/* ── Skeleton loader ── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skel-block,
.skel-line {
  background: linear-gradient(90deg,
    var(--c-bg-warm) 25%,
    rgba(255,255,255,0.55) 50%,
    var(--c-bg-warm) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--r-sm);
}
.skel-block {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.skel-line        { height: 14px; margin-bottom: var(--s1); }
.skel-line--short { width: 40%; }
.skel-line--mid   { width: 65%; }

/* ── Error state ── */
.sermons-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--s8) var(--s4);
  color: var(--c-text-muted);
  font-size: var(--text-base);
}
.sermons-error a {
  color: var(--c-accent);
  font-weight: 600;
  transition: color var(--t-fast);
}
.sermons-error a:hover { color: var(--c-accent-dark); }

.sermon-body {
  padding: var(--s3);
}

.sermon-date {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: var(--s1);
}

.sermon-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: var(--s1);
  line-height: 1.35;
}

.sermon-speaker {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}


/* =============================================================
   CREDO
   ============================================================= */
.credo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.credo-item {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base);
}
.credo-item:hover { transform: translateX(4px); }

.credo-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--c-accent);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  margin-top: 2px;
}

.credo-body h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: var(--s1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.credo-body p {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin: 0;
}

.credo-quote {
  background: var(--c-dark);
  border-radius: var(--r-lg);
  padding: var(--s5) var(--s6);
  text-align: center;
  margin-bottom: var(--s4);
}
.credo-quote p {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin-bottom: var(--s2);
}
.credo-quote cite {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-style: normal;
}

.credo-closing {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  line-height: 1.75;
  font-style: italic;
}

/* =============================================================
   EVENTS / WYDARZENIA
   ============================================================= */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.event-item {
  display: flex;
  gap: var(--s4);
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.event-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.event-date {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--c-dark);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.event-date-day {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
}
.event-date-month {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.event-body { flex: 1; }

.event-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--c-dark);
  margin-bottom: var(--s1);
  line-height: 1.3;
}

.event-desc {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: var(--s2);
}

.event-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  background: rgba(217,140,95,0.13);
  padding: 3px 10px;
  border-radius: 100px;
}


/* =============================================================
   CONTACT
   ============================================================= */
.contact-info-row {
  margin-bottom: var(--s6);
}

/* Details row */
.contact-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.contact-detail-item {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(217,140,95,0.13);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; }

.contact-detail-item strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-dark);
  margin-bottom: 3px;
}

.contact-detail-item p,
.contact-detail-item a {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  line-height: 1.55;
}
.contact-detail-item a:hover { color: var(--c-accent); }

/* Socials */
.contact-socials {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 9px 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--r-sm);
  background: var(--c-dark);
  color: var(--c-white);
  transition: background var(--t-base), transform var(--t-fast);
}
.social-link:hover { background: #563d28; transform: translateY(-1px); }


/* Map */
.contact-map {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 380px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--c-dark);
  color: rgba(255,255,255,0.55);
  padding: var(--s8) 0 var(--s4);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: var(--s8);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--s4);
}

.footer-logo {
  color: var(--c-white) !important;
  margin-bottom: var(--s2);
}

.footer-motto {
  font-size: var(--text-sm);
  font-style: italic;
  color: rgba(255,255,255,0.50);
  line-height: 1.6;
  max-width: 300px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--t-base);
}
.footer-nav a:hover { color: var(--c-white); }

.footer-contact p,
.footer-contact a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
}
.footer-contact a:hover { color: var(--c-accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: var(--c-accent);
  transition: color var(--t-base);
}
.footer-bottom a:hover { color: #e8b07a; }


/* =============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================= */
@media (max-width: 900px) {
  .section { padding: var(--s10) 0; }

  .about-grid { grid-template-columns: 1fr 1fr; }
  .meetings-grid { grid-template-columns: 1fr 1fr; }
  .sermons-grid { grid-template-columns: 1fr 1fr; }
  .sermons-grid .sermon-card:last-child { grid-column: 1 / -1; }

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

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}


/* =============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================= */
@media (max-width: 640px) {
  .section { padding: var(--s8) 0; }
  .section-title { font-size: var(--text-3xl); }

  /* Nav mobile */
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--c-white);
    box-shadow: var(--shadow-lg);
    padding: var(--s1) 0 var(--s2);
    border-top: 1px solid var(--c-border);
  }
  .nav-links--open { display: flex; }
  .nav-links a {
    color: var(--c-text-muted) !important;
    background: none !important;
    padding: 12px var(--s3) !important;
    border-radius: 0 !important;
    font-size: var(--text-base) !important;
  }
  .nav-links a:hover { color: var(--c-dark) !important; background: rgba(47,79,79,0.04) !important; }

  .nav-cta {
    margin: var(--s1) var(--s3) 0 !important;
    border-radius: var(--r-sm) !important;
    text-align: center;
    justify-content: center;
    background: var(--c-accent) !important;
    color: var(--c-white) !important;
    padding: 12px var(--s3) !important;
  }

  /* Hero */
  .hero-title { font-size: var(--text-4xl); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }

  /* Meetings */
  .meetings-grid { grid-template-columns: 1fr; }

  /* Sermons */
  .sermons-grid { grid-template-columns: 1fr; }
  .sermons-grid .sermon-card:last-child { grid-column: auto; }

  /* Events */
  .event-item { flex-direction: column; gap: var(--s2); }

  /* Contact */
  .contact-details { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
