@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Oswald:wght@500;700&display=swap');

:root {
    --primary: #FFD700; /* Gold */
    --primary-rgb: 255, 215, 0;
    --secondary: #FFA500; /* Orange */
    --bg: #0a0a0a;
    --bg-alt: #050505;
    --surface: #121212;
    --surface-light: #1a1a1a;
    --text: #ffffff;
    --text-muted: #888888;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(255, 215, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: linear-gradient(rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.92)), url('assets/main-bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    line-height: 1.6;
    max-width: 100vw;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.section-padding {
    padding: 8rem 0;
}

/* --- Utilities --- */
.text-gradient {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-text {
    text-shadow: var(--glow);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

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

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary);
}

/* === HAMBURGER MENU === */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1100;
    flex-shrink: 0;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-nav-overlay a {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover {
    color: var(--primary);
}

.mobile-nav-overlay .mobile-cta {
    margin-top: 1rem;
    background: var(--primary);
    color: #000;
    padding: 1rem 3rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 900;
}

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

.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;
    filter: brightness(0.4) contrast(1.1);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

.hero-content {
    max-width: 800px;
    width: 100%;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 2rem;
}

.hero-h1 {
    font-size: clamp(2.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

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

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 8px;
    background: var(--primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll 2s infinite ease-in-out;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* --- Services Grid --- */
.section-header {
    margin-bottom: 5rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

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

.service-card {
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.15), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* --- Grid Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Cursor (desktop only) --- */
#cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

#cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

@media (max-width: 992px) {
    #cursor, #cursor-ring { display: none !important; }
}

/* --- Calculator --- */
.calc-container {
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.calc-input {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1rem;
    color: #fff;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.calc-input:focus {
    border-color: var(--primary);
}

.calc-result {
    text-align: center;
    padding: 3rem;
}

.result-value {
    font-size: 4rem;
    font-family: 'Oswald';
    color: var(--primary);
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-grid .gallery-full {
    grid-column: span 2;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.gallery-grid .gallery-full img {
    height: 500px;
}

.gallery-grid .gallery-half img {
    height: 350px;
}

/* --- Footer / Contact --- */
.footer-card {
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
}

.footer-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: left;
    opacity: 0.8;
    font-size: 0.9rem;
}


/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* === TABLET (max 992px) === */
@media (max-width: 992px) {
    .nav-links { display: none !important; }
    .mobile-toggle { display: flex !important; }

    .calc-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .section-padding { padding: 6rem 0; }
}

/* === MOBILE (max 768px) === */
@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        min-height: 100vh;
    }

    .hero-h1 {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
        line-height: 1 !important;
    }

    .hero-desc {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem) !important;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    .section-header { margin-bottom: 3rem; }

    .service-card { padding: 2rem 1.5rem; }

    /* Calculadora mobile */
    .calc-container {
        padding: 2rem 1.5rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .input-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .calc-result { padding: 2rem 1rem; }
    .result-value { font-size: 3rem; }

    /* Gallery mobile — coluna única */
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    .gallery-grid .gallery-full {
        grid-column: span 1;
    }
    .gallery-grid .gallery-full img {
        height: 280px !important;
    }
    .gallery-grid .gallery-half img {
        height: 220px !important;
    }
    /* Compatibilidade com os inline styles existentes */
    .gallery-grid > div[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
    .gallery-grid > div img[style*="height: 500px"] {
        height: 260px !important;
    }
    .gallery-grid > div img[style*="height: 350px"] {
        height: 220px !important;
    }

    /* Planos: cancela a scale(1.05) do card destaque no mobile */
    .service-card[style*="transform: scale"] {
        transform: none !important;
    }

    /* Footer / contato */
    .footer-card {
        padding: 3rem 1.5rem !important;
        border-radius: 20px !important;
    }
    .footer-info-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    /* Botões de ação no footer */
    footer .btn {
        font-size: 1rem !important;
        padding: 1.1rem 2rem !important;
        width: 100%;
        justify-content: center;
    }
}

/* === SMALL MOBILE (max 480px) === */
@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }

    .hero-h1 {
        font-size: clamp(2.2rem, 9vw, 3rem) !important;
    }

    .hero-badge { font-size: 0.7rem; }

    .section-title { font-size: 1.8rem !important; }

    .service-card { padding: 1.5rem 1.2rem; }

    .calc-container { padding: 1.5rem 1rem; }

    .footer-card {
        padding: 2.5rem 1rem !important;
    }

    .scroll-indicator { display: none; }
}
