﻿  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --gold: #C9943A;
    --gold-light: #E8BE72;
    --gold-pale: #F9F0DC;
    --deep: #1A1209;
    --dark: #2C1F0A;
    --mid: #5C4A28;
    --cream: #FAF6EC;
    --white: #FFFDF8;
    --text: #2C1F0A;
    --muted: #7A6040;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Jost', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    background: rgba(26, 18, 9, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 148, 58, 0.25);
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
  }

  .nav-logo-img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    background: transparent;
  }

  .hero-eyebrow-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .hero-eyebrow {
    margin: 0;
  }

  .hero-logo {
    width: auto;
    height: 90px;
    max-height: 140px;
    object-fit: contain;
    display: inline-block;
    background: transparent;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
    transform: translateY(-6px);
  }

  .nav-logo-text {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  .nav-logo-text span {
    display: block;
    font-size: 0.7rem;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s;
  }

  .nav-links a:hover { color: var(--gold-light); }
  .nav-links a:hover::after { width: 100%; }

  .nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.9);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.active {
    display: flex;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
  }

  /* HERO */
    .hero {
    min-height: 60vh;
    background: var(--deep);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 6rem 2rem 4rem;
  }

  .hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background: none;
  }

  .hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,148,58,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
  }


  .hero-eyebrow {
    font-size: 45px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.15rem;
  }

  .hero-brand-text {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
  }

  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--white);
  }

  .hero-verse {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin-bottom: 2.5rem;
    line-height: 1.7;
  }

  .hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    border: 1px solid rgba(201,148,58,0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
  }

  .hero-location svg { width: 14px; height: 14px; fill: var(--gold); }

  /* DIVIDER */
  .ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
  }

  .ornament-line {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold));
  }

  .ornament-line:last-child {
    background: linear-gradient(to left, transparent, var(--gold));
  }

  .ornament-diamond {
    width: 8px; height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
  }

  /* SECTIONS */
  section { padding: 5rem 2rem; }

  .container { max-width: 900px; margin: 0 auto; }

  .section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--deep);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .admin-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(201, 148, 58, 0.2);
    border-radius: 2rem;
    padding: 3rem 2rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
    margin-top: 8rem;
  }

  .admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }

  .admin-upload-card {
    background: var(--gold-pale);
    border: 1px solid rgba(201, 148, 58, 0.25);
    border-radius: 1.5rem;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .admin-upload-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--deep);
    margin-bottom: 0.5rem;
  }

  .admin-upload-card label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mid);
  }

  .admin-upload-card input[type="text"],
  .admin-upload-card textarea,
  .admin-upload-card input[type="file"] {
    width: 100%;
    border: 1px solid rgba(76, 62, 28, 0.15);
    border-radius: 0.9rem;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    color: var(--deep);
    background: white;
  }

  .admin-upload-card textarea {
    resize: vertical;
    min-height: 100px;
  }

  .admin-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 999px;
    border: none;
    background: var(--deep);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--gold);
    color: var(--deep);
  }

  .admin-messages {
    margin-top: 1.5rem;
    padding: 1.25rem 1.4rem;
    border-left: 4px solid var(--gold);
    border-radius: 1rem;
    background: rgba(249, 240, 220, 0.95);
    color: var(--deep);
  }

  .admin-messages p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* SOBRE NÓS */
  #sobre {
    background: var(--white);
  }

  .sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .sobre-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 1rem;
  }

  .pastor-card {
    background: var(--gold-pale);
    border: 1px solid rgba(201,148,58,0.3);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
  }

  .event-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .event-card {
    background: var(--gold-pale);
    border: 1px solid rgba(201,148,58,0.3);
    border-radius: 12px;
    padding: 1.75rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .event-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--deep);
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .event-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
  }

  .pastor-avatar {
    width: 140px; height: 140px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: block;
    object-fit: cover;
    border: 3px solid var(--gold);
  }

  .pastor-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 0.3rem;
  }

  .pastor-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .pastor-quote {
    margin-top: 1rem;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--mid);
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* GALERIA */
  #galeria {
    background: var(--cream);
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
  }

  .gallery-item {
    aspect-ratio: 1;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
  }

  .gallery-item .placeholder {
    width: 100%; height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
  }

  .gallery-item:hover .placeholder { transform: scale(1.04); }

  .gallery-item .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .gallery-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .gallery-disclaimer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
  }

  .gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }

  .gallery-album-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    background: var(--accent);
    color: rgb(104, 5, 5);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .gallery-album-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
  }

  .gallery-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 0 0;
    text-align: center;
  }

  .gallery-preview p {
    max-width: 600px;
    color: var(--muted);
    line-height: 1.75;
  }

  /* OVERLAY */
  .gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-overlay.active { display: flex; }

  .gallery-overlay-content {
    max-width: 900px;
    width: min(95vw, 900px);
    text-align: center;
    padding: 2rem;
    color: white;
  }

  .gallery-overlay-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
  }

  .overlay-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1.5rem;
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2rem;
    margin-top: 1rem;
    transition: background 0.2s;
  }

  .overlay-close:hover { background: rgba(255,255,255,0.1); }

  /* CONTATO */
  #contatos {
    background: var(--deep);
  }

  #contatos .section-title { color: var(--white); }

  .contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .contact-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,148,58,0.2);
    border-radius: 3px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
  }

  .contact-card:hover {
    border-color: rgba(201,148,58,0.5);
    background: rgba(201,148,58,0.05);
  }

  .contact-icon {
    width: 48px; height: 48px;
    background: rgba(201,148,58,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
  }

  .contact-icon svg {
    width: 22px; height: 22px;
    fill: var(--gold);
  }

  .contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }

  .contact-value {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
  }

  .cultos-table {
    margin-top: 3rem;
    border: 1px solid rgba(201,148,58,0.2);
    border-radius: 3px;
    overflow: hidden;
  }

  .cultos-header {
    background: rgba(201,148,58,0.12);
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .culto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(201,148,58,0.1);
    transition: background 0.2s;
  }

  .culto-row:hover { background: rgba(255,255,255,0.02); }

  .culto-dia {
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
  }

  .culto-nome {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-align: center;
  }

  .culto-hora {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
    text-align: right;
  }

  /* FOOTER */
  footer {
    background: #0D0903;
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(201,148,58,0.15);
  }

  footer p {
    color: rgb(255, 255, 255);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    line-height: 1.8;
  }

  footer strong { color: rgba(241, 237, 237, 0.986); }

  .footer-note {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    opacity: 0.5;
  }

  .ornament-line--accent-right {
    background: linear-gradient(to right, transparent, rgba(201,148,58,0.5));
  }

  .ornament-line--accent-left {
    background: linear-gradient(to left, transparent, rgba(201,148,58,0.5));
  }

  .ornament--footer {
    padding: 0 0 1.5rem;
  }

  .ornament-line--footer-right {
    background: linear-gradient(to right, transparent, rgba(201,148,58,0.3));
  }

  .ornament-line--footer-left {
    background: linear-gradient(to left, transparent, rgba(201,148,58,0.3));
  }

  /* ANIMATIONS CORRIGIDAS */
  .fade-up {
    opacity: 0; /* Começa totalmente invisível */
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .fade-up.visible {
    opacity: 1; /* Fica totalmente visível (o máximo é 1) */
    transform: translateY(50);
  }

  /* ACTIVITIES */
  .activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
  }

  .activity-card {
    background: var(--white);
    border: 1px solid rgba(201, 148, 58, 0.2);
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  .activity-card--image {
    padding: 0;
  }

  .activity-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .activity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .activity-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep);
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .activity-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0.5rem 0;
  }

  .activity-card p:first-of-type {
    font-weight: 600;
    color: var(--deep);
  }

  .activity-card--featured {
    border-width: 3px;
    background: linear-gradient(135deg, rgba(232, 190, 114, 0.6) 0%, rgba(232, 190, 114, 0.5) 100%);
    box-shadow: 0 8px 32px rgba(201, 148, 58, 0.3);
    transform: scale(1.05);
  }

  .activity-card--featured:hover {
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 12px 40px rgba(201, 148, 58, 0.4);
  }

  @media (max-width: 900px) {
    .container { padding: 0 1.2rem; }
  }

  @media (max-width: 700px) {
    nav { padding: 1rem 1.2rem; }
    .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 520px) {
    /* Menu responsivo apenas para celular */
    .nav-toggle { display: flex; }
    .nav-links {
      position: fixed;
      inset: 0;
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      padding: 6rem 1.5rem 2rem;
      background: rgba(26, 18, 9, 0.96);
      backdrop-filter: blur(12px);
      z-index: 150;
    }
    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.1rem; color: rgba(255,255,255,0.95); }
    .nav-links a::after { display: none; }
    .nav-links li { margin: 0; }
    .nav-links { gap: 1.2rem; }
    section { padding: 4rem 1rem; }
    .hero { padding: 4rem 1.2rem 3rem; }
    .hero-eyebrow { font-size: 2rem; }
    .section-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-actions { padding: 0 0.5rem; }
    .gallery-overlay-content { padding: 1.5rem; }
    }

  /* Utility: hide elements on small screens */
  @media (max-width: 520px) {
    .hide-on-mobile { display: none !important; }
  }

/* Desktop: ensure elements marked as hide-on-mobile show by default */
.hide-on-mobile { display: block; }




