/*
* File: style.css
* Website: YPF Argentina
* Design: Glassmorphism, Block UI, Analogous Colors, Scroll-driven Animations
*/

/* ---------------------------------- */
/*          1. CSS Variables          */
/* ---------------------------------- */
:root {
    /* Color Palette (Analogous - Blue Base) */
    --primary-color: #0072CE; /* YPF Blue */
    --secondary-color: #00A9E0; /* Lighter Sky Blue */
    --accent-color: #FFC72C; /* Yellow Accent (like Shell/YPF logo details) */
    --dark-blue: #003B6D;
    
    /* Text Colors */
    --text-dark: #222222;
    --text-light: #F5F5F5;
    --text-muted: #555555;
    
    /* Backgrounds */
    --bg-light: #F4F7F9;
    --bg-dark: #1a202c;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);

    /* Fonts */
    --font-headings: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Spacing & Radii */
    --section-padding: 6rem 1.5rem;
    --card-padding: 1.5rem;
    --border-radius: 16px;
    --navbar-height: 5rem;
}

/* ---------------------------------- */
/*          2. Base & Reset           */
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ---------------------------------- */
/*        3. Typography & Links       */
/* ---------------------------------- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--text-dark);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.title.is-1 { font-size: 3.5rem; }
.title.is-2 { font-size: 2.5rem; margin-bottom: 2rem !important; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }

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

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

section {
    padding: var(--section-padding);
}

/* ---------------------------------- */
/*        4. Header & Navigation      */
/* ---------------------------------- */
.header.is-fixed-top .navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: var(--navbar-height);
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.navbar-burger {
    color: var(--text-dark);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}

/* ---------------------------------- */
/*          5. Hero Section           */
/* ---------------------------------- */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

#hero .title {
    color: var(--text-light); /* Enforced white color */
    font-weight: 800;
    font-size: 4rem;
}

#hero .subtitle {
    color: var(--text-light); /* Enforced white color */
    font-weight: 400;
}

/* ---------------------------------- */
/*       6. Global Components         */
/* ---------------------------------- */
/* --- Buttons --- */
.button {
    font-family: var(--font-headings);
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    border: none;
    padding: 1em 2em;
}

.button.is-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.button.is-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 114, 206, 0.3);
}

.button.is-link.is-outlined {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.button.is-link.is-outlined:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}


/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    padding: var(--card-padding);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* --- Card Content & Image Centering --- */
.card {
    display: flex;
    flex-direction: column;
    text-align: left; /* Default text alignment */
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card .card-image {
    margin: calc(-1 * var(--card-padding));
    margin-bottom: var(--card-padding);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
    height: 200px; /* Fixed height for image container */
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

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

.card .card-content {
    padding: 0; /* Remove bulma padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card .card-content .content {
    flex-grow: 1;
}

/* For cards that need centered text */
.card.has-text-centered {
    align-items: center;
    text-align: center;
}

.card.has-text-centered .card-content {
    padding: 1.5rem;
}

.card.has-text-centered .card-image {
    margin: 0;
    margin-bottom: 1.5rem;
    height: auto;
    width: 100%;
}


/* ---------------------------------- */
/*      7. Section-Specific Styles    */
/* ---------------------------------- */

/* --- Success Stories --- */
#success-stories .media-left {
    margin-right: 1.5rem;
}
#success-stories .image img {
    border: 3px solid var(--primary-color);
}

/* --- Gallery --- */
#gallery .column {
    padding: 0.5rem;
}
#gallery figure {
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 100%;
}
#gallery img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
#gallery figure:hover img {
    transform: scale(1.1);
}

/* --- External Resources --- */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.resource-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.resource-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.resource-item .title a {
    color: var(--dark-blue);
    text-decoration: none;
}
.resource-item .title a:hover {
    text-decoration: underline;
}
.resource-item .description {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.resource-item .resource-url {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}


/* --- Contact Form --- */
#contact .glass-card {
    padding: 2.5rem;
}
#contact .label {
    color: var(--text-dark);
    font-weight: 500;
}
#contact .input, #contact .textarea {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.3s ease;
}
#contact .input:focus, #contact .textarea:focus {
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 0.125em rgba(0, 114, 206, 0.25);
}

/* ---------------------------------- */
/*          8. Footer                 */
/* ---------------------------------- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 1.5rem 2rem;
}

.footer .title {
    color: var(--text-light);
}

.footer a {
    color: var(--text-light);
    font-weight: 400;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer .content p {
    color: rgba(255,255,255,0.7);
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ---------------------------------- */
/*          9. Static Pages           */
/* ---------------------------------- */
/* For success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--bg-light);
    padding: 2rem;
}
.success-page-container .icon {
    color: var(--primary-color);
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

/* For terms.html and privacy.html */
.static-page-content {
    padding-top: calc(var(--navbar-height) + 3rem);
    padding-bottom: 4rem;
    min-height: 100vh;
}

.static-page-content .content h1,
.static-page-content .content h2,
.static-page-content .content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ---------------------------------- */
/*     10. Responsive Design          */
/* ---------------------------------- */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 4rem 1rem;
    }
    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    #hero .title { font-size: 2.8rem; }
    
    .columns.is-multiline .column {
        margin-bottom: 1.5rem;
    }
    
    .footer .columns {
        text-align: center;
    }
}