/* ========================================
   CSS VARIABLES - THEME COLORS
   ======================================== */
:root {
    --primary: #2D3E50; /* Deep modern navy for text & accents */
    --primary-light: #6A8D73; /* Soft sage green for highlights */
    --secondary: #C2A477; /* Muted gold for accent elements */
    --secondary-light: #F8F6F2; /* Soft warm off-white for sections */
    --secondary-dark: #A58C65; /* Rich brownish-gold for depth */
    --text-dark: #2E2E2E; /* Deep charcoal for strong readability */
    --text-light: #6D6F6E; /* Muted gray for subtle contrast */
    --white: #FFFFFF; /* Clean white */
    --off-white: #F4ECE1; /* Slightly darker beige for variation */
    --accent-blue: #1E71B8; /* Deep, refined blue for optional accents */
    --shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Softer shadow for modern effect */
    --shadow-strong: 0px 6px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
}

/*hero in visit */
.hero-visit {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/visit.jpg') no-repeat center 20%;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Dark overlay for better readability */
.hero-visit::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 86, 86, 0.5); /* Darker overlay for text clarity */
}

/* Hero Content */
.hero-visit-content {
    position: relative;
    z-index: 2;
}

.hero-visit-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
}

/* Curved Bottom Effect */
.hero-visit::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px; /* Controls curve height */
    background: white;
    clip-path: ellipse(60% 100% at 50% 100%);
}


@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation */
.hero-visit-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
    animation: fadeSlideIn 1.5s ease-out;
}


/* ========================================
   ENHANCED WELCOME MESSAGE SECTION
   ======================================== */
.welcome-message {
    text-align: center;
    padding: 15px 20px 80px 20px;
    position: relative;
}

.welcome-message h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.welcome-message h1::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
    border-radius: 2px;
}

.welcome-message p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    font-weight: 400;
}


/* location in visit under Welcome */
.location {
    text-align: center;
    padding: 60px 20px;
}

/* ========================================
   ENHANCED LOCATION SECTION
   ======================================== */
.location {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--off-white) 100%);
    position: relative;
}

.location::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(194,164,119,0.1)"/><circle cx="80" cy="30" r="1.5" fill="rgba(194,164,119,0.08)"/><circle cx="30" cy="80" r="1" fill="rgba(194,164,119,0.1)"/><circle cx="70" cy="70" r="1.2" fill="rgba(194,164,119,0.06)"/></svg>');
    pointer-events: none;
}

.location h1 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.location h1::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
    border-radius: 2px;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Individual Card */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary);
}

.card::before {
    background: linear-gradient(90deg, var(--primary), #34495e);
}

.card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
    transition: var(--transition);
}

.card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Buttons */
.card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    background: linear-gradient(45deg, #C2A477, #A58C65);
    border: none;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(194, 164, 119, 0.4);
}

.card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(194, 164, 119, 0.6);
}

/* ========================================
   ENHANCED VISIT SECTION
   ======================================== */
.visit-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.visit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.visit-info {
    padding: 40px;
    background: var(--secondary-light);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary);
}

.visit-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
}

.visit-info h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.visit-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.visit-info p strong {
    color: var(--text-dark);
    font-weight: 600;
}

.visit-buttons {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn-solid {
    background: var(--primary);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
}

.btn-solid:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 15px 30px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.visit-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--off-white);
}

.visit-icons a {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.visit-icons a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.visit-icons a:nth-child(1):hover {
    background: #dc2626;
    color: var(--white);
}

.visit-icons a:nth-child(2):hover {
    background: #1877f2;
    color: var(--white);
}

.visit-icons a:nth-child(3):hover {
    background: var(--primary-light);
    color: var(--white);
}

.visit-icons a:nth-child(4):hover {
    background: var(--secondary);
    color: var(--white);
}

.visit-image {
    position: relative;
}

.visit-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    border: 5px solid var(--white);
}

.visit-image img:hover {
    transform: scale(1.02);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}

/* ========================================
   FULL-SCREEN VISIT SECTION (Under Cards)
   ======================================== */
.visit-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fdfcfb; /* Soft Warm Gray */
    padding: 100px 5%;
}

/* Visit Container */
.visit-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 50px;
}

/* Left Side: Text */
.visit-info {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

.visit-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3A2F2F; /* Deep Espresso */
    margin-bottom: 15px;
}

.visit-info p {
    font-size: 1.2rem;
    color: #5A4742; /* Muted Brown */
    margin-bottom: 10px;
}

/* Buttons */
.visit-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-solid {
    background: #6A8D73; /* Muted Sage Green */
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
}

.btn-solid:hover {
    background: #4E7058; /* Deep Modern Green */
}

.btn-outline {
    background: transparent;
    color: #4E7058; /* Deep Modern Green */
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #4E7058;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.btn-outline:hover {
    background: #4E7058;
    color: white;
}

/* Social Icons */
.visit-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.visit-icons a {
    font-size: 1.5rem;
    color: #4E7058; /* Deep Modern Green */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.visit-icons a:hover {
    color: #6A8D73; /* Muted Sage Green */
}

/* Right Side: Large Image */
.visit-image {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.visit-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-in-out;
}

/* Image Hover Effect */
.visit-image img:hover {
    transform: scale(1.05);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background-color: var(--secondary-light);
    width: 100%;
}

.map-content {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0 20px;
}

.map-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.map-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.church-map {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.church-map iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.map-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.btn-directions,
.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.1rem;
}

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

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

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

.btn-call:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .welcome-message {
        padding: 60px 20px;
    }
    
    .welcome-message h1 {
        font-size: 2.2rem;
    }
    
    .welcome-message p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .location h1 {
        font-size: 2.2rem;
        padding: 0 20px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .visit-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .visit-info {
        padding: 30px 20px;
    }
    
    .visit-info h2 {
        font-size: 2rem;
    }
    
    .visit-buttons {
        flex-direction: column;
    }
    
    .visit-icons {
        justify-content: center;
    }
    
    .map-section {
        padding: 60px 0;
    }
    
    .map-content h2 {
        font-size: 2rem;
    }
    
    .map-content p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .church-map iframe {
        height: 300px;
    }
    
    .map-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-directions,
    .btn-call {
        width: 250px;
        justify-content: center;
    }
}