/* --- Global Color & Font Variables --- */
:root {
    --primary: #208CDC;
    --primary-hover: #1e70b0;
    --primary-pressed: #1a5e9a;
    --secondary-dark: #0B3D62;
    --secondary-hover: #0a3556;
    --secondary-pressed: #092d4a;
    --background: #F6FBFF;
    --light-background: #E5F4FF;
    --dark-background: #041522;
    --text: #041522;
    --gray-text: #53606A;
    --white: #F6FBFF;
    --border: #E5F4FF;
    --shadow: 0 10px 30px rgba(11, 61, 98, 0.05);
    --shadow-heavy: 0 15px 40px rgba(4, 21, 34, 0.08);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Resets & Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: var(--font-body); color: var(--text); font-size: 16px; background-color: var(--background); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 1rem; color: var(--secondary-dark); line-height: 1.2; }
p { margin-bottom: 1.5rem; color: var(--gray-text); line-height: 1.6; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-gray { color: var(--gray-text); }
.bg-light { background-color: var(--light-background); }
.bg-dark { background-color: var(--dark-background); }
.mt-4 { margin-top: 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s ease-in-out; cursor: pointer; border: 2px solid transparent; font-family: var(--font-body); text-align: center; visibility: visible !important; opacity: 1; }
.btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(32, 140, 220, 0.5); }
.btn-primary { background-color: var(--primary) !important; color: var(--white) !important; }
.btn-primary:hover { background-color: var(--primary-hover) !important; transform: translateY(-2px); }
.btn-primary:active { background-color: var(--primary-pressed) !important; transform: translateY(0); }
.btn-secondary { background-color: transparent !important; color: var(--white) !important; border-color: var(--white) !important; }
.btn-secondary:hover { background-color: var(--white) !important; color: var(--secondary-dark) !important; transform: translateY(-2px); }
.btn-secondary:active { background-color: rgba(255, 255, 255, 0.8) !important; border-color: rgba(255, 255, 255, 0.8) !important; transform: translateY(0); }

/* --- Image Placeholders --- */
.image-placeholder { background-color: var(--secondary-dark); display: flex; justify-content: center; align-items: center; color: var(--gray-text); border-radius: 20px; position: relative; }
.image-placeholder::after { content: ''; position: absolute; top: 10px; right: 10px; bottom: 10px; left: 10px; border: 2px dashed rgba(255, 255, 255, 0.1); border-radius: 15px; }
.image-placeholder__text { font-weight: 600; font-size: 1.2rem; color: rgba(255, 255, 255, 0.3); }

/* --- Header & Navigation --- */
.header { background-color: transparent; padding: 20px 0; position: fixed; top: 0; width: 100%; z-index: 1000; transition: all 0.3s ease; }
.header--scrolled, .header--menu-open { background-color: rgba(246, 251, 255, 0.98); box-shadow: 0 5px 15px rgba(11, 61, 98, 0.05); padding: 10px 0; }
.header__inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { z-index: 101; }
.logo__img { height: 35px; display: block; transition: all 0.3s ease; }

.header__nav-wrap { display: flex; align-items: center; gap: 40px; }
.nav__list { list-style: none; display: flex; gap: 30px; }
.nav__link { text-decoration: none; color: var(--white); font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.header--scrolled .nav__link, .header--menu-open .nav__link { color: var(--text); }
.nav__link:hover { color: var(--primary); }

/* Burger Menu (Hidden on Desktop) */
.burger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 101; outline: none; }
.burger__line { position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--white); transition: all 0.3s ease; }
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger__line:nth-child(3) { bottom: 0; }

.header--scrolled .burger__line, .header--menu-open .burger__line { background-color: var(--secondary-dark); }

/* Burger Animation to 'X' */
.burger.is-active .burger__line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.is-active .burger__line:nth-child(2) { opacity: 0; }
.burger.is-active .burger__line:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* --- Hero Section & Parallax --- */
.paralax-hero { height: 100vh; position: relative; overflow: hidden; background-color: var(--secondary-dark); }
.paralax-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.hero__sky-back { z-index: 1; background-image: url('media/sky.webp'); }
.hero__content-middle-wrap { z-index: 2; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.hero__mountains-front { z-index: 3; background-image: url('media/mountains.webp'); background-position: center bottom; background-repeat: no-repeat; background-size: cover; pointer-events: none; }

.hero__container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 60px; display: flex; align-items: center; }
.hero__content { width: 100%; display: flex; flex-direction: row; align-items: stretch; justify-content: center; gap: 80px; text-align: left; z-index: 10; position: relative; }
.hero__logo-block { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.hero__large-logo { height: 100%; max-height: 350px; width: auto; object-fit: contain; }
.hero__text-block { flex: 1.2; display: flex; flex-direction: column; justify-content: center; }
.hero__title { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; color: var(--white); }
.hero__subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; max-width: 500px; }
.hero__actions { display: flex; gap: 20px; justify-content: flex-start; z-index: 20; position: relative; }

