/* 
 * Custom Stylesheet - Paróquia Nossa Senhora de Fátima do Campolim
 * Developed by Qube Design
 */

/* ---------------------------------------------------------
   1. Design System & Variables
   --------------------------------------------------------- */
:root {
    --primary-navy: #0B2545;       /* Deep Navy */
    --primary-navy-rgb: 11, 37, 69;
    --accent-gold: #C18C33;        /* Warm Gold */
    --accent-gold-hover: #D8A03E;  /* Lighter Gold for hover */
    --accent-gold-light: #F4EAD4;  /* Very light gold for highlights */
    --bg-cream: #FDFBF7;           /* Warm Off-White / Cream */
    --bg-card: #FFFFFF;            /* Pure White for cards */
    --text-dark: #2A3B50;          /* Soft Dark Navy for text */
    --text-muted: #6C7A89;         /* Muted Gray-Blue */
    --text-light-gray: #DEE2E6;    /* Light Gray for footer text */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------------------------------------------------------
   2. Typography
   --------------------------------------------------------- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Cinzel', Georgia, serif;
    font-weight: 700;
    color: var(--primary-navy);
}

.section-title-container {
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

/* Elegant Liturgical Divider */
.liturgical-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-gold);
    margin: 0.5rem auto 1.5rem auto;
}

.liturgical-divider::before,
.liturgical-divider::after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background-color: var(--accent-gold);
}

.liturgical-divider i {
    font-size: 0.8rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-navy);
}

/* ---------------------------------------------------------
   3. Header Navigation (Glassmorphism & Shrinking)
   --------------------------------------------------------- */
.header-nav {
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(193, 140, 51, 0.15);
    z-index: 1050;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.header-nav.scrolled {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    background-color: rgba(253, 251, 247, 0.98);
    box-shadow: 0 4px 25px rgba(11, 37, 69, 0.08);
}

.logo-img {
    transition: var(--transition-smooth);
}

.header-nav.scrolled .logo-img {
    height: 55px;
}

.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-navy) !important;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 6px;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
}

/* Nav Link Underline Indicator */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: center;
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* Dropdown styling */
.dropdown-menu {
    background-color: var(--bg-cream);
    border-top: 3px solid var(--accent-gold) !important;
    border-radius: 0 0 8px 8px;
}

.dropdown-item {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: var(--accent-gold-light);
    color: var(--accent-gold);
}

/* ---------------------------------------------------------
   4. Hero Banner Section
   --------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    margin-top: 88px; /* Safe offset for fixed header */
    color: var(--primary-navy);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Soft golden gradient starting from the right (for right-aligned text) */
    background: linear-gradient(to left, rgba(253, 251, 247, 0.8) 0%, rgba(253, 251, 247, 0.45) 40%, rgba(253, 251, 247, 0) 80%);
    pointer-events: none;
}

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

.hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
    font-size: 1.8rem;
    letter-spacing: 3px;
    font-weight: 400;
    color: var(--accent-gold);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 991px) {
    .hero-section {
        height: 70vh;
        margin-top: 76px;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    /* Mobile Flat Dropdown Navigation */
    .navbar-nav .dropdown-menu {
        display: block !important;
        position: static !important;
        float: none;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.5rem !important;
        margin: 0 !important;
    }
    .navbar-nav .dropdown-toggle {
        pointer-events: none;
        color: var(--accent-gold) !important;
    }
    .navbar-nav .dropdown-toggle::after {
        display: none !important;
    }
    .navbar-nav .dropdown-item {
        padding-left: 0 !important;
        background-color: transparent !important;
        color: var(--primary-navy) !important;
        border-left: 2px solid rgba(193, 140, 51, 0.25);
        padding-left: 12px !important;
        margin-bottom: 6px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item.active {
        color: var(--accent-gold) !important;
        border-left-color: var(--accent-gold) !important;
        background-color: transparent !important;
    }
    .navbar-nav .dropdown-divider {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        background-position: left center; /* Align background to the left for mobiles */
        align-items: flex-end !important;
        padding-bottom: 3.5rem !important;
        min-height: 520px;
    }
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.15 !important;
        margin-bottom: 0.4rem !important;
    }
    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1.2rem !important;
    }
    .hero-content {
        text-align: right !important;
        background: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }
    .hero-tagline {
        justify-content: flex-end !important;
        margin-bottom: 0.4rem !important;
    }
}

/* Custom list-group style for inner navigation active state */
.list-group-item.active {
    background-color: var(--primary-navy) !important;
    border-color: var(--primary-navy) !important;
    color: #FFFFFF !important;
}
.list-group-item.active i {
    color: var(--accent-gold) !important;
}

/* ---------------------------------------------------------
   5. Buttons (Premium Stylings)
   --------------------------------------------------------- */
