/*
Theme Name: AutoYrist
Theme URI: https://new.autoyrist.com
Author: AutoYrist Team
Author URI: https://new.autoyrist.com
Description: Створення нового кастомного сайту для юридичного сервісу AutoYrist.
Version: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autoyrist-theme
*/

/* --- Base Body Styles --- */
body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #000000;
    background-color: #FFFFFF;
}

body.overflow-hidden {
    overflow: hidden;
}

/* --- Layout & Container --- */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
}

/* --- Reusable Section Title --- */
.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
}

/* --- Header --- */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #F8F9FA;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 40px;
    display: block;
}

.site-header__navigation-area {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-navigation li {
    margin-left: 40px;
}

.main-navigation a {
    text-decoration: none;
    color: #000000;
}

/* --- General Button Style --- */
.button {
    display: inline-block;
    padding: 9px 20px;
    background-color: #005A9C;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.header-cta {
    margin-left: 40px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0;
    text-align: center;
}

.hero-section__title {
    font-size: 56px;
    margin-bottom: 20px;
}

.hero-section__subtitle {
    font-size: 20px;
    color: #60757D;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* --- How It Works Section --- */
.how-it-works-section {
    padding: 80px 0;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.how-it-works-item__title {
    margin-bottom: 15px;
}

.how-it-works-item__text {
    color: #60757D;
}

/* --- Services Section --- */
.services-section {
    background-color: #F8F9FA;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #FFFFFF;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

.service-card__title {
    margin-bottom: 15px;
}

.service-card__description {
    color: #60757D;
    flex-grow: 1;
    margin-bottom: 30px;
}

/* --- Success Stories Section --- */
.success-stories-section {
    padding: 80px 0;
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    border: 1px solid #F8F9FA;
    padding: 30px;
    border-radius: 8px;
}

.case-card__title {
    margin-bottom: 15px;
}

.case-card__story {
    color: #60757D;
    margin-bottom: 20px;
}

.case-card__result {
    font-weight: 700;
}

/* --- CTA Section --- */
.cta-section {
    background-color: #F8F9FA;
    padding: 80px 0;
    text-align: center;
}

.cta-section__text {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    color: #60757D;
}

/* --- Footer --- */
.site-footer {
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid #F8F9FA;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.site-footer__left {
    display: flex;
    align-items: flex-end;
}

.footer-logo img {
    height: 30px;
    margin-right: 20px;
    position: relative;
    top: 10px;
}

.copyright {
    color: #60757D;
    font-size: 14px;
    margin: 0;
}

.ua-accent {
    color: #005A9C;
    font-weight: 700;
}

.site-footer__right {
    text-align: right;
}

.address {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.footer-socials {
    margin-top: 5px;
}

.footer-socials a {
    text-decoration: none;
    color: #000000;
    margin-left: 20px;
}

.footer-privacy-link {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #60757D;
    font-size: 14px;
}

/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.mobile-navigation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

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

.mobile-navigation li {
    margin-bottom: 30px;
}

.mobile-navigation a {
    text-decoration: none;
    color: #000000;
    font-size: 24px;
    font-weight: 700;
}

/* --- Modal Window --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #cccccc;
}

.modal-title {
    margin-bottom: 30px;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-button {
    display: block;
    padding: 20px;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.modal-button:hover {
    background-color: #F8F9FA;
}

.modal-phone {
    font-size: 14px;
    color: #60757D;
}

.modal-phone a {
    color: #000000;
    text-decoration: none;
}

/* --- Page & Post Content --- */
.main-content {
    padding: 80px 0;
}

.entry-header, .page-header {
    text-align: center;
    margin-bottom: 60px;
}

.entry-title, .page-title {
    font-size: 42px;
}

.entry-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Blog Archive --- */
.posts-grid {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 40px 20px;
    margin: 0 -20px;
    border-bottom: 1px solid #F8F9FA;
    transition: background-color 0.3s ease;
}

.article-card:hover {
    background-color: #F8F9FA;
}

.article-card__title {
    margin-bottom: 10px;
}

.article-card__excerpt {
    color: #60757D;
}

.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination .page-numbers {
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #F8F9FA;
    border-radius: 8px;
    text-decoration: none;
    color: #000000;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: #005A9C;
    color: #FFFFFF;
    border-color: #005A9C;
}

/* --- Responsive Styles --- */

/* Планшети (до 992px) */
@media (max-width: 992px) {
    .services-grid,
    .success-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобільні телефони (до 768px) */
@media (max-width: 768px) {
    .site-header__navigation-area {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }
    
    .page-header {
        margin-bottom: 40px;
    }

    .section-title, .entry-title, .page-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .hero-section {
        padding: 60px 0;
    }

    .hero-section__title {
        font-size: 36px;
    }

    .hero-section__subtitle {
        font-size: 18px;
    }

    .how-it-works-grid,
    .services-grid,
    .success-stories-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-content {
        padding: 40px 0;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .site-footer__left, .site-footer__right {
        text-align: center;
    }
    
    .site-footer__left {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-logo img {
        margin: 0;
    }
}