/* style.css */

/* ---------------------------------- */
/* 1. CSS Variables (Theme Definition)
/* ---------------------------------- */
:root {
    /* Цветовая схема: Тетрада */
    --primary-color: #4A6D7C;      /* Глубокий сине-зеленый */
    --secondary-color: #F8B400;   /* Яркий золотисто-желтый */
    --accent-color-1: #C44536;    /* Насыщенный терракотово-красный */
    --accent-color-2: #7C9885;    /* Приглушенный шалфейно-зеленый */

    /* Нейтральные цвета */
    --dark-color: #272727;         /* Очень темный серый для текста */
    --medium-grey: #666666;       /* Средний серый */
    --light-grey: #f4f4f4;        /* Светло-серый фон для секций */
    --white-color: #ffffff;        /* Белый */
    
    /* Шрифты */
    --font-family-heading: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;

    /* Биоморфные радиусы */
    --border-radius-organic-1: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --border-radius-organic-2: 80% 20% 70% 30% / 50% 60% 40% 50%;
    --border-radius-smooth: 15px;

    /* Тени */
    --box-shadow-light: 0 8px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-heavy: 0 15px 35px rgba(42, 60, 78, 0.15);
    
    /* Переходы */
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ---------------------------------- */
/* 2. Global & Base Styles
/* ---------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--white-color);
}

body {
    font-family: var(--font-family-body);
    color: var(--dark-color);
    background-color: var(--white-color);
    line-height: 1.7;
    font-size: 1rem; /* 16px */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.title.is-1 { font-size: 3.5rem; }
.title.is-2 { font-size: 2.75rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }

.section .title.is-2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section .title.is-2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-smooth);
}

.subtitle {
    font-family: var(--font-family-body);
    font-weight: 400;
    color: var(--medium-grey);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--primary-color);
    transition: var(--transition-fast);
    font-weight: 500;
}

a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}

a.is-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}
a.is-link:hover {
    color: var(--accent-color-1);
    text-decoration: none;
}

.content p {
    margin-bottom: 1.5em;
}

/* ---------------------------------- */
/* 4. Layout & Helpers
/* ---------------------------------- */
.section {
    padding: 5rem 1.5rem;
}

.has-background-light {
    background-color: var(--light-grey) !important;
}
.has-background-dark {
    background-color: var(--dark-color) !important;
}
.has-text-light a {
    color: var(--light-grey);
}
.has-text-light a:hover {
    color: var(--white-color);
}

/* ---------------------------------- */
/* 5. Header & Navigation
/* ---------------------------------- */
.header .navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 0.5rem 0;
}

.header .navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow-light);
}

.site-logo {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.navbar-item {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-color);
}
.navbar-item:hover, .navbar-item.is-active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--white-color);
        box-shadow: var(--box-shadow-heavy);
        border-radius: 0 0 var(--border-radius-smooth) var(--border-radius-smooth);
    }
}

/* ---------------------------------- */
/* 6. Hero Section
/* ---------------------------------- */
.hero#hero {
    position: relative;
    color: var(--white-color);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero .title {
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem !important;
}

.hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------- */
/* 7. Buttons & Forms (Global)
/* ---------------------------------- */
.button {
    font-family: var(--font-family-heading);
    font-weight: 700;
    border: none;
    border-radius: var(--border-radius-organic-1);
    padding: 0.8em 2em;
    transition: var(--transition-slow);
    will-change: transform, box-shadow, border-radius;
    text-decoration: none;
}

.button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--box-shadow-heavy);
    border-radius: var(--border-radius-organic-2);
}

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

.button.is-primary:hover {
    background: var(--accent-color-1);
    color: var(--white-color);
}

.button.is-primary.is-outlined {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}
.hero .button.is-primary.is-outlined {
    border-color: var(--white-color);
    color: var(--white-color);
}

.hero .button.is-primary.is-outlined:hover,
.button.is-primary.is-outlined:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
}

