@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter_18pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi Variable';
    src: url('/fonts/Satoshi-Variable.ttf') format('truetype-variations'), url('/fonts/Satoshi-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Satoshi Variable', 'Poppins', sans-serif;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    --fs-body: 14px;
    --lh-body: 1.65;
    --site-max-width: 1400px;
    --site-padding: 50px;
    --site-padding-mobile: 24px;
    --color-brand: #6d361e;
    --color-brand-mid: #a95e38;
    --color-cream: #fefcf5;
    --color-text: #1a1a1a;
    --color-text-muted: #555;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-brand);
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: var(--fw-bold);
    font-size: clamp(40px, 8vw, 72px);
}

h2 {
    font-weight: var(--fw-bold);
    font-size: clamp(32px, 5vw, 50px);
}

h3 {
    font-weight: var(--fw-medium);
    font-size: clamp(24px, 3vw, 26px);
}

h4 {
    font-weight: var(--fw-medium);
    font-size: clamp(16px, 2vw, 22px);
}

p {
    font-family: var(--font-heading);
    font-weight: var(--fw-medium);
    font-size: var(--fs-body);
    color: var(--color-brand);
    margin-bottom: 1rem;
}

strong, b {
    font-weight: var(--fw-bold);
}

.text-medium {
    font-weight: var(--fw-medium);
}

.text-accent {
    color: var(--color-brand);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .scroll-reveal.visible {
        opacity: 1;
        transform: none;
    }

.hp-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.hp-btn--outline-light {
    border: 1.5px solid var(--color-cream);
    color: var(--color-cream);
}

    .hp-btn--outline-light:hover {
        background: var(--color-cream);
        color: var(--color-brand);
    }

.hp-btn--outline-dark {
    border: 1.5px solid var(--color-brand);
    color: var(--color-brand);
    background: transparent;
}

    .hp-btn--outline-dark:hover {
        background: var(--color-brand);
        color: var(--color-cream);
    }

.hp-btn--solid-light {
    background: #fff;
    border: 1.5px solid #fff;
    color: var(--color-brand);
    font-weight: 500;
}

    .hp-btn--solid-light:hover {
        background: var(--color-brand);
        border-color: var(--color-brand);
        color: #ffffff;
    }

.hp-btn--solid-dark {
    border: 1px solid var(--color-brand);
    color: #fff;
    background: var(--color-brand);
}

    .hp-btn--solid-dark:hover {
        background: #fff;
        color: var(--color-brand);
    }

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body:not(.home) .header-logo .colored-logo {
    display: block;
}

body:not(.home) .header-logo .white-logo {
    display: none;
}

body:not(.home) .hamburger-bar {
    background: var(--color-brand);
}

body:not(.home) .site-header {
    background: #ffffff;
}

    body:not(.home) .site-header .nav-link {
        color: var(--color-brand);
    }

    body:not(.home) .site-header .lang-switch {
        border: 1.5px solid var(--color-brand);
    }

        body:not(.home) .site-header .lang-switch a {
            color: var(--color-brand);
        }

        body:not(.home) .site-header .lang-switch a.active, .lang-switch a:hover {
            background: var(--color-brand);
            color: var(--color-cream);
        }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 50px var(--site-padding);
    gap: 24px;
}

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.header-logo .colored-logo {
    display: none;
}

.header-logo .white-logo {
    display: block;
}

.navbar-collapse {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.navbar-nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 18px;
    color: var(--color-cream);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    white-space: nowrap;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

    .nav-link:hover {
        opacity: 0.75;
    }

.arrow-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    transition: transform 0.2s;
}

.nav-item:hover > .nav-link .arrow-icon {
    transform: rotate(180deg);
}

.arrow-icon-child {
    width: 13px;
    height: 13px;
    fill: currentColor;
    transform: rotate(-90deg);
    margin-left: auto;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-cream);
    border: 1px solid rgba(109, 54, 30, 0.14);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(109, 54, 30, 0.12);
    min-width: 200px;
    padding: 8px 0;
    list-style: none;
    z-index: 200;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-brand);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

    .dropdown-item:hover {
        background: rgba(109, 54, 30, 0.07);
    }

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .inner-menu {
        top: 0;
        left: 100%;
        transform: none;
        display: none;
    }

    .dropdown-submenu:hover > .inner-menu {
        display: block;
    }

