/*
=================================================================
|   style.css for YPF Argentina Website                         |
|   -------------------------------------------------------     |
|   Table of Contents:                                          |
|   1.  :root & Global Styles                                   |
|   2.  Utility Classes (Container, Spacing, Effects)           |
|   3.  Header & Navigation                                     |
|   4.  Hero Section                                            |
|   5.  Card & Grid Components                                  |
|   6.  Specific Section Styles                                 |
|       - Features                                              |
|       - Services (Carousel)                                   |
|       - Methodology                                           |
|       - Events Calendar                                       |
|       - Blog                                                  |
|       - External Resources                                    |
|       - Contact Form                                          |
|   7.  Footer                                                  |
|   8.  Specific Page Styles (Success, Content Pages)           |
|   9.  Media Queries (Responsiveness)                          |
=================================================================
*/

/* 1. :root & Global Styles */
:root {
    /* Triad Color Scheme */
    --primary-color: #0078D4;   /* YPF Blue */
    --primary-darker: #005a9e;
    --secondary-color: #FFC300; /* Vibrant Yellow/Gold */
    --tertiary-color: #16213E;  /* Deep Navy */
    
    /* Neutral & Text Colors */
    --text-color-dark: #222222;
    --text-color-light: #FFFFFF;
    --text-color-muted: #555555;
    --bg-color-light: #F4F6F8;
    --bg-color-dark: #0A192F;
    --border-color: rgba(255, 255, 255, 0.2);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Sizing & Spacing */
    --header-height: 80px;
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--text-color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--tertiary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

ul {
    list-style: none;
}

/* 2. Utility Classes */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.section-bg-alt {
    background-color: var(--bg-color-light);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--tertiary-color);
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem auto;
    font-size: 1.1rem;
}

.cta-button, button[type="submit"] {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-darker));
    color: var(--text-color-light);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.4);
    text-decoration: none;
}

.cta-button:hover, button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.6);
    color: var(--text-color-light);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.section-overlay, .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(22, 33, 62, 0.6), rgba(10, 25, 47, 0.7));
    z-index: 1;
}

/* 3. Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-links li a {
    color: var(--text-color-dark);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--tertiary-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* 4. Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-color-light);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-color-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* 5. Card & Grid Components */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

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

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

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--tertiary-color);
}

.card-content h4 {
    font-size: 1.3rem;
    color: var(--tertiary-color);
}

.read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* 6. Specific Section Styles */

/* Features & Blog */
.features-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--tertiary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Services (Carousel) */
.services-carousel {
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color-light);
}
.services-carousel::-webkit-scrollbar { height: 8px; }
.services-carousel::-webkit-scrollbar-track { background: var(--bg-color-light); }
.services-carousel::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 10px; }

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(320px, 1fr);
    gap: 2rem;
}

/* Methodology */
#methodology .container.text-content-overlay {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

#methodology h2, #methodology p {
    color: var(--text-color-light);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Events Calendar */
.events-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.event-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    transition: all 0.3s ease;
}
.event-date {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-radius: 8px;
    padding: 10px 20px;
    text-align: center;
    font-weight: 700;
    flex-shrink: 0;
}
.event-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.event-date .day {
    display: block;
    font-size: 2rem;
    line-height: 1;
}
.event-details h4 { margin-bottom: 0.5rem; }
.event-details p { margin-bottom: 0; }

/* External Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}
.resource-card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    color: inherit;
}
.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    color: inherit;
}
.resource-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.resource-card p { margin-bottom: 1rem; color: var(--text-color-muted); }
.resource-url {
    font-weight: 600;
    color: var(--tertiary-color);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-form-container { padding: 2.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--tertiary-color); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.7);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
}
textarea { resize: vertical; }
.contact-info h3 { margin-top: 2rem; }
.contact-info h3:first-child { margin-top: 0; }

/* 7. Footer */
.site-footer {
    background-color: var(--tertiary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}
.footer-col p, .footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a { color: rgba(255, 255, 255, 0.8); transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--text-color-light); padding-left: 5px; }
.social-links li { display: block; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* 8. Specific Page Styles */

/* success.html */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--bg-color-light);
}
.success-content {
    background: var(--text-color-light);
    padding: 3rem 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.success-content h1 {
    color: var(--primary-color);
    font-size: 3rem;
}

/* Generic content pages (privacy, terms, about, contacts) */
.content-page {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
}
.content-page .container { max-width: 800px; }
.content-page h1 { font-size: 3rem; margin-bottom: 2rem; }
.content-page h2 { font-size: 2rem; margin-top: 2.5rem; }

/* 9. Media Queries (Responsiveness) */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        gap: 2rem;
    }
    .nav-links.active { left: 0; }
    .nav-links li a { font-size: 1.5rem; }
    
    .burger-menu { display: flex; }
    .burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    
    .event-item { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 576px) {
    .carousel-track { grid-auto-columns: minmax(280px, 1fr); }
    .footer-grid { text-align: center; }
    .footer-col h4::after { margin: -10px auto 1.5rem; left: 0; right: 0; }
    .success-content { padding: 2rem; }
}