:root {
    --navy: #0c2430;
    --navy-2: #14384a;
    --ink: #16242b;
    --muted: #5d6c74;
    --gold: #b8923a;
    --gold-2: #e4c98a;
    --cream: #f6f1e7;
    --paper: #fffdf9;
    --line: #e5dccb;
    --shadow: 0 18px 50px rgba(12, 36, 48, 0.08);
    --radius: 18px;
    --container: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.nav-open { overflow: hidden; }

body {
    margin: 0;
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.85;
    font-size: 16.5px;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea, select { font: inherit; }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 { line-height: 1.35; color: var(--navy); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    right: 12px;
    top: -48px;
    background: var(--gold);
    color: #1c1608;
    padding: 8px 12px;
    z-index: 80;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus { top: 8px; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--paper);
    border-top: 3px solid var(--gold);
    box-shadow: 0 1px 0 rgba(12, 36, 48, 0.04);
}

.topbar {
    background: var(--navy);
    color: #d7e0e4;
    font-size: 0.86rem;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.topbar a {
    color: var(--gold-2);
    text-decoration: none;
    font-weight: 700;
}

.nav-wrap { position: relative; }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 88px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
    min-width: 0;
}

.brand img { width: 68px; height: 68px; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }

.brand strong {
    font-size: clamp(0.98rem, 2.2vw, 1.28rem);
    font-weight: 800;
}

.brand small {
    color: var(--muted);
    font-size: clamp(0.68rem, 1.6vw, 0.8rem);
    font-weight: 600;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 999px;
}

.main-nav a:hover,
.main-nav a.is-active { background: var(--navy); color: #fff; }

.main-nav a.nav-cta { background: var(--gold); color: #1c1608; }

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.is-active { background: var(--navy); color: #fff; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.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); }

.hero {
    position: relative;
    height: clamp(560px, 86vh, 780px);
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 7.5s ease;
}

.slide.is-active .slide-bg { transform: scale(1.08); }

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(8, 22, 30, 0.92) 0%, rgba(8, 22, 30, 0.72) 46%, rgba(8, 22, 30, 0.25) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding-bottom: 78px;
}

.slide-content h1,
.slide-content h2 {
    color: #fff;
    font-size: clamp(1.75rem, 4.2vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.slide-content .lead {
    color: #e7eef1;
    font-size: 1.05rem;
    max-width: 38rem;
    margin-bottom: 22px;
}

.eyebrow {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.hero .eyebrow { color: var(--gold-2); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-gold {
    background: linear-gradient(180deg, #e6cb86, #c6a04a);
    color: #1c1608;
}

.btn-navy { background: var(--navy); color: #fff; }

.btn-line {
    background: transparent;
    color: var(--navy);
    border-color: #c9b48a;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.slider-btn {
    position: absolute;
    bottom: 22px;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(12, 36, 48, 0.35);
    color: #fff;
    cursor: pointer;
}

.slider-btn.next { left: 22px; bottom: 84px; }
.slider-btn.prev { left: 78px; bottom: 84px; }

.slider-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
}

.slider-dots button.is-active { background: var(--gold-2); transform: scale(1.15); }

.slider-progress {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--gold-2);
}

.slider-progress.is-run { animation: loadbar 6.5s linear; }

@keyframes loadbar { from { width: 0; } to { width: 100%; } }

.stats { margin-top: -46px; position: relative; z-index: 4; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.stat { background: #fff; text-align: center; padding: 22px 12px; }

.stat strong { display: block; color: var(--navy); font-size: 1.2rem; }

.stat span { color: var(--muted); font-size: 0.9rem; }

.section { padding: 78px 0; }

.section-paper { background: var(--paper); }

.section-head { max-width: 680px; margin-bottom: 28px; }

.section-head h2,
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }

.section-lead, .lede { color: var(--muted); font-size: 1.05rem; }

.about-grid, .contact-grid, .article-layout, .logo-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
}

.about-grid, .logo-panel { align-items: center; }
.contact-grid, .article-layout { align-items: start; }

.about-photo { position: relative; }

.about-photo img,
.logo-panel img,
.article-hero-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.about-photo img { height: 440px; }

.about-photo::after {
    content: "";
    position: absolute;
    inset: 16px 16px 0 0;
    border: 2px solid var(--gold);
    border-radius: 20px;
    z-index: 0;
}

.about-photo img { position: relative; z-index: 1; }

.reg-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: var(--navy);
    color: #fff;
    border-radius: 16px;
    padding: 12px 16px;
    min-width: 120px;
}

.reg-badge span { display: block; color: var(--gold-2); font-size: 0.82rem; }

.reg-badge strong { font-size: 1.7rem; letter-spacing: 0.04em; }

.vmg-grid, .goals-grid, .services-grid, .projects-grid, .articles-grid, .values-grid {
    display: grid;
    gap: 16px;
}

.vmg-grid { grid-template-columns: 1fr 1fr; }

.goals-grid, .values-grid, .services-grid { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }

.services-grid { grid-template-columns: repeat(3, 1fr); }

.projects-grid, .articles-grid { grid-template-columns: repeat(3, 1fr); }

.vmg-card, .goal-card, .service-card, .value-card, .info-card, .article-card, .project-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.vmg-card, .goal-card, .service-card, .value-card, .info-card { padding: 22px; }

.vmg-card { border-top: 4px solid var(--gold); background: var(--paper); }

.vmg-card h3, .goal-card h3, .service-card h3 { margin-bottom: 8px; font-size: 1.3rem; }

.num, .vmg-index {
    display: inline-block;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 8px;
}

.service-card p, .goal-card p, .value-card p, .vmg-card p { color: var(--muted); margin-bottom: 0; }

.service-card .more {
    display: inline-block;
    margin-top: 14px;
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.project-card, .article-card { overflow: hidden; text-decoration: none; color: inherit; }

.project-card img, .article-card img { width: 100%; height: 210px; object-fit: cover; }

.card-body { padding: 16px 16px 20px; }

.card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }

.card-body p { color: var(--muted); margin: 0; }

.tag, .article-meta {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.82rem;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.filters button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}

.filters button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

[hidden] { display: none !important; }

.page-hero {
    position: relative;
    color: #fff;
    padding: 58px 0 48px;
    background:
        linear-gradient(to left, rgba(8, 22, 30, 0.9), rgba(8, 22, 30, 0.55)),
        url("../images/city.jpg") center/cover no-repeat;
}

.page-hero h1, .page-hero p { color: #fff; }

.breadcrumb { color: var(--gold-2); font-weight: 700; margin-bottom: 8px; }

.breadcrumb a { color: #fff; text-decoration: none; }

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    counter-reset: step;
}

.steps li {
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px 16px;
    border-top: 3px solid var(--gold);
}

.steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 6px;
}

.steps span, .check-list { color: var(--muted); }

.check-list { padding-inline-start: 1.1rem; }
.check-list a { color: var(--navy); font-weight: 800; }

.logo-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    align-items: center;
}

.logo-panel img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    background: var(--cream);
}

.prose h2 { font-size: 1.35rem; margin: 26px 0 8px; }

.prose p { margin: 0 0 14px; }

.prose ul { margin: 0 0 16px; padding-inline-start: 1.2rem; }

.article-hero-img { height: 380px; margin-bottom: 22px; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.note { color: var(--muted); font-size: 0.92rem; margin-top: 18px; }

.cta-band {
    background:
        linear-gradient(to left, rgba(12, 36, 48, 0.92), rgba(12, 36, 48, 0.78)),
        url("../images/slide-1.jpg") center/cover;
    color: #fff;
    padding: 48px 0;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-band h2 { color: #fff; margin-bottom: 6px; }

.cta-band p { margin: 0; color: #e5eef2; }

.site-footer {
    background: var(--navy);
    color: #d5dee3;
    padding-top: 42px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
}

.site-footer h2 { color: #fff; font-size: 1.05rem; }

.site-footer a { color: var(--gold-2); text-decoration: none; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-footer li { margin-bottom: 6px; }

.footer-brand strong, .footer-brand small { color: #fff; }

.footer-logo {
    background: var(--cream);
    border-radius: 16px;
    padding: 4px;
    display: inline-flex;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0 20px;
    font-size: 0.88rem;
}

.footer-bottom p { margin: 0 0 4px; }

.wa-float {
    position: fixed;
    z-index: 35;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #128c7e;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.contact-grid { align-items: start; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

.field label { font-weight: 800; color: var(--navy); }

.field input, .field textarea, .field select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d9d0c2;
    background: #fff;
    color: var(--ink);
}

.field textarea { min-height: 140px; resize: vertical; }

.form-card, .info-stack { display: flex; flex-direction: column; gap: 12px; }

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
}

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }

.alert-ok { background: #e7f6ee; color: #145c32; }

.alert-err { background: #fdecec; color: #8a1f1f; }

.form-card { position: relative; }
.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.contact-phone {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
}

.map-frame {
    margin-top: 22px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 320px;
    background: #e7eef1;
}

.map-frame iframe { width: 100%; height: 340px; border: 0; }

.service-block {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.service-block h2 { margin-bottom: 6px; }

@media (max-width: 1080px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        background: var(--paper);
        padding: 8px 16px 16px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(12, 36, 48, 0.08);
    }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px 14px; }
    .goals-grid, .values-grid, .steps { grid-template-columns: 1fr 1fr; }
    .services-grid, .projects-grid, .articles-grid, .related-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid, .about-grid, .contact-grid, .article-layout, .logo-panel, .cta-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .section { padding: 52px 0; }
    .stats { margin-top: -28px; }
    .stats-grid, .vmg-grid, .goals-grid, .values-grid, .services-grid, .projects-grid, .articles-grid, .related-grid, .steps, .form-row {
        grid-template-columns: 1fr;
    }
    .about-photo img, .article-hero-img, .logo-panel img { height: 240px; }
    .brand img { width: 54px; height: 54px; }
    .hide-sm { display: none; }
    .slider-dots { display: none; }
    .wa-float span { display: none; }
    .wa-float { padding: 12px; }
    .service-block { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .slide-bg { transform: none !important; }
}