.header-action {
    display: flex;
    align-items: center;
}

.lang-switch {
    display: flex;
    border: 1.5px solid rgba(254, 252, 245, 0.55);
    border-radius: 100px;
    overflow: hidden;
}

.lang-switch a {
    font-size: 12px;
    font-weight: 600;
    color: rgba(254, 252, 245, 0.65);
    text-decoration: none;
    padding: 6px 16px;
    transition: background 0.2s, color 0.2s;
}

.lang-switch a.active,
.lang-switch a:hover {
    background: var(--color-cream);
    color: var(--color-brand);
}

.hamburger-wrapper {
    display: none;
}

.hamburger-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-cream);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.25s;
}

body.mobile-menu-open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.mobile-menu-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.mobile-menu-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.mobile-menu-open .hamburger-bar {
    background: var(--color-brand);
}

.footer-desktop {
    display: block;
}

.footer-mobile {
    display: none;
}

.footer-section {
    background: var(--color-brand-mid);
    padding: 60px 0 0;
}

.footer-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-padding);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    height: 20px;
    width: auto;
}

.footer-description {
    font-size: 12.5px;
    color: rgba(254, 252, 245, 0.62);
    line-height: 1.7;
    max-width: 260px;
    margin: 0;
}

.social-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.follow-text {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    color: rgba(254, 252, 245, 0.45);
    text-transform: uppercase;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 10px;
}

    .social-icons a {
        text-decoration: none;
    }

.social-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

    .social-icon:hover {
        background: rgba(254, 252, 245, 0.25);
    }

    .social-icon i {
        color: var(--color-brand-mid);
    }

.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    gap: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

    .footer-links li {
        list-style: none;
    }

    .footer-links a {
        color: var(--color-cream);
        text-decoration: none;
        white-space: nowrap;
        transition: opacity 0.2s;
    }

        .footer-links a:hover {
            opacity: 0.65;
        }

.footer-tagline-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-tagline {
    color: var(--color-cream);
    text-align: right;
    line-height: 1.55;
    max-width: 220px;
    margin: 0;
}

    .footer-tagline p,
    .footer-address p,
    .footer-address a {
        color: #fff;
        margin: 0;
        text-decoration: none;
    }

.footer-bottom-bar {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-padding) 20px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-address {
    font-size: 11px;
    color: #fefcf5;
    margin-top: 0;
}

.footer-lang {
    display: flex;
    border: 1.5px solid rgba(254, 252, 245, 0.35);
    border-radius: 100px;
    overflow: hidden;
}

    .footer-lang a {
        font-size: 11.5px;
        font-weight: 600;
        color: rgba(254, 252, 245, 0.55);
        text-decoration: none;
        padding: 4px 14px;
        transition: background 0.2s, color 0.2s;
    }

        .footer-lang a.active,
        .footer-lang a:hover {
            background: var(--color-cream);
            color: var(--color-brand-mid);
        }

.footer-bottom {
    background: #fff;
    text-align: center;
    padding: 12px 24px;
}

    .footer-bottom p {
        margin: 0;
    }

    .footer-bottom a {
        color: inherit;
        text-decoration: none;
    }

        .footer-bottom a:hover {
            color: rgba(254, 252, 245, 0.6);
        }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
}

    .modal[style*="flex"] {
        display: flex !important;
    }

.modal-content {
    margin: auto;
    background: var(--color-cream);
    border-radius: 16px;
    padding: 36px 40px 40px;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

    .modal-content .close {
        position: absolute;
        top: 14px;
        right: 18px;
        font-size: 20px;
        cursor: pointer;
        color: var(--color-brand);
        background: none;
        border: none;
        line-height: 1;
    }

    .modal-content h3 {
        text-align: center;
        margin: 0;
    }

    .modal-content p {
        text-align: center;
        margin: 0;
    }

    .modal-content input[type="text"],
    .modal-content input[type="email"],
    .modal-content input[type="tel"] {
        width: 100%;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(109, 54, 30, 0.4);
        padding: 15px 0;
        outline: none;
    }

    .modal-content input::placeholder {
        color: rgba(109, 54, 30, 0.45);
    }

    .modal-content input:focus {
        border-bottom-color: var(--color-brand);
    }

    .modal-content .terms-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        color: var(--color-brand-mid);
        margin: 15px 0;
    }

        .modal-content .terms-row a {
            color: var(--color-brand);
        }

    .modal-content button {
        width: 100%;
        padding: 14px 28px;
        margin-top: 15px;
    }

