/*
    style.css
    Theme: 'YPF заправки в аргентине'
    Design System: Neomorphism
    Color Scheme: Tetradic
    Fonts: Poppins (Headings), Work Sans (Body)
*/

/* ----------------------------------------------------------------
   1. CSS Variables & Global Styles
------------------------------------------------------------------- */
:root {
    /* Color Palette (Tetradic) */
    --primary-color: #0077C8;   /* YPF Blue */
    --primary-color-dark: #005a9a;
    --secondary-color: #f7b733; /* Gold/Yellow */
    --accent-color: #00a896;    /* Teal */
    --danger-color: #e53935;     /* Red/Orange */

    /* Neomorphism & Neutrals */
    --bg-color: #eef2f7;
    --bg-color-dark: #2c3e50;
    --text-color: #363636;
    --text-color-light: #ffffff;
    --text-muted-color: #5a627a;
    --card-bg-color: #eef2f7;

    /* Shadows for Neomorphism */
    --neumorphic-shadow-light: -9px -9px 18px rgba(255, 255, 255, 0.9);
    --neumorphic-shadow-dark: 9px 9px 18px rgba(163, 177, 198, 0.6);
    --neumorphic-inset-shadow-light: inset 7px 7px 14px rgba(163, 177, 198, 0.6);
    --neumorphic-inset-shadow-dark: inset -7px -7px 14px rgba(255, 255, 255, 0.9);

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    /* Sizing & Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

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

/* ----------------------------------------------------------------
   2. Typography
------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
}

.title.is-1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.title.is-2 { font-size: clamp(2rem, 5vw, 3rem); }
.title.is-3 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.title.is-4 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { font-size: clamp(1rem, 1.5vw, 1.1rem); }

.section-title {
    margin-bottom: 3rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-weight: 700;
}

.section-dark .section-title,
.section-dark .label,
.section-dark .title {
    color: var(--text-color-light);
}

/* ----------------------------------------------------------------
   3. Header & Navigation
------------------------------------------------------------------- */
.navbar.is-fixed-top {
    background-color: rgba(238, 242, 247, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--neumorphic-shadow-dark);
}

.navbar-item {
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-fast);
}

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

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--card-bg-color);
        box-shadow: var(--neumorphic-inset-shadow-light);
    }
}


/* ----------------------------------------------------------------
   4. Global Components (Buttons, Inputs)
------------------------------------------------------------------- */
.button.button-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    padding: 1.5em 2.5em;
    box-shadow: var(--neumorphic-shadow-light), var(--neumorphic-shadow-dark);
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.button.button-primary:hover,
.button.button-primary:focus {
    color: var(--text-color-light);
    background-color: var(--primary-color-dark);
    box-shadow: var(--neumorphic-inset-shadow-light), var(--neumorphic-inset-shadow-dark);
    transform: translateY(2px);
}

.input, .textarea {
    background-color: var(--bg-color);
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorphic-inset-shadow-light), var(--neumorphic-inset-shadow-dark);
    transition: var(--transition-fast);
}

.input:focus, .textarea:focus {
    outline: none;
    box-shadow: var(--neumorphic-inset-shadow-light), var(--neumorphic-inset-shadow-dark), 0 0 0 2px var(--primary-color);
}

.section-dark .input,
.section-dark .textarea {
    background-color: var(--bg-color-dark);
    box-shadow: inset 5px 5px 10px #253544, inset -5px -5px 10px #33495f;
    color: var(--text-color-light);
}

.section-dark .input::placeholder,
.section-dark .textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}


/* ----------------------------------------------------------------
   5. Sections Styling
------------------------------------------------------------------- */
.section {
    padding: 4rem 1.5rem;
}

/* Hero Section */
.hero.is-fullheight {
    position: relative;
    color: var(--text-color-light);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
    background-attachment: fixed; /* Parallax effect */
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

.hero-title {
    color: var(--text-color-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-subtitle {
    color: var(--text-color-light);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}


/* Services Section & Cards */
.neumorphic-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorphic-shadow-light), var(--neumorphic-shadow-dark);
    transition: var(--transition-smooth);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.neumorphic-card:hover {
    transform: translateY(-8px);
    box-shadow: -12px -12px 24px rgba(255, 255, 255, 1), 12px 12px 24px rgba(163, 177, 198, 0.7);
}

.neumorphic-card .card-image {
    padding: 1rem;
}
.neumorphic-card .card-image img {
    border-radius: var(--border-radius-md);
    object-fit: cover;
    height: 250px;
    width: 100%;
}
.neumorphic-card .card-content {
    padding: 1.5rem 2rem;
    flex-grow: 1;
}

/* Dark Sections */
.section-dark {
    background-color: var(--bg-color-dark);
    color: var(--text-color-light);
}
.section-dark p {
    color: rgba(255, 255, 255, 0.85);
}
.neumorphic-card-dark {
    background: var(--bg-color-dark);
    box-shadow: 5px 5px 10px #253544, -5px -5px 10px #33495f;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

/* Mission Section */
.mission-text {
    padding-left: 2rem;
}
.neumorphic-image {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorphic-shadow-light), var(--neumorphic-shadow-dark);
    overflow: hidden;
}
.neumorphic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features (Timeline) */
.timeline {
    position: relative;
    margin: 2rem auto;
    padding: 2rem 0;
    max-width: 800px;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-bg-color);
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorphic-shadow-light), var(--neumorphic-shadow-dark);
}
.timeline-content .heading {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 21px;
    }
}

/* Gallery/Portfolio Section */
.neumorphic-image-hover {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorphic-shadow-light), var(--neumorphic-shadow-dark);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.neumorphic-image-hover:hover {
    transform: scale(1.05);
    box-shadow: -12px -12px 24px rgba(255, 255, 255, 1), 12px 12px 24px rgba(163, 177, 198, 0.7);
}
.neumorphic-image-hover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Partners Section */
.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}
.partner-logo {
    opacity: 0.7;
    transition: var(--transition-fast);
    filter: grayscale(100%);
}
.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* External Resources */
.resource-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--neumorphic-shadow-light), var(--neumorphic-shadow-dark);
    transition: var(--transition-smooth);
    height: 100%;
}
.resource-card:hover {
    transform: translateY(-5px);
}
.resource-card a {
    color: var(--primary-color);
    font-weight: 600;
}
.resource-card a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1rem;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    background-color: var(--card-bg-color);
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--neumorphic-shadow-light), var(--neumorphic-shadow-dark);
    cursor: pointer;
    transition: var(--transition-fast);
}
.faq-question.active, .faq-question:hover {
    color: var(--primary-color);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: var(--bg-color);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}
.faq-answer p {
    padding: 1.5rem;
    margin: 0;
}


/* ----------------------------------------------------------------
   6. Footer
------------------------------------------------------------------- */
.footer {
    background-color: var(--bg-color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem 2rem;
}
.footer .title {
    color: var(--text-color-light);
}
.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}
.footer a:hover {
    color: var(--secondary-color);
}
.footer .content p {
    color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------------
   7. Specific Pages (Success, Privacy, Terms)
------------------------------------------------------------------- */
.success-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--bg-color);
}
.success-content {
    background: var(--card-bg-color);
    padding: 3rem 4rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorphic-shadow-light), var(--neumorphic-shadow-dark);
}
.success-content .icon {
    font-size: 4rem;
    color: var(--accent-color);
}

.static-page-content {
    padding-top: 100px;
    padding-bottom: 4rem;
}

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

/* ----------------------------------------------------------------
   8. Animations & Utilities
------------------------------------------------------------------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

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