/* Espaço Balboa Inspired Theme */
:root {
    --primary-color: #4a5d4e;
    /* Muted elegant green */
    --secondary-color: #d4cba8;
    /* Champagne/Gold */
    --text-color: #555;
    --heading-color: #333;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
    margin: 15px auto 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}


.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 80px;
}

.logo img {
    height: 120px;
    width: auto;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15% !important;
        /* Safety margin for mobile */
    }

    .logo img {
        height: 70px;
    }

    .navbar {
        min-height: 70px;
        padding-left: 0;
        padding-right: 0;
    }
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    color: #444;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.4s ease-in-out;
        z-index: 1000;
        padding: 100px 40px;
        display: block;
    }

    .nav-container.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        display: block;
    }
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../../images/background.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        min-height: 400px;
    }
}

.home-hero {
    background-color: #333;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeIn 1.2s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #fff;
    margin-bottom: 25px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    font-style: italic;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    letter-spacing: 1px;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-primary-color {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary-color:hover {
    background: var(--primary-color);
    color: white;
}

.btn-container {
    text-align: center;
    margin-top: 50px;
}

/* Intro Section */
.intro-section .intro-text p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #666;
    max-width: 850px;
    margin: 0 auto 2.5rem;
    line-height: 1.9;
}

.section-divider {
    height: 25px;
    margin: 0 auto;
    opacity: 0.4;
}

/* Cards / Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-color: var(--secondary-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Visual Strip */
.visual-strip {
    background-image: url('../../images/background.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 450px;
    position: relative;
}

@media (max-width: 768px) {
    .visual-strip {
        background-attachment: scroll;
        /* Fix for mobile parallax issues */
        height: 350px;
    }
}

.strip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-align: center;
}

.tagline-text {
    color: white;
    font-style: italic;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    max-width: 900px;
    line-height: 1.3;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Testimonials */
.testimonials-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.testimonial-item {
    margin-bottom: 40px;
    padding: 0 20px;
}

.testimonial-item p {
    font-size: 1.15rem;
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

.testimonial-author {
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Forms */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 93, 78, 0.1);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    width: auto;
    border-radius: 4px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .btn-submit {
        width: 100%;
    }
}

.btn-submit:hover {
    background: #3a4a3d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.footer-item {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
        flex-direction: column;
    }

    .footer-item {
        min-width: 100%;
    }
}

footer h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer p {
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 20px;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
    }
}

footer a {
    color: #eee;
}

footer a:hover {
    color: var(--secondary-color);
}

.restricted-access {
    font-size: 0.8rem;
    margin-top: 15px;
    opacity: 0.6;
}

/* Floating WhatsApp Button */
.float-whatsapp {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .float-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Hero Variants */
.secondary-hero {
    height: 70vh;
    min-height: 400px;
}

.secondary-hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

/* Layout Utilities */
.content-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.content-col {
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .content-col {
        min-width: 100%;
    }
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.py-60 {
    padding: 60px 0;
}

.section-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: block;
}

/* Specific Content */
.pilgrims-content {
    white-space: pre-line;
    color: #666;
    line-height: 1.8;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    border-top: 4px solid var(--primary-color);
}

.pricing-hours {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* Forms & Alerts */
.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.alert {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Body overlay when menu is active */
body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Sidebar Info */
.sidebar-info {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    height: 100%;
}

.sidebar-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sidebar-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-info i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Maps */
.map-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: 0;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utils */
.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.hidden {
    display: none;
}