.btn-premium-dark {
    background-color: var(--primary-navy);
    color: #FFFFFF !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 12px 28px;
    border-radius: 4px;
    border: 1px solid var(--primary-navy);
    transition: var(--transition-smooth);
}

.btn-premium-dark:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 140, 51, 0.3);
}

.btn-premium-outline {
    background-color: transparent;
    color: var(--accent-gold) !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 12px 28px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    transition: var(--transition-smooth);
}

.btn-premium-outline:hover {
    background-color: var(--accent-gold);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 140, 51, 0.3);
}

.btn-premium-gold {
    background-color: var(--accent-gold);
    color: #FFFFFF !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    transition: var(--transition-smooth);
}

.btn-premium-gold:hover {
    background-color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(193, 140, 51, 0.4);
}

/* ---------------------------------------------------------
   6. Sections General Style
   --------------------------------------------------------- */
.section-padding {
    padding: 5.5rem 0;
}

.bg-cream-alt {
    background-color: #F8F5EE;
}

/* ---------------------------------------------------------
   7. Cards & Layout Sections
   --------------------------------------------------------- */

/* Welcome / Priest Section */
.welcome-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(193, 140, 51, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.welcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(11, 37, 69, 0.06);
    border-color: rgba(193, 140, 51, 0.25);
}

.welcome-card-body {
    padding: 3rem;
}

.welcome-card-title {
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.priest-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.priest-img {
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.welcome-card:hover .priest-img {
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .welcome-card-body {
        padding: 1.8rem;
    }
}

/* Mass Schedule Cards */
.schedule-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(193, 140, 51, 0.08);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.02);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.schedule-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(11, 37, 69, 0.08);
    border-color: rgba(193, 140, 51, 0.3);
}

.schedule-image-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.schedule-card:hover .schedule-image-container {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(193, 140, 51, 0.25);
}

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

.schedule-card-title {
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.schedule-list {
    margin-bottom: 1.8rem;
    text-align: left;
    flex-grow: 1;
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.schedule-item i {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-top: 2px;
}

.schedule-address {
    border-top: 1px solid rgba(193, 140, 51, 0.15);
    padding-top: 1.2rem;
    margin-top: auto;
    text-align: left;
}

.schedule-address-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.schedule-address-text i {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-top: 2px;
}

/* Call to Action Banner */
.cta-banner {
    background-color: #F8F5EE;
    border: 1px solid rgba(193, 140, 51, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(193, 140, 51, 0.05);
}

.cta-icon-wrapper {
    color: var(--accent-gold);
    font-size: 2.5rem;
    line-height: 1;
}

.cta-title {
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.cta-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   8. Footer Specific Style
   --------------------------------------------------------- */
.bg-navy {
    background-color: var(--primary-navy);
}

.border-start-lg {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
    .border-start-lg {
        border-left: none;
    }
}

.footer-title {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.text-light-gray {
    color: var(--text-light-gray);
}

.hover-gold {
    transition: var(--transition-smooth);
}

.hover-gold:hover {
    color: var(--accent-gold) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.social-icons .social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF !important;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icons .social-icon-btn:hover {
    background-color: var(--accent-gold);
    color: #FFFFFF !important;
    border-color: var(--accent-gold);
}

.hover-scale {
    transition: var(--transition-smooth);
}

.hover-scale:hover {
    transform: scale(1.1);
}

/* ---------------------------------------------------------
   9. Page Specific Layout Styles
   --------------------------------------------------------- */
.internal-page-header {
    background-color: var(--primary-navy);
    color: #FFFFFF;
    padding: 6rem 0 3.5rem 0;
    margin-top: 88px;
    position: relative;
    overflow: hidden;
}

.internal-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(193, 140, 51, 0.15) 0%, rgba(11, 37, 69, 0.9) 100%);
    pointer-events: none;
}

.internal-page-header .page-title {
    color: #FFFFFF;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.breadcrumb-item a {
    color: var(--accent-gold);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Content cards for inner pages */
.content-section-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(193, 140, 51, 0.08);
    box-shadow: 0 5px 25px rgba(0,0,0,0.02);
    padding: 3rem;
}

@media (max-width: 576px) {
    .content-section-card {
        padding: 1.8rem;
    }
}

/* Contact form validation enhancements */
.form-control {
    border: 1px solid rgba(11, 37, 69, 0.15);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #FAF8F4;
    transition: var(--transition-smooth);
}

.form-control:focus {
    background-color: #FFFFFF;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(193, 140, 51, 0.15);
    outline: none;
}

/* Interactive custom labels for accessible forms */
.form-floating > label {
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   10. Micro-Animations & Reveal Effects
   --------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
