/*
Theme Name: Iustitia Premium
Theme URI: https://raf.am
Author: RAF.
Author URI: https://raf.am
Description: A premium, custom-built WordPress theme for the law firm "IUSTITIA PER IUS". Features a distinctive overlapping logo, a native hero slider, and full customizer support without plugins.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options
Text Domain: iustitia-premium-theme
*/

/*--------------------------------------------------------------
# Global Styles
--------------------------------------------------------------*/
/* Variables are now handled by twilight.css and Customizer */
:root {
    --header-height: 100px;
    --logo-height: 80px;
    --shadow-soft: 0 5px 20px rgba(0,0,0,0.05);
}

html, body {
    overflow-x: clip; /* clip prevents scroll but allows position: sticky to work */
    width: 100%;
	background:#fff8f8;
}

body.menu-open {
    overflow: hidden;
}

:root {
    --layout-width-px: 1200px;
}

.container {
    max-width: var(--layout-max-width, var(--layout-width-px, 1200px));
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.site-header {
    position: relative;
    width: 100%;
    background: var(--background-color);
    z-index: 10000;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* Modern Glass Effect */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sticky State */
.site-header.header-scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.95); /* Slight transparency if bg is white */
}

.site-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10005;
    transform: translateZ(0);
}

body.has-fixed-header {
    padding-top: var(--header-offset, 0px);
}

/* Header Main Area */
.header-main {
    width: 100%;
    padding: 0;
    background: #fff6ef;
    transition: padding 0.3s ease;
    position: relative;
    z-index: auto;
}

.site-header.header-scrolled .header-main {
    padding: 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 24px;
    min-width: 0;
}

.desktop-nav {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    min-width: 0;
}

.desktop-nav-left {
    justify-content: flex-end;
}

.desktop-nav-right {
    justify-content: flex-start;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav-left ul,
.desktop-nav-right ul {
    width: 100%;
}

.desktop-nav-left ul {
    justify-content: flex-end;
}

.desktop-nav-right ul {
    justify-content: flex-start;
}

.desktop-nav ul li {
    margin: 0;
    list-style: none;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    padding: 10px 0;
    position: relative;
    display: flex; /* Apply flex to all links */
    align-items: center; /* Center content vertically */
    height: 100%; /* Ensure consistent height */
}

.desktop-nav ul li a:hover {
    color: var(--secondary-color);
}

/* Modern Underline Animation */
.desktop-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.desktop-nav ul li a:hover::before {
    width: 100%;
}

/* Dropdown Caret for Desktop */
.desktop-nav ul li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.desktop-nav ul li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menus (Desktop) */
.desktop-nav ul li {
    position: relative;
}

.desktop-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-color);
    box-shadow: var(--shadow-soft);
    min-width: 350px;
    z-index: 999;
    padding: 10px 0;
    flex-direction: column; /* Vertical list for dropdown */
    gap: 0;
    border-top: 2px solid var(--secondary-color);
    /* Ensure the caret is visible if it goes outside the box (though default is visible) */
}

/* Caret for the Dropdown Container */
.desktop-nav ul ul::before {
    content: '';
    position: absolute;
    bottom: 100%; /* Position right above the container */
    left: 20px; /* Align with the parent item somewhat */
    border: 8px solid transparent;
    border-bottom-color: var(--secondary-color); /* Match the top border */
    pointer-events: none; /* Let clicks pass through if it overlaps anything */
}

.desktop-nav ul li:hover > ul {
    display: flex;
}

.desktop-nav ul ul li {
    margin: 0;
    width: 100%;
}

.desktop-nav ul ul li a {
    padding: 10px 20px;
    text-transform: none;
    font-size: 0.80rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: block;
}

.desktop-nav ul ul li a::after {
    display: none; /* No underline animation for dropdown items */
}

.topbar-slogan {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.85;
    font-weight: 500;
    line-height: 1.3;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin: 0;
    min-width: 120px;
    max-width: 240px;
    height: auto;
    transition: all 0.3s ease;
    margin-top: -24px;
    margin-bottom: -48px;
    position: relative;
    z-index: 9;
}

.site-header.header-scrolled .site-branding {
    min-width: 100px;
    max-width: 100px;
    margin-top: -10px !important;
    margin-bottom: 0 !important;
}

.site-header.header-scrolled .site-branding .custom-logo {
    max-height: 64px;
    transition: all 0.3s ease;
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding-top: 0;
}

.site-branding .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: var(--logo-height, 80px);
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Hide Mobile Elements on Desktop */
.mobile-only, .menu-toggle {
    display: none;
}

/* Old Main Navigation Styles - keep for mobile styling reference, or cleanup? */
/* We will re-use main-navigation for mobile only now */

/* Header Top Bar Styles */
.header-top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    position: relative;
    z-index: auto;
    overflow: visible;
    transition: all 0.3s ease;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: visible;
}
.topbar-col {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    flex: 1 1 0;
}
.topbar-col-left  { justify-content: flex-start; }
.topbar-col-center { justify-content: center; }
.topbar-col-right {
    justify-content: flex-end;
    position: relative;
    z-index: auto;
    overflow: visible;
}
.topbar-col a,
.header-contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
}
.topbar-col a:hover,
.header-contact-info a:hover {
    color: var(--secondary-color);
}
/* Legacy contact-info class kept for widget backward compat */
.header-contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}
/* Contact items (left column) */
.contact-item {
    display: inline-flex;
    align-items: center;
}
.contact-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.contact-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

/* Top Bar icon-links (right column) */
.topbar-icon-links {
    display: flex;
    list-style: none;
    gap: 14px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.topbar-icon-links li {
    margin: 0;
}
.topbar-icon-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s, opacity 0.3s;
    opacity: 0.85;
}
.topbar-icon-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}
.topbar-icon-links i {
    font-size: 16px;
    line-height: 1;
}

/* Language switcher (Polylang) in top bar */
.topbar-lang-switcher {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    align-items: center;
}
.topbar-lang-switcher li {
    margin: 0;
}
.topbar-lang-switcher a,
.topbar-lang-switcher span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    opacity: 0.75;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.2s;
}
.topbar-lang-switcher a:hover {
    opacity: 1;
}
.topbar-lang-switcher .current-lang a,
.topbar-lang-switcher .current-lang span {
    opacity: 1;
    font-weight: 700;
}
.topbar-lang-switcher img {
    width: 18px;
    height: auto;
    vertical-align: middle;
}
.topbar-lang-switcher li + li::before {
    content: '|';
    opacity: 0.35;
    margin-right: 6px;
}
/* Custom dropdown (flags work, unlike native <select>) */
.topbar-lang-custom-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    z-index: 12;
}
.topbar-lang-dd-icon {
    font-size: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}
