/*
Theme Name: gudmung-seberg-theme
Theme URI: https://seberglaw.cekh.kiev.ua/
Author: Bohdan Hliadyk
Author URI: https://evidence.partners
Description: Професійна тема WordPress у скандинавському стилі для юридичної компанії Gudmung Seberg. Створена відповідно до ТЗ.
Version: 1.2.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gudmung-seberg
Tags: custom-menu, post-thumbnails, translation-ready
*/

/* --- Загальні налаштування --- */
body { font-family: 'Inter', sans-serif; background-color: #fff; color: #1A1A1A; margin: 0; font-size: 16px; line-height: 1.6; }
body.fullscreen-menu-is-open, body.modal-is-open { overflow: hidden; }
.container { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.content-container { max-width: 800px; }
.text-center { text-align: center; }

/* --- Хедер --- */
.site-header { background-color: #fff; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; position: relative; z-index: 1000; }
.site-branding a { display: flex; align-items: center; text-decoration: none; color: #1A1A1A; }
.site-logo { height: 50px; width: auto; margin-right: 15px; }
.site-title-text { font-family: 'Century Gothic', sans-serif; font-weight: 700; font-size: 22px; }
.site-branding { flex-shrink: 1; min-width: 0; }

/* --- Навігація --- */
.main-navigation { position: relative; }
.main-navigation ul { margin: 0; padding: 0; list-style: none; display: flex; }
.main-navigation li { margin-left: 35px; }
.main-navigation a { text-decoration: none; color: #1A1A1A; font-weight: 500; font-size: 16px; transition: color 0.2s ease-in-out; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: #172B3E; }

/* --- Повноекранне меню --- */
.fullscreen-menu-trigger { display: none; text-decoration: none; color: #1A1A1A; font-weight: 600; font-size: 16px; z-index: 99999; position: relative; }
.fullscreen-menu-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(4, 30, 50, 0.98); z-index: 99998; display: flex; justify-content: center; align-items: center; text-align: center; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s ease; }
.fullscreen-menu-container.is-open { visibility: visible; opacity: 1; }
.fullscreen-menu-close { position: absolute; top: 30px; right: 30px; background: none; border: none; font-size: 40px; color: #fff; cursor: pointer; line-height: 1; }
.fullscreen-navigation ul { list-style: none; padding: 0; margin: 0; }
.fullscreen-navigation li { margin-bottom: 20px; }
.fullscreen-navigation a { color: #fff; text-decoration: none; font-size: 28px; font-weight: 600; transition: color 0.3s ease; }
.fullscreen-navigation a:hover { color: #8ed1fc; }


/* --- Футер --- */
.site-footer { background-color: #f8f9fa; color: #495057; padding: 60px 0; margin-top: 80px; font-size: 15px; }
.footer-widgets-wrapper { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid #dee2e6; align-items: start; }
.footer-widget-about .footer-logo-link { display: flex; align-items: center; text-decoration: none; margin-bottom: 15px; }
.footer-widget-about .footer-logo { height: 30px; margin-right: 10px; }
.footer-widget-about .footer-site-title { font-family: 'Century Gothic', sans-serif; font-size: 20px; font-weight: 700; color: #1A1A1A; }
.footer-description { color: #6c757d; margin-bottom: 20px; }
.widget-title { font-family: 'Century Gothic', sans-serif; font-size: 18px; font-weight: 700; color: #1A1A1A; margin-top: 0; margin-bottom: 20px; }
.footer-navigation, .footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-navigation li, .footer-contact-list li { margin-bottom: 10px; }
.footer-navigation a, .footer-contact-list a { text-decoration: none; color: #495057; }
.footer-navigation a:hover, .footer-contact-list a:hover { color: #041E32; text-decoration: underline; }
.site-info-wrapper { display: flex; justify-content: space-between; align-items: center; }
.site-info { color: #6c757d; font-size: 14px; }
.footer-social-links a { display: inline-block; margin-left: 20px; color: #6c757d; }
.footer-social-links a:hover { color: #041E32; }
.footer-social-links svg { width: 20px; height: 20px; }


/* --- Загальні елементи --- */
.button { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 15px 35px; border-radius: 4px; transition: all 0.3s ease; border: 2px solid transparent; }
.button-primary { background-color: #041E32; color: #fff; border-color: #041E32; }
.button-primary:hover { background-color: #172B3E; border-color: #172B3E; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.button-secondary { background-color: transparent; color: #041E32; border-color: #041E32; }
.button-secondary:hover { background-color: #041E32; color: #fff; }
.section-title { font-family: 'Century Gothic', sans-serif; font-size: 36px; font-weight: 700; margin-top: 0; margin-bottom: 25px; color: #1A1A1A; }
.page-header { background-color: #f8f9fa; padding: 60px 0; text-align: center; margin-bottom: 60px; }
.page-title { font-family: 'Century Gothic', sans-serif; font-size: 48px; font-weight: 700; color: #041E32; margin: 0; }

/* --- Головна сторінка --- */
.hero-section { background-color: #fdfdfd; text-align: center; padding: 140px 0; }
.hero-title { font-family: 'Century Gothic', sans-serif; font-size: 52px; font-weight: 700; margin-top: 0; margin-bottom: 20px; color: #041E32; }
.hero-subtitle { font-size: 20px; max-width: 680px; margin: 0 auto 40px auto; line-height: 1.7; color: #1A1A1A; }
.about-us-section { padding: 100px 0; background-color: #fff; }
.about-us-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-us-column p { font-size: 17px; line-height: 1.7; margin-bottom: 30px; }
.column-title { font-family: 'Century Gothic', sans-serif; font-size: 24px; margin-top: 0; margin-bottom: 20px; }
.principles-list { list-style: none; padding: 0; margin: 0; }
.principles-list li { font-size: 16px; margin-bottom: 15px; }
.principles-list li strong { color: #041E32; }
.services-section { padding: 100px 0; background-color: #f8f9fa; }
.services-section .section-title { margin-bottom: 60px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-item { display: block; background-color: #fff; border: 1px solid #e9ecef; padding: 40px; text-decoration: none; color: #1A1A1A; transition: all 0.3s ease-in-out; }
.service-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07); border-color: #172B3E; }
.service-title { font-family: 'Century Gothic', sans-serif; font-size: 22px; font-weight: 700; margin-top: 0; margin-bottom: 15px; color: #041E32; }
.service-link { font-weight: 600; color: #1A1A1A; transition: color 0.3s ease; }
.service-item:hover .service-link { color: #172B3E; }
.contact-section { padding: 100px 0; }
.contact-section .section-title { margin-bottom: 60px; }
.contact-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; margin-bottom: 60px; }
.contact-column .contact-icon svg { color: #041E32; width: 32px; height: 32px; margin-bottom: 15px; }
.contact-column a { color: #1A1A1A; text-decoration: none; font-size: 17px; line-height: 1.7; }
.contact-column a:hover { text-decoration: underline; }
.social-links-wrapper { text-align: center; }
.social-links-title { font-size: 18px; color: #757575; margin-top: 0; margin-bottom: 20px; font-weight: 500; }
.social-links a { display: inline-block; margin: 0 15px; text-decoration: none; color: #1A1A1A; }
.social-links svg { width: 24px; height: 24px; }
.social-links a:hover { color: #041E32; }


/* --- Шаблон сторінки "Про нас" --- */
.about-page-content .entry-content { margin-bottom: 40px; }
.contact-cta-section { padding-bottom: 80px; }
.team-section-on-about { padding: 100px 0; background-color: #f8f9fa; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.attorney-card-text-only { display: block; background-color: #fff; border: 1px solid #e9ecef; padding: 40px; text-decoration: none; color: #1A1A1A; transition: all 0.3s ease-in-out; }
.attorney-card-text-only:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07); border-color: #172B3E; }
.attorney-card-text-only .attorney-name { font-family: 'Century Gothic', sans-serif; font-size: 22px; font-weight: 700; margin-top: 0; margin-bottom: 5px; color: #041E32; }
.attorney-card-text-only .attorney-card-position { font-size: 15px; color: #757575; display: block; margin-bottom: 15px; }
.attorney-card-text-only .attorney-link { font-weight: 600; color: #1A1A1A; transition: color 0.3s ease; }
.attorney-card-text-only:hover .attorney-link { color: #172B3E; }
.career-section-on-about { padding: 100px 0; background-color: #fff; }
.career-subtitle { font-size: 18px; max-width: 600px; margin: 0 auto 30px auto; color: #6c757d; }
.career-buttons .button { margin: 0 10px; }

/* --- Сторінка профілю адвоката --- */
.attorney-profile { padding-top: 60px; padding-bottom: 60px; }
.attorney-profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: flex-start; }
.attorney-profile-photo-wrapper img { width: 100%; height: auto; display: block; border-radius: 8px; }
.attorney-profile-name { font-family: 'Century Gothic', sans-serif; font-size: 42px; margin-top: 0; margin-bottom: 10px; }
.attorney-profile-position { font-size: 18px; color: #757575; margin-top: 0; margin-bottom: 40px; display: block; }
.profile-section { margin-bottom: 40px; }
.profile-section-title { font-size: 22px; font-family: 'Century Gothic', sans-serif; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid #e9ecef; }
.profile-bio { /* Лінія тепер тут не потрібна, вона на .profile-section-title */ }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li { margin-bottom: 10px; }
.contact-info-list a { color: #172B3E; text-decoration: none; font-weight: 500; }
.contact-info-list a:hover { text-decoration: underline; }

/* --- Сторінка архіву / Блог --- */
.archive-post-item { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid #dee2e6; }
.archive-post-item:last-child { border-bottom: none; margin-bottom: 0; }
.archive-post-item .entry-title { margin-top: 0; margin-bottom: 5px; }
.archive-post-item .entry-title a { text-decoration: none; color: #1A1A1A; }
.archive-post-item .entry-title a:hover { color: #041E32; }
.archive-post-item .entry-meta { font-size: 14px; color: #6c757d; margin-bottom: 15px; }
.archive-post-item .entry-summary p { margin: 0; }
.the-posts-navigation .nav-links { display: flex; justify-content: space-between; border-top: 1px solid #dee2e6; padding-top: 40px; margin-top: 40px; }
.the-posts-navigation a { text-decoration: none; color: #041E32; font-weight: 600; }

/* --- Сторінка окремої публікації та послуги --- */
.single-post-article .entry-meta, .single-services .entry-meta { font-size: 14px; color: #6c757d; margin-top: -5px; }
.single-post-article .entry-content, .single-services .entry-content { font-size: 18px; line-height: 1.85; }
.single-post-article .entry-content p, .single-services .entry-content p { margin-bottom: 1.75em; }
.single-post-article .entry-content blockquote, .single-services .entry-content blockquote { margin: 40px 0; padding-left: 25px; border-left: 3px solid #041E32; font-size: 20px; font-style: italic; color: #495057; }
.single-post-article .entry-content a, .single-services .entry-content a { color: #041E32; text-decoration: underline; }
.single-post-article .entry-content a:hover, .single-services .entry-content a:hover { text-decoration: none; }

/* --- Модальне вікно --- */
.contact-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(4, 30, 50, 0.9); z-index: 99998; display: flex; justify-content: center; align-items: center; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0.3s ease; }
.contact-modal-overlay.is-visible { visibility: visible; opacity: 1; }
.contact-modal-content { background-color: #fff; padding: 40px; border-radius: 4px; max-width: 500px; width: 90%; text-align: center; }
.contact-modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 40px; color: #fff; cursor: pointer; line-height: 1; }
.contact-modal-title { font-family: 'Century Gothic', sans-serif; font-size: 28px; margin-top: 0; margin-bottom: 10px; }
.contact-modal-subtitle { font-size: 16px; color: #6c757d; margin-top: 0; margin-bottom: 30px; }
.contact-modal-messengers { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.messenger-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #1A1A1A; }
.messenger-link svg { margin-bottom: 10px; }
.messenger-link span { font-weight: 500; }

/* --- Адаптивність --- */
@media (max-width: 992px) {
    .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .site-header, .site-info-wrapper, .container, .hero-section, .about-us-section, .services-section, .contact-section { padding-left: 20px; padding-right: 20px; }
    .main-navigation, .footer-contact-button { display: none; }
    .fullscreen-menu-trigger { display: block; }
    .site-title-text { display: none; }
    .hero-title, .page-title, .entry-title-single { font-size: 36px; }
    .attorney-profile-name { font-size: 32px; }
    .hero-subtitle { font-size: 18px; }
    .section-title { font-size: 30px; }
    .about-us-section, .services-section, .contact-section, .page-header, .team-section-on-about, .career-section-on-about { padding: 60px 0; }
    .about-us-content-grid, .services-grid, .contact-columns, .team-grid { grid-template-columns: 1fr; }
    .page-header { margin-bottom: 40px; }
    .contact-column { margin-bottom: 20px; }
    .footer-widgets-wrapper { grid-template-columns: 1fr; gap: 40px; text-align: left; }
    .footer-widget-about .footer-logo-link { justify-content: flex-start; }
    .site-info-wrapper { flex-direction: column; align-items: flex-start; }
    .footer-social-links { margin-top: 20px; margin-left: 0; }
    .about-page-content .entry-content { margin-bottom: 60px; }
    .contact-cta-section { padding-bottom: 60px; }
    .single-attorney-article .page-header { margin-bottom: 20px; }
    .attorney-profile-grid { grid-template-columns: 1fr; }
    .attorney-profile-photo-wrapper { max-width: 100%; margin: 0 0 30px 0; }
    .attorney-profile-photo-wrapper img { aspect-ratio: unset; height: auto; border-radius: 4px; }
    .attorney-profile-details, .attorney-profile-details .profile-section-title, .attorney-profile-details .contact-info-list { text-align: left; }
}