/* =====================================================
   Igreja Família Morumbi - Design System
   ===================================================== */

:root {
    --sage: #D3D1C3;
    --teal: #2B6F79;
    --teal-light: #3d8a96;
    --teal-dark: #1f5861;
    --dark: #0F1822;
    --dark-lighter: #1a2a35;
    --dark-card: #162430;
    --blush: #E5D5D4;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --amber-500: #f59e0b;
    --purple-600: #7c3aed;
    --red-600: #dc2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

img { max-width: 100%; height: auto; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-circle {
    width: 38px;
    height: 38px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(43, 111, 121, 0.4);
}

.nav-logo-circle span {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-style: italic;
    color: var(--teal);
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    color: var(--sage);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: rgba(211, 209, 195, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--sage);
    background: rgba(43, 111, 121, 0.15);
}

.nav-links a.active {
    color: var(--teal-light);
}

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--sage);
    cursor: pointer;
    padding: 8px;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 12px 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 14px;
        width: 100%;
    }
    .nav-logo-text { display: none; }
}

/* =====================================================
   HERO SECTIONS
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--dark) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(43, 111, 121, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(211, 209, 195, 0.04) 0%, transparent 50%);
    animation: heroFloat 25s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, -15px); }
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--teal);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 52px);
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero p {
    color: var(--sage);
    font-size: 17px;
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto;
    font-weight: 300;
}

.hero-small {
    padding: 50px 20px;
}

.hero-small h1 {
    font-size: clamp(28px, 5vw, 42px);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(43, 111, 121, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--dark);
}

.btn-white:hover {
    background: var(--sage);
    transform: translateY(-1px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
    position: relative;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 80px 20px;
}

.section-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    color: var(--sage);
}

.section-teal {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
    color: var(--white);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-dark .section-header p {
    color: rgba(211, 209, 195, 0.7);
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    margin: 16px auto;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-body { padding: 24px; }

.card-dark {
    background: var(--dark-card);
    border: 1px solid rgba(43, 111, 121, 0.15);
}

.card-dark:hover {
    border-color: rgba(43, 111, 121, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* =====================================================
   GRID LAYOUTS
   ===================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   SCHEDULE CARDS (Programação)
   ===================================================== */
.schedule-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.schedule-scroll::-webkit-scrollbar {
    height: 6px;
}

.schedule-scroll::-webkit-scrollbar-track {
    background: rgba(211, 209, 195, 0.1);
    border-radius: 3px;
}

.schedule-scroll::-webkit-scrollbar-thumb {
    background: rgba(43, 111, 121, 0.4);
    border-radius: 3px;
}

.schedule-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(43, 111, 121, 0.6);
}

.schedule-scroll .schedule-card {
    min-width: 220px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.schedule-card {
    background: var(--dark-card);
    border: 1px solid rgba(43, 111, 121, 0.15);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.2s;
}

.schedule-card:hover {
    border-color: rgba(43, 111, 121, 0.3);
    transform: translateY(-2px);
}

.schedule-card-day {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--teal-light);
    margin-bottom: 4px;
}

.schedule-card-name {
    font-size: 14px;
    color: var(--sage);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(211, 209, 195, 0.1);
    font-size: 14px;
    color: rgba(211, 209, 195, 0.7);
}

.schedule-time:last-child { border-bottom: none; }

.schedule-time-value {
    font-weight: 700;
    color: var(--teal-light);
    min-width: 55px;
}

.schedule-time svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
    opacity: 0.6;
}

/* =====================================================
   SERMON CARDS (Cultos publicados)
   ===================================================== */
.sermon-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sermon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.sermon-card-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background-color: var(--gray-200);
    overflow: hidden;
}

.sermon-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sermon-card-thumb .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s;
}

.sermon-card:hover .play-overlay { opacity: 1; }

.play-overlay svg {
    width: 48px;
    height: 48px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.sermon-card-no-thumb {
    position: relative;
    padding-bottom: 35%;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

.sermon-card-no-thumb .no-thumb-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sermon-card-no-thumb svg {
    width: 40px;
    height: 40px;
    color: var(--teal);
    opacity: 0.4;
}

.sermon-card-body { padding: 20px; }

.sermon-card-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    background: rgba(43, 111, 121, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.sermon-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    line-height: 1.3;
}

.sermon-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.sermon-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sermon-card-summary {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sermon-card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--teal);
    font-weight: 500;
}

.sermon-card-footer svg { width: 16px; height: 16px; }

/* =====================================================
   INFO CARDS (Sobre, Contato)
   ===================================================== */
.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(43, 111, 121, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--teal);
}

.info-icon svg { width: 24px; height: 24px; }

.info-icon-dark {
    background: rgba(43, 111, 121, 0.15);
    color: var(--teal-light);
}

/* =====================================================
   MINISTRY CARDS
   ===================================================== */
.ministry-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ministry-card:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(43, 111, 121, 0.15);
}

.ministry-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(43, 111, 121, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--teal);
}

.ministry-card-icon svg { width: 26px; height: 26px; }

.ministry-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.ministry-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-light) 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.cta-banner h2 {
    color: var(--white);
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 12px;
    position: relative;
}

.cta-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-bottom: 28px;
    position: relative;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--dark);
    color: rgba(211, 209, 195, 0.5);
    padding: 48px 20px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 20px;
    color: var(--sage);
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.6;
}

.footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal-light);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
    color: rgba(211, 209, 195, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--sage); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(43, 111, 121, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-2px);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
    border-top: 1px solid rgba(211, 209, 195, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   LOADING / EMPTY STATES
   ===================================================== */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 15px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--teal);
    color: var(--teal);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================
   VERSE / QUOTE
   ===================================================== */
.verse-block {
    text-align: center;
    padding: 48px 20px;
    background: var(--gray-50);
}

.verse-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(18px, 3vw, 22px);
    color: var(--gray-700);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 8px;
}

.verse-ref {
    color: var(--teal);
    font-size: 14px;
    font-weight: 500;
}

/* =====================================================
   MAP
   ===================================================== */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-sage { color: var(--sage); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
