@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

html {
    font-size: 108%;
}

:root {
    --primary: #33377D;
    --primary-dark: #252A69;
    --primary-light: #4A4F9A;
    --teal: #4A4F9A;
    --teal-dark: #252A69;
    --primary-accent: #4A4F9A;
    --cream: #FAFBFE;
    --ice: #F0F3FA;
    --text: #1E2243;
    --text-soft: #6B7094;
    --border: rgba(51, 55, 125, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
    width: 100% !important;
    position: relative;
}

/* 2. CLASSIC FULL-SCREEN LOADER */
#loader {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(.77, 0, .175, 1);
}

#loader.hide {
    transform: translateY(-100%);
}

.loader-content {
    text-align: center;
    overflow: hidden;
    padding: 20px;
}

.loader-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 24px;
    padding-left: 24px;
    /* Counter-balance for letter-spacing on last char */
    text-transform: uppercase;
    line-height: 1;
    opacity: 0;
    transform: translateY(100%);
    animation: revealUp 1.2s cubic-bezier(.23, 1, .32, 1) forwards .2s;
}

.loader-sub {
    font-family: 'Inter', sans-serif;
    color: #fff;
    font-size: .8rem;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInLoader 1s forwards .8s;
}

.loader-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary-accent);
    width: 0;
    animation: loadBar 1.6s cubic-bezier(.65, 0, .35, 1) forwards;
}

@keyframes revealUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInLoader {
    to {
        opacity: .6;
    }
}

@keyframes loadBar {
    0% {
        width: 0
    }

    100% {
        width: 100%
    }
}

@media (max-width: 768px) {
    .loader-logo {
        font-size: 2rem;
        letter-spacing: 12px;
        padding-left: 12px;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .loader-sub {
        font-size: 0.65rem;
        letter-spacing: 8px;
        opacity: 0.6 !important;
        animation: none !important;
    }

    .nav-logo img {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}


/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0rem 6%;
    background: #fff;
    backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid var(--border);
    transition: all .4s cubic-bezier(.23, 1, .32, 1);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(51, 55, 125, .08)
}

.nav-logo img {
    max-height: 100px;
    object-fit: contain;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.6rem
}

.nav-links a {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color .3s
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: width .3s
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary)
}

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 1rem 1.6rem;
    border-radius: 4px;
    font-size: .68rem !important;
    letter-spacing: 2.5px;
    transition: all .35s !important
}

.nav-cta::after {
    display: none !important
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(51, 55, 125, .2) !important
}

.mobile-nav-footer {
    display: none;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary)
}

/* PAGE HERO (inner pages) */
.page-hero {
    background: linear-gradient(rgba(37, 42, 105, 0.85), rgba(37, 42, 105, 0.95)), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1920&q=80') center/cover no-repeat;
    padding: 9rem 8% 3rem;
    position: relative;
    overflow: hidden;
    text-align: center
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(74, 79, 154, .06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none
}

.page-hero-ring {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(74, 79, 154, .08);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotateSlow 30s linear infinite
}

.page-hero-ring2 {
    width: 600px;
    height: 600px;
    border-color: rgba(74, 79, 154, .04);
    animation-duration: 50s;
    animation-direction: reverse
}

@keyframes rotateSlow {
    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

.page-hero-sub {
    font-size: .58rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1
}

.page-hero-sub::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 1px;
    background: var(--teal);
    margin-right: 10px;
    vertical-align: middle
}

.page-hero h1 {
    font-family: 'Outfit', serif;
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    margin-bottom: .8rem
}

.page-hero p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, .5);
    font-size: .95rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.9;
    font-weight: 300;
    position: relative;
    z-index: 1
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1
}

.breadcrumb a {
    color: rgba(255, 255, 255, .4);
    text-decoration: none;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color .3s
}

.breadcrumb a:hover {
    color: var(--teal)
}

.breadcrumb span {
    color: rgba(255, 255, 255, .2);
    font-size: .7rem
}

.breadcrumb .current {
    color: rgba(255, 255, 255, .6);
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase
}

/* SECTION STUFF */
.sec-head {
    text-align: center;
    margin-bottom: 3.5rem
}

.sec-tag {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.2rem
}

.sec-tag::before,
.sec-tag::after {
    content: '';
    width: 25px;
    height: 1px;
    background: var(--teal)
}

.sec-head h2 {
    font-family: 'Outfit', serif;
    font-size: clamp(2.1rem, 3.8vw, 3.5rem);
    color: var(--text);
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: .8rem
}

.sec-head p {
    font-family: 'Inter', sans-serif;
    color: var(--text-soft);
    max-width: 520px;
    margin: 0 auto;
    line-height: 2;
    font-size: .95rem;
    font-weight: 300
}

.tag-line {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px
}

.tag-line::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--teal)
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(37, 42, 105, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 4999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* BUTTONS */

.btn-dark {
    background: var(--primary);
    color: #fff;
    padding: .85rem 2.4rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all .4s cubic-bezier(.23, 1, .32, 1);
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    border: 2px solid var(--primary)
}

.btn-dark:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(51, 55, 125, .2)
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: .85rem 2.4rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all .4s cubic-bezier(.23, 1, .32, 1);
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    border: 2px solid var(--primary)
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px)
}

/* FOOTER */
.footer {
    background: linear-gradient(180deg, var(--primary-dark), #1a1d4d);
    color: rgba(255, 255, 255, .6);
    padding: 3rem 8% 0;
    position: relative;
    overflow: hidden
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(74, 79, 154, .03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1
}

.footer-brand .footer-logo {
    font-family: 'Outfit', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: .8rem;
    letter-spacing: 3px;
    text-transform: uppercase
}

.footer-brand p {
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    color: #fff;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    font-weight: 300
}

.footer-social {
    display: flex;
    gap: .7rem
}

.soc-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 4px;
    color: rgba(255, 255, 255, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .4s;
    font-size: .8rem
}

.soc-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-3px);
    background: rgba(74, 79, 154, .08)
}

