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

:root {
    --bg-deep: #050505;
    --bg-elevated: #151515;
    --primary-red: #C51B1D;
    /* Extracted from Logo */
    --accent-red: #D42023;
    --text-main: #FFFFFF;
    --text-muted: #999999;
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
    /* Glow to make black/red logo visible */
    transition: var(--transition);
}

.logo img:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition);
    text-transform: uppercase;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.8rem;
    transition: var(--transition);
}

.cta-button-nav {
    background: var(--primary-red);
    padding: 12px 25px;
    border-radius: 2px;
    color: white !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(197, 27, 29, 0.3);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-deep);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-deep) 10%, transparent 100%),
        linear-gradient(to top, var(--bg-deep) 0%, transparent 40%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2070') no-repeat center center/cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero-subtitle {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
    letter-spacing: 4px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 500px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 25px;
}

.btn-premium.solid,
.cta-button-nav {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(197, 27, 29, 0.3);
    border-radius: 2px;
}

.btn-premium {
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: var(--transition);
    border: none;
    display: inline-block;
}

.btn-premium.outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Services --- */
.services {
    padding: 150px 0;
}

.section-label {
    display: block;
    text-align: center;
    color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-elevated);
    padding: 110px 40px 60px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: #1a1a1a;
    border-color: var(--primary-red);
    transform: translateY(-10px);
}

.card-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #FFFFFF;
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 30px;
    z-index: 0;
}

.card-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-red);
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* --- Locations (Refined) --- */
.locations {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--bg-deep), #0a0a0a);
}

.location-wrapper {
    display: flex;
    align-items: center;
    gap: 100px;
}

.location-content {
    flex: 1;
}

.location-img {
    flex: 1;
    height: 500px;
    background: url('https://images.unsplash.com/photo-1590674000180-255964267204?auto=format&fit=crop&q=80&w=2070') no-repeat center center/cover;
    position: relative;
    border: 1px solid var(--glass-border);
}

.location-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 20px solid var(--bg-deep);
    mix-blend-mode: multiply;
}

.location-list {
    list-style: none;
    margin-top: 40px;
}

.location-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.2rem;
    font-weight: 300;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-list li span {
    color: var(--primary-red);
    font-weight: 700;
}

/* --- Contact Section --- */
.contact {
    padding: 150px 0;
}

.contact-card {
    background: var(--bg-elevated);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border: 1px solid var(--glass-border);
}

.contact-info-panel {
    background: var(--primary-red);
    padding: 80px;
    color: white;
}

.contact-info-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.contact-form-panel {
    padding: 80px;
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
}

/* --- Footer --- */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

footer .logo {
    margin-bottom: 30px;
}

.footer-logo {
    height: 120px;
    width: auto;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
}

.social-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-red);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .location-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 25px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-deep);
        padding: 120px 40px;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
        align-items: flex-start;
        gap: 30px;
    }

    .nav-links .cta-button-nav {
        white-space: nowrap;
        width: auto;
        padding: 15px 30px;
        margin-top: 10px;
    }

    .nav-links.active {
        right: 0;
    }

    /* Refinamento das especialidades no mobile */
    .service-card {
        padding: 90px 30px 50px;
    }

    .card-num {
        font-size: 3.5rem;
        top: 15px;
        left: 20px;
    }

    .location-img {
        height: 300px;
    }

    /* Correção da Seção de Contato que quebrava no mobile */
    .contact {
        padding: 80px 0;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 40px 20px;
    }

    .contact-info-panel h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .contact-methods p {
        word-break: break-all;
        font-size: 0.9rem;
    }

    .contact-card {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .contact-info-panel h2 {
        font-size: 1.4rem;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 35px 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .btn-premium {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}