/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables
2.  Global & Base Styles
3.  Typography
4.  Buttons & Interactive Elements
5.  Header / Navbar
6.  Hero Section
7.  General Section Styling
8.  Card Component (Neomorphism)
    - Service Cards
    - Story Cards
    - Accolade Cards
    - Resource Cards
9.  Accordion (FAQ)
10. Contact Form
11. Footer
12. Specific Page Styles (Privacy, Success, etc.)
13. Responsive Design (Media Queries)
================================================
*/

/* 1. :root Variables */
:root {
    /* Bright Color Palette */
    --primary-color: #0057FF; /* YPF Blue */
    --secondary-color: #FFC107; /* YPF Yellow/Orange */
    --accent-color: #00B4D8; /* Bright Teal */
    --light-bg: #F0F2F5; /* Light grey for Neomorphism */
    --dark-bg: #212529;
    --text-color: #343a40;
    --text-light: #F8F9FA;
    --heading-color: #222222;
    --border-color: #dee2e6;

    /* Neomorphism Shadows */
    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(163, 177, 198, 0.6);
    --neumorphic-shadow-outset: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    --neumorphic-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Other Variables */
    --border-radius: 15px;
    --transition-speed: 0.3s ease;
}

/* 2. Global & Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6, .section-title, .hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

p.lead {
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* 4. Buttons & Interactive Elements */
.btn {
    font-family: var(--font-heading);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    border: none;
    box-shadow: var(--neumorphic-shadow-outset);
    transition: all var(--transition-speed);
    background-color: var(--light-bg);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover, .btn:focus {
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 4px 4px 8px rgba(0, 87, 255, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.9);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: inset 4px 4px 8px rgba(0, 68, 204, 0.6), inset -4px -4px 8px rgba(255, 255, 255, 0.7);
}

/* 5. Header / Navbar */
.navbar {
    background: rgba(240, 242, 245, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: background-color 0.3s ease-in-out;
}

.navbar .navbar-brand img {
    height: 40px;
}

.navbar .nav-link {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler {
    border: none;
    box-shadow: var(--neumorphic-shadow-outset);
}

.navbar-toggler:focus {
    box-shadow: var(--neumorphic-shadow-inset);
}

/* 6. Hero Section */
.hero-section {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.hero-title {
    font-size: 4rem;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #FFFFFF;
    max-width: 800px;
    margin: 1.5rem auto 2.5rem auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.btn-hero {
    background-color: var(--secondary-color);
    color: var(--heading-color);
    font-size: 1.1rem;
    padding: 15px 40px;
}
.btn-hero:hover {
    background-color: var(--secondary-color);
    color: var(--heading-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3), var(--neumorphic-shadow-outset);
}

/* 7. General Section Styling */
section {
    padding-top: 80px;
    padding-bottom: 80px;
    overflow: hidden;
}

section.bg-light {
    background-color: #f8f9fa !important;
}

/* 8. Card Component (Neomorphism) */
.card {
    border: none;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-outset);
    transition: all var(--transition-speed);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}

.card-image {
    width: 100%;
    padding: 1rem 1rem 0 1rem;
    align-self: center; /* Center container */
}

.card-image img {
    border-radius: calc(var(--border-radius) - 5px);
    object-fit: cover;
    width: 100%;
    margin: 0 auto;
}

.card-content, .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Service Cards */
.service-card .card-image {
    height: 200px; /* Fixed height for image container */
}
.service-card .card-image img {
    height: 100%;
}

/* Story Cards */
.story-card {
    text-align: left;
}
.story-card .card-image {
    height: 250px;
}
.story-card .card-image img {
    height: 100%;
}
.story-card .blockquote {
    font-size: 1rem;
    font-style: italic;
    margin-top: auto;
}
.story-card .blockquote-footer {
    margin-top: 1rem;
    font-style: normal;
    color: var(--primary-color);
}

/* Accolade Cards */
.accolade-card .card-body {
    justify-content: center;
    align-items: center;
}

/* Resource Cards */
.resource-card .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    margin-top: auto;
    align-self: center;
}
.resource-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: none;
}


/* 9. Accordion (FAQ) */
.accordion-item {
    background-color: var(--light-bg);
    border: none;
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
    box-shadow: var(--neumorphic-shadow-outset);
}
.accordion-header {
    border-radius: var(--border-radius);
}
.accordion-button {
    background-color: transparent;
    border: none;
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 1.1rem;
    border-radius: var(--border-radius) !important;
}
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: transparent;
    box-shadow: var(--neumorphic-shadow-inset);
}
.accordion-button:focus {
    box-shadow: none;
}
.accordion-body {
    padding: 1.5rem;
}

/* 10. Contact Form */
.contact-form-card {
    background-color: var(--light-bg);
}
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-control {
    background-color: var(--light-bg);
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: var(--neumorphic-shadow-inset);
    transition: var(--transition-speed);
}
.form-control:focus {
    background-color: var(--light-bg);
    color: var(--text-color);
    box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.btn-submit {
    width: 100%;
    max-width: 250px;
}

/* 11. Footer */
.footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.7);
}
.footer h6 {
    color: var(--text-light);
    font-family: var(--font-heading);
}
.footer hr {
    background-color: var(--primary-color) !important;
    opacity: 1;
}
.footer .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.footer .footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 12. Specific Page Styles (Privacy, Success, etc.) */
.page-content-wrapper {
    padding-top: 120px;
    padding-bottom: 60px;
}
.page-content-wrapper h1 {
    margin-bottom: 2rem;
}
.page-content-wrapper h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--light-bg);
}
.success-card {
    padding: 3rem;
    max-width: 600px;
}
.success-card h1 {
    color: var(--primary-color);
}

/* 13. Responsive Design (Media Queries) */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        background: var(--light-bg);
        border-radius: var(--border-radius);
        padding: 1rem;
        box-shadow: var(--neumorphic-shadow-inset);
    }
    .navbar .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}