/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #fafaf8;
    color: #0f172a;
}

::selection {
    background-color: #134e4a;
    color: #f5f5f4;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo {
    text-decoration: none;
}

.nav-link {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1e293b;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #134e4a;
}

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

.nav-cta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #134e4a;
    text-decoration: none;
    border: 1px solid #134e4a;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #134e4a;
    color: #fafaf8;
}

.nav-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #1e293b;
    padding: 8px;
}

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

.mobile-menu-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #134e4a;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fafaf8;
    background: #134e4a;
    padding: 16px 32px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0f3d38;
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    color: #fafaf8;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: #1e293b;
    background: transparent;
    padding: 16px 32px;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #134e4a;
    color: #134e4a;
}

/* CTA Buttons */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: #0f172a;
    background: #5eead4;
    padding: 18px 36px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    background: #2dd4bf;
    color: #0f172a;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: #fafaf8;
    background: transparent;
    padding: 18px 36px;
    text-decoration: none;
    border: 1px solid rgba(250, 250, 248, 0.3);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    border-color: #fafaf8;
    color: #fafaf8;
}

/* ========== INPUTS ========== */
.input-field {
    width: 100%;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: #fafaf8;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    border-radius: 0;
}

.input-field::placeholder {
    color: #94a3b8;
}

.input-field:focus {
    border-color: #134e4a;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for scroll-reveal elements (visible when JS is disabled) */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .btn-primary,
    .btn-secondary,
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .service-card {
        opacity: 1;
        transform: none;
    }
    .overflow-hidden img {
        transition: none;
    }
}
