/* =====================================================
   GLOBAL / BASE STYLES
   ===================================================== */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0f172a;
    color: #ffffff;
    line-height: 1.6;
}

:root {
    --brand-green: #2ba83b;
    --brand-green-hover: color-mix(in srgb, var(--brand-green) 85%, black);
}

/* =====================================================
   DEFAULT LINK COLOR
   ===================================================== */
section a {
    color: var(--brand-green);
}

section a:hover {
    text-decoration: underline;
}

/* =====================================================
   TOP NAVIGATION BAR (FULL WIDTH)
   ===================================================== */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #020617;
    z-index: 1000;
}

/* =====================================================
   NAVIGATION INNER CONTAINER
   ===================================================== */
.nav-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* =====================================================
   LOGO / BRANDING
   ===================================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
}

/* =====================================================
   LOGO (BADGE-STYLE SVG)
   ===================================================== */

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 6px 8px;
    border-radius: 10px;

    /* lighter frame for separation */
    background: rgba(255, 255, 255, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(5px);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}


.logo-mark img {
    display: block;

    /* Control visual size */
    height: 46px;
    width: auto;

    /* IMPORTANT: remove recoloring */
    filter: none;
}

/* Text next to logo */
.logo-text {
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.logo-it {
    color: var(--brand-green);
    font-weight: 700;
}

/* Subtle hover polish (no glow, no badge) */
.logo:hover {
    opacity: 0.95;
}

.logo:hover .logo-mark {
    background: rgba(255, 255, 255, 0.14);
    border-color: color-mix(
        in srgb,
        var(--brand-green) 55%,
        rgba(255,255,255,0.35)
    );
    transform: translateY(-1px);
}


/* Hide logo text on very small screens */
@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .logo-mark img {
        height: 40px;
    }
}


/* =====================================================
   NAVIGATION LINKS
   ===================================================== */
.nav-links a {
    color: #ffffff;
    margin-left: 20px;
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
}


/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {

    position: relative;

    min-height: calc(100vh - 10px);

    padding: 70px 20px 60px;

	background-image:
		linear-gradient(
			to right,
			rgba(2,6,23,0.88) 0%,
			rgba(2,6,23,0.80) 20%,
			rgba(2,6,23,0.60) 40%,
			rgba(2,6,23,0.25) 55%,
			rgba(2,6,23,0.05) 70%
        ),
        url("../images/hero-yacosta-it.png");

    background-size: cover;

    background-position: 80% center;

    background-repeat: no-repeat;

}


/* =====================================================
   HERO TEXT
   ===================================================== */

.hero-content{
    max-width: 620px;
    margin-left: 8%;
    padding-top: 40px;
}

/* MAIN HEADLINE */
.hero h1 {
    font-size: 2.7rem;
    font-weight: 700;
    color: #ffffff; /* pure white */
    margin-bottom: 50px;

    text-shadow:
        0 3px 18px rgba(0,0,0,0.8),
        0 1px 0 rgba(0,0,0,0.4);
}

