/* =====================================================
   BARTHO ASSESSORIA - Styles
   Technology + Sustainability Theme
   ===================================================== */

/* ----- CSS Reset & Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ----- CSS Variables ----- */
:root {
    /* Tech/Corporate Blues */
    --primary-blue: #0A2540;
    --accent-blue: #0066CC;
    --light-blue: #E8F4FD;

    /* Environmental Greens */
    --primary-green: #16A34A;
    --accent-green: #22C55E;
    --light-green: #DCFCE7;

    /* Neutrals */
    --dark: #1A1A2E;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* ----- Typography ----- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-blue);
}

ul {
    list-style: none;
}

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

/* ----- Utility Classes ----- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-blue {
    color: var(--accent-blue);
}

.text-green {
    color: var(--primary-green);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    color: var(--white);
}

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

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ----- Header ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.nav {
    display: none;
}

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

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-green));
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.header-cta {
    display: none;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--dark);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dark);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Navigation */
.nav.mobile-open {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    animation: slideIn 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.nav.mobile-open .nav-list {
    flex-direction: column;
    gap: 0;
}

.nav.mobile-open .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--light-gray);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(13, 49, 88, 0.8) 50%, rgba(22, 163, 74, 0.75) 100%),
        url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(22, 163, 74, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 102, 204, 0.3) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-title .text-blue {
    color: #60A5FA;
}

.hero-title .text-green {
    color: #4ADE80;
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    color: var(--light-gray);
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ----- Sections ----- */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--light-gray);
}

.section-gradient {
    background: linear-gradient(135deg, var(--primary-blue), #0D3158);
    color: var(--white);
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

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

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--light-blue), var(--light-green));
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.section-badge-light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ----- About Section ----- */
.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--gray);
}

.about-text strong {
    color: var(--dark);
}

.mvv-grid {
    display: grid;
    gap: 1.5rem;
}

.mvv-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mvv-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mvv-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.mvv-icon-green {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
}

.mvv-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.mvv-text {
    color: var(--gray);
    line-height: 1.7;
}

.values-list {
    text-align: left;
    color: var(--gray);
}

.values-list li {
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* ----- Services Section ----- */
.services-grid {
    display: grid;
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Service Image */
.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* Service Content */
.service-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-featured {
    border: 2px solid var(--primary-green);
}

.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-icon-blue {
    background: var(--light-blue);
}

.service-icon-blue svg {
    stroke: var(--accent-blue);
}

.service-icon-green {
    background: var(--light-green);
}

.service-icon-green svg {
    stroke: var(--primary-green);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-list {
    margin-bottom: 1.5rem;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray);
    font-size: 0.9375rem;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.service-card-featured .service-list li::before {
    background: var(--primary-green);
}

.service-cta {
    font-weight: 600;
    color: var(--accent-blue);
}

.service-cta:hover {
    color: var(--primary-blue);
}

/* ----- Differentials Section ----- */
.differentials-grid {
    display: grid;
    gap: 1.5rem;
}

.differential-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.differential-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.differential-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.differential-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.differential-text {
    color: var(--gray);
    font-size: 0.9375rem;
}

/* ----- Contact Section ----- */
.contact-grid {
    display: grid;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-card-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-green));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.contact-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--white);
    transition: var(--transition);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
}

select.form-input option {
    background: var(--dark);
    color: var(--white);
}

/* ----- Footer ----- */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-company {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links ul,
.footer-contact {
    font-size: 0.9375rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ----- Floating WhatsApp ----- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ----- Scroll Reveal Animation ----- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-ctas {
        flex-direction: row;
    }

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

    .mvv-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .nav {
        display: flex;
    }

    .header-cta {
        display: inline-flex;
    }

    .mobile-toggle {
        display: none;
    }

    .hero-title {
        font-size: 4rem;
    }

    .differentials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .differential-card:nth-child(4) {
        grid-column: 1 / 2;
    }

    .differential-card:nth-child(5) {
        grid-column: 2 / 3;
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .section {
        padding: 6rem 0;
    }
}