/* Chevron on wrapper */
.topbar-lang-custom-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    opacity: 0.7;
    line-height: 1;
    transition: transform 0.2s;
}
.topbar-lang-custom-dropdown.is-open::after {
    transform: rotate(180deg);
}
/* === has-icon mode: ul always out of flow, toggle visibility === */
.topbar-lang-custom-dropdown.has-icon .topbar-lang-switcher--dd {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10020;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: var(--primary-color, #62480D);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 4px 0;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: opacity 0.15s, visibility 0.15s;
}
.topbar-lang-custom-dropdown.has-icon .topbar-lang-switcher--dd li {
    display: flex;
}
.topbar-lang-custom-dropdown.has-icon.is-open .topbar-lang-switcher--dd {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* === no-icon mode: current-lang inline as trigger, list drops on open === */
.topbar-lang-custom-dropdown:not(.has-icon) .topbar-lang-switcher--dd {
    display: flex;
    flex-direction: column;
}
.topbar-lang-custom-dropdown:not(.has-icon) .topbar-lang-switcher--dd li {
    display: none;
}
.topbar-lang-custom-dropdown:not(.has-icon) .topbar-lang-switcher--dd li.current-lang {
    display: flex;
}
.topbar-lang-custom-dropdown:not(.has-icon).is-open .topbar-lang-switcher--dd {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10020;
    background: var(--primary-color, #62480D);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 4px 0;
    min-width: 130px;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.topbar-lang-custom-dropdown:not(.has-icon).is-open .topbar-lang-switcher--dd li {
    display: flex;
}

/* Shared open-state item styles */
.topbar-lang-custom-dropdown.is-open .topbar-lang-switcher--dd li a,
.topbar-lang-custom-dropdown.is-open .topbar-lang-switcher--dd li span,
.topbar-lang-custom-dropdown.has-icon .topbar-lang-switcher--dd li a,
.topbar-lang-custom-dropdown.has-icon .topbar-lang-switcher--dd li span {
    padding: 7px 14px;
    width: 100%;
    opacity: 0.85;
    white-space: nowrap;
    gap: 6px;
}
.topbar-lang-custom-dropdown.is-open .topbar-lang-switcher--dd li a:hover,
.topbar-lang-custom-dropdown.has-icon .topbar-lang-switcher--dd li a:hover {
    opacity: 1;
    background: rgba(255,255,255,0.08);
}
/* Hide separator in dropdown mode */
.topbar-lang-switcher--dd li + li::before {
    display: none;
}

.social-links-menu {
    display: flex;
    list-style: none;
    gap: 14px;
    margin: 0;
    padding: 0;
}
.social-links-menu li {
    margin-left: 0;
    margin: 0;
}
.social-links-menu a {
    color: #fff;
    text-decoration: none;
}

/* Mobile Menu Overlay */
/* legacy overlay (unused) */
.mobile-menu-overlay {
    display: none;
}

/*--------------------------------------------------------------
# Hero Slider Section
--------------------------------------------------------------*/
.hero-slider-section {
    position: relative;
    background-color: var(--background-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    min-height: var(--slider-height, 620px);
}


/* Mobile Header & Menu */
    .mobile-header {
        display: none;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 72px;
        padding: 10px 0;
        box-sizing: border-box;
        gap: 16px;
    }

    .burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 44px;
        height: 42px;
        background: rgba(255,255,255,0.88);
        border: 1px solid rgba(196, 145, 26,0.14);
        border-radius: 10px;
        padding: 0 11px;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(17,31,58,0.08);
        transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }

.burger:hover {
    background: #fff;
    border-color: rgba(196,168,112,0.38);
    box-shadow: 0 14px 28px rgba(17,31,58,0.12);
    transform: translateY(-1px);
}

.burger__line,
.burger > span:not(.screen-reader-text) {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.burger__line--mid,
.burger > span:not(.screen-reader-text):nth-last-child(2) {
    width: 72%;
}

.burger[aria-expanded=\"true\"] .burger__line--mid,
.burger[aria-expanded=\"true\"] > span:not(.screen-reader-text):nth-last-child(2) {
    opacity: 0;
    width: 100%;
}

.burger[aria-expanded=\"true\"] .burger__line--top,
.burger[aria-expanded=\"true\"] > span:not(.screen-reader-text):nth-last-child(3) {
    transform: translateY(6px) rotate(45deg);
    width: 100%;
}

.burger[aria-expanded=\"true\"] .burger__line--bot,
.burger[aria-expanded=\"true\"] > span:not(.screen-reader-text):nth-last-child(1) {
    transform: translateY(-6px) rotate(-45deg);
    width: 100%;
}

.mobile-logo a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.mobile-logo .custom-logo,
.mobile-menu__logo .custom-logo {
    width: var(--logo-mobile-width, 110px);
    height: auto;
    max-width: 100%;
}

.mobile-menu {
    display: none;
}

.mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,24,38,0.28);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
}

.mobile-menu__panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(390px, 92vw);
    height: 100dvh;
    background: #fffaf4;
    border-left: 1px solid rgba(196, 145, 26,0.08);
    box-shadow: -24px 0 60px rgba(10,20,38,0.18);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 26px;
    box-sizing: border-box;
    will-change: transform;
    padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    margin: -18px -18px 14px;
    padding: 16px 18px 12px;
    background: #fffaf4;
    border-bottom: 1px solid rgba(196, 145, 26,0.08);
    z-index: 2;
}

.mobile-menu__logo a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(196, 145, 26,0.1);
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.mobile-menu__close:hover {
    background: #fff;
    border-color: rgba(196,168,112,0.36);
    transform: translateY(-1px);
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 32px;
}

.mobile-menu__list .menu-item {
    padding: 0;
    margin: 0;
    list-style: none;
    flex: 0 0 auto;
}

.mobile-menu__list > .menu-item + .menu-item {
    border-top: 1px solid rgba(196, 145, 26,0.08);
}

.mobile-menu__list .menu-item > a,
.mobile-menu__list .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1d2d42;
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-size: 0.98rem;
    line-height: 1.35;
    cursor: pointer;
}

.mobile-menu__list .menu-item > a:hover {
    color: var(--secondary-color);
}

.mobile-menu__list .current-menu-item > a,
.mobile-menu__list .current-menu-parent > a,
.mobile-menu__list .current-menu-ancestor > a {
    color: var(--secondary-color);
}

.mobile-menu__list .menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
}

.mobile-menu__list .menu-item-has-children > a {
    width: auto;
    min-width: 0;
}

.mobile-menu__list .menu-item-has-children > a::after {
    display: none;
}

.mobile-menu__list .submenu-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border: 1px solid rgba(196, 145, 26,0.1);
    border-radius: 12px;
    background: #fff;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    box-shadow: 0 6px 16px rgba(17,31,58,0.06);
}

.mobile-menu__list .submenu-toggle:hover {
    background: #fff;
    border-color: rgba(196, 145, 26,0.16);
}

.mobile-menu__list .menu-item-has-children.active > .submenu-toggle {
    background: rgba(196,168,112,0.14);
    border-color: rgba(196,168,112,0.28);
}

.mobile-menu__list .submenu-toggle .arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease, margin 0.2s ease;
    margin-top: -3px;
}

.mobile-menu__list .menu-item-has-children.active > .submenu-toggle .arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.mobile-menu__list .submenu,
.mobile-menu__list .sub-menu {
    list-style: none;
    grid-column: 1 / -1;
    padding: 2px 0 10px 14px;
    margin: 0;
    display: none;
    background: none;
    border-left: 1px solid rgba(196, 145, 26,0.08);
}

.mobile-menu__list .sub-menu .menu-item,
.mobile-menu__list .submenu .menu-item {
    border: 0;
}

.mobile-menu__list .sub-menu a,
.mobile-menu__list .submenu a {
    display: block;
    min-height: 0;
    padding: 10px 0;
    font-size: 0.93rem;
    font-weight: 500;
    color: #4b596f;
    line-height: 1.45;
}

.mobile-menu__list .sub-menu a:hover,
.mobile-menu__list .submenu a:hover,
.mobile-menu__list .sub-menu .current-menu-item > a,
.mobile-menu__list .submenu .current-menu-item > a {
    color: var(--secondary-color);
}

.mobile-menu__list .menu-item.has-children.active > .submenu,
.mobile-menu__list .menu-item-has-children.active > .sub-menu,
.mobile-menu__list .menu-item-has-children.active > .submenu {
    display: block;
}

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

.mobile-menu.is-open .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__logo .custom-logo-link,
.mobile-menu__close,
.mobile-menu__list a,
.mobile-menu__list button {
    outline-offset: 3px;
}

/* Prevent body scroll when mobile menu is open (iOS friendly) */
body.menu-open {
    overflow: hidden;
    touch-action: none;
    height: 100%;
    overscroll-behavior: contain;
}

html.menu-open {
    overflow: hidden;
    height: 100%;
}

@supports (padding: max(0px)) {
    .mobile-menu__panel {
        padding-bottom: max(26px, env(safe-area-inset-bottom, 0px));
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn.btn-primary {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

@media (max-width: 1024px) {
    .site-header,
    .header-main {
        overflow-x: clip;
    }
    .desktop-nav,
    .site-branding {
        display: none !important;
    }
    .mobile-header {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
    .header-main .container {
        gap: 0;
        min-height: 72px;
        padding: 0 16px;
    }
    .header-main{
        padding-top:0;
        padding-bottom:0;
    }

    .topbar-col{
        flex: unset;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        min-height: 64px;
        padding: 8px 0;
    }
    .mobile-menu__panel {
        width: 100vw;
        padding-left: 16px;
        padding-right: 16px;
    }
    .mobile-menu__top {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .mobile-menu__list .menu-item > a,
    .mobile-menu__list .submenu-toggle {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        min-height: 22px;
        padding: 8px 0;
    }
    .header-top-bar .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 22px;
        gap: 8px;
    }
    .header-main .container{
        padding: 0 14px;
    }
    .topbar-col {
        flex: 0 1 auto;
        gap: 8px 12px;
    }
    .topbar-col--hide-mobile {
        display: none !important;
    }
    /* Mobile: text labels are hidden by default, but can be enabled per item */
    .contact-label {
        display: none;
    }
    .contact-item--show-text-mobile .contact-label {
        display: inline-block;
        font-size: 0.8rem;
        line-height: 1.3;
    }
    /* Hide entire item on mobile when flag is set */
    .contact-item--hide-mobile {
        display: none !important;
    }
    .contact-item a,
    .topbar-icon-links a {
        gap: 0;
    }
    .contact-item--show-text-mobile a {
        gap: 6px;
    }
    .contact-icon,
    .topbar-icon-links i {
        font-size: 18px;
    }
    .social-links-menu {
        justify-content: flex-end;
    }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs {
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-color, #333);
}
.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
}
.breadcrumbs__item:not(:last-child)::after {
    content: '›';
    margin-left: 4px;
    opacity: 0.5;
}
.breadcrumbs__item a {
    color: var(--primary-color, #62480D);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs__home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.breadcrumbs__home-icon {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
}
.breadcrumbs__home-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.breadcrumbs__item a:hover {
    color: var(--secondary-color, #c4a870);
    text-decoration: underline;
}
.breadcrumbs__item [aria-current="page"] {
    opacity: 0.7;
}

/*--------------------------------------------------------------
# Front Page Hero Slider & Modal
--------------------------------------------------------------*/
.hero-slider {
    position: relative;
    width: 100%;
    min-height: var(--slider-height, 620px);
    overflow: hidden;
}

.hero-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}

.hero-track.no-transition {
    transition: none;
}

.slide {
    position: relative;
    width: 100%;
    height: auto;
    min-height: var(--slider-height, 620px);
    flex: 0 0 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 80px 0;
    justify-content: center;
    overflow: hidden;
}

.slide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.hero-slider .slide-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 52px;
    padding: 0 26px;
    font-size: 16px;
    line-height: 1.1;
}

.hero-slider .slide-actions .btn .play-icon {
    display: inline-flex;
    margin-right: 8px;
}

.hero-banner {
    position: relative;
    min-height: var(--slider-height, 620px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: #1a1a2e;
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scaleX(1);
    transform-origin: center;
}

.hero-banner--bg-flipped::before {
    transform: scaleX(-1);
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    pointer-events: none;
}

.hero-banner__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: var(--layout-max-width, 1200px);
    margin: 0 auto;
    padding: 60px 24px;
    align-items: center;
}

.hero-banner__left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-banner__logo img {
    display: block;
    width: auto;
    max-height: 80px;
}

.hero-banner__heading {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-banner__subheading {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-banner__text {
    max-width: 520px;
    color: rgba(255,255,255,.7);
    font-size: clamp(.9rem, 1.5vw, 1.05rem);
    line-height: 1.65;
}

.hero-banner__text p {
    margin: 0 0 .6em;
}

.hero-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-banner__btn {
    display: inline-block;
    padding: 13px 32px;
    color: #fff;
    background: var(--primary-color, #c4a870);
    border-radius: 4px;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    transition: background .22s, color .22s, transform .15s;
}

.hero-banner__btn:hover {
    color: var(--primary-color, #c4a870);
    background: #fff;
    transform: translateY(-2px);
}

.hero-banner__right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hvs {
    width: 100%;
    max-width: 560px;
    overflow: hidden;
}

.hvs__track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

.hvs__slide {
    display: flex;
    flex: 0 0 100%;
    min-width: 100%;
    flex-direction: column;
    gap: 10px;
}

.hvs[data-effect="slide"] .hvs__track {
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hvs[data-effect="fade"] .hvs__track {
    display: grid;
    grid-template-columns: 1fr;
    transform: none !important;
}

.hvs[data-effect="fade"] .hvs__slide {
    grid-area: 1 / 1;
    flex: none;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hvs[data-effect="fade"] .hvs__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.hvs__thumb {
    transition: opacity .3s ease;
}

.hvs__thumb.hvs__thumb--loading {
    opacity: 0;
}

.hvs__media {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.hvs__thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    cursor: pointer;
}

.hvs__thumb {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .25s;
}

.hvs__thumb-wrap:hover .hvs__thumb {
    opacity: .8;
}

.hvs__thumb-wrap:focus-visible {
    outline: 3px solid var(--primary-color, #c4a870);
    outline-offset: 3px;
}

.hvs__play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.hvs__play-btn svg {
    width: 64px;
    height: 45px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
    transition: transform .2s;
}

.hvs__thumb-wrap:hover .hvs__play-btn svg {
    transform: scale(1.1);
}

.hvs__iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.hvs__iframe-wrap:not([hidden]) {
    display: block;
}

.hvs__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hvs__slide-title {
    margin: 0;
    color: rgba(255,255,255,.85);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

.hvs__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.hvs__arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}

.hvs__arrow:hover {
    background: rgba(255,255,255,.35);
}

.hvs__dots {
    display: flex;
    gap: 7px;
}

.hvs__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: transparent;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.hvs__dot--active {
    background: #fff;
    border-color: #fff;
}

.hvs[data-count="1"] .hvs__nav {
    display: none;
}

@media (max-width: 900px) {
    .hero-banner__inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 20px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        min-height: var(--slider-height-mobile, 520px);
    }
}

@media (max-width: 480px) {
    .hero-banner__inner {
        padding: 36px 16px;
    }
}

.front-services {
    padding: 64px 0 80px;
    background: #f7f8fb;
}

.front-services__header {
    text-align: center;
    margin-bottom: 24px;
}
.front-services__title {
    margin: 0;
    font-size: 28px;
    color: var(--primary-color);
}
.front-services__desc {
    margin: 8px 0 0;
    color: #555;
}

.front-services .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

.front-services .service-card {
    display: flex;
    flex: 0 1 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.front-services .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(117, 87, 15,0.10);
}

.front-services .service-card__image {
    width: 100%;
    background: #f4f4f4;
}

.front-services .service-card__image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.front-services .service-card__body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.front-services .service-card__title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    text-align: left;
}

.front-services .service-card__desc {
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    flex: 1;
    text-align: left;
}

.front-services .service-card__actions {
    margin-top: auto;
    text-align: left;
}

.front-services .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.2s ease, transform 0.2s ease;
}
.link-arrow__icon {
    display: inline-block;
    transition: transform 0.2s ease;
}
.link-arrow:hover {
    color: var(--secondary-color);
}
.link-arrow:hover .link-arrow__icon {
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .front-services .service-card {
        flex-basis: calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 680px) {
    .front-services .service-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.front-about {
    padding: 70px 0;
    background: #fff6ef;
}
.front-about__inner {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 14px;
}
.front-about__title {
    margin: 0;
    font-size: 32px;
    color: var(--primary-color);
}
.front-about__subtitle {
    margin: 0;
    font-size: 18px;
    color: var(--secondary-color);
}
.front-about__content {
    color: #444;
    line-height: 1.7;
}

.front-about__actions {
    margin-top: 28px;
}

.front-about .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.front-about .link-arrow__icon {
    font-size: 1.4em;
}

.front-contact {
    padding: 80px 0;
    background: radial-gradient(circle at top left, rgba(196,168,112,0.08), transparent 45%), #ffffff;
}
.front-contact__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 18px;
}
.front-contact__title {
    margin: 0;
    font-size: 34px;
    color: var(--primary-color);
}
.front-contact__subtitle {
    margin: 0;
    font-size: 17px;
    color: #4a5568;
}

.front-vg {
    padding: 80px 0;
    background: #fff;
}

.front-vg__header,
.front-vg__footer {
    text-align: center;
}

.front-vg__header {
    margin-bottom: 40px;
}

.front-vg__title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary-color);
}

.front-vg__footer {
    margin-top: 40px;
}

.front-vg__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 40px;
    border-radius: 999px;
}

.page-video-gallery {
    padding-bottom: 60px;
}

.vg-header {
    padding: 48px 0 24px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    margin-bottom: 40px;
}

.vg-page-title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
}

.vg-page-intro {
    max-width: 680px;
    color: #555;
    font-size: 1rem;
}

.vg-empty,
.iustitia-empty-state {
    padding: 40px;
    color: #667085;
    text-align: center;
    background: rgba(255,255,255,0.72);
    border: 1px dashed rgba(196, 145, 26,0.22);
    border-radius: 14px;
}

.vg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vg-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
    outline: none;
}

.vg-card:hover,
.vg-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}

.vg-card:focus-visible {
    outline: 3px solid var(--primary-color, #C4911A);
    outline-offset: 2px;
}

.vg-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #111;
    overflow: hidden;
}

.vg-thumb {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, opacity .3s ease;
}

.vg-card:hover .vg-thumb,
.vg-card:focus .vg-thumb {
    transform: scale(1.04);
    opacity: .85;
}

.vg-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.vg-play-btn svg {
    width: 64px;
    height: 45px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
    transition: transform .2s ease, opacity .2s ease;
    opacity: .92;
}

.vg-play-bg {
    fill: #ff0000;
}

.vg-play-arrow {
    fill: #fff;
}

.vg-card:hover .vg-play-btn svg,
.vg-card:focus .vg-play-btn svg {
    transform: scale(1.12);
    opacity: 1;
}

.vg-card-title {
    margin: 0;
    padding: 12px 14px;
    color: #222;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.vg-modal[hidden] {
    display: none;
}

.vg-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    cursor: pointer;
}

.vg-modal-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,.7);
    animation: vg-pop-in .22s ease;
}

@keyframes vg-pop-in {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

.vg-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
}

.vg-modal-close:hover {
    background: rgba(255,255,255,.30);
}

.vg-modal-close svg {
    width: 20px;
    height: 20px;
}

.vg-modal-title-bar {
    min-height: 1px;
    padding: 10px 50px 8px 14px;
    background: #111;
}

.vg-modal-title-text {
    display: block;
    color: #ddd;
    font-size: .88rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.vg-iframe,
#vg-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.member-video-gallery {
    margin-top: 44px;
}

@media (max-width: 900px) {
    .vg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .vg-modal {
        padding: 8px;
        align-items: flex-end;
    }

    .vg-modal-wrap {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }
}

@media (max-width: 540px) {
    .vg-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Contact form (iustitia-cf) */
.iustitia-cf {
    display: grid;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e6ebf3;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 18px 46px rgba(98, 72, 13, 0.08);
}
.iustitia-cf .cf-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.iustitia-cf .cf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    font-size: 15px;
    padding-bottom:20px;
}
.iustitia-cf .cf-field label { font-weight: 700; color: #1f2a44; letter-spacing: 0.01em; }
.iustitia-cf input[type="text"],
.iustitia-cf input[type="email"],
.iustitia-cf input[type="tel"],
.iustitia-cf textarea {
    width: calc(100% - 30px);
    padding: 13px 15px;
    border: 1px solid #d5deea;
    border-radius: 12px;
    background: #f9fbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    font-size: 15px;
}
.iustitia-cf textarea { min-height: 140px; resize: vertical; }
.iustitia-cf input:focus,
.iustitia-cf textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(196, 168, 112, 0.18);
    outline: none;
}
.iustitia-cf .cf-submit {
    align-self: center;
    padding: 13px 30px;
    min-height: 50px;
    width: min(320px, 100%);
    border-radius: 12px;
    font-weight: 700;
    background: var(--secondary-color);
    color: #fff;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.iustitia-cf .cf-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(98, 72, 13,0.12); }
.iustitia-cf .cf-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}
.iustitia-cf .cf-submit.loading::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 120px;
    border: 2px solid rgba(10, 200, 0, 0.65);
    border-top-color: rgba(136, 136, 136, 0.25);
    animation: cf-spin 0.8s linear infinite;
    width: auto;
    height: auto;
    max-width: 30px;
    aspect-ratio: 1 / 1;
}
.cf-response {
    text-align: center;
    font-weight: 600;
}
.cf-response--ok { color: #1f7a3d; }
.cf-response--err { color: #b11b1b; }

@keyframes cf-spin {
  to { transform: rotate(360deg); }
}
.contact-form .notice {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid;
    text-align: left;
}
.contact-form .notice.success {
    border-color: #c7e6d1;
    background: #f2fbf5;
    color: #1c7b3c;
}
.contact-form .notice.error {
    border-color: #f5c2c0;
    background: #fff6f5;
    color: #b11b1b;
}
.recaptcha-field {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .front-about {
        padding: 58px 0;
    }
    .front-about__title {
        font-size: 28px;
    }
    .front-about__subtitle {
        font-size: 16px;
    }
    .front-vg {
        padding: 60px 0;
    }
    .front-vg__header {
        margin-bottom: 28px;
    }
    .front-vg__footer {
        margin-top: 28px;
    }
    .front-contact {
        padding: 60px 0;
    }
    .contact-form {
        padding: 20px;
        border-radius: 16px;
    }
    .contact-form .btn {
        width: 100%;
    }
}

.front-team {
    padding-top: 80px;
    padding-bottom: 140px;
    background: #FFF0D6;
}
.front-team .team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}
.front-team .team-grid::before,
.front-team .team-grid::after {
    display: none;
}
.front-team .team-level--leader {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.front-team .team-level--sub-leader {
    max-width: 750px;
    margin: 0 auto 60px;
    text-align: center;
}

.front-team .team-level--others {
    padding-bottom: 24px;
}
.front-team .team-card {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: clamp(24px, 3vw, 34px);
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,249,240,0.94) 100%);
    border: 1px solid rgba(93, 71, 24, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(80, 55, 12, 0.08);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.front-team .team-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(196,168,112,0.18) 0%, rgba(196,168,112,0.72) 50%, rgba(196,168,112,0.18) 100%);
}
.front-team .team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(80, 55, 12, 0.14);
    border-color: rgba(196,168,112,0.4);
}
.front-team .team-card__photo {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    margin: 0 0 24px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #efe4d2 0%, #e3d2bc 100%);
    box-shadow: 0 16px 34px rgba(64, 45, 10, 0.14);
}
.front-team .team-card__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}
.front-team .team-card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
}
.front-team .team-card__name {
    margin: 0 0 10px;
    color: #182230;
    font-size: 1.5rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.front-team .team-card__role {
    margin: 0 0 16px;
    color: var(--primary-color, #c4a870);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.front-team .team-card__bio {
    margin: 0 0 24px;
    color: #4e596d;
    line-height: 1.72;
    flex: 1;
}
.front-team .team-card__bio p {
    margin: 0 0 0.8em;
}
.front-team .team-card__bio p:last-child {
    margin-bottom: 0;
}
.front-team .team-card__actions {
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.front-team .link-minimal {
    position: static;
    color: var(--primary-color, #c4a870);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}
.front-team .link-minimal::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.front-team .link-minimal:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.front-team .team-card .btn,
.front-team .team-card .btn-text,
.front-team .team-card .link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.front-team .team-card .btn:hover,
.front-team .team-card .btn-text:hover,
.front-team .team-card .link-arrow:hover {
    transform: translateY(-2px);
}
.front-team .team-card .btn-outline {
    border: 1px solid rgba(196, 145, 26,0.16);
    background: rgba(255,255,255,0.9);
    color: #C4911A;
    box-shadow: 0 8px 18px rgba(196, 145, 26,0.08);
}
.front-team .team-card .btn-outline:hover {
    background: #C4911A;
    border-color: #C4911A;
    color: #fff;
}
.front-team .team-card .btn-primary {
    border: 1px solid #C4911A;
    background: linear-gradient(135deg, #C4911A 0%, #896612 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(196, 145, 26,0.22);
    cursor: pointer;
}
.front-team .team-card .btn-primary:hover {
    background: linear-gradient(135deg, #896612 0%, #75570F 100%);
    color: #fff;
}
.front-team .team-card .btn-text {
    border: 1px solid rgba(165, 30, 30, 0.14);
    background: rgba(193, 57, 43, 0.08);
    color: #b7332b;
    font-weight: 700;
    cursor: pointer;
}
.front-team .team-card .btn-text:hover {
    background: rgba(193, 57, 43, 0.14);
    color: #98261f;
}
.front-team .team-card .link-arrow {
    color: #C4911A;
    background: rgba(196, 145, 26,0.07);
    border: 1px solid rgba(196, 145, 26,0.1);
}
.front-team .team-card .link-arrow:hover {
    color: #75570F;
    background: rgba(196, 145, 26,0.12);
}
.front-team .team-card .link-arrow__icon {
    line-height: 1;
}
.front-team .team-card--leader {
    padding: clamp(30px, 4vw, 44px);
    border-radius: 30px;
}
.front-team .team-card--leader .team-card__photo {
    width: 100%;
    max-width: 420px;
    margin-bottom: 28px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 16px;
}
.front-team .team-card--leader .team-card__name {
    font-size: clamp(2rem, 4vw, 2.55rem);
}
.front-team .team-card--leader .team-card__role {
    font-size: 1rem;
}
.front-team .team-card--leader .team-card__bio {
    max-width: 760px;
    font-size: 1.05rem;
}
.front-team .team-card--sub-leader {
    padding: clamp(26px, 3vw, 36px);
}
.front-team .team-card--sub-leader .team-card__photo {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.front-team .team-card--sub-leader .team-card__name {
    font-size: clamp(1.65rem, 3.2vw, 2rem);
}
.front-team .team-card--other {
    height: 100%;
    padding: 24px;
    width: 100%;
}
.front-team .team-card--other .team-card__photo {
    width: 100%;
    margin: 0 0 22px;
    border-radius: 16px;
}
.front-team .team-card--other .team-card__name {
    font-size: 1.4rem;
}
.front-team .team-card--other .team-card__role {
    font-size: 0.88rem;
}
.front-team__header {
    text-align: center;
    margin-bottom: 28px;
}
.front-team__title {
    margin: 0;
    font-size: 30px;
    color: var(--primary-color);
}
.front-team__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.front-team__grid .team-card {
    flex: 0 1 calc(33.333% - 20px);
    height: 100%;
}

.front-team__grid .team-card:hover {
    transform: translateY(-8px);
}
@media (max-width: 1024px) { /* планшеты: 2 в ряд */
    .front-team__grid .team-card {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 768px) { /* мобильные: 1 в ряд */
    .front-team__grid .team-card {
        flex-basis: 100%;
    }
}

@media (max-width: 900px) {
    .front-team .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .front-team .team-level--leader,
    .front-team .team-level--sub-leader {
        margin-bottom: 44px;
    }
    .front-team .team-card--leader .team-card__photo {
        width: min(100%, 240px);
    }
    .front-team .team-card--sub-leader .team-card__photo {
        width: min(100%, 190px);
    }
}

@media (max-width: 640px) {
    .front-team {
        padding-top: 64px;
        padding-bottom: 96px;
    }
    .front-team .team-grid {
        grid-template-columns: 1fr;
    }
    .front-team .team-level--leader,
    .front-team .team-level--sub-leader {
        margin-bottom: 32px;
    }
    .front-team .team-card,
    .front-team .team-card--leader,
    .front-team .team-card--sub-leader,
    .front-team .team-card--other {
        padding: 22px;
        border-radius: 22px;
    }
    .front-team .team-card__photo,
    .front-team .team-card--leader .team-card__photo,
    .front-team .team-card--sub-leader .team-card__photo {
        width: 100%;
        max-width: none;
        border-radius: 16px;
    }
    .front-team .team-card__actions {
        flex-direction: column;
    }
    .front-team .team-card .btn,
    .front-team .team-card .btn-text,
    .front-team .team-card .link-arrow {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .slide {
        min-height: var(--slider-height-mobile, var(--slider-height, 520px));
    }
    .hero-slider,
    .hero-slider-section {
        min-height: var(--slider-height-mobile, var(--slider-height, 520px));
    }
}

.slider-nav,
.slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 3;
    color: var(--slider-nav-color, #fff);
}

.slider-nav {
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    justify-content: space-between;
    pointer-events: none;
}

.slider-nav button {
    pointer-events: all;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--slider-nav-color, #fff);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-nav button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.slider-nav button:hover {
    background: rgba(0,0,0,0.5);
    transform: scale(1.05);
}

.slider-dots {
    bottom: 18px;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-dots .dot.active {
    background: var(--slider-dots-color, var(--slider-nav-color, #fff));
    transform: scale(1.2);
}

.slider-nav.top { top: 16px; transform: none; }
.slider-nav.bottom { top: auto; bottom: 16px; transform: none; }
.slider-dots.top { top: 16px; bottom: auto; }
.slider-dots.center { top: 50%; transform: translateY(-50%); }
.slider-dots.bottom { bottom: 18px; }

.slide.align-left .slide-content {
    text-align: left;
    align-items: flex-start;
}

.slide.align-right .slide-content {
    text-align: right;
    align-items: flex-end;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(var(--layout-max-width, 1200px), 92vw);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-slider .btn-primary {
    background-color: var(--slider-btn-bg, var(--secondary-color));
    color: var(--slider-btn-text, #fff);
    border-color: var(--slider-btn-bg, var(--secondary-color));
}

.hero-slider .btn-primary:hover {
    background-color: var(--slider-btn-bg-hover, #ffffff);
    color: var(--slider-btn-text-hover, var(--secondary-color));
    border-color: var(--slider-btn-bg-hover, var(--secondary-color));
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Footer Styles
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Footer Widgets */
.footer-widgets-area {
    padding: 70px 0 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget .widget-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
    padding-left: 0;
}

.footer-widget ul li::before {
    content: none; /* Remove default bullet */
}

.footer-widget a {
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.footer-widget a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Copyright Bar */
.site-info-bar {
    padding: 25px 0;
    background-color: rgba(0,0,0,0.2);
    font-size: 0.9rem;
}

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

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-left: 20px;
}

.footer-menu a {
    color: #aaa;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #fff;
}

/* Video Modal */
.video-modal {
    position: fixed;
    z-index: 12000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.5s;
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 960px;
}

.close-video-modal {
    position: absolute;
    top: -15px;
    right: 10px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
}

/* Lock scroll when modal open */
html.modal-open,
body.modal-open {
    overflow: hidden;
    height: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/*--------------------------------------------------------------
# About Page Modules (New)
--------------------------------------------------------------*/
.about-section {
    padding: 60px 0;
}

/* Mission Section */
.section-mission .section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-mission .entry-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.section-mission .subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}
.section-mission .section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.1rem;
}

/* Motto Section */
.section-motto {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin: 40px 0;
    position: relative;
}
.motto-text {
    font-size: 2.2rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin: 0 0 20px;
    color: var(--secondary-color);
}
.motto-description {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-size: 1.05rem;
}

/* Directions & Services Grid */
.directions-list-main {
    list-style: none;
    font-size: 1.1rem;
    margin-bottom: 40px;
    background: rgba(0,0,0,0.02); /* Subtle grey based on transparency */
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
}
.directions-list-main li {
    margin-bottom: 10px;
}
.services-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.service-category {
    background: var(--background-color);
    padding: 25px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}
.service-category:hover {
    transform: translateY(-5px);
}
.service-category h5 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.laws-list {
    columns: 2;
    column-gap: 40px;
}

/* src: style.css (ниже подключается после twilight.css) */
.entry-content p,
.front-about p,
.front-services p {
  max-width: none;
}
.front-about p, .service-content p{
    text-align:justify;
}
.team-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    display: grid;
    gap: 10px;
    height: 100%;
}
.team-card__photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}
.team-card__name {
    margin: 0;
    font-size: 20px;
    color: var(--primary-color);
    text-align: center;
}
.team-card__role {
    margin: 0;
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center;
}
.team-card__bio {
    margin: 0;
    color: #555;
    line-height: 1.5;
    text-align: center;
}

/* About (Institutional) template */
.page-about-institutional {
    --about-bg: #f8fafc;
    --about-border: #e1e8f0;
    --about-text: #1d2736;
    --about-accent: #C4911A;
    --about-muted: #E3B646;
    --about-soft: #FCF4E3;
    color: var(--about-text);
    font-feature-settings: 'liga' 1, 'kern' 1;
}
.page-about-institutional .container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}
.page-about-institutional section {
    padding: 56px 0;
}
.about-hero {
    background: radial-gradient(circle at 12% 20%, rgba(196, 145, 26,0.06), transparent 35%), radial-gradient(circle at 88% 10%, rgba(196, 145, 26,0.08), transparent 30%), linear-gradient(180deg, #ffffff 0%, #FDF8F0 100%);
    text-align: center;
    padding: 78px 0 64px;
    border-bottom: 1px solid var(--about-border);
}
.about-hero__title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin: 0 0 16px;
    color: var(--about-accent);
    letter-spacing: -0.02em;
}
.about-hero__subtitle {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
    color: var(--about-muted);
}
.about-hero__motto {
    margin-top: 14px;
    font-style: italic;
    color: #DCA524;
}
.about-grid {
    display: grid;
    gap: 28px;
}
.about-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.about-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.about-block,
.about-card {
    background: #fff;
    border: 1px solid var(--about-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(117, 87, 15, 0.08);
}
.about-card {
    padding: 18px 18px 20px;
}
.about-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}
.about-block__title,
.section-title,
.about-card__title {
    margin: 0;
    color: var(--about-accent);
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.about-card__title {
    font-size: 1.08rem;
}
.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #FCF4E3;
    flex-shrink: 0;
    border: 1px solid var(--about-border);
}
.about-icon img {
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
}
.about-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}
.about-block__text,
.section-text,
.about-card__text {
    margin: 0;
    line-height: 1.7;
    color: var(--about-muted);
}
.about-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.about-list li {
    position: relative;
    padding-left: 14px;
    color: var(--about-text);
}
.about-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 16px;
    background: var(--about-accent);
    position: absolute;
    left: 0;
    top: 10px;
}
.about-philosophy,
.about-collaboration {
    background: #fff;
}
.about-experience {
    background: var(--about-bg);
}
.about-focus {
    background: #fff;
}
.about-position {
    background: var(--about-soft);
    border-top: 1px solid var(--about-border);
    border-bottom: 1px solid var(--about-border);
    padding: 48px 0;
}
.about-position__text {
    margin: 0;
    line-height: 1.8;
    font-weight: 650;
    color: #896612;
    display: flex;
    align-items: center;
    gap: 12px;
}
.about-cta {
    text-align: center;
    background: #fff;
}
.about-cta__lead {
    margin: 0 0 16px;
    color: #896612;
    font-weight: 650;
    line-height: 1.5;
}
.about-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid var(--about-accent);
    border-radius: 999px;
    color: var(--about-accent);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.about-cta__button:hover {
    background: var(--about-accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(196, 145, 26,0.18);
}
.about-editor-content {
    padding: 32px 0 56px;
}
@media (max-width: 900px) {
    .page-about-institutional section { padding: 44px 0; }
    .about-hero { padding: 64px 0 56px; }
}
@media (max-width: 640px) {
    .page-about-institutional section { padding: 36px 0; }
    .about-block, .about-card { padding: 18px; }
    .about-title-row { gap: 10px; }
    .about-icon { width: 36px; height: 36px; }
    .about-grid.two-col { grid-template-columns: 1fr; }
}

/* About page – modern layout */
.page-about-modern {
    --abt-bg: #fff6ef;
    --abt-card: #ffffff;
    --abt-text: #896612;
    --abt-muted: #E3B646;
    --abt-accent: #C4911A;
    --abt-border: #F9EAD1;
    --abt-soft: #FCF4E3;
    --abt-black: #2c1e00;
    color: var(--abt-text);
    font-feature-settings: "liga" 1, "kern" 1;
        text-align: justify;
}
.page-about-modern .container { width: min(1180px, 92vw); margin: 0 auto; }
.about-hero-modern {
    position: relative;
    padding: 96px 0 82px;
    background: radial-gradient(circle at 20% 20%, rgba(196, 145, 26,0.08), transparent 35%), radial-gradient(circle at 80% 0%, rgba(196, 145, 26,0.06), transparent 30%), linear-gradient(180deg, #fff 0%, #FDF8F0 100%);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.about-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(44, 37, 14, 0.15) 0%, rgba(44, 40, 14, 0.05) 60%, rgba(44, 40, 14, 0) 100%);
}
.about-hero-content { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.about-hero-title { margin: 0 0 18px; font-size: clamp(2.4rem, 4.5vw, 3.2rem); color: #fff; letter-spacing: -0.02em; text-shadow: 0 12px 24px rgba(0,0,0,0.18); }
.about-hero-subtitle { margin: 0 auto; max-width: 740px; color: #e6ecf7; line-height: 1.7; font-size: 1.05rem; }
.about-hero-motto { margin-top: 16px; color: #dfe7f5; font-style: italic; }

.about-mission-values-modern { padding: 68px 0; }
.mv-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.mv-mission, .mv-values { background: var(--abt-card); border: 1px solid var(--abt-border); border-radius: 18px; padding: 26px; box-shadow: 0 14px 30px rgba(117, 87, 15,0.08); }
.mv-mission { grid-column: 1 / -1; width: 100%; }
.section-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; background: var(--abt-soft); color: var(--abt-accent); font-weight: 600; border: 1px solid var(--abt-border); }
.badge-icon, .values-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.mv-heading { margin: 14px 0 10px; font-size: 1.5rem; color: var(--abt-text); letter-spacing: -0.01em; }
.mv-text { color: var(--abt-muted); line-height: 1.75; }
.values-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.values-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.values-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--abt-text); line-height: 1.5; }
.check-icon { color: var(--abt-accent); font-weight: 700; }

.about-philosophy-modern { padding: 70px 0; background: var(--abt-bg); }
.philosophy-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); align-items: center; }
.philosophy-image img { width: 100%;  }
.about-philosophy-modern .mv-values { margin: 0; }
.ph-title { margin: 10px 0 12px; font-size: 1.6rem; color: var(--abt-text); }
.ph-text { color: var(--abt-muted); line-height: 1.75; }

.about-experience-modern { padding: 70px 0; }
.section-center-header { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.section-center-header h2 { margin: 8px 0 10px; font-size: 1.6rem; color: var(--abt-text); }
.section-intro { margin: 0; color: var(--abt-muted); line-height: 1.6; }
.center-icon, .pos-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--abt-soft); border: 1px solid var(--abt-border); }
.experience-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.experience-card { background: var(--abt-card); border: 1px solid var(--abt-border); border-radius: 14px; padding: 18px; box-shadow: 0 12px 28px rgba(117, 87, 15,0.07); }
.exp-card-title { margin: 0; color: var(--abt-text); font-weight: 650; letter-spacing: -0.01em; }

.about-focus-modern { padding: 70px 0; background: var(--abt-bg); }
.focus-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.focus-card { position: relative; background: var(--abt-card); border: 1px solid var(--abt-border); border-radius: 14px; padding: 18px 18px 18px 24px; box-shadow: 0 12px 24px rgba(117, 87, 15,0.06); }
.focus-card-marker { position: absolute; left: 12px; top: 22px; width: 6px; height: 14px; border-radius: 4px; background: var(--abt-accent); }
.focus-card-title { margin: 0 0 4px; color: var(--abt-text); font-weight: 650; }

.about-testimonials { padding: 70px 0; }
.testi-section-title { text-align: center; margin: 0 0 26px; font-size: 1.6rem; color: var(--abt-text); }
.testi-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.testi-card { background: var(--abt-card); border: 1px solid var(--abt-border); border-radius: 14px; padding: 18px; box-shadow: 0 10px 24px rgba(117, 87, 15,0.07); position: relative; }
.testi-quote-icon { position: absolute; top: 14px; right: 14px; font-size: 26px; color: var(--abt-soft); }
.testi-text { margin: 0 0 14px; color: var(--abt-muted); line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: 8px; color: var(--abt-text); font-weight: 650; }
.author-line { width: 28px; height: 2px; background: var(--abt-accent); display: inline-block; }

.about-position-modern { padding: 60px 0; background: var(--abt-soft); }
.position-box { background: #fff; border: 1px solid var(--abt-border); border-radius: 16px; padding: 22px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 26px rgba(117, 87, 15,0.08); }
.position-box p { margin: 0; color: var(--abt-text); line-height: 1.7; }

/* Collaboration section */
.about-collab-modern { padding: 60px 0; }
.collab-box { background: var(--abt-card); border: 1px solid var(--abt-border); border-radius: 16px; padding: 36px 32px; text-align: center; box-shadow: 0 12px 26px rgba(117, 87, 15,0.08); max-width: 780px; margin: 0 auto; }
.collab-box .collab-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.collab-box .collab-icon img { max-height: 56px; width: auto; }
.collab-title { font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 0 0 14px; color: var(--abt-text); }
.collab-text { color: var(--abt-black, #666); line-height: 1.7; }
.collab-text p { margin: 0 0 .6em; }

.about-cta-modern { padding: 56px 0 70px; }
.cta-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; background: var(--abt-card); border: 1px solid var(--abt-border); border-radius: 18px; padding: 22px 26px; box-shadow: 0 14px 32px rgba(117, 87, 15,0.09); }
.cta-content h3 { margin: 0; color: var(--abt-text); }
.cta-text { display: flex; align-items: center; gap: 12px; }
.cta-text .cta-icon img { max-height: 40px; width: auto; }

.about-main-content { padding: 30px 0 60px; }

/* Animations */
.fade-up, .fade-left, .fade-right { opacity: 0; transform: translateY(20px); transition: all .5s ease; }
.fade-left { transform: translateX(-20px); }
.fade-right { transform: translateX(20px); }
.visible { opacity: 1; transform: translate(0); }
.delay-100 { transition-delay: .1s; }
.delay-200 { transition-delay: .2s; }
.delay-300 { transition-delay: .3s; }
.delay-400 { transition-delay: .4s; }

@media (max-width: 900px) {
    .about-hero-modern { padding: 78px 0 64px; }
    .cta-content { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .about-hero-title { font-size: 2rem; }
    .mv-mission, .mv-values { padding: 18px; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .cta-content { align-items: center; text-align: center; }
    .position-box { flex-direction: column; align-items: flex-start; }
}

/*--------------------------------------------------------------
# About Page Redesign (Modern)
--------------------------------------------------------------*/
.page-about-modern {
    overflow-x: hidden;
    --about-bg: #fff6ef;
    --about-section-bg-a: #fff6ef;
    --about-section-bg-b: #ffe8d5;
    --about-accent: var(--secondary-color);
    --about-primary: var(--primary-color);
    --about-text: #E3B646;
    --about-card-bg: #ffffff;
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* Animations */
.fade-up, .fade-left, .fade-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-up { transform: translateY(30px); }
.fade-left { transform: translateX(30px); }
.fade-right { transform: translateX(-30px); }

.fade-up.visible, .fade-left.visible, .fade-right.visible {
    opacity: 1;
    transform: none;
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }

/* 1. Hero Modern */
.about-hero-modern {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-top: calc(var(--header-height, 100px) * -1); /* Under header */
    padding-top: var(--header-height, 100px);
}
.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(66, 57, 10, 0.85), rgba(66, 58, 10, 0.6));
    z-index: 1;
}
.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.about-hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
}
.about-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 400;
}
.about-hero-motto {
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
}

/* 3. Mission & Values Modern */
.about-mission-values-modern {
    padding: clamp(56px, 8vw, 100px) 0;
    background: #F9DCA9;
}
.mv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}
.mv-mission {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 40px);
    background: rgba(255, 250, 244, 0.82);
    border: 1px solid rgba(196, 145, 26, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(17, 31, 58, 0.08);
    box-sizing: border-box;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(0.72rem, 2vw, 0.84rem);
    line-height: 1.35;
    color: var(--about-accent);
    font-weight: 700;
    margin-bottom: 14px;
}
.section-badge .badge-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}
.mv-heading, .ph-title {
    font-size: clamp(1.7rem, 4.8vw, 2.5rem);
    color: var(--about-primary);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    overflow-wrap: anywhere;
}
.mv-text, .ph-text {
    font-size: clamp(1rem, 2.5vw, 1.08rem);
    line-height: 1.8;
    color: var(--abt-black);
}

.mv-text p {
    margin: 0;
    overflow-wrap: anywhere;
}
.values-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: grid;
    gap: 15px;
}
.values-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--about-primary);
    font-weight: 500;
    padding: 15px;
    background: var(--about-bg);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    text-align:left;
}
.values-list li:hover {
    transform: translateX(10px);
    background: #f0f4f8;
}
.check-icon {
    color: var(--about-accent);
    font-weight: bold;
}

/* 4. Philosophy Modern */
.about-philosophy-modern {
    padding: 100px 0;
    background: var(--about-bg);
}
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.philosophy-image img {

    width: 100%;
    height: auto;
}
.about-philosophy-modern .mv-values {
    margin: 0;
}

/* 5. Experience Modern */
.about-experience-modern {
    padding: 100px 0;
    background: #fff;
}
.section-center-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}
.section-center-header h2 {
    font-size: 2.5rem;
    color: var(--about-primary);
    margin-bottom: 15px;
}
.section-intro {
    font-size: 1.1rem;
    color: var(--abt-black);
}
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.experience-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--about-accent);
}
.exp-card-title {
    font-size: 1.2rem;
    color: var(--about-primary);
    margin: 0;
}

/* 6. Focus Areas Modern */
.about-focus-modern {
    padding: 100px 0;
    background: #ffedde;
}
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.focus-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.focus-card:hover {
    transform: translateY(-10px);
}
.focus-card-marker {
    width: 40px;
    height: 4px;
    background: var(--about-accent);
    margin-bottom: 20px;
}
.focus-card-title {
    font-size: 1.3rem;
    color: var(--about-primary);
    margin: 0;
    text-align:left;
}

/* 7. Testimonials */
.about-testimonials {
    padding: 100px 0;
    background: #fff;
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.testi-card {
    background: var(--about-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
}
.testi-quote-icon {
    font-size: 4rem;
    color: var(--about-accent);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}
.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--about-text);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.testi-author {
    font-weight: 700;
    color: var(--about-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-line {
    width: 20px;
    height: 2px;
    background: var(--about-accent);
}

/* 8. Position & CTA */
.about-position-modern {
    padding: 60px 0;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
}
.position-box {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--about-primary);
    max-width: 800px;
    margin: 0 auto;
}

.about-cta-modern {
    padding: 80px 0;
    background: var(--about-primary);
    color: var(--about-primary);
    text-align: center;
}
.cta-text h3 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 30px;
}

.page-about-modern > section:not(.about-hero-modern):nth-of-type(even) {
    background: var(--about-section-bg-a) !important;
}

.page-about-modern > section:not(.about-hero-modern):nth-of-type(odd) {
    background: var(--about-section-bg-b) !important;
    padding-bottom:44px;
}

/*--------------------------------------------------------------
# Single Service
--------------------------------------------------------------*/
.service-single { color: #896612; }
.service-hero {
    position: relative;
    min-height: 240px;
    padding: clamp(64px, 8vw, 96px) 0 clamp(56px, 7vw, 82px);
    background: radial-gradient(circle at 20% 20%, rgba(196, 145, 26,0.08), transparent 40%), linear-gradient(135deg, #C4911A 0%, #0d203f 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.service-hero.has-thumb {
    background-image:
        linear-gradient(135deg, rgba(11,22,44,0.82) 0%, rgba(11,22,44,0.65) 40%, rgba(11,22,44,0.45) 100%),
        var(--service-hero);
    background-blend-mode: overlay, normal;
}
.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,20,36,0.4) 0%, rgba(12,20,36,0.15) 60%, rgba(12,20,36,0.05) 100%);
}
.service-hero__content {
    position: relative;
    max-width: var(--layout-max-width, var(--layout-width-px, 1200px));
    text-align: left;
    z-index: 1;
}
.service-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    color: #e7edfa;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.08);
    margin-bottom: 12px;
}
.service-hero__title {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2.2rem, 3.8vw, 2.9rem);
    letter-spacing: -0.01em;
}
.service-hero__subtitle {
    margin: 0;
    color: #dfe6f5;
    line-height: 1.7;
    max-width: 720px;
    font-size: 1.05rem;
}
.service-body {
    padding: 48px 0 36px;
    background: #f7f8fb;
}
.service-body__inner {
    background: #ffffff;
    border: 1px solid #F9EAD1;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(117, 87, 15,0.06);
}
.service-content {
    line-height: 1.8;
    color: #896612;
}
.service-content h2,
.service-content h3 {
    color: #C4911A;
    margin-top: 1.5em;
    margin-bottom: 0.4em;
}
.service-content p {
    margin-bottom: 1em;
    color: #DCA524;
}
.service-content ul,
.service-content ol {
    margin: 0 0 1.4em 1.2em;
}
.service-footer {
    padding: 0 0 48px;
    background: #f7f8fb;
}
.cat-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    color: #C4911A;
    font-weight: 600;
}
.cat-label {
    color: #E3B646;
    font-weight: 600;
    margin-right: 6px;
}
@media (max-width: 768px) {
    .service-hero { padding: 64px 0 60px; }
    .service-body__inner { padding: 20px; }
}

/* Responsive */
@media (max-width: 900px) {
    .mv-grid, .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .philosophy-image {
        order: -1;
        text-align: center;
    }
    .philosophy-image img{
        max-width: 250px;
    }
    .about-hero-title {
        font-size: 2.5rem;
    }
    .about-mission-values-modern {
        padding: 64px 0;
    }
    .mv-mission {
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .mv-grid {
        gap: 20px;
    }
    .mv-mission {
        padding: 20px 18px;
        border-radius: 18px;
    }
    .section-badge {
        gap: 8px;
        margin-bottom: 12px;
    }
    .mv-heading {
        margin-bottom: 14px;
    }
    .mv-text, .ph-text {
        line-height: 1.7;
    }
}

/* Services archive */
.services-archive__hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #75570F 0%, #C4911A 60%, #75570F 100%);
    color: #fff;
}
.services-archive__hero h1 { margin: 0 0 10px; font-size: clamp(2.2rem,4vw,2.8rem); }
.archive-lead { margin: 0; max-width: 720px; color: #F9EAD1; line-height: 1.6; }
.services-archive__grid { padding: 40px 0 60px; background: #f7f8fb; }
.service-card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service-item-card {
    background: #fff;
    border: 1px solid #F9EAD1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(117, 87, 15,0.07);
    display: flex;
    flex-direction: column;
}
.service-item__figure {
    position: relative;
    padding-top: 58%;
    background: linear-gradient(135deg, #C4911A 0%, #75570F 100%);
    display: block;
}
.service-item__figure[style*="--svc-thumb"] {
    background-image: var(--svc-thumb), linear-gradient(135deg, rgba(15,31,58,0.6) 0%, rgba(15,31,58,0.4) 100%);
    background-size: cover;
    background-position: center;
}
.svc-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #F9EAD1;
    font-size: 2rem;
}
.service-item__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.service-item__eyebrow {
    font-size: 0.9rem;
    color: #C4911A;
    font-weight: 700;
}
.service-item__title { margin: 0; font-size: 1.1rem; }
.service-item__title a { color: #896612; text-decoration: none; }
.service-item__title a:hover { color: #C4911A; }
.service-item__excerpt { margin: 0; color: #445069; line-height: 1.5; flex: 1; }
.service-item__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #C4911A;
    font-weight: 700;
    text-decoration: none;
}
.service-item__link .arrow { transition: transform 0.2s ease; }
.service-item__link:hover .arrow { transform: translateX(4px); }
.services-archive__pagination { margin-top: 24px; text-align: center; }

.services-page-container {
    padding-bottom: 60px;
}

.services-page-container .services-grid {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

.services-page-container .services-grid > .service-card,
.about-services-grid > .service-card {
    flex: 0 1 calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
}

.services-page-template {
    background: #f7f8fb;
}

.services-page-hero {
    margin-bottom: 20px;
}

.services-page-intro {
    margin-bottom: 40px;
    padding: 0 15px;
}

.simple-page__hero {
    margin-bottom: 40px;
}

.simple-page__content {
    margin-bottom: 60px;
    padding: 0 15px;
}

.services-page-empty {
    text-align: center;
    padding: 40px;
}

.services-page-container .service-card,
.about-experience-modern .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(117, 87, 15,0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.services-page-container .service-card:hover,
.about-experience-modern .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(117, 87, 15,0.12);
}

.services-page-container .service-card__image,
.about-experience-modern .service-card__image {
    width: 100%;
    background: #f4f4f4;
}

.services-page-container .service-card__image img,
.about-experience-modern .service-card__image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.services-page-container .service-card__body,
.about-experience-modern .service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 30px;
}

.services-page-container .service-card__title,
.about-experience-modern .service-card__title {
    margin: 0 0 15px;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #111;
    font-weight: 700;
}

.services-page-container .service-card__desc,
.about-experience-modern .service-card__desc {
    margin: 0 0 25px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    flex: 1;
}

.services-page-container .service-card__actions,
.about-experience-modern .service-card__actions {
    margin-top: auto;
}

.services-page-container .link-arrow,
.about-experience-modern .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color, #c4a870);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.services-page-container .link-arrow__icon,
.about-experience-modern .link-arrow__icon {
    font-size: 1.4em;
}

.about-services-grid {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

@media (max-width: 1024px) {
    .services-page-container .services-grid > .service-card,
    .about-services-grid > .service-card {
        flex-basis: calc((100% - 30px) / 2);
        max-width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 680px) {
    .services-page-container .services-grid > .service-card,
    .about-services-grid > .service-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.service-page-hero {
    margin-bottom: 0;
}

.service-page-hero__breadcrumbs {
    margin-bottom: 18px;
}

.service-page-hero .breadcrumbs {
    padding: 0;
    color: rgba(255,255,255,0.7);
}

.service-page-hero .breadcrumbs__item:not(:last-child)::after {
    color: rgba(255,255,255,0.45);
}

.service-page-hero .breadcrumbs__item a {
    color: rgba(255,255,255,0.86);
}

.service-page-hero .breadcrumbs__item a:hover {
    color: #ffffff;
}

.service-page-hero .breadcrumbs__item [aria-current="page"] {
    color: #ffe8bf;
    opacity: 1;
}

.service-page-section {
    padding: 0 0 56px;
}

.service-page-content {
    padding: 0 15px;
}

.service-page-layout {
    display: grid;
    gap: 32px;
    align-items: stretch;
}

.service-page-layout.has-media {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    padding-top:40px;
}

.service-page-copy {
    background: #ffffff;
    border: 1px solid #F9EAD1;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(117, 87, 15,0.08);
    padding: clamp(28px, 4vw, 42px);
    color: #896612;
    line-height: 1.8;
}

.service-page-copy h2,
.service-page-copy h3 {
    color: #C4911A;
    margin-top: 1.5em;
    margin-bottom: 0.45em;
}

.service-page-copy p {
    color: #DCA524;
    margin-bottom: 1em;
}

.service-page-copy ul,
.service-page-copy ol {
    margin: 0 0 1.4em 1.2em;
}

.service-page-media {
    display: flex;
}

.service-page-media__frame {
    position: relative;
    width: 100%;
    min-height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #C4911A 0%, #75570F 100%);
    box-shadow: 0 20px 44px rgba(117, 87, 15,0.14);
}

.service-page-media__frame img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.service-page-more {
    padding: 0 0 72px;
}

.single-service-other {
    padding-top: 60px;
    background: #f7f8fb;
}

.service-page-more__inner {
    padding-bottom: 0;
}

.service-page-more__header {
    margin-bottom: 22px;
    text-align: center;
}

.service-page-more__title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
    color: #C4911A;
}

.service-page-more .service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-page-more .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(117, 87, 15,0.10);
}

.service-page-more .service-card__image {
    width: 100%;
    background: #f4f4f4;
}

.service-page-more .service-card__image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.service-page-more .service-card__body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-page-more .service-card__title {
    margin: 0 0 15px;
    color: #111;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
}

.service-page-more .service-card__actions {
    margin-top: auto;
}

.service-page-more .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color, #c4a870);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .service-page-layout.has-media {
        grid-template-columns: 1fr;
        padding-top: 28px;
    }

    .service-page-media {
        order: -1;
    }

    .service-page-media__frame img {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .services-page-intro {
        margin-bottom: 28px;
    }
    .services-page-container {
        padding-bottom: 48px;
    }
    .services-page-container .services-grid,
    .about-services-grid {
        gap: 20px;
    }
    .services-page-container .service-card__image img,
    .about-experience-modern .service-card__image img,
    .service-page-more .service-card__image img {
        height: 220px;
    }
    .services-page-container .service-card__body,
    .about-experience-modern .service-card__body,
    .service-page-more .service-card__body {
        padding: 22px;
    }
    .services-page-container .service-card__title,
    .about-experience-modern .service-card__title,
    .service-page-more .service-card__title {
        font-size: 1.15rem;
    }
    .service-page-copy,
    .service-page-media__frame {
        border-radius: 18px;
    }

    .service-page-copy {
        padding: 22px;
    }

    .service-page-layout {
        gap: 22px;
    }

    .service-page-more {
        padding-bottom: 56px;
    }
}

/* Contact page */
.contact-page .container { width: min(1100px, 92vw); margin: 0 auto; }
.contact-hero {
    background: linear-gradient(135deg, #3c350d 0%, #73691f 60%, #3c390d 100%);
    padding: 70px 0 60px;
    color: #fff;
    text-align: left;
}
.contact-title { margin: 0 0 10px; font-size: clamp(2.1rem, 4vw, 2.8rem); letter-spacing: -0.01em; color:#fff}
.contact-subtitle { margin: 0; color: #F9EAD1; line-height: 1.6; max-width: 720px; }
.contact-details { background: #f7f8fb; padding: 40px 0 40px; }
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.contact-card {
    background: #fff;
    border: 1px solid #F9EAD1;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(117, 87, 15,0.06);
}
.contact-icon { font-size: 1rem; margin-right: 3px;}
.contact-card h3 { margin: 6px 0 6px; color: #C4911A; }
.contact-card p { margin: 0; color: #DCA524; line-height: 1.6; }
.contact-card a { color: #C4911A; font-weight: 700; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-note { margin-top: 6px; color: #E3B646; font-size: 0.95rem; }

.contact-socials { padding: 30px 0 10px; }
.socials-inner h3 { margin: 0 0 12px; color: #C4911A; }
.socials-row { display: flex; flex-wrap: wrap; gap: 10px; }
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #FCF4E3;
    color: #C4911A;
    border: 1px solid #F9EAD1;
    text-decoration: none;
    font-weight: 600;
}
.social-pill img.contact-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}
.social-pill .icon { font-size: 0.9rem; }
.social-pill .label { color: #896612; }

.contact-map { padding: 20px 0 10px; }
.map-embed iframe { width: 100%; min-height: 320px; border: 0; border-radius: 14px; box-shadow: 0 12px 28px rgba(117, 87, 15,0.08); }
.map-placeholder {
    padding: 40px;
    text-align: center;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    color: #E3B646;
    background: #fff;
}

.contact-form-block { padding: 0 0 60px; }

@media (max-width: 768px) {


    .contact-details {
        padding: 28px 0 6px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 16px;
    }
    .map-embed iframe {
        min-height: 280px;
    }
    .map-placeholder {
        padding: 28px 20px;
    }
    .iustitia-cf {
        padding: 20px;
        border-radius: 16px;
    }
    .iustitia-cf .cf-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-hero { padding: 56px 0 48px; }
    .contact-title { font-size: 1.72rem; }
    .contact-subtitle { font-size: 0.98rem; }
    .socials-row { flex-direction: column; align-items: flex-start; }
    .social-pill {
        width: 100%;
        justify-content: flex-start;
    }
    .contact-form-block {
        padding-bottom: 48px;
    }
    .front-vg__button {
        width: 100%;
        max-width: 320px;
        padding-inline: 20px;
    }
}

@media (max-width: 768px) {
    .front-services__title,
    .front-team__title,
    .front-vg__title,
    .front-about__title,
    .service-page-more__title,
    .section-center-header h2 {
        font-size: clamp(1.65rem, 5.6vw, 2rem);
    }

    .service-hero__title,
    .services-archive__hero h1 {
        font-size: clamp(1.85rem, 6.4vw, 2.2rem);
    }

    .about-hero-title {
        font-size: clamp(1.9rem, 6.8vw, 2.25rem);
    }
}

/* Make service cards fully clickable */
.service-card {
    position: relative;
    cursor: pointer;
}
.service-card .link-arrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