/* --- Core Services --- */
.services { padding: 100px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; }
.services__accordion { display: flex; gap: 20px; height: 550px; width: 100%; }
.service-panel { flex: 1; position: relative; border-radius: 24px; overflow: hidden; cursor: pointer; transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s ease; box-shadow: var(--shadow); }
.service-panel:hover { transform: translateY(-5px); }
.service-panel.active { flex: 4; cursor: default; transform: translateY(0); }
.service-panel__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 1.5s ease; }
.service-panel__bg::after { display: none; }
.service-panel:hover .service-panel__bg { transform: scale(1.05); }
.service-panel.active .service-panel__bg { transform: scale(1); }
.service-panel__overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(4, 21, 34, 0.95) 0%, rgba(4, 21, 34, 0.4) 50%, rgba(4, 21, 34, 0.1) 100%); transition: background 0.7s ease; }
.service-panel.active .service-panel__overlay { background: linear-gradient(to top, rgba(4, 21, 34, 0.95) 0%, rgba(4, 21, 34, 0.7) 60%, rgba(4, 21, 34, 0.3) 100%); }
.service-panel__close { position: absolute; top: 25px; right: 25px; width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--white); font-size: 1.2rem; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 10; visibility: hidden; opacity: 0; transition: background-color 0.2s ease, transform 0.2s ease; }
.service-panel__close:hover { background-color: rgba(255, 255, 255, 0.3); transform: scale(1.1); }
.service-panel__content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; z-index: 2; }
.service-panel__title { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--white); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.service-panel__subtitle { font-size: 1rem; color: var(--light-background); margin-bottom: 0; opacity: 0.8; }
.service-panel__body { height: 0; opacity: 0; overflow: hidden; }
.service-panel__body p { color: rgba(246, 251, 255, 0.9); margin-bottom: 0; font-size: 1rem; max-width: 600px; }

/* --- HOW IT WORKS --- */
.how-it-works { padding: 100px 0; position: relative; overflow: visible; }
.how-it-works__inner { position: relative; }
.flow-wrapper { position: relative; display: flex; justify-content: center; width: 100%; margin-top: 40px; padding-bottom: 40px; }
.flow-line__container { position: absolute; top: 30px; bottom: 30px; left: 50%; transform: translateX(-50%); width: 16px; z-index: 1; }
.flow-line__svg { width: 100%; height: 100%; display: block; }
.flow-line__progress-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 0%; overflow: hidden; }
.flow-steps { display: flex; flex-direction: column; gap: 30px; width: 100%; max-width: 800px; position: relative; z-index: 2; }
.flow-step { display: flex; align-items: center; position: relative; width: 100%; }
.flow-step:nth-child(odd) { flex-direction: row; }
.flow-step:nth-child(even) { flex-direction: row-reverse; }
.flow-step__icon-wrap { width: 60px; height: 60px; background-color: var(--white); border: 2px solid var(--gray-light, #d1d8df); border-radius: 50%; display: flex; justify-content: center; align-items: center; position: relative; transition: all 0.4s ease-in-out; box-shadow: var(--shadow); z-index: 2; }
.flow-step__icon { font-size: 1.5rem; }
.flow-step--active .flow-step__icon-wrap { border-color: rgba(32, 140, 220, 0.4); background-color: var(--primary); color: var(--white); box-shadow: 0 0 15px rgba(32, 140, 220, 0.3); }
.flow-step__content { flex: 1; padding: 30px; background-color: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.flow-step:nth-child(odd) .flow-step__content { margin-left: 25px; }
.flow-step:nth-child(even) .flow-step__content { margin-right: 25px; }
.flow-step__title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.flow-step__text { font-size: 0.9rem; margin-bottom: 0; }

/* --- Why Choose Us --- */
.why-us { padding: 100px 0; }
.why-us__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-us__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 2rem; }
.benefit-item { display: grid; grid-template-rows: auto auto auto; }
.benefit-item__icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.benefit-item__title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.benefit-item__text { font-size: 0.9rem; }
.why-us__image-placeholder { aspect-ratio: 16/12; }

/* --- Stats & Social Proof --- */
.stats-reviews { padding: 100px 0; color: var(--white); overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 60px; margin-bottom: 60px; }
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-family: var(--font-heading); font-size: 4.5rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: 1rem; color: rgba(246, 251, 255, 0.7); font-weight: 500; }

.testimonials-wrapper { width: 100%; position: relative; padding: 20px 0 40px; }
.carousel-container { width: 100%; max-width: 1400px; margin: 0 auto; position: relative; }
.carousel-track { position: relative; height: 350px; width: 100%; }

.testimonial-card { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 40px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); opacity: 0; pointer-events: none; z-index: 1; }
.testimonial-card.active { left: 50%; transform: translate(-50%, -50%) scale(1); width: 50%; max-width: 700px; opacity: 1; z-index: 3; pointer-events: auto; background-color: rgba(255, 255, 255, 0.08); border-color: var(--primary); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); }
.testimonial-card.prev { left: 0; transform: translate(0, -50%) scale(0.85); width: 23%; opacity: 0.3; z-index: 2; pointer-events: auto; cursor: pointer; }
.testimonial-card.next { left: 100%; transform: translate(-100%, -50%) scale(0.85); width: 23%; opacity: 0.3; z-index: 2; pointer-events: auto; cursor: pointer; }
.testimonial-card.prev:hover, .testimonial-card.next:hover { opacity: 0.6; }
.testimonial-card.hidden-left { left: -10%; transform: translate(-100%, -50%) scale(0.5); opacity: 0; }
.testimonial-card.hidden-right { left: 110%; transform: translate(0, -50%) scale(0.5); opacity: 0; }

