/* ============================================
   JOHN B. DE LEMOS — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ---- Navigation ---- */
.nav {
    background: transparent;
    backdrop-filter: none;
}

.nav.scrolled {
    background: rgba(255, 253, 247, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.1);
}

.nav.scrolled .nav-link {
    color: #064e3b;
}

.nav.scrolled .nav-link:hover {
    color: #047857;
}

.nav.scrolled .menu-line {
    background: #064e3b;
}

.nav.scrolled .btn-primary {
    background: #047857;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    max-height: 0;
}

.mobile-menu.open {
    max-height: 500px;
}

.mobile-link {
    display: block;
    text-decoration: none;
}

/* ---- Hero Geometric Shapes ---- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-1 {
    width: 600px;
    height: 600px;
    background: #6ee7b7;
    top: -200px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-2 {
    width: 300px;
    height: 300px;
    background: #a7f3d0;
    bottom: 100px;
    left: 30%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-3 {
    width: 150px;
    height: 150px;
    background: #34d399;
    top: 40%;
    right: 20%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-rect {
    position: absolute;
    opacity: 0.06;
}

.geo-rect-1 {
    width: 200px;
    height: 200px;
    background: #fff;
    top: 15%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-rect-2 {
    width: 100px;
    height: 100px;
    background: #fff;
    bottom: 20%;
    right: 5%;
    transform: rotate(20deg);
    animation: spin-slow 25s linear infinite reverse;
}

.geo-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    bottom: 30%;
    left: 8%;
    background-image: radial-gradient(circle, rgba(110, 231, 183, 0.4) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: float-slow 18s ease-in-out infinite;
}

/* ---- Hero Animations ---- */
.hero-subtitle {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-headline {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-desc {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-pills {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-img {
    animation: image-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
}

.hero-float-card {
    animation: float-card 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
    transform: translateX(30px);
}

.hero-deco-cross {
    animation: float-cross 3s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes image-reveal {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes float-card {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float-cross {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ---- Hero Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #047857;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: #ecfdf5;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

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

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

.btn-primary:hover .btn-arrow-alt {
    transform: translateY(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 60px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ---- Hero Pills ---- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1fae5;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

/* ---- Floating Card ---- */
.hero-float-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: #fff;
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.float-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.float-card-label {
    font-size: 0.65rem;
}

.float-card-value {
    font-size: 1rem;
}

/* ---- Hero Image Wrapper ---- */
.hero-img-wrapper {
    position: relative;
    z-index: 1;
}

.hero-deco-cross {
    position: absolute;
    top: -20px;
    right: -10px;
    z-index: 2;
}

/* ---- Section Headers ---- */
.section-label {
    display: inline-block;
}

.section-title {
    position: relative;
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-card-inner {
    padding: 36px 28px;
    border-radius: 24px;
    height: 100%;
    border: 1px solid rgba(4, 120, 87, 0.12);
    background: #fff;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-inner {
    box-shadow: 0 20px 60px rgba(4, 120, 87, 0.12);
    border-color: transparent;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.service-icon-wrap svg {
    color: #fff;
}

.service-card-1 .service-icon-wrap { background: linear-gradient(135deg, #047857, #059669); }
.service-card-2 .service-icon-wrap { background: linear-gradient(135deg, #065f46, #047857); }
.service-card-3 .service-icon-wrap { background: linear-gradient(135deg, #10b981, #34d399); }
.service-card-4 .service-icon-wrap { background: linear-gradient(135deg, #022c22, #064e3b); }
.service-card-5 .service-icon-wrap { background: linear-gradient(135deg, #047857, #10b981); }
.service-card-6 .service-icon-wrap { background: linear-gradient(135deg, #065f46, #10b981); }

.service-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #064e3b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9rem;
    color: #047857;
    line-height: 1.7;
    opacity: 0.85;
}

/* ---- About Section ---- */
.about-geo {
    position: absolute;
    opacity: 0.06;
}

.about-geo-1 {
    width: 400px;
    height: 400px;
    background: #6ee7b7;
    border-radius: 50%;
    top: -100px;
    left: -100px;
}

.about-geo-2 {
    width: 200px;
    height: 200px;
    background: #a7f3d0;
    border-radius: 50%;
    bottom: -50px;
    right: 10%;
}

.about-geo-3 {
    width: 100px;
    height: 100px;
    background: #fff;
    top: 30%;
    right: 5%;
    transform: rotate(45deg);
}

.about-img-layout {
    position: relative;
}

.about-img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-accent {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 55%;
    border-radius: 20px;
    overflow: hidden;
    border: 6px solid #047857;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-accent-img {
    width: 100%;
    height: auto;
    display: block;
}

.about-stat-card {
    position: absolute;
    top: -20px;
    right: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.about-stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #064e3b;
    line-height: 1.2;
}

.about-stat-label {
    display: block;
    font-size: 0.7rem;
    color: #047857;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.about-text p {
    margin: 0;
}

.value-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1fae5;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 50px;
}

.value-chip svg {
    color: #6ee7b7;
}

/* ---- Why Us Section ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 28px;
    border: 1px solid rgba(4, 120, 87, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #047857, #10b981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(4, 120, 87, 0.12);
    border-color: transparent;
}

.why-card-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 3rem;
    color: #d1fae5;
    line-height: 1;
    margin-bottom: 16px;
}

.why-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #047857, #10b981);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.why-card:hover .why-card-icon {
    transform: rotate(-10deg) scale(1.1);
}

.why-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #064e3b;
    margin-bottom: 10px;
}

.why-card-desc {
    font-size: 0.9rem;
    color: #047857;
    line-height: 1.7;
    opacity: 0.85;
}

/* ---- Contact Section ---- */
.contact-bg-deco {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}

.contact-bg-circle-1 {
    width: 500px;
    height: 500px;
    background: #047857;
    top: -200px;
    right: -100px;
}

.contact-bg-circle-2 {
    width: 300px;
    height: 300px;
    background: #10b981;
    bottom: -100px;
    left: -50px;
}

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

.contact-item-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #047857, #10b981);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.contact-item-label {
    font-size: 0.65rem;
}

.contact-item-text {
    line-height: 1.6;
}

/* ---- Contact Form ---- */
.contact-form-card {
    background: #fff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 80px rgba(4, 120, 87, 0.1);
    border: 1px solid rgba(4, 120, 87, 0.08);
}

.contact-form-title {
    font-size: 1.5rem;
}

.contact-form-subtitle {
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #064e3b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #d1fae5;
    border-radius: 14px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #064e3b;
    background: #f0fdf4;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #6ee7b7;
}

.form-input:focus {
    border-color: #047857;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #047857, #059669);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 18px 32px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(4, 120, 87, 0.3);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(4, 120, 87, 0.4);
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #047857, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 20px;
    animation: pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success-title {
    font-size: 1.5rem;
}

.form-success-text {
    font-size: 0.95rem;
}

@keyframes pop-in {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.hidden {
    display: none;
}

/* ---- Map Strip ---- */
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #d1fae5;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(110, 231, 183, 0.3);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(110, 231, 183, 0.1);
    border-color: #6ee7b7;
    color: #fff;
}

.btn-outline-light svg {
    transition: transform 0.3s ease;
}

.btn-outline-light:hover svg {
    transform: translateX(3px);
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s 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-float-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 20px;
        display: inline-flex;
    }

    .hero-image-container {
        max-width: 100%;
    }

    .about-img-accent {
        right: -10px;
        bottom: -20px;
        width: 50%;
    }

    .about-stat-card {
        right: 20px;
        top: -10px;
    }

    .contact-form-card {
        padding: 28px 20px;
    }
}

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