body.modal-gate {
    overflow-y: auto;
    pointer-events: none;
}

    body.modal-gate #registerModal {
        pointer-events: all;
    }

        body.modal-gate #registerModal .modal-content {
            pointer-events: all;
        }

    body.modal-gate .modal-content .close {
        display: none;
    }

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes hp-scroll-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.35;
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    .navbar-collapse {
        display: none;
    }

    .header-container {
        padding: 16px var(--site-padding-mobile);
        gap: 0;
    }

    .header-logo {
        flex: 0 0 auto;
    }

        .header-logo img {
            height: 32px;
        }

    .header-action {
        margin-left: auto;
        margin-right: 20px;
    }

    .hamburger-wrapper {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        z-index: 1002;
        position: relative;
    }

    #mobileNav.navbar-collapse {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--color-cream);
        z-index: 1000;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
        overflow-y: auto;
        transform: none;
        left: 0;
    }

        #mobileNav.navbar-collapse.open {
            display: flex;
        }

        #mobileNav.navbar-collapse::before {
            content: '';
            display: block;
            height: 64px;
            flex-shrink: 0;
        }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 0 32px;
        width: 100%;
        list-style: none;
        margin: 0;
    }

    .navbar-collapse .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(109, 54, 30, 0.08);
    }

    .navbar-collapse .nav-link {
        color: var(--color-brand);
        font-size: 16px;
        font-weight: 600;
        padding: 14px 24px;
        justify-content: space-between;
        width: 100%;
        box-sizing: border-box;
    }

    .navbar-collapse .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(109, 54, 30, 0.04);
        padding: 0;
        transform: none;
        min-width: unset;
        width: 100%;
    }

    .navbar-collapse .nav-item.open > .dropdown-menu {
        display: block;
    }

    .navbar-collapse .dropdown-item {
        font-size: 14px;
        padding: 11px 36px;
        color: var(--color-brand-mid);
        border-bottom: 1px solid rgba(109, 54, 30, 0.06);
        white-space: break-spaces;
        background: var(--color-cream);
    }

    body.mobile-menu-open .header-logo .colored-logo {
        display: block !important;
        z-index: 9999;
    }

    body.mobile-menu-open .header-logo .white-logo {
        display: none !important;
    }

    .hp-bg-canvas {
        background-attachment: scroll;
    }

    .hp-hero {
        min-height: 85svh;
        min-height: 85dvh;
    }

    .hp-hero,
    .hp-midcta {
        background-attachment: scroll;
    }

    .hp-hero__content {
        margin-bottom: 160px;
        padding: 80px 24px 0;
    }

    .hp-midcta {
        padding-top: 60px;
    }

    .hp-services__grid {
        grid-template-columns: 1fr;
    }

    .hp-partners__track {
        gap: 40px;
    }

    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: flex;
        gap: 24px;
        padding: 0 var(--site-padding-mobile) 40px;
    }

    .footer-col-left {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer-col-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

        .footer-col-right .footer-address {
            text-align: center;
        }

    .footer-mobile .footer-links {
        flex-direction: column;
        gap: 10px;
    }

        .footer-mobile .footer-links a {
            color: var(--color-cream);
            text-decoration: none;
            font-size: 13px;
        }

    .footer-mobile .footer-lang {
        display: flex;
        border: 1.5px solid rgba(254, 252, 245, 0.35);
        border-radius: 100px;
        overflow: hidden;
    }

        .footer-mobile .footer-lang a {
            font-size: 11.5px;
            font-weight: 600;
            color: rgba(254, 252, 245, 0.55);
            text-decoration: none;
            padding: 4px 14px;
            transition: background 0.2s, color 0.2s;
        }

            .footer-mobile .footer-lang a.active,
            .footer-mobile .footer-lang a:hover {
                background: var(--color-cream);
                color: var(--color-brand);
            }
}

@media (max-width: 768px) {
    :root {
        --fs-body: 16px;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 400px) {
    .header-logo img {
        height: 24px;
    }
}