/* styles.css */

/* 0. CSS Custom Properties (Variables) */
:root {
    --primary-color: #003366; /* Dark Blue */
    --secondary-color: #ffd700; /* Gold */
    --accent-color: #00509e; /* A slightly lighter blue for gradients/hovers */

    --light-bg: #f8f9fa;
    --white-color: #ffffff;
    --dark-text-color: #212529; /* Bootstrap's default dark text */
    --medium-text-color: #555e67;
    --light-text-color: #f1f1f1;

    --font-primary: 'Roboto', 'Open Sans', sans-serif;
    --font-secondary: 'Open Sans', sans-serif; /* Example for different heading font if desired */

    --base-font-size: 1rem; /* 16px */
    --line-height-base: 1.7;
    --line-height-heading: 1.3;

    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem; /* 8px */
    --border-radius-lg: 0.75rem; /* 12px */

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);

    --header-height: 74px; /* Approximate height of your fixed header */
    --transition-speed: 0.3s;
}

/* 1. Global Resets & Base Styles */
html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-primary);
    background-color: var(--white-color); /* Cleaner overall background */
    color: var(--dark-text-color);
    margin: 0;
    padding: 0;
    line-height: var(--line-height-base);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary); /* Or var(--font-secondary) if you add one */
    font-weight: 700;
    color: var(--primary-color);
    line-height: var(--line-height-heading);
    margin-bottom: 1rem; /* Bootstrap's mb-3 equivalent */
}
.section-title {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5em;
    margin-bottom: 2.5em !important; /* Increased margin */
}
.section-title::after { /* Subtle underline accent */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-sm);
}


p {
    margin-bottom: 1rem;
    color: var(--medium-text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. Layout */
main {
    padding-top: var(--header-height);
}

section {
    padding-top: 3rem; 
    padding-bottom: 3rem;
}

.container { 
    max-width: 1140px; 
}

/* 3. Components */

/* Header / Navbar */
header .navbar {
    background-color: var(--primary-color) !important; 
    padding: 0.75rem 0; 
    box-shadow: var(--shadow-md);
}
header .navbar .logo-img {
    max-height: 50px;
    transition: transform var(--transition-speed) ease;
}
header .navbar .logo-img:hover {
    transform: scale(1.05);
}
header .navbar .nav-link {
    color: var(--light-text-color) !important;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.625rem 0.9375rem; 
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
}
header .navbar .nav-link:hover,
header .navbar .nav-link:focus,
header .navbar .nav-link.active { 
    color: var(--secondary-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
}
.contact-info-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-info {
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color var(--transition-speed) ease;
}
.contact-info:hover,
.contact-info:focus {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}
.btn-primary { 
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-color); 
    border-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-secondary { 
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #e0c000; 
    border-color: #e0c000;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline-primary { /* Ensuring consistent styling if Bootstrap defaults are different */
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* Cards (Enhancing Bootstrap cards) */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden; 
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card .card-title {
    color: var(--primary-color);
    font-size: 1.5rem; 
    font-weight: 700;
}
.card .card-body {
    padding: 1.5rem;
}

/* Modals (Popup) */
.modal { 
    display: none;
    position: fixed;
    z-index: 1055; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); 
    animation: fadeInModal 0.3s ease-out;
}
.modal-content-img { 
    margin: auto;
    display: block;
    width: auto; 
    max-width: 85%;
    max-height: 80vh;
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--border-radius-md);
}
.modal-content-video { 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px; 
}
.videoWrapper { 
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    background-color: #000; 
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.caption-text {
    color: var(--light-text-color);
    text-align: center;
    padding: 0.5rem 0;
    width: 80%;
    max-width: 700px;
    margin: 0.5rem auto;
    font-size: 0.9rem;
}
.close-btn.popup-close { 
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--light-text-color);
    font-size: 2.5rem; 
    font-weight: bold;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    line-height: 1;
    cursor: pointer;
    z-index: 1056;
}
.close-btn.popup-close:hover,
.close-btn.popup-close:focus {
    color: var(--secondary-color);
    text-decoration: none;
    transform: scale(1.1);
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 4. Utility Classes (Animations) */
.fade-in-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Section-Specific Styles */

/* Hero Section */
.hero-section {
    position: relative; 
    min-height: 75vh; 
    background-image: url('/images/hero-image.jpg'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    padding: 0; 
    margin-top: 0; 
    text-align: center; 
}

.hero-section .hero-overlay { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 20, 40, 0.20); 
    z-index: 1; 
}

.hero-section .container { 
    position: relative; 
    z-index: 2; 
}

.hero-section h1 { 
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.65); 
    margin-bottom: 1.5rem;
}
.hero-section p.lead {
    color: var(--light-text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.65); 
    font-size: 1.3rem;
    margin-bottom: 2rem;
}
.hero-section .hero-cta.btn-primary { 
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}
.hero-section .hero-cta.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* About Section */
#about h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}
#about p {
    font-size: 1.05rem; 
}
#about p.lead { 
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--dark-text-color); 
}
.team-photo {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 1rem auto;
    max-width: 450px;
}
.testimonial blockquote {
    max-width: 700px;
    margin: 0 auto;
    color: var(--medium-text-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
}

/* Services Section */
#services.bg-light {
    background-color: var(--light-bg) !important;
}
.service-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.service-icon.btn { 
    background: var(--white-color);
    border: 1px solid #dee2e6; 
    color: var(--primary-color);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    box-shadow: none; 
}
.service-icon img {
    width: 24px; 
    height: 24px;
}
.service-icon.btn:hover,
.service-icon.btn:focus {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.service-icon.btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm); 
}

