:root {
    --primary: #0b4f7a;
    --primary-dark: #083a5c;
    --primary-light: #1565a8;
    --accent: #e85d04;
    --accent-hover: #d45103;
    --teal: #0d9488;
    --bg: #f0f4f8;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #dbe3ec;
    --shadow: 0 4px 20px rgba(11, 79, 122, 0.1);
    --shadow-lg: 0 12px 40px rgba(11, 79, 122, 0.15);
    --radius: 10px;
    --header-h: 88px;
    --topbar-h: 40px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1240px, 94%);
    margin-inline: auto;
}

/* Top bar */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    height: var(--topbar-h);
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.top-bar-contact {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.top-bar-contact a:hover {
    opacity: 1;
}

.top-bar-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.top-bar-flag {
    width: 28px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-link {
    opacity: 0.9;
    transition: color 0.2s;
}

.top-bar-link:hover {
    color: #7dd3fc;
}

.top-bar-divider {
    opacity: 0.4;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 3px solid var(--accent);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    height: 64px;
    width: auto;
    max-width: min(280px, 42vw);
    object-fit: contain;
    object-position: right center;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: #e8f2fa;
}

.nav-link.is-active {
    color: var(--primary);
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0.55rem;
    left: 0.55rem;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

/* Dropdown menu */
.nav-item-dropdown {
    position: relative;
}

.nav-link-dropdown {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-caret {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s;
}

.nav-item-dropdown.is-open .nav-caret,
.nav-item-dropdown:hover .nav-caret {
    transform: rotate(180deg);
}

.nav-item-dropdown.is-active-parent > .nav-link-dropdown {
    color: var(--primary);
}

.nav-item-dropdown.is-active-parent > .nav-link-dropdown::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0.55rem;
    left: 0.55rem;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 300;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.is-active {
    background: #e8f2fa;
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35);
}

.btn-accent:hover {
    background: var(--accent-hover);
}

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

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
}

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

/* Hero slider */
.hero-slider {
    position: relative;
    height: clamp(380px, 52vh, 520px);
    overflow: hidden;
    background: var(--primary-dark);
}

.slider-track {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
    background-size: cover;
    background-position: center;
}

.slide--has-media {
    background-image: none;
}

.slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.slide-media--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide-1 {
    background-image:
        linear-gradient(105deg, rgba(8, 58, 92, 0.92) 0%, rgba(11, 79, 122, 0.75) 45%, rgba(13, 148, 136, 0.5) 100%),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1400&q=80');
}

.slide-2 {
    background-image:
        linear-gradient(105deg, rgba(8, 58, 92, 0.92) 0%, rgba(11, 79, 122, 0.78) 50%, rgba(232, 93, 4, 0.35) 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1400&q=80');
}

.slide-3 {
    background-image:
        linear-gradient(105deg, rgba(8, 58, 92, 0.9) 0%, rgba(21, 101, 168, 0.8) 100%),
        url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1400&q=80');
}

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(8, 58, 92, 0.88) 0%, rgba(11, 79, 122, 0.72) 50%, rgba(8, 58, 92, 0.55) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}

.slide--no-overlay .slide-content h1,
.slide--no-overlay .slide-content p {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    max-width: 640px;
    padding-bottom: 3rem;
}

.slide-content h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.slide-content p {
    font-size: 1rem;
    opacity: 0.92;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.slider-controls {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot.is-active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Stats bar */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    margin-top: -1px;
    position: relative;
    z-index: 5;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.25rem 0.5rem;
    border-left: 1px solid var(--border);
}

.stat-item:last-child {
    border-left: none;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sections */
.section {
    padding: 3.5rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-head--row h2 {
    margin-bottom: 0.25rem;
}

.section-tag {
    display: inline-block;
    background: #e8f2fa;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

/* Park AI chat (home) */
.park-chat-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.park-chat-box {
    --park-ai-ring: conic-gradient(
        from var(--park-ai-angle, 0deg),
        #0b4f7a,
        #0d9488,
        #6366f1,
        #1565a8,
        #0b4f7a
    );
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    background: linear-gradient(165deg, #fafcff 0%, #fff 42%, #f6f9fc 100%);
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 12px 48px rgba(11, 79, 122, 0.1),
        0 0 0 1px rgba(11, 79, 122, 0.06);
    overflow: hidden;
    isolation: isolate;
    animation: park-chat-angle 8s linear infinite;
}

.park-chat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--park-ai-ring);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.park-chat-box.is-thinking::before {
    opacity: 1;
    animation: park-chat-ring-pulse 1.2s ease-in-out infinite;
}

.park-chat-aurora {
    position: absolute;
    inset: -40% -20%;
    background:
        radial-gradient(ellipse 50% 40% at 15% 20%, rgba(13, 148, 136, 0.14), transparent 55%),
        radial-gradient(ellipse 45% 35% at 85% 75%, rgba(99, 102, 241, 0.1), transparent 50%),
        radial-gradient(ellipse 40% 30% at 70% 15%, rgba(11, 79, 122, 0.12), transparent 45%);
    pointer-events: none;
    z-index: 0;
    animation: park-chat-aurora 12s ease-in-out infinite alternate;
}

.park-chat-header,
.park-chat-form,
.park-chat-messages {
    position: relative;
    z-index: 1;
}

.park-chat-header {
    text-align: center;
    margin-bottom: 1rem;
}

.park-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    padding: 0.3rem 0.75rem 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(11, 79, 122, 0.1);
    box-shadow: 0 2px 12px rgba(11, 79, 122, 0.06);
    backdrop-filter: blur(6px);
}

.park-chat-ai-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 55%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    animation: park-chat-icon-pulse 2.8s ease-in-out infinite;
}

.park-chat-ai-icon svg {
    display: block;
    fill: currentColor;
}

.park-chat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.park-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45);
    animation: park-chat-status-pulse 2s ease-out infinite;
}

.park-chat-box.is-thinking .park-chat-status-dot {
    background: #6366f1;
    animation: park-chat-status-pulse 0.8s ease-out infinite;
}

.park-chat-header h2 {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(
        95deg,
        var(--primary-dark) 0%,
        var(--primary) 35%,
        var(--teal) 68%,
        #4f46e5 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: park-chat-title-shimmer 6s linear infinite;
}

.park-chat-form {
    margin: 0;
}

.park-chat-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.park-chat-turnstile {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.park-chat-input-wrap {
    position: relative;
    width: 100%;
}

.park-chat-input-ring {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: var(--park-ai-ring);
    opacity: 0.45;
    z-index: 0;
    transition: opacity 0.25s, filter 0.25s;
    filter: blur(0.5px);
}

.park-chat-input-wrap:focus-within .park-chat-input-ring,
.park-chat-box.is-thinking .park-chat-input-ring {
    opacity: 0.95;
    filter: blur(0);
}

.park-chat-typewriter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    padding: 1.15rem 1.35rem;
    pointer-events: none;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #8fa3b8;
    z-index: 3;
    transition: opacity 0.2s;
    word-break: break-word;
}

.park-chat-typewriter.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.park-chat-type-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-right: 2px;
    background: linear-gradient(180deg, var(--teal), #6366f1);
    vertical-align: text-bottom;
    animation: park-chat-cursor-blink 0.9s step-end infinite;
}

@keyframes park-chat-cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.park-chat-input {
    display: block;
    width: 100%;
    min-height: 72px;
    max-height: 160px;
    resize: none;
    overflow-y: auto;
    border: none;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    transition: background 0.2s, box-shadow 0.25s;
    position: relative;
    z-index: 2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.park-chat-input::placeholder {
    color: transparent;
}

.park-chat-input:focus {
    outline: none;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(11, 79, 122, 0.08),
        0 8px 28px rgba(13, 148, 136, 0.12),
        0 0 24px rgba(99, 102, 241, 0.08);
}

.park-chat-input.is-loading {
    opacity: 0.65;
    cursor: wait;
}

.park-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 0.85rem;
    padding: 0.25rem 0.1rem;
    scrollbar-width: thin;
}

.park-chat-messages[hidden] {
    display: none !important;
}

.park-chat-msg {
    max-width: 92%;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.park-chat-msg--user {
    align-self: flex-end;
    margin-right: 0;
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.park-chat-msg--bot {
    align-self: flex-start;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 94%;
    background: linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
    color: var(--text);
    border: 1px solid rgba(11, 79, 122, 0.08);
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(11, 79, 122, 0.05);
}

.park-chat-msg-ai {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: #fff;
}

.park-chat-msg-ai svg {
    width: 0.75rem;
    height: 0.75rem;
    fill: currentColor;
}

.park-chat-msg-text {
    flex: 1;
    min-width: 0;
}

.park-chat-msg--loading {
    padding: 0.75rem 1rem;
}

.park-chat-thinking {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.park-chat-thinking-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .park-chat-box,
    .park-chat-box::before,
    .park-chat-aurora,
    .park-chat-ai-icon,
    .park-chat-status-dot,
    .park-chat-header h2 {
        animation: none;
    }

    .park-chat-header h2 {
        color: var(--primary);
        background: none;
        -webkit-text-fill-color: unset;
    }
}

@keyframes park-chat-angle {
    to {
        --park-ai-angle: 360deg;
    }
}

@property --park-ai-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes park-chat-aurora {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-2%, 3%) scale(1.04);
    }
}

@keyframes park-chat-icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    }
}

@keyframes park-chat-status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(13, 148, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

@keyframes park-chat-title-shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes park-chat-ring-pulse {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

.park-chat-dots {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    height: 10px;
}

.park-chat-dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: park-chat-bounce 1s ease-in-out infinite;
}

.park-chat-dots i:nth-child(2) {
    animation-delay: 0.15s;
}

.park-chat-dots i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes park-chat-bounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Services */
.services-section {
    background: var(--surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
}

.service-more {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* About */
.about-section {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-frame {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(11, 79, 122, 0.15), rgba(13, 148, 136, 0.2)),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=800&q=80') center/cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--surface);
}

.about-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* News */
.news-section {
    background: var(--surface);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s, transform 0.25s;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-thumb {
    display: block;
    height: 180px;
    overflow: hidden;
    background: var(--bg);
}

.news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.04);
}

.news-thumb--1 {
    background-image: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=600&q=80');
}

.news-thumb--2 {
    background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=600&q=80');
}

.news-thumb--3 {
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=600&q=80');
}

.news-body {
    padding: 1.25rem;
}

.news-body time {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
}

.news-body h3 {
    font-size: 1rem;
    margin: 0.4rem 0 0.5rem;
    line-height: 1.5;
}

.news-body h3 a:hover {
    color: var(--primary);
}

.news-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.news-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.news-link:hover {
    color: var(--accent);
}

@media (max-width: 900px) {
    .news-grid--home {
        grid-template-columns: 1fr;
    }
}

/* CTA */
.cta-section {
    padding: 0 0 3.5rem;
}

.cta-box {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 60%, var(--teal) 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-box p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Inner pages */
.page-banner {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    padding: 2rem 0 2.5rem;
}

.breadcrumb {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.page-banner h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
}

.page-content {
    padding: 2.5rem 0 4rem;
}

.content-box {
    background: var(--surface);
    padding: 2rem 2.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.content-box .lead {
    font-size: 1.05rem;
    color: var(--text);
}

.placeholder-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
}

.footer-top {
    padding: 2rem 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-link {
    display: inline-block;
    background: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 0;
}

.footer-logo-img {
    display: block;
    height: 72px;
    width: auto;
    max-width: min(340px, 88vw);
    object-fit: contain;
    object-position: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr;
    gap: 2rem;
    padding: 2rem 0 2rem;
}

.footer-partners-list li {
    margin-bottom: 0.4rem;
}

.footer-partners-list a {
    font-size: 0.84rem;
    line-height: 1.65;
}

.footer-contact-list .footer-contact-address {
    line-height: 1.8;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.footer-contact-list .contact-label {
    opacity: 0.75;
    margin-left: 0.25rem;
}

.footer-contact-list a {
    direction: ltr;
    display: inline-block;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-col p {
    font-size: 0.88rem;
    line-height: 1.8;
    opacity: 0.85;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.45rem;
}

.footer-col a {
    font-size: 0.88rem;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}

.footer-col a:hover {
    opacity: 1;
    color: #7dd3fc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    font-size: 0.82rem;
    opacity: 0.85;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.footer-copyright {
    margin: 0;
}

.footer-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.footer-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.footer-stat-label {
    opacity: 0.85;
}

.footer-stat-value {
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.footer-stat-sep {
    opacity: 0.45;
}

@media (max-width: 640px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-left: none;
    }

    .stat-item:nth-child(odd) {
        border-left: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-partners {
        grid-column: 1 / -1;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        height: auto;
        padding: 0.4rem 0;
        gap: 0.25rem;
    }

    .top-bar {
        height: auto;
    }

    .top-bar-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .main-nav.is-open {
        max-height: 85vh;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .nav-link.is-active::after {
        display: none;
    }

    .nav-link.is-active {
        background: #e8f2fa;
    }

    .nav-item-dropdown {
        width: 100%;
    }

    .nav-link-dropdown {
        width: 100%;
        justify-content: space-between;
        text-align: right;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f4f7fb;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .nav-item-dropdown.is-open .nav-dropdown {
        max-height: 280px;
        padding: 0.25rem 0;
    }

    .nav-dropdown-link {
        padding: 0.65rem 1.25rem;
        white-space: normal;
    }

    .site-header .header-inner {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-partners {
        grid-column: auto;
    }

    .logo-img {
        height: 52px;
        max-width: 200px;
    }

    .footer-logo-link {
        padding: 0.65rem 1rem;
    }

    .footer-logo-img {
        height: 56px;
        max-width: 260px;
    }

    .top-bar-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .section-head--row {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        border-left: none !important;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }
}
