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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== GEOMETRIC BACKGROUND SHAPES ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #047857;
    top: 15%;
    left: -120px;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #10b981;
    bottom: 20%;
    right: -60px;
}

.shape-square-1 {
    width: 150px;
    height: 150px;
    background: #047857;
    border-radius: 24px;
    top: 45%;
    right: 8%;
    transform: rotate(15deg);
    opacity: 0.04;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #10b981;
    top: 60%;
    left: 5%;
    opacity: 0.04;
}

.shape-ring-1 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 3px solid #047857;
    top: 75%;
    left: 15%;
    opacity: 0.05;
}

/* ===== NAVBAR ===== */
.nav-scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(4, 120, 87, 0.08);
    box-shadow: 0 1px 20px rgba(4, 120, 87, 0.06);
}

.nav-scrolled .nav-text {
    color: #047857;
}

.nav-scrolled .nav-link {
    color: #065f46;
}

.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #10b981;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobileMenu {
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobileMenu.open {
    max-height: 400px;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

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

.mobile-link:hover {
    color: #047857;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #022c22 0%, #064e3b 30%, #047857 60%, #059669 80%, #10b981 100%);
}

.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(16, 185, 129, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(5, 150, 105, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(2, 44, 34, 0.4) 0%, transparent 70%);
}

.hero-geo {
    animation: float-geo 8s ease-in-out infinite;
}

.hero-geo-2 { animation-delay: -2s; animation-duration: 10s; }
.hero-geo-3 { animation-delay: -4s; animation-duration: 7s; }
.hero-geo-4 { animation-delay: -1s; animation-duration: 9s; }
.hero-geo-5 { animation-delay: -3s; animation-duration: 12s; }

@keyframes float-geo {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-18px) rotate(var(--rot, 0deg)); }
}

.hero-geo-2 { --rot: 12deg; }
.hero-geo-4 { --rot: -12deg; }

/* Hero badge */
.hero-badge {
    animation: fade-in-down 0.8s ease both;
}

/* Hero headline */
.hero-headline {
    animation: fade-in-up 0.9s ease 0.15s both;
}

/* Hero subtext */
.hero-subtext {
    animation: fade-in-up 0.9s ease 0.3s both;
}

/* Hero CTAs */
.hero-ctas {
    animation: fade-in-up 0.9s ease 0.45s both;
}

/* Scroll indicator */
.scroll-dot {
    animation: scroll-dot-anim 1.8s ease-in-out infinite;
}

@keyframes scroll-dot-anim {
    0% { top: 0; opacity: 1; }
    50% { top: 100%; opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CTA BUTTONS ===== */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #047857;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 15px 28px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.cta-arrow {
    transition: transform 0.25s ease;
}

.cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 26px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Light CTA buttons (in CTA banner) */
.cta-primary-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #047857;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 26px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.cta-secondary-light {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.cta-secondary-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===== SECTION LABELS ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #047857;
    background: #d1fae5;
    padding: 6px 14px;
    border-radius: 100px;
}

.section-label svg {
    flex-shrink: 0;
}

.section-label-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.12);
    padding: 6px 14px;
    border-radius: 100px;
}

/* ===== PILLS ===== */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 100px;
    background: #d1fae5;
    color: #065f46;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pill:hover {
    background: #a7f3d0;
    transform: translateY(-1px);
}

/* ===== ABOUT ===== */
.about-img-wrapper {
    position: relative;
}

.about-img {
    transition: transform 0.6s ease;
}

.about-img-wrapper:hover .about-img {
    transform: scale(1.02);
}

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

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

/* ===== SERVICE CARDS ===== */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 24px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(110, 231, 183, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6ee7b7;
    margin-bottom: 16px;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: rgba(110, 231, 183, 0.25);
}

/* ===== APPROACH CARDS ===== */
.approach-card {
    background: #fdfcf8;
    border: 1px solid #d1fae5;
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(4, 120, 87, 0.1);
}

.approach-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: #d1fae5;
    line-height: 1;
    margin-bottom: 8px;
}

/* ===== CTA BANNER ===== */
.cta-geo {
    animation: float-geo 8s ease-in-out infinite;
}

.cta-geo-2 { animation-delay: -3s; }
.cta-geo-3 { animation-delay: -1s; }

/* ===== CONTACT FORM ===== */
.contact-form-card {
    background: #fdfcf8;
    border: 1px solid #d1fae5;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(4, 120, 87, 0.06);
}

.contact-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.contact-input::placeholder {
    color: #a7f3d0;
}

.form-submit {
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.form-submit:hover {
    transform: translateY(-1px);
}

.form-submit:active {
    transform: translateY(0);
}

/* ===== REVEAL ANIMATIONS (scroll-triggered, progressive enhancement) ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-32px);
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(32px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-geo-1 {
        width: 200px;
        height: 200px;
    }

    .hero-geo-5 {
        width: 200px;
        height: 200px;
    }

    .about-float-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
        display: inline-flex;
    }

    .geo-shape {
        display: none;
    }

    .contact-form-card {
        padding: 24px;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 4rem;
    }
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}
