:root {
    /* Color Palette */
    --bg-dark: #0a0e17; /* Deep trustworthy dark blue/black */
    --bg-card: rgba(16, 24, 40, 0.6);
    --bg-card-hover: rgba(26, 38, 57, 0.8);
    --primary-orange: #f97316; /* Vibrant construction/engineering orange */
    --primary-orange-glow: rgba(249, 115, 22, 0.4);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.05);
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.relative { position: relative; }

h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--text-light);
}

span {
    color: var(--primary-orange);
}

/* Typography & Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-orange-glow);
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--primary-orange);
}

.btn-outline {
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background-color: var(--primary-orange);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-orange-glow);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
/* CTA WhatsApp Button — green with subtle pulse */
.btn-cta-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.btn-cta-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.btn-cta-whatsapp ion-icon {
    font-size: 1.2rem;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 0 25px rgba(37, 211, 102, 0.6), 0 0 50px rgba(37, 211, 102, 0.2); }
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-glass);
}

/* Hide navbar CTA (and mobile FAB) when at the top to avoid redundancy with Hero CTA */
.navbar:not(.past-hero) .btn-whatsapp {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.navbar.past-hero .btn-whatsapp {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
    max-width: 120px;
    line-height: 1.1;
    color: var(--text-muted);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a.switch-module {
    background: transparent;
    color: #fff;
    border: none;
    border-bottom: 2px solid var(--primary-orange);
    padding: 0.4rem 0.8rem;
    border-radius: 0; /* Square edges */
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.nav-links a.switch-module:hover {
    background: var(--primary-orange);
    color: var(--bg-dark);
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.mobile-menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    background: transparent;
    border: none;
    padding: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.7) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-light);
}

.hero-top-group {
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
}

.line-nx {
    color: var(--text-light);
}

.line-reg {
    color: var(--primary-orange);
}

.badge-premium {
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    padding: 0.3rem 1.2rem 0.3rem 0.3rem;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 0;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: pulse-glow 3s infinite alternate;
}

.badge-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
    animation: shine 4s infinite linear;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-orange);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.badge-text {
    flex-grow: 1;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-orange);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.2); }
    100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.4); border-color: rgba(249, 115, 22, 0.6); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; opacity: 0.5; }
}

/* Hide the old hero h1 styles since we moved to hero-h1 */
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: inherit;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Hero Keywords (Left side) */
.hero-keywords {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

.hero-keywords span {
    color: var(--text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    opacity: 0.7;
}

.hero-keywords .line {
    width: 1px;
    height: 30px;
    background-color: var(--primary-orange);
    margin: 0 auto;
    opacity: 0.5;
}

/* Sections Global */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Sobre Nós */
.about {
    background-color: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-qualities {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
}

.about-qualities li {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.about-qualities li ion-icon {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

.about-qualities li:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-orange);
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(45deg, #1e293b, #0f172a);
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: 8px;
}

.glass-panel ion-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

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

.service-card {
    padding: 2.5rem;
    border-radius: 10px;
    transition: var(--transition);
}

.service-card.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}

.service-card.glass:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card.dark-glass {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
}

.service-card.dark-glass:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box ion-icon {
    font-size: 2rem;
    color: var(--primary-orange);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Regularização Section */
.regularization {
    position: relative;
}

.reg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.reg-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 14, 23, 0.8) 50%, var(--bg-dark) 100%);
}

.service-card.wide {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.service-card.wide .icon-box {
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-card);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-glass);
}

.placeholder-img ion-icon {
    font-size: 4rem;
    color: var(--border-glass);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .item-overlay {
    transform: translateY(0);
}

.item-overlay h3 {
    margin-bottom: 0.3rem;
}

.item-overlay span {
    color: var(--primary-orange);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: rgba(0,0,0,0.2);
}

.contact-info p {
    color: var(--text-muted);
    margin: 1.5rem 0 3rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-list ion-icon {
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.contact-form {
    padding: 4rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(0,0,0,0.5);
}

/* Footer */
footer {
    background: #05080e;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 300;
}

.footer-links p {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 300;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid, .contact-card {
        grid-template-columns: 1fr;
    }

    .hero .hero-h1 {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* =============================================
       LAYOUT — prevent horizontal overflow (zoom)
       ============================================= */
    .hero-content {
        max-width: 100%;
        overflow: hidden;
    }

    .container {
        padding: 0 1rem;
    }

    /* =============================================
       NAVBAR — mobile menu
       ============================================= */
    .navbar .btn {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 23, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        text-align: center;
        border-bottom: 1px solid var(--border-glass);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 1rem 0;
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
    }

    .nav-links a.switch-module {
        margin: 1rem auto;
        width: 80%;
    }

    .mobile-menu-icon {
        display: block;
        font-size: 2.5rem;
    }

    /* =============================================
       HERO — titles, badge, buttons
       ============================================= */
    .hero-keywords {
        display: none;
    }

    .hero .hero-h1 {
        font-size: 1.5rem;
        line-height: 1.25;
        letter-spacing: -0.02em;
    }

    .hero-top-group {
        width: 100%;
        display: flex;
    }

    .badge-premium {
        max-width: 100%;
        margin-bottom: 0.8rem;
    }

    .badge-text {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    /* =============================================
       SECTIONS — reduce whitespace on mobile
       ============================================= */
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    /* =============================================
       GRIDS — force single column on small screens
       ============================================= */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* =============================================
       ABOUT SECTION — qualities pills
       ============================================= */
    .about-qualities {
        flex-direction: column;
    }

    .about-qualities li {
        width: 100%;
    }

    /* =============================================
       CONTACT — form padding
       ============================================= */
    .contact-info, .contact-form {
        padding: 2rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    /* =============================================
       BUTTONS — prevent overflow from inline styles
       ============================================= */
    .btn {
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }

    /* =============================================
       WHATSAPP FAB — floating action button
       ============================================= */
    .btn-whatsapp {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        font-size: 0;
        padding: 0;
    }

    .btn-whatsapp ion-icon {
        font-size: 2rem;
        margin: 0;
    }

    /* =============================================
       FORMS — prevent iOS auto-zoom on focus
       ============================================= */
    input, textarea, select {
        font-size: 16px !important;
    }

    /* =============================================
       ANIMATIONS — reduce for performance/battery
       ============================================= */
    .fade-up, .fade-in-left, .fade-in-right {
        transition: opacity 0.3s ease !important;
        transform: none !important;
    }

    .fade-up.visible, .fade-in-left.visible, .fade-in-right.visible {
        opacity: 1 !important;
    }
}

