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

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

body {
    overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== TYPOGRAPHY ===== */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Lato', system-ui, sans-serif;
}

/* ===== SECTION HEADERS ===== */
.section-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #0F4C5C;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.section-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #475569;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #0F4C5C;
    color: #ffffff;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #0d4250;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 76, 92, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #0F4C5C;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #0F4C5C;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-secondary:hover {
    background: #0F4C5C;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 76, 92, 0.2);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 12px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    padding: 0;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card h3 {
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #0F4C5C;
}

/* ===== GALLERY ===== */
.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 76, 92, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(15, 76, 92, 0.1);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== FORM INPUTS ===== */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.3s ease;
    outline: none;
}

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

.input-field:focus {
    border-color: #0F4C5C;
    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.1);
}

.input-field:hover:not(:focus) {
    border-color: #94a3b8;
}

/* ===== NAVBAR ===== */
.nav-link {
    position: relative;
}

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

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

/* ===== HERO ANIMATIONS ===== */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
}

.hero-title {
    animation: slideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-desc {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    animation: slideUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-trust {
    animation: slideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== UTILITY ===== */
@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;
    }
    
    .reveal.hidden {
        opacity: 1;
        transform: translateY(0);
    }
}
