@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/Inter_Tight/static/InterTight-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/Inter_Tight/static/InterTight-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/Inter_Tight/static/InterTight-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/Inter_Tight/static/InterTight-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Start basic function ================================================*/
:root {
    --white: #FBF8F6;
    --primary: #0088FF;
    --primary-hover: #0080F0;
    --black: #333333;
    --grey: #999999;
    --light-grey: #F2F2F7;
    --primary-font: "Inter Tight", sans-serif;
}


html { font-size: 62.5%; }

body {
    font-family: var(--primary-font) !important;
    background: var(--white);
    margin: 0;
    color: var(--black);
    font-size: 1.4rem;
    font-weight: 400;
}

.container {
    max-width: 1140px; 
    margin: 0 auto;    
    padding: 0 15px;     
}

.btn{
    font-family: var(--primary-font) !important;
    padding: 1.2rem 2.5rem;
    cursor: pointer;
    text-decoration: none;
    border-radius: 3rem;
    display: block;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-primary{
    border: 1px solid var(--primary) !important;
    color: var(--white) !important;
    background: var(--primary);
}

.btn-primary:hover{
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    background: var(--white);
}

.btn-outline-primary{
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent;
}

.btn-outline-primary:hover{
    border: 1px solid var(--primary-hover) !important;
    color: var(--white) !important;
    background: var(--primary-hover);
}

/* Base display utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }

/* Breakpoints (adjust to your project) */
@media (min-width: 992px) {
    .d-lg-block { display: inline !important; }
    .d-lg-none { display: none !important; }
}

@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-inline { display: inline !important; }
}

.me-1{
    margin-right: 1rem !important;
}

.text-white{
    color: var(--white) !important;
}
/* End basic function ================================================*/
.logo{
    height: 4rem;
    width: 129.88px;
}
.logo img{
    object-fit: contain;
    width: auto;
    height: 100%;
}

/* Base nav */
nav{
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: 
        background-color 0.4s ease,
        box-shadow 0.4s ease,
        backdrop-filter 0.4s ease;
}

nav.scrolled{
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sticky-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navigation ul {
    justify-content: space-between;
    display: flex;
    gap: 6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation a {
    letter-spacing: 0.5px;
    text-decoration: none;
    color: var(--grey);
    transition: text-shadow 0.2s ease, color 0.2s ease;
}
.navigation a.selected,.navigation a:hover{
    text-shadow: 0 0 .5px var(--black), 0 0 .5px var(--black);
    transform: scale(1.05); 
    color: var(--black);
}

.menu-toggle {
    display: none;
    font-size: 4.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 0;
}

nav.scrolled .menu-toggle{
    color: var(--black);
}

nav .sticky-navigation{
    padding: 10px 0;
}

.sticky-navigation .btn{
    border-radius: 1rem !important;
}
/* ---------- MOBILE ---------- */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background: var(--black);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.08);
        padding-top: 5rem;
        z-index: 1000;
    }

    .navigation ul {
        flex-direction: column;
        gap: 3rem;
    }
    .navigation ul a{
        font-size: 3rem;
        color: var(--white);
    }
    .navigation ul a.selected{
        color: var(--primary);
        font-weight: 600;
    }

    .navigation.active {
        transform: translateX(0);
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 0;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Lock body scroll when menu open */
    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }
}

/* ===============================
   DESKTOP DROPDOWN
================================= */

/* Base dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: " ▾";
    font-size: 1.2rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 1rem;
    padding: 10px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 999;
}

/* Show when hover OR active */
.has-dropdown:hover .dropdown,
.has-dropdown.active .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Rotate arrow when open */
.has-dropdown.active > a::after {
    transform: rotate(180deg);
}

.navigation .dropdown{
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.navigation .dropdown li a{
    padding: 1rem;
    width: 100%;
    display: block;
}

.navigation .dropdown li a:hover,.navigation .dropdown li a.selected{
    text-shadow: none;
    color: var(--white);
    background: var(--primary);
    transform: none;
}

/* Show on hover (desktop only) */
@media (min-width: 992px) {
    .has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* ===============================
   MOBILE DROPDOWN
================================= */

@media (max-width: 992px) {

    .has-dropdown > a::after {
        font-size: 2.2rem;
    }

    .dropdown {
        position: static !important;   /* VERY IMPORTANT */
        display: block;
        width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.active .dropdown {
        max-height: 300px;
        margin-top: 1rem;
    }

    .navigation a:hover{
        color: var(--white) !important;
    }

    .navigation ul{
        max-width: 22rem;
    }

    .navigation .dropdown li a {
        padding-left: 2rem;
        font-size: 2rem;
    }
}

/* end navigation */

.header{
    height: 90vh;
    width: 100%;
    position: relative;
    padding-top: clamp(2rem, calc(3vw + 1rem), 3rem);
}

.header .header-image{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.header-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.header-image::after {
    z-index: 0;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        #66666600 40%,
        #000000 81%
    );
    opacity: 0.5;
}

.header-content{  
    position: absolute;
    bottom: 0;
    /* transform: translateX(50%); */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.header .title{
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, calc(2.5vw + 1rem), 3.3rem);
    font-weight: 500;
}

.header .description{
    margin-bottom: 3rem;
    font-weight: 300;
    font-size: clamp(1.6rem, calc(1.8vw + 1rem), 1.8rem);
}
.header .button{
    font-weight: 300;
    font-size: clamp(1.4rem, calc(1.6vw + 1rem), 1.6rem);
    margin-bottom: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}