.service-category-title {
    color: var(--primary-color);
    font-weight: 600;
}

.travel-fee-note { /* Styling for the travel fee note */
    font-style: italic;
    color: var(--medium-text-color);
    font-size: 0.9rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.service-item .card-title {
    font-size: 1.4rem;
}
.service-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-color); 
    /* margin-bottom: 1rem; Default removed to let mb-auto on price div control space if needed */
}
.service-description {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.95rem;
    /* mt-auto removed from here in HTML, mb-auto added to .service-price for vertical alignment */
}
.service-description li {
    color: var(--medium-text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5em; 
}
.service-description li::before {
    content: '✓'; 
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.alacarte-items.card {
    max-width: 450px; 
    margin: 0 auto; 
}
.alacarte-items h3.card-title {
    font-size: 1.3rem;
}
.alacarte-list {
    list-style: none;
    padding: 0;
    text-align: left;
}
.alacarte-list li {
    color: var(--medium-text-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5em;
    position: relative;
}
.alacarte-list li::before {
    content: '›'; 
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    top: -0.1em;
}
.alacarte-list li a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}
.alacarte-list li a:hover {
    color: var(--secondary-color);
}
.alacarte-list small {
    display: block;
    font-size: 0.8em;
    color: #777;
    padding-left: 0.5em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 1rem;
    margin-top: 2rem;
}
.gallery img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.service-details {
    display: none;
    animation: fadeInContent 0.5s ease-out forwards;
}
.service-details.active {
    display: block;
}
@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact Section */
#contact h2 {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form {
    max-width: 700px; 
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden; 
    box-shadow: var(--shadow-md);
}
.contact-form iframe {
    border: none;
    width: 100%;
    min-height: 1000px; 
    display: block;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
footer p {
    margin-bottom: 0.5rem;
    color: var(--light-text-color);
}
footer a {
    color: var(--secondary-color);
    text-decoration: none;
}
footer a:hover {
    color: var(--white-color);
    text-decoration: underline;
}


/* Accessibility Focus States */
button:focus-visible,
a:focus-visible,
.service-icon:focus-visible,
input:focus-visible, 
textarea:focus-visible {
    outline: 3px solid var(--secondary-color) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--primary-color); 
}


/* 6. Responsive Adjustments */
@media (max-width: 992px) { 
    .hero-section h1 {
        font-size: 2.8rem; 
    }
    .hero-section p.lead {
        font-size: 1.15rem;
    }
    .contact-info-container { 
        flex-direction: column;
        align-items: flex-start; 
        margin-top: 0.5rem;
        width: 100%;
    }
    .contact-info-container a {
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) { 
    .hero-section {
        min-height: 60vh; 
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .service-selector {
        flex-direction: column; 
        align-items: stretch; 
    }
    .service-icon.btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .alacarte-row .card {
        width: 100%;
        max-width: 100%;
    }
    header .navbar .navbar-nav {
        text-align: center;
    }
    header .navbar .nav-link {
        padding: 0.75rem 1rem;
    }
    .contact-info-container {
        align-items: center; 
    }
    .contact-form iframe {
        min-height: 1100px; 
    }
    .modal-content-img {
        max-width: 90%;
    }
    .modal-content-video {
        width: 90%;
    }
    #about .row { 
        flex-direction: column-reverse; 
    }
    #about .row > div {
        margin-bottom: 1.5rem;
    }
    .team-photo {
        max-width: 300px;
    }

}

@media (max-width: 576px) { 
    body {
        font-size: 0.95rem; 
    }
    header .navbar .logo-img {
        max-height: 40px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2em !important;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); 
        gap: 0.5rem;
    }
    .gallery img {
        height: 140px;
    }
    .contact-form iframe {
        min-height: 1200px; 
    }
}