/* SUBTITLE */
.hero-subtitle{
    font-size: 1.15rem;
    color:#ffffff; /* brighter gray */
    margin-bottom:28px;

    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* TRUST LINE */
.hero-trust {
    font-size: 0.95rem;
    color: #f1f5f9; /* slightly brighter */
    margin-bottom: 78px;

    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* GOOGLE RATING */
.google-rating {
    color: var(--brand-green);
    font-weight: 700;
}



/* =====================================================
   HERO HEADLINE ROTATOR
   ===================================================== */

.hero-rotator {
    position: relative;
    display: block;
    min-height: 6.5rem;
}

@media (max-width: 768px) {

    .hero-rotator {
        min-height: 6rem;
    }

}

.hero-rotator span {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    opacity: 0;

    transform: translateY(14px);

    transition: opacity 1.2s ease, transform 1.2s ease;

}

.hero-rotator span.active {

    opacity: 1;

    transform: translateY(0);

}

/* =====================================================
   HERO TITLE (INTERNAL PAGES)
   ===================================================== */

.hero h1:not(.hero-rotator) {
    min-height: 4rem;
}
/* =====================================================
   VALUE PROPOSITION (INLINE)
   ===================================================== */
.value-inline {
	margin-top: 0px;
    background-color: #020617;
    padding: 22px 20px;
}

.value-inline-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.value-divider {
    color: var(--brand-green);
    font-weight: 700;
}


/* =====================================================
   PRIMARY BUTTON (BRAND GREEN)
   ===================================================== */
.btn-primary {
    background-color: var(--brand-green);
    color: #ffffff;
    padding: 13px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    display: inline-block;

    box-shadow:
        0 8px 24px rgba(43,168,59,0.35),
        0 0 12px rgba(43,168,59,0.25);

    transition: all 0.25s ease;
}

.btn-primary:hover {
    background-color: var(--brand-green-hover);

    box-shadow:
        0 10px 30px rgba(43,168,59,0.45),
        0 0 18px rgba(43,168,59,0.35);

    transform: translateY(-1px);
}

.btn-primary {

    animation: heroButtonFade 1.2s ease 0.8s both;

}

@keyframes heroButtonFade {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =====================================================
   BREADCRUMB NAVIGATION
   ===================================================== */
.breadcrumb {
    position: relative;
    z-index: 5;

    max-width: 1000px;
    margin: 110px auto 0; /* clears fixed nav */
    padding: 0 20px;

    font-size: 0.9rem;
    color: #cbd5e1;
}

.breadcrumb a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 6px;
}


/* =====================================================
   GENERIC SECTION STYLES
   ===================================================== */
section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: auto;
}


/* =====================================================
   SERVICES SECTION
   ===================================================== */

#services {
    background-color: #020617;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* ================= SERVICE CARDS ================= */

.service-card {
    position: relative; /* REQUIRED for overlay link */
    background-color: #0b1220;
    padding: 28px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #ffffff;

    border: 1px solid transparent; /* prevents layout shift */
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card .card-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}

/* Lists inside cards */
.service-card ul {
    margin-top: 15px;
    padding-left: 18px;
    text-align: left;
    font-size: 0.95rem;
}

.service-card li {
    margin-bottom: 8px;
}

/* Universal hover (all plans) */
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-green);
    box-shadow:
        0 0 0 1px rgba(43, 168, 59, 0.45),
        0 18px 40px rgba(0, 0, 0, 0.55);
}

/* ================= FEATURED PLAN ================= */

.service-card.featured {
    border: 2px solid var(--brand-green);
    box-shadow:
        0 0 0 1px rgba(43, 168, 59, 0.45),
        0 18px 40px rgba(0, 0, 0, 0.55);
}

.service-card.featured:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 0 2px rgba(43, 168, 59, 0.6),
        0 22px 46px rgba(0, 0, 0, 0.65);
}


/* =====================================================
   INDUSTRIES SECTION
   ===================================================== */
#industries {
    background-color: #0b1220;
}

