:root {
    --bg: #0b0d0f;
    --bg-2: #121416;
    --bg-3: #1a1d21;
    --teal: #05695f;
    --teal-soft: rgba(5, 105, 95, 0.22);
    --terracotta: #c05530;
    --ink: #f4efe8;
    --muted: #b7b1a8;
    --line: rgba(244, 239, 232, 0.08);
    --radius: 18px;
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    line-height: 1.8;
}

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

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

h1, h2, h3 {
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

main {
    padding-top: var(--header-h);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    height: var(--header-h);
    background: rgba(11, 13, 15, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.section,
.page-hero,
.footer-grid,
.footer-bar,
.flash-wrap {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(5, 105, 95, 0.35));
}

.brand strong {
    display: block;
    font-size: 0.95rem;
}

.brand small {
    color: var(--muted);
    font-size: 0.72rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a {
    font-size: 0.92rem;
    color: var(--muted);
}

.site-nav a.is-active,
.site-nav a:hover {
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--bg-3);
    border-radius: 12px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 4px auto;
    background: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
}

.btn-cta {
    background: var(--terracotta);
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(192, 85, 48, 0.28);
}

.btn-ghost {
    border-color: var(--line);
    background: transparent;
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    place-items: end stretch;
    overflow: hidden;
}

.hero-media,
.hero-veil {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
    from { transform: scale(1.04) translateY(0); }
    to { transform: scale(1.12) translateY(-2%); }
}

.hero-veil {
    background:
        linear-gradient(180deg, rgba(11, 13, 15, 0.15) 0%, rgba(11, 13, 15, 0.55) 45%, #0b0d0f 100%),
        linear-gradient(90deg, rgba(11, 13, 15, 0.55), transparent 55%);
}

.hero-content {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 64px;
}

.kicker {
    color: var(--teal);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    max-width: 16ch;
}

.lede {
    font-size: 1.15rem;
    max-width: 42ch;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 1.4rem 0 1.8rem;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.hero-meta div {
    background: rgba(18, 20, 22, 0.7);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
}

.hero-meta dt {
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-meta dd {
    margin: 0;
    font-weight: 700;
}

.section {
    padding: 72px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 28px;
}

.intro-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 36px;
    align-items: center;
}

.intro-frame {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 280px;
}

.intro-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}

.intro-frame.icon-only {
    display: grid;
    place-items: center;
    background: var(--bg-2);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.photo-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 280px;
    border: 1px solid var(--line);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

.photo-card-body {
    position: absolute;
    inset: auto 0 0;
    padding: 18px;
    background: linear-gradient(transparent, rgba(11, 13, 15, 0.92));
}

.photo-card-body p {
    margin: 0;
    font-size: 0.85rem;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

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

.icon-card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    min-height: 170px;
}

.icon-card h3 {
    margin-top: 12px;
}

.icon-card p {
    margin: 0;
    font-size: 0.9rem;
}

.cta-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--bg-3), #13201e);
    border: 1px solid var(--teal-soft);
    border-radius: 24px;
    padding: 32px;
    width: min(1120px, calc(100% - 32px));
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.mosaic-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 180px;
}

.mosaic-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

.mosaic-item figcaption {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.8rem;
    background: rgba(11, 13, 15, 0.7);
    padding: 4px 10px;
    border-radius: 999px;
}

.page-hero {
    padding: 64px 0 12px;
}

.stack-cards {
    display: grid;
    gap: 22px;
}

.stack-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}

.stack-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

.stack-body {
    padding: 28px;
}

.chips,
.facts,
.plain-list,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chips li {
    border: 1px solid var(--line);
    background: var(--bg-3);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.82rem;
}

.facts li,
.plain-list li,
.contact-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

.detail-hero {
    position: relative;
    min-height: 58vh;
}

.detail-hero img {
    width: 100%;
    height: 58vh;
    object-fit: cover;
}

.detail-hero-copy {
    position: absolute;
    inset: auto 0 0;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 36px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
}

.side-panel,
.contact-form {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

.field-input {
    width: 100%;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}

.field-error {
    color: #e07a5f;
    font-size: 0.8rem;
}

.faq-item {
    border: 1px solid var(--line);
    background: var(--bg-2);
    border-radius: 16px;
    padding: 8px 18px;
    margin-bottom: 10px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 10px 0;
}

.text-link {
    color: var(--teal);
    font-weight: 600;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding: 48px 0 0;
    margin-top: 40px;
}

.footer-ornament {
    width: min(420px, 70%);
    margin: 0 auto 28px;
    opacity: 0.85;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 28px;
    padding-bottom: 32px;
}

.footer-grid h3 {
    font-size: 1rem;
}

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

.footer-grid li {
    margin-bottom: 6px;
    color: var(--muted);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 28px;
    color: var(--muted);
    font-size: 0.85rem;
}

.flash-wrap {
    padding-top: 18px;
}

.flash {
    background: var(--teal-soft);
    border: 1px solid var(--teal);
    border-radius: 12px;
    padding: 10px 14px;
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        right: 16px;
        left: 16px;
        background: rgba(18, 20, 22, 0.96);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav.is-open { display: flex; }
    .hero-meta,
    .card-grid,
    .icon-grid,
    .icon-grid-wide,
    .gallery-mosaic,
    .intro-split,
    .stack-card,
    .detail-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .mosaic-item:nth-child(1) {
        grid-column: auto;
        grid-row: auto;
    }
    .cta-band,
    .footer-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .hero,
    .detail-hero img {
        min-height: 70vh;
    }
}
