*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(13, 148, 136, 0.2);
    color: inherit;
}

/* ─── Loader ─── */
#page-loader {
    opacity: 1;
}

#page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ─── Navigation ─── */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-text {
    transition: color 0.5s ease;
}

#navbar.scrolled .nav-text {
    color: #1e293b;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #0d9488;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #0d9488;
}

#navbar.scrolled .nav-link {
    color: #475569;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488;
}

/* ─── Mobile Menu ─── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ─── Hero ─── */
.hero-tag {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.7s;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease forwards;
    animation-delay: 0.9s;
}

.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s ease forwards;
    animation-delay: 1.1s;
}

@keyframes heroIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* ─── Section Styles ─── */
.section-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0d9488;
    margin-bottom: 0.75rem;
}

.section-label-light {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2dd4bf;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.section-title-light {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.75;
    color: #64748b;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Scroll Triggers ─── */
.scroll-trigger {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-trigger[data-visible="false"] {
    opacity: 0;
    transform: translateY(30px);
}

/* ─── Thin line separators ─── */
.line-sep {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #0d9488, transparent);
}

/* ─── Product card hover ─── */
.group:hover .w-12 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ─── Map ─── */
iframe {
    filter: saturate(0.3) brightness(0.8);
}

/* ─── Button focus ─── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-trigger {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ─── Utility ─── */
.text-balance {
    text-wrap: balance;
}
