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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(20, 184, 166, 0.2);
    color: #134e4a;
}

/* ===== Navigation ===== */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.nav-link {
    transition: color 0.2s ease;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

.mobile-menu.hidden {
    animation: slideUp 0.2s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.mobile-link {
    transition: color 0.2s ease;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: white;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #14b8a6;
    color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: white;
    color: #0d9488;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero-section {
    position: relative;
}

.hero-badge {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-ctas {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.hero-trust {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

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

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Section Styles ===== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0d9488;
    background: rgba(20, 184, 166, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(20, 184, 166, 0.15);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.0625rem;
    color: #64748b;
    line-height: 1.7;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(20, 184, 166, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.35s ease;
}

.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.service-icon {
    width: 26px;
    height: 26px;
    color: #0d9488;
    transition: color 0.35s ease;
}

.service-card:hover .service-icon {
    color: white;
}

.service-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.service-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0d9488;
    text-decoration: none;
    transition: all 0.2s ease;
}

.service-link:hover {
    color: #0f766e;
}

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

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

.about-stat-card {
    animation: float 3s ease-in-out infinite;
}

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

/* ===== Community ===== */
.community-card {
    transition: all 0.35s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

/* ===== Contact Form ===== */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1e293b;
    background: white;
    transition: all 0.2s ease;
    outline: none;
}

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

.input-field:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

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

.contact-form {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .about-stat-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }

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