/* ================= VARIABLES ================= */
:root {
    --primary: #f90;
    --primary-dark: #cc7a00;
    --bg-dark: #0f172a;
    --bg-light: #f1f5f9;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
}

/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden; /* prevents horizontal scroll */
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= HEADER ================= */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    height: 100px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--bg-dark);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--bg-dark);
}

/* ================= HERO ================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 1rem;
    word-wrap: break-word;
}

.badge {
    background: rgba(255, 153, 0, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btns a {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    max-width: 280px;
    width: 100%;
    text-align: center;
}

/* ================= SERVICES ================= */
.services {
    background: var(--bg-light);
    padding: 100px 0;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: 0.4s;
    text-align: center;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.card-icon {
    background: var(--bg-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    margin-left: auto;
    margin-right: auto;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.specs {
    list-style: none;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-left: 0;
    word-wrap: break-word;
}

.specs li {
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    margin-top: 10px;
    text-align: left;
}

.service-card.active-card {
    border: 2px solid var(--primary);
}

/* ================= PORTFOLIO ================= */
.portfolio {
    padding: 100px 0 50px;
}

.portfolio h2 {
    margin-bottom: 2rem;
}

.portfolio div[style*="grid-template-columns"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* ================= CONTACT ================= */
.contact-wrapper {
    background: var(--bg-dark);
    color: var(--white);
    padding: 5rem;
    border-radius: 40px;
    margin-bottom: 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.branch-card {
    background: rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* ================= WHATSAPP ================= */
.whatsapp-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1001;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn img {
    width: 65px;
}

/* ================= FOOTER ================= */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    header {
        height: 80px;
    }

    .logo img {
        height: 70px;
    }

    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }

    nav ul.active {
        display: flex;
    }

    .hero {
        min-height: 100vh;
        min-height: 100svh;
        text-align: left;
        padding: 120px 0 80px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns a {
        max-width: 280px;
        width: 100%;
        text-align: center;
    }

    .services {
        padding: 70px 0;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-wrapper {
        padding: 2.5rem 1.5rem;
        border-radius: 25px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn img {
        width: 55px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .badge {
        font-size: 0.7rem;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    .portfolio div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .hero {
        padding: 80px 1rem 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
    }
}
