/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --color-primary: #3b5998; /* Professional Blue */
    --color-primary-dark: #2d4373;
    --color-text: #222222; /* Darkened slightly for sharpness */
    /* ACCESSIBILITY FIX: Darkened from #575757 to #4a4a4a for better contrast */
    --color-text-light: #4a4a4a; 
    --color-bg-light: #f4f6f9;
    --color-white: #ffffff;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* FIX: Explicitly define H1 size to solve 'H1UserAgentFontSizeInSection' warning */
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Makes text look sharper */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { 
    max-width: 100%; 
    height: auto; /* Vital for preserving aspect ratio with width/height attributes */
    display: block; /* Removes tiny space below images */
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.section { padding: 80px 0; }

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.section-title--center { text-align: center; }

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.section-text {
    margin-bottom: 1.2rem;
    color: var(--color-text-light);
}

/* Fix for anchor links being hidden behind fixed header */
html {
    scroll-padding-top: 100px; 
}

/* CSP FIX: Class to replace inline margin styles */
.mb-small {
    margin-bottom: 20px;
}

/* CSP FIX: Active link state to replace inline color style */
.nav__link.active-link {
    color: var(--color-primary);
}

/* CSP FIX: Class to replace inline margin styles */
.services-spacing {
    margin-top: 80px;
    margin-bottom: 80px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* CSP FIX: Utility class for full width buttons to avoid inline styles */
.btn--full {
    width: 100%;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Enhanced Button Hover Effect */
.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-in-out;
    z-index: -1;
}

.btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header__logo {
    display: flex;
    flex-direction: column;
}

.header__title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.header__subtitle {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
}

.nav__link:hover { color: var(--color-primary); }

/* Mobile Menu Toggle - Default hidden on desktop */
.header__toggle {
    display: none; 
}

/* ==========================================================================
   HERO SECTION (With Ken Burns Effect)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; 
    margin-top: 0; 
}

/* Pseudo-element for background image to scale independently of text */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('hero.webp') center/cover no-repeat;
    z-index: 0;
    /* Optimized: Will-change tells browser to expect changes, smoothing animation */
    will-change: transform; 
    animation: slowZoom 20s infinite alternate linear;
}

.hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 67, 115, 0.85); 
    z-index: 1;
}

.hero__content {
    position: relative;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    margin-top: 60px;
    z-index: 2;
    /* Hero specific entrance animation */
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about__image {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ==========================================================================
   BANNER SECTION
   ========================================================================== */
.banner {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
    font-style: italic;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg-light);
    padding: 40px 30px;
    border-radius: 6px;
    border-top: 4px solid var(--color-primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-card__title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card__text {
    color: var(--color-text-light);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.service-card__link {
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
}

.service-card__link:hover { text-decoration: underline; }

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.bg-light {
    background-color: var(--color-bg-light);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.pricing__info, .pricing__logistics {
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pricing__info h3, .pricing__logistics h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 10px;
}

.pricing__list {
    margin-bottom: 25px;
}

.pricing__list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    color: var(--color-text);
}

.pricing__list li strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.pricing__note {
    background-color: #e8f0fe;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--color-primary);
    font-size: 0.95rem;
}

.pricing__note p {
    margin-bottom: 10px;
}

/* CSP FIX: Class to replace inline styles for footnote */
.pricing__footnote {
    margin-top: 10px;
    font-size: 0.9em;
    font-style: italic;
}

.pricing__logistics p {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

/* ==========================================================================
   FAQ SECTION (Accordion Style)
   ========================================================================== */
.faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq__item {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: var(--transition);
}

/* Active State for FAQ */
.faq__item.active {
    border-left: 5px solid var(--color-primary);
    background-color: #f8faff;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

/* ACCESSIBILITY: Changed selector from h4 to h3 */
.faq__question h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    font-size: 1.1rem;
    margin: 0;
}

/* Plus/Minus Indicator */
.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.faq__item.active .faq__question::after {
    content: '−'; 
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-top: 0;
}

.faq__answer p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-top: 15px;
}

.faq__item.active .faq__answer {
    max-height: 500px; 
    opacity: 1;
}

/* ==========================================================================
   SERVICES DETAIL PAGE STYLES
   ========================================================================== */
.page-hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 120px 0 60px 0; /* Extra top padding for fixed header */
    text-align: center;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.page-hero__subtitle {
    font-size: 1.2rem;
    color: #d1d9e6;
}

/* Table of Contents */
.toc-section {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.toc-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.toc-list a {
    background-color: var(--color-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    transition: var(--transition);
}

.toc-list a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Detail Section Grid */
.service-detail__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.service-detail__card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-detail__card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--color-bg-light);
    padding-bottom: 10px;
}

.full-width { grid-column: 1 / -1; }

.columns-2 {
    columns: 2;
    column-gap: 40px;
}

/* Checklist Styles */
.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--color-text);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .columns-2 { columns: 1; }
    .page-hero__title { font-size: 2rem; }
}

/* ==========================================================================
   CONTACT FORM STYLES
   ========================================================================== */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--color-white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact__info h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact__list {
    margin-top: 20px;
}

.contact__list li {
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.contact__list strong {
    color: var(--color-primary-dark);
}

/* Form Styling */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d9e6;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(59, 89, 152, 0.1);
}

.form__textarea {
    resize: vertical;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #222222;
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* ACCESSIBILITY: Changed from h4 to h3 */
.footer__title {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* ACCESSIBILITY FIX: Darkened text for better contrast */
.footer__text { 
    color: #e0e0e0; /* Changed from #cccccc */
    margin-bottom: 10px; 
}

.footer__links li { margin-bottom: 10px; }
.footer__links a { 
    color: #e0e0e0; /* Changed from #cccccc */
    transition: var(--transition); 
}
.footer__links a:hover { color: var(--color-white); }

.footer__bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* ==========================================================================
   SCROLL ANIMATION CLASSES (JS)
   ========================================================================== */
.hidden-el {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.show-el {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays for Grid Items */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }


/* ==========================================================================
   MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* MOBILE HERO: Switch image for smaller screens */
    .hero::before {
        background-image: url('mobile-hero.webp');
    }

    /* MOBILE MENU TOGGLE STYLES & ANIMATION */
    .header__toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 101; /* Above menu */
        padding: 0;
    }

    .header__toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--color-text);
        transition: all 0.3s ease-in-out;
        transform-origin: center;
    }

    /* Animation States (The "X") */
    .header__toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .header__toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .header__toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* NAV MENU */
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        transition: 0.4s;
        overflow-y: auto;
    }

    .nav.show-menu { left: 0; }

    .nav__list {
        flex-direction: column;
        padding: 50px 0;
        gap: 30px;
    }

    /* HERO & TEXT SIZING */
    .hero__title { font-size: 2.2rem; }
    .hero__description { font-size: 1rem; }
    
    .hero__buttons { 
        flex-direction: column; 
        gap: 20px; 
    }
    
    .hero__buttons .btn {
        margin-bottom: 0;
        width: 100%; 
    }

    .about__container { grid-template-columns: 1fr; }
    .contact__container { grid-template-columns: 1fr; padding: 30px; gap: 40px; }
    
    .columns-2 { column-count: 1; }
    
    .page-hero__title { font-size: 2rem; }
}
