/* =============================================
   IGLESIA BAUTISTA RESURRECCIÓN — styles.css
   Inspired by ccdelco.com aesthetic
   ============================================= */

   @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

   :root {
     --green-dark:   #7BA4AD;
     --green-mid:    #7BA4AD;
     --green-accent: #7BA4AD;
     --green-light:  #95C4CF;
     --white:        #ffffff;
     --off-white:    #f5f5f0;
     --text-dark:    #1a1a1a;
     --text-mid:     #444444;
     --text-muted:   #777777;
     --border:       #e0e0d8;
     --card-bg:      #ffffff;
     --section-bg:   #f9f9f6;
     --vbs-orange:       #f4a73b;
     --vbs-orange-light: #f7bc66;
   }
   
   * { box-sizing: border-box; margin: 0; padding: 0; }
   
   html { scroll-behavior: smooth; }
   
   body {
     font-family: 'Nunito Sans', sans-serif;
     background: var(--white);
     color: var(--text-dark);
     line-height: 1.6;
   }
   
   a { color: inherit; text-decoration: none; }
   
   /* ─── HEADER / NAV ─────────────────────────── */
   
   .site-header {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 100;
     background: var(--green-dark);
     padding: 0 32px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     height: 68px;
     transition: background 0.3s;
   }
   
   .site-header.scrolled {
     background: #95C4CF;
     box-shadow: 0 2px 20px rgba(0,0,0,0.3);
   }
   
   .brand {
     display: flex;
     flex-direction: column;
     line-height: 1.1;
   }
   
   .brand-title {
     font-family: 'Nunito Sans', sans-serif;
     font-size: 10px;
     font-weight: 300;
     letter-spacing: 0.25em;
     color: rgba(255,255,255,0.7);
     text-transform: uppercase;
   }
   
   .brand-subtitle {
     font-family: 'Playfair Display', serif;
     font-size: 18px;
     font-weight: 700;
     color: var(--white);
     letter-spacing: 0.05em;
   }
   
   .nav {
     display: flex;
     align-items: center;
     gap: 4px;
   }
   
   .nav-link {
     font-size: 13px;
     font-weight: 600;
     color: rgba(255,255,255,0.8);
     padding: 8px 14px;
     border-radius: 4px;
     letter-spacing: 0.04em;
     text-transform: uppercase;
     transition: color 0.2s, background 0.2s;
     white-space: nowrap;
   }
   
   .nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
   .nav-link.active { color: var(--white); }
   
   .nav-link.nav-cta {
     background: var(--green-accent);
     color: var(--white);
     margin-left: 8px;
     border-radius: 4px;
     padding: 8px 18px;
   }
   
   .nav-link.nav-cta:hover { background: var(--green-light); }
   
   /* Hamburger */
   .nav-toggle {
     display: none;
     flex-direction: column;
     gap: 5px;
     cursor: pointer;
     padding: 4px;
     background: none;
     border: none;
   }
   .nav-toggle span {
     display: block;
     width: 24px;
     height: 2px;
     background: var(--white);
     border-radius: 2px;
     transition: transform 0.3s;
   }
   
   /* ─── HERO ──────────────────────────────────── */
   
   .hero {
     position: relative;
     height: 88vh;
     min-height: 540px;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     background: url('/assets/images/church.jpg') center / cover no-repeat;
     background-color: var(--green-dark);
     overflow: hidden;
   }

   .hero-slideshow {
     position: absolute;
     inset: 0;
     z-index: 0;
   }

   .hero-slide {
     position: absolute;
     inset: 0;
     background-position: center;
     background-size: cover;
     opacity: 0;
     transform: scale(1.06);
     animation: heroSlide 24s infinite;
   }

   .hero-slide:nth-child(1) { animation-delay: 0s; }
   .hero-slide:nth-child(2) { animation-delay: 6s; }
   .hero-slide:nth-child(3) { animation-delay: 12s; }
   .hero-slide:nth-child(4) { animation-delay: 18s; }

   @keyframes heroSlide {
     0% { opacity: 0; transform: scale(1.06); }
     8% { opacity: 1; }
     28% { opacity: 1; }
     38% { opacity: 0; transform: scale(1); }
     100% { opacity: 0; transform: scale(1); }
   }
   
   .hero-overlay {
     position: absolute;
     z-index: 0;
     inset: 0;
     background: linear-gradient(
       to bottom,
       rgba(31, 48, 52, 0.72) 0%,
       rgba(31, 48, 52, 0.58) 48%,
       rgba(31, 48, 52, 0.82) 100%
     );
   }
   
   .hero-inner {
     position: relative;
     z-index: 1;
     max-width: 760px;
     padding: 0 24px;
     animation: fadeUp 0.9s ease both;
   }
   
   .hero-eyebrow {
     display: inline-block;
     font-size: 11px;
     font-weight: 700;
     letter-spacing: 0.3em;
     text-transform: uppercase;
     color: var(--green-light);
     margin-bottom: 20px;
   }
   
   .hero h1 {
     font-family: 'Playfair Display', serif;
     font-size: clamp(36px, 6vw, 64px);
     font-weight: 700;
     color: var(--white);
     line-height: 1.15;
     margin-bottom: 20px;
   }
   
   .hero p {
     font-size: 18px;
     font-weight: 300;
     color: rgba(255,255,255,0.82);
     max-width: 520px;
     margin: 0 auto 32px;
     line-height: 1.7;
   }
   
   .hero-actions {
     display: flex;
     gap: 14px;
     justify-content: center;
     flex-wrap: wrap;
   }
   
   /* ─── BUTTONS ───────────────────────────────── */
   
   .btn {
     display: inline-block;
     font-family: 'Nunito Sans', sans-serif;
     font-size: 13px;
     font-weight: 700;
     letter-spacing: 0.08em;
     text-transform: uppercase;
     padding: 14px 28px;
     border-radius: 4px;
     border: 2px solid transparent;
     cursor: pointer;
     transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
   }
   
   .btn:active { transform: scale(0.98); }
   
   .btn-primary {
     background: var(--green-accent);
     color: var(--white);
     border-color: var(--green-accent);
   }
   .btn-primary:hover { background: var(--green-light); border-color: var(--green-light); }
   
   .btn-outline {
     background: transparent;
     color: var(--white);
     border-color: rgba(255,255,255,0.6);
   }
   .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
   
   .btn-outline-dark {
     background: transparent;
     color: var(--green-accent);
     border-color: var(--green-accent);
   }
   .btn-outline-dark:hover { background: var(--green-accent); color: var(--white); }
   
   .btn-small {
     font-size: 12px;
     padding: 9px 18px;
   }
   
   /* ─── INFO BAR (under hero) ─────────────────── */
   
   .info-bar {
     background: var(--green-mid);
     color: var(--white);
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 48px;
     padding: 20px 32px;
     flex-wrap: wrap;
   }
   
   .info-bar-item {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 14px;
   }
   
   .info-bar-item .label {
     font-size: 10px;
     font-weight: 700;
     letter-spacing: 0.2em;
     text-transform: uppercase;
     color: var(--green-light);
     display: block;
   }
   
   .info-bar-item .value {
     font-size: 15px;
     font-weight: 600;
     color: var(--white);
   }
   
   .info-bar-divider {
     width: 1px;
     height: 36px;
     background: rgba(255,255,255,0.2);
   }
   
   /* ─── SECTIONS ──────────────────────────────── */
   
   .section {
     max-width: 1060px;
     margin: 0 auto;
     padding: 72px 24px;
   }
   
   .section-alt {
     background: var(--section-bg);
   }
   
   .section-dark {
     background: var(--green-dark);
     color: var(--white);
   }
   
   .section-inner {
     max-width: 1060px;
     margin: 0 auto;
     padding: 72px 24px;
   }
   
   .section-label {
     font-size: 11px;
     font-weight: 700;
     letter-spacing: 0.28em;
     text-transform: uppercase;
     color: var(--green-accent);
     margin-bottom: 12px;
   }
   
   .section h2 {
     font-family: 'Playfair Display', serif;
     font-size: clamp(28px, 4vw, 40px);
     font-weight: 700;
     color: var(--text-dark);
     margin-bottom: 8px;
     line-height: 1.2;
   }
   
   .section-dark h2 { color: var(--white); }
   .section-dark .section-label { color: var(--green-light); }
   
   .section-subtitle {
     font-size: 16px;
     color: var(--text-muted);
     margin-bottom: 40px;
     max-width: 560px;
   }
   
   .section-dark .section-subtitle { color: rgba(255,255,255,0.65); }
   
   /* ─── CARDS ─────────────────────────────────── */
   
   .cards {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 20px;
   }
   
   .card {
     background: var(--card-bg);
     border: 1px solid var(--border);
     border-radius: 10px;
     padding: 28px 24px;
     transition: box-shadow 0.2s, transform 0.2s;
   }
   
   .card:hover {
     box-shadow: 0 8px 28px rgba(0,0,0,0.08);
     transform: translateY(-2px);
   }
   
   .card h3 {
     font-family: 'Playfair Display', serif;
     font-size: 20px;
     margin-bottom: 8px;
     color: var(--text-dark);
   }
   
   .card p { font-size: 15px; color: var(--text-mid); line-height: 1.65; }
   .card p + p { margin-top: 6px; }
   
   .card-accent {
     border-top: 3px solid var(--green-accent);
   }
   
   /* ─── MINISTRY TILES ────────────────────────── */
   
   .grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
     gap: 14px;
   }
   
   .tile {
     background: var(--card-bg);
     border: 1px solid var(--border);
     border-radius: 10px;
     padding: 22px 16px;
     text-align: center;
     font-weight: 700;
     font-size: 14px;
     letter-spacing: 0.04em;
     text-transform: uppercase;
     color: var(--text-dark);
     transition: background 0.2s, color 0.2s, border-color 0.2s;
     cursor: default;
   }
   
   .tile:hover {
    background: var(--green-accent);
    color: var(--white);
    border-color: var(--green-accent);
  }

  /* ─── PHOTO GALLERY ─────────────────────────── */

  .photo-folder {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  }

  .photo-folder-header {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px 24px;
  }

  .photo-folder-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .drive-frame {
    border-top: 1px solid var(--border);
    height: min(760px, 72vh);
    min-height: 480px;
    overflow: hidden;
  }

  .drive-frame iframe {
    border: 0;
    height: 100%;
    width: 100%;
  }
  
  /* ─── VIDEO SECTION ─────────────────────────── */
   
   #church-stream {
     max-width: 820px;
     margin: 0 auto;
   }
   
   .video-wrapper {
     position: relative;
     padding-bottom: 56.25%;
     height: 0;
     overflow: hidden;
     border-radius: 10px;
     box-shadow: 0 12px 40px rgba(0,0,0,0.18);
   }
   
   .video-wrapper iframe {
     position: absolute;
     top: 0; left: 0;
     width: 100%; height: 100%;
     border: 0;
   }
   
   .stream-label {
     text-align: center;
     margin-top: 14px;
     font-size: 14px;
     font-weight: 600;
     letter-spacing: 0.06em;
     color: var(--text-muted);
   }

   .stream-actions {
     display: flex;
     justify-content: center;
     margin-top: 22px;
   }
   
   /* ─── QUOTE BLOCK ───────────────────────────── */
   
   .quote-block {
     background: var(--green-dark);
     color: var(--white);
     text-align: center;
     padding: 64px 24px;
   }
   
   .quote-block blockquote {
     font-family: 'Playfair Display', serif;
     font-size: clamp(20px, 3vw, 30px);
     font-weight: 400;
     font-style: italic;
     max-width: 720px;
     margin: 0 auto 16px;
     line-height: 1.55;
     color: rgba(255,255,255,0.92);
   }
   
   .quote-block cite {
     font-size: 13px;
     letter-spacing: 0.2em;
     text-transform: uppercase;
     color: var(--green-light);
     font-style: normal;
   }
   
   /* ─── CONTACT FORM ──────────────────────────── */
   
   label {
     display: block;
     font-size: 12px;
     font-weight: 700;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     color: var(--text-mid);
     margin: 16px 0 6px;
   }
   
   input, textarea {
     width: 100%;
     background: var(--white);
     color: var(--text-dark);
     border: 1px solid var(--border);
     border-radius: 6px;
     padding: 11px 14px;
     font-family: 'Nunito Sans', sans-serif;
     font-size: 15px;
     outline: none;
     transition: border-color 0.2s;
   }
   
   input:focus, textarea:focus {
    border-color: var(--green-accent);
  }

  .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }

  .social-links a {
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
     display: inline-flex;
     height: 44px;
     justify-content: center;
     padding: 8px;
     transition: background 0.2s, border-color 0.2s, transform 0.2s;
     width: 44px;
  }

  .social-links a:hover {
    border-color: var(--green-accent);
    background: rgba(123,164,173,0.12);
     transform: translateY(-2px);
   }

   .social-links img {
     display: block;
     height: 100%;
     object-fit: contain;
     width: 100%;
  }
   
   /* ─── FOOTER ────────────────────────────────── */
   
   .site-footer {
     background: var(--green-dark);
     color: rgba(255,255,255,0.85);
     text-align: center;
     padding: 40px 24px;
   }
   
   .site-footer .footer-name {
     font-family: 'Playfair Display', serif;
     font-size: 20px;
     font-weight: 700;
     color: var(--white);
     margin-bottom: 8px;
   }
   
   .site-footer .footer-info {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
  }

  .site-footer .footer-info a {
    color: rgba(255,255,255,0.72);
    transition: color 0.2s;
  }

  .site-footer .footer-info a:hover {
    color: var(--white);
  }
   
   /* ─── MODAL ──────────────────────────────────── */
   
   .modal-backdrop {
     position: fixed;
     inset: 0;
     display: none;
     align-items: center;
     justify-content: center;
     background: rgba(0,0,0,0.65);
     padding: 16px;
     z-index: 200;
   }
   .modal-backdrop.show { display: flex; }
   
   .modal {
     width: min(520px, 100%);
     background: var(--card-bg);
     border: 1px solid var(--border);
     border-radius: 10px;
     padding: 32px;
   }
   
   .modal h2 {
     font-family: 'Playfair Display', serif;
     font-size: 22px;
     margin-bottom: 12px;
   }
   
   /* ─── PAGE HERO (inner pages) ────────────────── */
   
   .page-hero {
     background: var(--green-dark);
     padding: 120px 24px 64px;
     text-align: center;
   }
   
   .page-hero h1 {
     font-family: 'Playfair Display', serif;
     font-size: clamp(32px, 5vw, 52px);
     color: var(--white);
     margin-bottom: 12px;
   }
   
   .page-hero p {
     font-size: 16px;
     color: rgba(255,255,255,0.65);
     max-width: 560px;
     margin: 0 auto;
   }
   
   /* ─── CAROUSEL ───────────────────────────────── */
   
   .carousel-wrapper { max-width: 680px; }
   
   .carousel { position: relative; }
   
   .slide {
     display: none;
     background: var(--section-bg);
     border: 1px solid var(--border);
     border-radius: 10px;
     padding: 24px;
   }
   
   .slide.active { display: block; }
   
   .slide h3 {
     font-family: 'Playfair Display', serif;
     font-size: 18px;
     margin-bottom: 10px;
     color: var(--text-dark);
   }
   
   .slide p { font-size: 15px; color: var(--text-mid); line-height: 1.7; }
   
   .carousel-controls {
     display: flex;
     align-items: center;
     justify-content: space-between;
     margin-top: 14px;
   }
   
   /* ─── UTILS ──────────────────────────────────── */
   
   .muted { color: var(--text-muted); }
   .mt-sm { margin-top: 14px; }
   .mt-md { margin-top: 28px; }
   .mt-lg { margin-top: 48px; }
   .divider { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
   .live-badge { color: #cc0000; font-weight: 700; margin-top: 10px; }
   .text-center { text-align: center; }
   
   /* ─── VBS: NAV BADGE ─────────────────────────── */

   .nav-link.nav-vbs {
     background: var(--vbs-orange);
     color: var(--green-dark);
     margin-left: 8px;
     border-radius: 4px;
     font-weight: 700;
   }
   .nav-link.nav-vbs:hover { background: var(--vbs-orange-light); color: var(--green-dark); }

   /* ─── VBS: BANNER ────────────────────────────── */

   .vbs-banner {
     display: none;
     align-items: center;
     justify-content: center;
     gap: 14px;
     flex-wrap: wrap;
     background: var(--vbs-orange);
     color: var(--green-dark);
     text-align: center;
     padding: 12px 20px;
     font-size: 14px;
     font-weight: 600;
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 110;
   }
   .vbs-banner.show { display: flex; }
   .site-header { top: 0; transition: top 0.2s, background 0.3s; }
   body.has-vbs-banner .site-header { top: var(--vbs-banner-height, 0px); }
   .vbs-banner a.vbs-banner-link {
     color: var(--green-dark);
     text-decoration: underline;
     font-weight: 700;
     white-space: nowrap;
   }
   .vbs-banner-close {
     position: absolute;
     right: 14px;
     top: 50%;
     transform: translateY(-50%);
     background: none;
     border: none;
     font-size: 18px;
     line-height: 1;
     color: var(--green-dark);
     cursor: pointer;
     padding: 4px 8px;
   }

   /* ─── VBS: POPUP (accent variant of .modal) ──── */

   .modal.modal-vbs { border: none; border-top: 6px solid var(--vbs-orange); text-align: center; }
   .modal-vbs .modal-eyebrow {
     font-size: 12px;
     font-weight: 700;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--green-accent);
     margin-bottom: 8px;
     display: block;
   }
   .modal-vbs h2 { font-size: 26px; }
   .modal-vbs p { color: var(--text-mid); margin-bottom: 18px; }
   .modal-vbs .modal-actions {
     display: flex;
     gap: 10px;
     justify-content: center;
     flex-wrap: wrap;
     margin-top: 6px;
   }

   /* ─── ANIMATIONS ─────────────────────────────── */
   
   @keyframes fadeUp {
     from { opacity: 0; transform: translateY(22px); }
     to   { opacity: 1; transform: translateY(0); }
   }
   
   /* ─── RESPONSIVE ─────────────────────────────── */
   
   @media (max-width: 768px) {
     .site-header { padding: 0 20px; }
   
     .nav { display: none; flex-direction: column; gap: 0; }
     .nav.open {
       display: flex;
       position: absolute;
       top: calc(68px + var(--vbs-banner-height, 0px)); left: 0; right: 0;
       background: var(--green-dark);
       padding: 12px 0 20px;
       border-top: 1px solid rgba(255,255,255,0.1);
     }
   
     .nav-link { padding: 12px 24px; border-radius: 0; width: 100%; }
     .nav-link.nav-cta { margin: 8px 24px 0; width: auto; }
     .nav-link.nav-vbs { margin: 8px 24px 0; width: auto; }
   
     .nav-toggle { display: flex; }
   
     .vbs-banner { font-size: 13px; padding: 10px 44px; }
     .vbs-banner-close { right: 6px; }
   
     .info-bar { gap: 24px; }
     .info-bar-divider { display: none; }
   
     .hero { height: 75vh; }
     .hero h1 { font-size: 32px; }
     .hero p { font-size: 16px; }

     .photo-folder-header {
       align-items: flex-start;
       flex-direction: column;
     }

     .drive-frame {
       height: 68vh;
       min-height: 420px;
     }
   
     .section { padding: 48px 20px; }
     .section-inner { padding: 48px 20px; }
   }