.testimonial-text { font-size: 1.1rem; line-height: 1.6; color: var(--white); font-style: italic; margin-bottom: 30px; position: relative; }
.testimonial-text::before { content: '"'; font-family: var(--font-heading); font-size: 4rem; color: var(--primary); opacity: 0.3; position: absolute; top: -20px; left: -20px; }
.testimonial-card:not(.active) .testimonial-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial-author { display: flex; flex-direction: column; align-items: center; }
.author-name { font-weight: 700; font-size: 1.1rem; color: var(--white); }
.author-company { font-size: 0.9rem; color: var(--primary); }

.carousel-controls { display: flex; justify-content: center; gap: 15px; margin-top: 40px; }
.carousel-btn { background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--white); width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; z-index: 5; }
.carousel-btn:hover { background-color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* --- Trusted By --- */
.trusted-by { padding: 80px 0; background-color: var(--white); border-bottom: 1px solid var(--border); }
.trusted-by__logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 60px; margin-top: 40px; }
.trusted-logo { height: 90px; width: auto; object-fit: contain; opacity: 0.4; filter: grayscale(100%); cursor: default; }

/* --- Contact Us --- */
.contact { padding: 100px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__desc { font-size: 1rem; margin-bottom: 2rem; }
.contact__info { margin-top: 2rem; }
.contact__info-item { margin-bottom: 1rem; font-size: 1rem; color: var(--secondary-dark); }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.contact__input, .contact__textarea { padding: 14px 25px; border-radius: 20px; border: 1px solid var(--border); font-size: 1rem; background-color: var(--white); font-family: var(--font-body); }
.contact__input:focus, .contact__textarea:focus { outline: none; border-color: var(--primary); }

/* --- Footer --- */
.footer { padding-top: 80px; padding-bottom: 20px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer__col { display: flex; flex-direction: column; }
.footer__logo { margin-bottom: 1.5rem; }
.footer__desc { max-width: 300px; }
.footer__title { font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.footer__link { text-decoration: none; color: var(--gray-text); font-size: 0.95rem; transition: color 0.2s ease; }
.footer__link:hover { color: var(--primary); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px; }
.footer__copyright { font-size: 0.85rem; }

/* --- Media Queries --- */
@media (max-width: 992px) {
    /* Header Mobile Adjustments */
    .burger { display: block; }
    
    .header__nav-wrap {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background-color: rgba(246, 251, 255, 0.98);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        opacity: 0; visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        border-top: 1px solid var(--border);
    }
    
    .header--menu-open .header__nav-wrap {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    
    .nav__list { flex-direction: column; text-align: center; gap: 20px; width: 100%; }
    .nav__link { color: var(--secondary-dark); font-size: 1.2rem; display: block; }
    .header__btn { width: 100%; margin-top: 10px; }

    /* Hero Fixes */
    .hero__container { padding: 100px 30px 40px; }
    .hero__content { flex-direction: column; text-align: center; gap: 30px; }
    .hero__logo-block { justify-content: center; height: auto; }
    .hero__large-logo { height: auto; width: 150px; max-height: none; } 
    .hero__title { font-size: 3rem; }
    .hero__actions { justify-content: center; }
    
    /* Mountains Fix: force 100vw width to prevent cropping/overflow */
    .hero__mountains-front {
        background-size: 100vw auto;
    }

    .services__accordion { flex-direction: column; height: 800px; }
    .service-panel__title { white-space: normal; }

    .flow-line__container { display: none; }
    .flow-steps { gap: 20px; padding-bottom: 40px; }
    .flow-step, .flow-step:nth-child(even) { flex-direction: column; text-align: center; }
    .flow-step__content { margin: 0; padding: 25px; width: 100%; margin-top: 15px !important; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .testimonial-card.active { width: 90%; }
    .testimonial-card.prev { left: -10%; width: 20%; opacity: 0; pointer-events: none; }
    .testimonial-card.next { left: 110%; width: 20%; opacity: 0; pointer-events: none; }

    .trusted-by__logos { gap: 30px; }
    .trusted-logo { height: 70px; }

    .why-us__inner, .contact__inner { grid-template-columns: 1fr; gap: 30px; }
    .why-us__grid { text-align: left; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero__title { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .carousel-track { height: 400px; }
    .trusted-logo { height: 60px; }
}