.industries-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* Clickable industry tiles */
.industry-tile {
    background-color: #020617;
    padding: 22px 18px;
    border-radius: 6px;

    display: block;
    text-align: center;
    font-weight: 500;

    color: #ffffff;
    text-decoration: none;

    border: 2px solid transparent;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.industry-tile:hover {
    transform: translateY(-3px);
    border-color: var(--brand-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.industry-tile:focus-visible {
    outline: none;
    border-color: var(--brand-green);
}


/* =====================================================
   CALL TO ACTION
   ===================================================== */
#cta {
    background: linear-gradient(135deg, #020617, #1e3a8a);
    text-align: center;
}

.cta-container {
    max-width: 900px;
    margin: auto;
}

#cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

#cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
#about {
    background-color: #0b1220;
}


/* =====================================================
   CONTACT SECTION (SINGLE SOURCE OF TRUTH)
   ===================================================== */

#contact {
    text-align: center;
}

/* Intro text */
.contact-intro {
    margin-bottom: 30px;
}

.contact-intro h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.contact-intro p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Two-column layout */
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

/* LEFT: Contact list card */
.contact-list {
    max-width: 420px;
    background-color: #020617;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Each contact row */
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
}

/* Icon base */
.contact-item i {
    width: 22px;
    text-align: center;
    font-size: 1.2rem;
}

/* Icon colors */
.contact-item .fa-phone { color: #e11d48; }
.contact-item .fa-envelope { color: #ffffff; }
.contact-item .fa-whatsapp { color: #25D366; }
.contact-item .fa-facebook-f { color: #1877F2; }
.contact-item .fa-linkedin-in { color: #0A66C2; }

/* Links */
.contact-item a {
    color: #ffffff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* RIGHT: Contact form card */
.contact-form {
    background-color: #020617;
    padding: 30px;
    border-radius: 8px;
}

/* Form rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.form-group input,
.form-group textarea {
    background-color: #0b1220;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-green);
}

/* Mobile */
@media (max-width: 768px) {
    .contact-form-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}



/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background-color: #020617;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* =====================================================
   SMOOTH SCROLLING
   ===================================================== */
html {
    scroll-behavior: smooth;
}

/* =====================================================
   MOBILE FIXES (CRITICAL)
   ===================================================== */
@media (max-width: 768px) {

    .hero-content {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background-color: #020617;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--brand-green);
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.plan-badge {
    display: inline-block;
    margin: 10px 0;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #041b08;
    background-color: var(--brand-green);
    border-radius: 12px;
}

.service-card.featured {
    border: 2px solid var(--brand-green);
    box-shadow: 0 0 0 1px rgba(43, 168, 59, 0.4),
                0 18px 40px rgba(0,0,0,0.55);
}

/* =====================================================
   MODERN IT APPROACH SECTION
   ===================================================== */
#modern-it {
    background-color: #0b1220;
    text-align: center;
}

.tech-intro {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.tech-card {
    background-color: #020617;
    padding: 26px 22px;
    border-radius: 8px;
    text-align: left;
}

.tech-card h4 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #ffffff;
}

.tech-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.tech-note {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-green);
}

.tech-footer {
    margin-top: 40px;
    font-size: 0.95rem;
    color: #cbd5e1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.spanish-note {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-green);
}
.footer-lang {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #94a3b8;
}
/* =====================================================
   LANGUAGE TOGGLE
   ===================================================== */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-left: 20px;
    white-space: nowrap;
}

.lang-toggle a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.lang-toggle a:hover {
    color: var(--brand-green);
}

.lang-toggle a.active {
    color: var(--brand-green);
    font-weight: 700;
}

.lang-toggle span {
    color: #64748b;
}

/* =====================================================
   MOBILE NAV – FINAL FIX (2-ROW STRUCTURE)
   ===================================================== */
@media (max-width: 768px) {

    .nav-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 16px;
    }

    .logo {
        flex: 1 1 auto;
    }

    .lang-toggle {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 0.85rem;
    }

    .nav-links {
        width: 75%;
        display: grid;
        grid-template-columns: repeat(3, auto);
        justify-content: center;
        gap: 10px 22px;
        margin-top: 6px;
        text-align: center;
    }

    /* ✅ Make the badge slightly lighter on mobile so the logo reads true */
    .logo-mark {
        background: rgba(255, 255, 255, 0.40);
        border: 1px solid rgba(255, 255, 255, 0.45);
    }
}

/* =====================================================
   INVOICE
   ===================================================== */
.nav-links a.nav-pay-invoice {
    background: none;
    padding: 0;
    border-radius: 0;
    color: #ffffff;
    text-decoration: none;
}

.nav-links a.nav-pay-invoice:hover {
    text-decoration: underline;
    color: #ffffff;
}


/* Google review QR — final behavior */
.contact-review {
    flex-wrap: wrap;
    
}

/* QR container (independent block) */
.contact-review-qr {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

/* QR image sizing */
.contact-review-qr .review-qr {
    width: 90px;        /* sweet spot */
    max-width: 90px;
    height: auto;
    opacity: 0.95;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */

.service-card,
.industry-tile,
.tech-card,
.contact-form-container,
.value-inline-container,
.cta-container {

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;

}

.animate-in {

    opacity: 1;
    transform: translateY(0);

}

.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }