/* --- Variables & Reset --- */
:root {
    --brand-red: #D32F2F; 
    --brand-red-hover: #b71c1c;
    --brand-blue: #00b4d8;
    --brand-blue-hover: #0096c7;
    --bg-dark-nav: #222222; 
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #5a5a5a;
    --border-color: #e0e0e0;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

/* --- Utility Classes --- */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.text-red { color: var(--brand-red); }
.text-blue { color: var(--brand-blue); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem !important; }
.is-hidden { display: none !important; }

/* --- Page Loader --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.flame-loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--brand-red);
    border-bottom-color: var(--brand-blue);
    border-radius: 50%;
    animation: spin-bounce 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin-bounce {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%; 
    z-index: 1000;
    background-color: var(--bg-dark-nav); 
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.brand-logo {
    height: 85px; 
    width: auto;
    transition: var(--transition-smooth);
    display: block; 
}

.navbar.scrolled .brand-logo {
    height: 45px; 
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

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

.nav-links a {
    color: #ffffff; 
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--brand-red);
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.btn-whatsapp:hover {
    background-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.3);
}

.pulse-icon {
    width: 10px;
    height: 10px;
    background-color: var(--brand-blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.btn-whatsapp:hover .pulse-icon {
    background-color: #ffffff;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 180, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    position: relative;
    text-align: center;
    padding: 0 5%;
    background: url('images/landing.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
}

.hero-slogan {
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-red);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* --- Trust Banner --- */
.trust-banner {
    background-color: var(--bg-alt);
    padding: 3rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.trust-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 900px;
}

.trust-badge {
    height: 90px;
    width: auto;
}

.trust-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.trust-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Services Grid --- */
.services-section {
    padding: 7rem 5%;
    background-color: var(--bg-light);
}

.services-section .section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    flex: 1 1 calc(33.333% - 2rem); 
    background-color: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--brand-red);
}

.service-num {
    color: var(--brand-red);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- About Section --- */
.about-section {
    padding: 7rem 5%;
    background-color: var(--bg-dark-nav);
    color: #fff;
    border-top: 2px solid var(--brand-red);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.about-badge {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-hover));
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 8px solid rgba(255,255,255,0.1);
    text-align: center;
}

.badge-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.badge-num {
    font-size: 2rem;
    font-weight: 800;
}

.about-content {
    flex: 1 1 600px;
}

.about-content .section-title {
    color: #fff;
}

.about-subtitle {
    color: var(--brand-red);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-style: italic;
}

.about-text {
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-contact-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}

.about-link:hover {
    color: var(--brand-blue);
    border-bottom: 1px solid var(--brand-blue);
}


/* --- Testimonials Section --- */
.testimonials-section {
    padding: 7rem 5%;
    background-color: var(--bg-alt);
}

.testimonials-grid {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 1 1 calc(50% - 1.5rem);
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    border: 1px solid var(--border-color);
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(211, 47, 47, 0.1);
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-body {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--brand-blue);
    font-weight: 600;
}


/* --- Why Gas Section --- */
.why-gas-section {
    padding: 7rem 5%;
    background-color: var(--bg-light); /* Changed to light to alternate from grey testimonials */
    border-top: 1px solid var(--border-color);
}

.why-gas-section .section-header {
    margin-bottom: 5rem;
}

.insights-container {
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.insights-data {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.data-point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.data-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
    min-width: 110px;
}

.data-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.data-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.case-study-card {
    flex: 1 1 500px;
    background-color: var(--bg-alt); /* Case study card greyed to pop against white bg */
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.case-study-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--brand-red);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.case-study-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.case-study-context, .case-study-solution {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
}

.case-study-context strong, .case-study-solution strong {
    color: var(--text-dark);
}

.case-study-results h4 {
    margin: 1.5rem 0 0.8rem;
    color: var(--text-dark);
}

.case-study-results ul {
    list-style-type: none;
}

.case-study-results li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.case-study-results li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: bold;
}

/* --- Conversational Form & Success State --- */
.quote-section {
    padding: 7rem 5%;
    background-color: var(--bg-alt); /* Alternating background color */
}

.quote-container {
    max-width: 900px;
    width: 100%;
}

#form-state {
    transition: opacity 0.4s ease;
}

.quote-container .section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.conversational-form {
    font-size: 2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 300;
}

.form-sentence {
    margin-bottom: 1.5rem;
}

.conversational-form input, 
.conversational-form textarea {
    background: transparent;
    border: none;
    border-bottom: 2px dashed var(--border-color);
    color: var(--brand-blue);
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    padding: 0 10px;
    margin: 0 5px;
    outline: none;
    transition: var(--transition-smooth);
    width: auto;
    min-width: 250px;
}

#service { width: 400px; }
#message { 
    display: block; 
    width: 100%; 
    margin-top: 1rem; 
    border-bottom: 2px dashed var(--border-color);
    resize: vertical;
}

.conversational-form input::placeholder, 
.conversational-form textarea::placeholder {
    color: #cccccc;
    font-weight: 300;
}

.conversational-form input:focus, 
.conversational-form textarea:focus {
    border-bottom-color: var(--brand-blue);
    border-bottom-style: solid;
}

.form-action {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-message {
    font-size: 1rem;
    font-weight: bold;
}
.form-message.error { color: var(--brand-red); }

/* Success Screen Styling */
.success-state {
    text-align: center;
    padding: 4rem 0;
    animation: fadeScale 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.success-icon {
    font-size: 5rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
    animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0);
    display: inline-block;
}

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

@keyframes pop {
    to { transform: scale(1); }
}

/* --- Dynamic Dark Footer --- */
.footer-section {
    background-color: var(--bg-dark-nav); 
    color: #ffffff;
    padding: 5rem 5% 2rem;
    border-top: 4px solid var(--brand-red);
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-info p {
    color: #cccccc;
    max-width: 300px;
}

.footer-contact h3 {
    font-size: 1.2rem;
    color: var(--brand-red);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--brand-blue);
    transition: width 0.3s ease;
}

.footer-contact:hover h3::after {
    width: 100%;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: #eeeeee;
}

.footer-contact a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-contact a:hover {
    color: var(--brand-blue);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    color: #888888;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.developer-credit a {
    color: var(--brand-red);
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.developer-credit a:hover {
    color: var(--brand-blue);
}

/* --- Scroll Animations --- */
.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-anim.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive Design & Mobile Menu --- */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%; 
        max-width: 400px;
        height: 100vh;
        background-color: var(--bg-dark-nav);
        flex-direction: column;
        justify-content: center;
        align-items: center; 
        padding: 2rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        overflow-y: auto;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        white-space: nowrap; 
    }
    
    .btn-whatsapp {
        white-space: nowrap; 
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .service-card {
        flex: 1 1 calc(50% - 2rem);
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-contact-links {
        justify-content: center;
    }

    .insights-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .conversational-form {
        font-size: 1.5rem;
    }
    .conversational-form input {
        min-width: 200px;
    }
    #service { width: 300px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .trust-content { flex-direction: column; text-align: center; gap: 1.5rem; }
    
    .service-card {
        flex: 1 1 100%;
        padding: 2rem;
    }

    .testimonial-card {
        flex: 1 1 100%;
        padding: 2rem;
    }

    .conversational-form {
        font-size: 1.2rem;
    }
    .conversational-form input, #service {
        width: 100%;
        min-width: 100%;
        display: block;
        margin: 0.5rem 0 1.5rem 0;
        border-bottom-style: solid;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}