/* ============================================
   VT ENERGIA & ENGENHARIA - STYLE.CSS
   ============================================ */

:root {
    --color-orange: #ff6a13;
    --color-orange-dark: #e05a08;
    --color-orange-light: #ff8540;
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-dark-2: #2a2a2a;
    --color-gray-100: #f7f7f7;
    --color-gray-200: #ececec;
    --color-gray-300: #d0d0d0;
    --color-gray-500: #6b6b6b;
    --color-gray-700: #3a3a3a;
    --color-white: #ffffff;
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 36px rgba(255, 106, 19, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============== RESET ============== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============== TIPOGRAFIA ============== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.text-orange {
    color: var(--color-orange);
}

/* ============== BOTÕES ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-primary {
    background: var(--color-orange);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 106, 19, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-orange);
    border-color: var(--color-orange);
}

.btn-outline-dark:hover {
    background: var(--color-orange);
    color: var(--color-white);
}

.btn-dark {
    background: var(--color-black);
    color: var(--color-white);
    padding: 18px 32px;
}

.btn-dark:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
}

/* ============== HEADER ============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-black);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 0 32px 0 0;
}

.header-logo-wrapper {
    background: var(--color-white);
    padding: 10px 60px 10px 24px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    min-height: 130px;
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo img {
    height: 155px;
    width: auto;
    object-fit: contain;
}

/* Logo fallback */
.logo-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    width: 50px;
    height: 50px;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-vt {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.logo-sub {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 9px;
    color: var(--color-orange);
    letter-spacing: 2px;
    margin-top: 2px;
}

.header-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
}

.header-nav a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: var(--color-white);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--color-orange);
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-orange);
}

.btn-cta-header {
    padding: 14px 24px;
    font-size: 12px;
}

.header-right-actions {
    display: none;
}

.btn-orcamento-mobile {
    display: none;
}

.header-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.header-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-white);
    transition: var(--transition);
}

/* ============== HERO ============== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 230px 0 80px;
    overflow: hidden;
    background: var(--color-black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.3) 60%, transparent 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--color-gray-300);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compensa o header fixo ao chegar por link de outra página */
section[id] {
    scroll-margin-top: 80px;
}

/* ============== SECTION HEADER ============== */
.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-label-light {
    color: var(--color-orange);
}

.label-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--color-orange);
}

.section-title {
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--color-dark);
    text-transform: uppercase;
    line-height: 1.1;
}

.section-title-light {
    color: var(--color-white);
}

.section-header-right p {
    color: var(--color-gray-500);
    font-size: 15px;
    line-height: 1.7;
}

/* ============== SERVICES ============== */
.services {
    padding: 100px 0;
    background: var(--color-gray-100);
}

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

.service-card {
    background: var(--color-white);
    padding: 28px 18px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-orange);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.service-card p {
    font-size: 12px;
    color: var(--color-gray-500);
    line-height: 1.5;
}

/* ============== ABOUT ============== */
.about {
    padding: 100px 0;
    background: var(--color-black);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 6px;
    background: var(--color-orange);
}

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

.about-content {
    color: var(--color-white);
}

.about-text {
    color: var(--color-gray-300);
    font-size: 15px;
    line-height: 1.8;
    margin: 24px 0 28px;
    max-width: 480px;
}

.about-list {
    margin-bottom: 36px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--color-white);
    font-size: 15px;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--color-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.check-icon svg {
    width: 14px;
    height: 14px;
}

.about-image {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 60%;
    height: 8px;
    background: var(--color-orange);
    border-radius: 4px;
    z-index: 2;
}

.about-image-frame::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    width: 8px;
    height: 60%;
    background: var(--color-orange);
    border-radius: 4px;
    z-index: 2;
}

.about-image-frame img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    background: linear-gradient(135deg, #ff6a13, #1a1a1a);
}

.btn-saiba-mais {
    margin-top: 8px;
}

/* ============== PORTFOLIO ============== */
.portfolio {
    padding: 100px 0;
    background: var(--color-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 48px;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 1 / 1.1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.portfolio-overlay h4 {
    font-family: var(--font-display);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.portfolio-cta {
    text-align: center;
}

/* ============== CTA SECTION ============== */
.cta-section {
    padding: 50px 0;
    background: var(--color-orange);
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.cta-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cta-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.cta-icon svg {
    width: 100%;
    height: 100%;
}

.cta-text h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1.1;
}

.cta-description {
    color: var(--color-white);
    font-size: 14px;
    line-height: 1.6;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    padding-left: 24px;
}

/* ============== FOOTER ============== */
.footer {
    background: var(--color-black);
    color: var(--color-gray-300);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 48px;
    margin-bottom: 48px;
}

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

.footer-logo img {
    height: 100px;
    width: auto;
}

.footer-logo .logo-fallback {
    background: transparent;
}

.footer-logo .logo-vt {
    color: var(--color-white);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--color-gray-300);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-gray-700);
    border-radius: 6px;
    color: var(--color-gray-300);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-col h5 {
    font-family: var(--font-display);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--color-gray-300);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-orange);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-gray-300);
    font-size: 14px;
    line-height: 1.5;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-700);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray-500);
    font-size: 13px;
}

/* ============== RESPONSIVO ============== */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .header-nav ul {
        gap: 20px;
    }

    .header-nav a {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .header-right-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        grid-column: 3;
        grid-row: 1;
    }

    .btn-orcamento-mobile {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--color-orange);
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        padding: 8px 14px;
        border-radius: 6px;
        white-space: nowrap;
        text-decoration: none;
    }

    .btn-orcamento-mobile .btn-icon {
        display: inline-flex;
        align-items: center;
        width: 16px;
        height: 16px;
    }

    .btn-orcamento-mobile .btn-icon svg {
        width: 100%;
        height: 100%;
    }

    .header-toggle {
        display: flex;
    }

    .header-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        padding: 0 16px;
    }

    .header-nav.active {
        max-height: 500px;
        padding: 16px;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .btn-cta-header {
        display: none;
    }

    .header-container {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        padding-right: 16px;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-frame img {
        height: 320px;
    }

    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .cta-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .cta-description {
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.4);
        padding-left: 0;
        padding-top: 16px;
    }
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero {
        min-height: 500px;
        padding: 160px 0 60px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .header-logo-wrapper {
        padding: 10px 30px 10px 16px;
        min-height: 85px;
    }

    .header-logo img {
        height: 75px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .logo-vt {
        font-size: 22px;
    }

    .logo-sub {
        font-size: 7px;
    }
}

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

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

    .container {
        padding: 0 16px;
    }
}