.footer-col h4 {
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.footer-col ul {
    list-style: none
}

.footer-col ul li {
    margin-bottom: .7rem
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    font-size: .83rem;
    transition: all .3s;
    font-weight: 300
}

.footer-col ul li a:hover {
    color: var(--teal);
    padding-left: 4px
}

.footer-contact-item {
    display: flex;
    gap: .8rem;
    margin-bottom: 1rem
}

.footer-contact-item i {
    color: #fff;
    margin-top: 3px;
    font-size: .8rem
}

.footer-contact-item span {
    color: #fff;
    font-size: .82rem;
    line-height: 1.5;
    font-weight: 300
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 1.5rem 0;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem
}

.footer-bottom span {
    font-size: .75rem;
    color: #fff;
}

.footer-legal {
    display: flex;
    gap: 1.5rem
}

.footer-legal a {
    font-size: .75rem;
    color: #fff;
    text-decoration: none;
    transition: color .3s
}

.footer-legal a:hover {
    color: var(--teal)
}

/* WHATSAPP */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 400;
    background: #25D366;
    color: #fff;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, .35);
    transition: all .4s
}

.wa-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, .45)
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all .9s cubic-bezier(.22, 1, .36, 1)
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all .9s cubic-bezier(.22, 1, .36, 1)
}

.reveal-left.visible {
    opacity: 1;
    transform: none
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all .9s cubic-bezier(.22, 1, .36, 1)
}

.reveal-right.visible {
    opacity: 1;
    transform: none
}

.reveal-scale {
    opacity: 0;
    transform: scale(.92);
    transition: all .9s cubic-bezier(.22, 1, .36, 1)
}

.reveal-scale.visible {
    opacity: 1;
    transform: none
}

.stagger-1 {
    transition-delay: .1s
}

.stagger-2 {
    transition-delay: .2s
}

.stagger-3 {
    transition-delay: .3s
}

.stagger-4 {
    transition-delay: .4s
}

.stagger-5 {
    transition-delay: .5s
}

.stagger-6 {
    transition-delay: .6s
}

/* MOBILE */
@media(max-width:1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:768px) {
    .navbar {
        padding: 0 5% !important;
        height: 70px !important;
        /* Compact header */
    }

    .nav-logo img {
        max-height: 60px !important;
        /* Smaller logo */
    }

    .hamburger {
        display: block !important;
        font-size: 1.1rem !important;
        /* Smaller 'Kuty' icon */
        padding: 5px !important;
        z-index: 5001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        /* Top aligned for content flow */
        gap: 0;
        /* Managed by inner margins */
        padding: 6rem 2.5rem 3rem;
        z-index: 5000;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        /* Remove !important to avoid conflicts with visibility/opacity logic if needed */
        opacity: 0;
        visibility: hidden;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        overflow-y: auto;
    }

    /* Branded Header inside Menu */
    .nav-links::before {
        /* content: 'TRAVION';*/
        position: absolute;
        top: 2rem;
        left: 2.5rem;
        font-family: 'Outfit', sans-serif;
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: 4px;
        color: var(--primary);
        opacity: 0.2;
    }

    .nav-links.open {
        right: 0;
        opacity: 1;
        visibility: visible;

    }

    .nav-cta {
        color: white !important;
    }

    .nav-overlay {
        z-index: 0;
    }

    .nav-links a {
        font-family: 'Outfit', sans-serif !important;
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        /*color: var(--text) !important;*/
        letter-spacing: 2px;
        text-align: left;
        width: 100%;
        padding: 1.2rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.4s ease;
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    /* Architectural Numbering */
    .nav-links a::before {
        font-family: 'Inter', sans-serif;
        font-size: 0.65rem;
        font-weight: 400;
        color: var(--primary);
        opacity: 0.4;
        letter-spacing: 0;
    }

    .nav-links a:nth-child(1)::before {
        content: '01'
    }

    .nav-links a:nth-child(2)::before {
        content: '02'
    }

    .nav-links a:nth-child(3)::before {
        content: '03'
    }

    .nav-links a:nth-child(4)::before {
        content: '04'
    }

    .nav-links a:nth-child(5)::before {
        content: '05'
    }

    .nav-links.open a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.open a:nth-child(1) {
        transition-delay: 0.1s
    }

    .nav-links.open a:nth-child(2) {
        transition-delay: 0.15s
    }

    .nav-links.open a:nth-child(3) {
        transition-delay: 0.2s
    }

    .nav-links.open a:nth-child(4) {
        transition-delay: 0.25s
    }

    .nav-links.open a:nth-child(5) {
        transition-delay: 0.3s
    }

    .nav-cta {
        margin-top: 3rem !important;
        background: var(--primary) !important;
        border-radius: 4px !important;
        justify-content: center;
        border-bottom: none !important;
    }

    .nav-cta::before {
        display: none !important;
    }

    /* Social Integration inside Menu */
    .nav-links::after {
        /*content: 'Follow Us';*/
        margin-top: auto;
        padding-top: 2.5rem;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: var(--text-soft);
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .mobile-nav-footer {
        display: flex;
        gap: 1.2rem;
        margin-top: 0;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.5s ease 0.4s;
    }

    .nav-links.open .mobile-nav-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-nav-footer a {
        width: 38px !important;
        height: 38px !important;
        background: var(--ice) !important;
        color: var(--primary) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem !important;
        padding: 0 !important;
        border: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .page-hero {
        padding: 6rem 8% 4rem;
    }
}