*, *::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;
    --slate-950: #020617;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--slate-800);
    background: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── NAV ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--slate-200);
    transition: box-shadow 0.3s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-900);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.nav-logo svg {
    color: var(--teal-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-600);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--slate-900);
}

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

.nav-phone {
    display: flex !important;
    align-items: center;
    gap: 6px;
    color: var(--teal-700) !important;
    font-weight: 500 !important;
    border: 1px solid var(--teal-200);
    padding: 6px 14px;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s !important;
}

.nav-phone::after {
    display: none !important;
}

.nav-phone:hover {
    background: var(--teal-50);
    color: var(--teal-800) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--slate-700);
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--teal-800) 0%,
        var(--teal-700) 25%,
        #0e6e7a 50%,
        var(--slate-700) 75%,
        var(--slate-900) 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(20, 184, 166, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(15, 118, 110, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(30, 41, 59, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-400);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-accent {
    font-style: italic;
    color: var(--teal-200);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease-out);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--teal-600);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--teal-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-white {
    background: #ffffff;
    color: var(--teal-800);
}

.btn-white:hover {
    background: var(--teal-50);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-full {
    width: 100%;
}

/* ─── SECTION COMMON ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal-600);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--teal-400);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 560px;
    font-weight: 300;
}

/* ─── SERVICES ─── */
.services {
    padding: 120px 0;
    background: #ffffff;
}

.services .container {
    max-width: 1200px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 64px;
    background: var(--slate-100);
    border-radius: 16px;
    overflow: hidden;
}

.service-card {
    background: #ffffff;
    padding: 40px 32px;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.service-card:hover {
    background: var(--teal-50);
}

.service-card:hover .service-icon {
    color: var(--teal-600);
    transform: scale(1.05);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--slate-50);
    color: var(--slate-700);
    margin-bottom: 20px;
    transition: all 0.3s var(--ease-out);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
    font-weight: 300;
}

/* ─── ABOUT ─── */
.about {
    padding: 120px 0;
    background: var(--slate-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
    z-index: -1;
    opacity: 0.15;
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-body {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.about-values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-value-line {
    width: 32px;
    height: 1px;
    background: var(--teal-400);
    flex-shrink: 0;
}

.about-value span {
    font-size: 0.95rem;
    color: var(--slate-700);
    font-weight: 400;
}

/* ─── PROCESS ─── */
.process {
    padding: 120px 0;
    background: #ffffff;
}

.process .container {
    max-width: 1000px;
    text-align: center;
}

.process .section-subtitle {
    margin: 0 auto 64px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: left;
}

.process-step {
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.process-step:hover {
    border-color: var(--teal-200);
    background: var(--teal-50);
    transform: translateY(-2px);
}

.process-step-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--teal-200);
    line-height: 1;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.7;
    font-weight: 300;
}

/* ─── CTA BANNER ─── */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--slate-900) 0%,
        var(--teal-900) 50%,
        var(--slate-800) 100%
    );
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 30% 50%, rgba(20, 184, 166, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(15, 118, 110, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── CONTACT ─── */
.contact {
    padding: 120px 0;
    background: var(--slate-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 1rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    color: var(--teal-600);
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-400);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--slate-800);
    font-weight: 400;
    line-height: 1.6;
}

.contact-detail-value a {
    color: var(--slate-800);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-detail-value a:hover {
    color: var(--teal-600);
}

.contact-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--slate-200);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.contact-form-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--slate-900);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--slate-900);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-400);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-400);
    background: #ffffff;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    background: var(--teal-50);
    border: 1px solid var(--teal-200);
    color: var(--teal-800);
    font-size: 0.9rem;
    margin-top: 16px;
}

.form-success svg {
    color: var(--teal-600);
    flex-shrink: 0;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--slate-950);
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-logo svg {
    color: var(--teal-500);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--slate-500);
    line-height: 1.7;
    max-width: 280px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    font-weight: 500;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 300;
}

.footer-col a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--slate-600);
    font-weight: 300;
}

/* ─── MOBILE NAV ─── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.35s var(--ease-out), opacity 0.25s;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-phone {
        font-size: 0.85rem;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 48px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-divider {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .service-card {
        padding: 28px 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
    }

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

@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;
    }
}
