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

:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
}

/* ===== Navbar ===== */
.nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    border-bottom-color: var(--slate-100);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-700);
    transition: width 0.3s ease;
}

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

/* ===== Mobile Menu ===== */
.mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-size: 1.1rem;
}

/* ===== Hero ===== */
.hero {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(135deg, var(--teal-50) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero > .max-w-7xl {
    position: relative;
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 1;
}

/* Hero floating card */
.hero-float-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Hero image overlay */
.hero-image-overlay {
    background: linear-gradient(180deg, transparent 60%, rgba(15, 118, 110, 0.08) 100%);
}

/* Hero image wrapper */
.hero-image-wrapper {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* ===== Divider ===== */
.divider {
    margin-left: auto;
    margin-right: auto;
}

/* ===== Section Headers ===== */
.section-eyebrow {
    display: block;
}

.section-title {
    line-height: 1.15;
}

.section-subtitle {
    line-height: 1.7;
}

/* ===== Services ===== */
.service-card {
    opacity: 1;
}

.service-card-inner {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease, border-color 0.5s ease;
}

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

.service-icon {
    color: var(--teal-700);
}

.service-arrow {
    transition: transform 0.3s ease;
}

.service-link:hover .service-arrow {
    transform: translateX(4px);
}

/* ===== About ===== */
.about-image-wrapper {
    position: relative;
}

.about-image-main {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

.about-image-small {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===== Gallery ===== */
.gallery-item {
    cursor: pointer;
}

.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* ===== Testimonials ===== */
.testimonial-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

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

.testimonial-text {
    font-style: italic;
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
}

/* ===== Contact ===== */
.contact-icon {
    color: var(--teal-700);
}

/* ===== Footer ===== */
.footer-heading {
    letter-spacing: 0.2em;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* ===== Buttons ===== */
.btn-primary {
    box-shadow: 0 4px 20px rgba(15, 118, 110, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(15, 118, 110, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.1);
    transform: translateY(-2px);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-50);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* ===== Selection ===== */
::selection {
    background: var(--teal-200);
    color: var(--teal-900);
}

/* ===== Mobile Menu Button ===== */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
    .hero-float-card {
        display: none;
    }

    .about-image-small {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-headline br {
        display: none;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .trust-item span:first-child {
        font-size: 1.75rem;
    }

    .trust-divider {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 639px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