.input, .textarea {
    border-radius: var(--border-radius-smooth);
    border: 2px solid #dbdbdb;
    box-shadow: none;
    transition: var(--transition-fast);
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(74, 109, 124, 0.25);
}

.contact-form-wrapper {
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--box-shadow-heavy);
    border: 1px solid var(--light-grey);
}

/* ---------------------------------- */
/* 8. Cards (Features, Blog, etc.)
/* ---------------------------------- */
.card {
    border-radius: var(--border-radius-smooth);
    box-shadow: var(--box-shadow-light);
    border: none;
    transition: var(--transition-slow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-heavy);
}

.card .card-image {
    width: 100%;
}
.card .card-image img {
    width: 100%;
    height: 250px; /* Фиксированная высота */
    object-fit: cover;
    object-position: center;
}

.card .card-content {
    text-align: left;
    flex-grow: 1; /* Позволяет контенту занимать все доступное пространство */
}

/* ---------------------------------- */
/* 9. Specific Section Styles
/* ---------------------------------- */

/* Sustainability Progress Bars */
.progress {
    height: 1.5rem !important;
    border-radius: var(--border-radius-smooth);
}
.progress::-webkit-progress-bar {
    background-color: #e0e0e0;
}
.progress.is-success::-webkit-progress-value { background: var(--accent-color-2); }
.progress.is-info::-webkit-progress-value { background: var(--primary-color); }
.progress.is-warning::-webkit-progress-value { background: var(--secondary-color); }

/* Customer Stories Slider */
.custom-slider-container .slide.card {
    text-align: left;
}
.custom-slider-container .media-content {
    text-align: left;
}
.custom-slider-container .is-rounded {
    border-radius: 50% !important;
}

/* External Resources */
.external-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.external-links-list li {
    margin: 1rem 0;
    font-size: 1.2rem;
}

/* Events Calendar */
.event-date-box {
    background-color: var(--accent-color-1);
    color: var(--white-color);
    border-radius: var(--border-radius-smooth);
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: var(--font-family-heading);
}
.event-date-box .month {
    font-size: 0.9rem;
    font-weight: 700;
}
.event-date-box .day {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.event-list .media {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}
.event-list .media:last-child {
    border-bottom: none;
}

/* Careers */
.career-listing {
    transition: var(--transition-fast);
    border-left: 5px solid transparent;
}
.career-listing:hover {
    border-left-color: var(--primary-color);
    box-shadow: var(--box-shadow-light);
}

/* FAQ Accordion */
.faq-accordion details {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}
.faq-accordion summary {
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    padding-right: 2rem;
}
.faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-accordion .content {
    padding-top: 1rem;
    color: var(--medium-grey);
}

/* ---------------------------------- */
/* 10. Footer
/* ---------------------------------- */
.footer {
    padding: 4rem 1.5rem;
    color: var(--light-grey);
}
.footer .title {
    color: var(--white-color);
}
.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer ul li {
    margin-bottom: 0.75rem;
}
.footer a {
    color: var(--light-grey);
    text-decoration: none;
}
.footer a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* ---------------------------------- */
/* 11. Page-Specific Styles
/* ---------------------------------- */
[data-barba-namespace="success"] .section,
[data-barba-namespace="privacy"] .section,
[data-barba-namespace="terms"] .section {
    padding-top: 150px;
    padding-bottom: 80px;
}
[data-barba-namespace="success"] .section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.title.has-text-success {
    color: var(--accent-color-2) !important;
}

/* ---------------------------------- */
/* 12. Page Transitions (Barba.js)
/* ---------------------------------- */
.barba-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary-color);
    z-index: 9999;
    transform: translateY(100%);
}

/* ---------------------------------- */
/* 13. Responsive Design
/* ---------------------------------- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }

    .title.is-1 { font-size: 2.5rem; }
    .title.is-2 { font-size: 2rem; }
    
    .columns.is-vcentered.is-desktop {
        flex-direction: column-reverse;
    }
    
    .columns.is-vcentered.is-desktop .column:first-child {
        margin-top: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}