:root {
    --cream: #f4e7c7;
    --cream-soft: #f7eed7;
    --cream-card: #fbf4e2;
    --cream-line: #e3d4ae;
    --navy: #1b2a4a;
    --navy-deep: #16233d;
    --navy-soft: #23324f;
    --gold: #dfa93f;
    --gold-light: #ecc164;
    --pink: #bb3a66;
    --pink-light: #d4557f;
    --teal: #2c8a86;
    --rope-green: #86c0a4;
    --ink: #1b2a4a;
    --muted: #7a6f5c;
    --muted-light: #b9b0a0;
    --shell: #efe6c8;
    --radius: 14px;
    --arch: 999px 999px 16px 16px;
    --container: 1180px;
    --scroll-offset: 88px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset);
}

section[id],
footer[id] {
    scroll-margin-top: var(--scroll-offset);
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: var(--font-family, 'Vazirmatn', Tahoma, sans-serif);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

.page {
    width: 100%;
    min-width: 0;
    background: var(--cream);
    overflow-x: clip;
}

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

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- rope divider ---------- */
.rope {
    height: 17px;
    background-color: var(--cream-soft);
    background-image: repeating-linear-gradient(115deg,
            #24303a 0 3px,
            #cdbf9a 3px 6px,
            var(--rope-green) 6px 13px,
            #f2ead0 13px 16px);
    border-top: 2px solid #22303c;
    border-bottom: 2px solid #22303c;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
    padding: 8px 0;
}

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

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

.logo--footer img {
    height: 46px;
    max-width: 170px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #33405c;
}

.main-nav a {
    position: relative;
    padding: 6px 0;
    transition: color .2s;
}

.main-nav a:hover {
    color: var(--pink);
}

.main-nav a.is-active {
    color: var(--navy);
    font-weight: 700;
}

.main-nav a.is-active::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--cream-line);
    background: var(--cream-soft);
    display: grid;
    place-items: center;
    color: var(--navy);
    cursor: pointer;
    position: relative;
    transition: background .2s, border-color .2s;
}

.icon-btn:hover {
    background: #fff;
    border-color: var(--gold);
}

.icon-btn .dot {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-size: 9px;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.nav-toggle {
    display: none;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, color .2s;
    white-space: nowrap;
}

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

.btn-gold {
    background: var(--gold);
    color: #22314f;
    box-shadow: 0 8px 20px rgba(223, 169, 63, .28);
}

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

.btn-sm {
    padding: 9px 20px;
    font-size: 14px;
    border-radius: 9px;
}

.btn-ghost-light {
    background: transparent;
    border-color: rgba(244, 231, 199, .45);
    color: var(--cream);
}

.btn-ghost-light:hover {
    background: rgba(244, 231, 199, .1);
}

.btn-navy {
    background: var(--navy);
    color: var(--cream);
    width: 100%;
}

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

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

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

/* ---------- section heads ---------- */
.section {
    padding: 54px 0;
    background: var(--cream);
}

.section-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 38px;
}

.badge {
    display: inline-block;
    background: var(--pink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 33px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.6;
}

.section-sub {
    margin-top: 10px;
    font-size: 15px;
    color: var(--muted);
}

.on-navy .section-title {
    color: var(--cream);
}

.on-navy .section-sub {
    color: rgba(244, 231, 199, .68);
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    background: var(--navy);
    color: var(--cream);
    padding: 42px 0 34px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 78% 12%, rgba(223, 169, 63, .09), transparent 62%),
        radial-gradient(700px 460px at 12% 88%, rgba(44, 138, 134, .12), transparent 62%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 40px;
}

.hero-title {
    font-size: 43px;
    font-weight: 900;
    line-height: 1.62;
    color: #fff;
}

.hero-title .accent {
    color: var(--gold);
}

.hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 20px 0 0;
    padding: 0;
    text-align: right;
}

.hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(244, 231, 199, .84);
}

.hero-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(223, 169, 63, .14);
    color: var(--gold);
}

.hero-feature-icon svg {
    width: 17px;
    height: 17px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 46px;
    margin-top: 34px;
}

.hero-stats .num {
    font-size: 27px;
    font-weight: 900;
    color: var(--gold);
}

.hero-stats .lbl {
    font-size: 13px;
    color: rgba(244, 231, 199, .62);
}

/* hero art */
.hero-art {
    position: relative;
    height: 392px;
}

.arch {
    border-radius: var(--arch);
    overflow: hidden;
    background: #26344f;
}

.arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-art .art-main {
    position: absolute;
    inset-inline-start: 30px;
    top: 0;
    width: 246px;
    height: 372px;
    border: 3px solid var(--gold);
    padding: 9px;
    border-radius: var(--arch);
    background: var(--navy);
}

.hero-art .art-main .arch {
    width: 100%;
    height: 100%;
    border-radius: 999px 999px 10px 10px;
}

.hero-art .art-side {
    position: absolute;
    inset-inline-end: 104px;
    bottom: 6px;
    width: 152px;
    height: 176px;
    z-index: 2;
    border: 3px solid var(--teal);
    border-radius: var(--arch);
    overflow: hidden;
    background: var(--navy);
}

.hero-art .art-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-chip {
    position: absolute;
    z-index: 3;
    background: var(--cream-soft);
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    white-space: nowrap;
}

.float-chip svg {
    color: var(--teal);
}

.chip-top {
    top: 22px;
    inset-inline-end: 24px;
}

.chip-bottom {
    bottom: 58px;
    inset-inline-start: 92px;
}

/* ---------- bag types ---------- */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.type-card {
    background: var(--cream-card);
    border: 1px solid var(--cream-line);
    border-radius: 18px;
    padding: 14px 14px 20px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(27, 42, 74, .12);
    border-color: var(--gold);
}

.type-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, #f7ebe0 0%, #f0dfc8 100%);
    margin-bottom: 16px;
}

.type-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(27, 42, 74, .06);
    pointer-events: none;
}

.type-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}

.type-card:hover .type-media img {
    transform: scale(1.05);
}

.type-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.type-name::after {
    content: '';
    position: absolute;
    inset-inline: 18%;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    opacity: .85;
    transition: inset-inline .25s ease, opacity .25s ease;
}

.type-card:hover .type-name::after {
    inset-inline: 8%;
    opacity: 1;
}

.type-cta {
    margin-top: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.type-cta-hint {
    font-size: 14.5px;
    color: var(--muted);
    max-width: 420px;
    line-height: 1.8;
}

.btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 260px;
    padding: 16px 36px;
    border-radius: 12px;
    border: none;
    background: #1B2A4A;
    color: var(--cream);
    font-size: 17px;
    font-weight: 800;
    position: relative;
    box-shadow: 0 10px 24px rgba(27, 42, 74, .28);
    animation: order-pulse 2s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}

.btn-order:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.08);
    box-shadow: 0 14px 30px rgba(27, 42, 74, .38);
    animation: none;
}

.btn-order:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-order:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.btn-order svg {
    transition: transform .2s ease;
}

.btn-order:hover svg {
    transform: translateX(-3px);
}

@keyframes order-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 24px rgba(27, 42, 74, .28);
    }
    50% {
        transform: scale(1.035);
        box-shadow: 0 14px 32px rgba(27, 42, 74, .4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-order {
        animation: none;
    }
}

/* ---------- products ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    text-align: center;
}

.product-media {
    height: 208px;
    border-radius: var(--arch);
    overflow: hidden;
    background: #e6dcc4;
    margin-bottom: 16px;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}

.product-card:hover .product-media img {
    transform: scale(1.06);
}

.product-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

.product-price {
    font-size: 13.5px;
    color: var(--muted);
    margin: 5px 0 14px;
}

.product-price b {
    color: var(--pink);
    font-weight: 700;
}

/* ---------- why us ---------- */
.why-us {
    background: var(--navy);
    padding: 64px 0;
    color: var(--cream);
}

.why-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 40px;
    align-items: center;
}

.why-head {
    margin-bottom: 40px;
}

.why-title {
    color: #fff;
}

.why-lead {
    font-size: 15px;
    line-height: 2;
    color: rgba(244, 231, 199, .78);
    margin-bottom: 26px;
    max-width: 520px;
}

.why-points {
    list-style: none;
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

.why-points li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(244, 231, 199, .1);
    border-radius: 14px;
    padding: 14px 16px;
}

.why-point-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(223, 169, 63, .16);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    margin-top: 2px;
}

.why-points strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.why-points p {
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(244, 231, 199, .62);
    margin: 0;
}

.why-media {
    width: 100%;
}

.why-video-frame {
    position: relative;
    border-radius: 18px;
    padding: 8px;
    background: linear-gradient(145deg, rgba(223, 169, 63, .55), rgba(44, 138, 134, .35), rgba(187, 58, 102, .25));
    box-shadow: 0 22px 50px rgba(0, 0, 0, .28);
}

.why-video {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #101a2e;
    aspect-ratio: 16 / 9;
}

.why-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
    background: #101a2e;
    overflow: hidden;
}

.why-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform .35s ease, filter .25s ease, opacity .35s ease;
}

.why-video.has-thumb .why-video-thumb {
    opacity: 1;
}

.why-video-poster:hover .why-video-thumb {
    transform: scale(1.04);
    filter: brightness(.88);
}

.why-video-poster:disabled {
    cursor: wait;
}

.why-video-poster:disabled .why-video-thumb {
    filter: brightness(.7);
}

.why-video-play {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(27, 42, 74, .88);
    color: var(--gold);
    border: 2px solid rgba(223, 169, 63, .75);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
    padding-inline-start: 3px;
    transition: transform .2s ease, background .2s ease;
}

.why-video-poster:hover .why-video-play {
    transform: scale(1.06);
    background: #1B2A4A;
}

.why-video-poster-text {
    display: none;
}

.why-video.is-loading::before {
    content: 'در حال بارگذاری ویدیو...';
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: rgba(16, 26, 46, .72);
    color: rgba(244, 231, 199, .9);
    font-size: 14px;
    font-weight: 600;
}

.why-video-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
    background: #101a2e;
    color: rgba(244, 231, 199, .82);
}

.why-video-fallback p {
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
    max-width: 280px;
}

.why-video-fallback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--gold);
    color: #1B2A4A;
    font-size: 13.5px;
    font-weight: 700;
}

.why-video-player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.why-video > div,
.why-video iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* ---------- steps ---------- */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 12px;
}

.steps::before {
    content: '';
    position: absolute;
    top: 27px;
    inset-inline: 9%;
    height: 2px;
    background: var(--cream-line);
}

.step {
    position: relative;
    text-align: center;
}

.step-num {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    display: grid;
    place-items: center;
    border: 5px solid var(--cream);
    box-shadow: 0 6px 16px rgba(187, 58, 102, .3);
}

.step h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.step p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.9;
    max-width: 190px;
    margin: 0 auto;
}

/* ---------- brands ---------- */
.brands-section {
    background: var(--navy);
    padding: 56px 0 48px;
    overflow: hidden;
}

.brands-head {
    margin-bottom: 36px;
}

.brands-title {
    color: #fff;
}

.brands-sub {
    color: rgba(244, 231, 199, .68);
}

.brands-marquee {
    overflow: hidden;
    direction: ltr;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.brands-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 18px;
    width: max-content;
    padding: 6px 12px 10px;
    animation: brands-marquee 38s linear infinite;
    will-change: transform;
}

.brands-marquee:hover .brands-track,
.brands-marquee:focus-within .brands-track {
    animation-play-state: paused;
}

.brand-item {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 148px;
    padding: 18px 20px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(244, 231, 199, .14);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.brand-item:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: rgba(223, 169, 63, .55);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}

.brand-item-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 56px;
}

.brand-item-logo img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 132px;
    object-fit: contain;
}

.brand-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

@keyframes brands-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brands-track {
        animation-duration: 60s;
    }
}

/* ---------- blog ---------- */
.blog-section {
    padding-top: 58px;
    padding-bottom: 62px;
}

.blog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.blog-head-main {
    max-width: 640px;
}

.blog-head-main .section-title {
    margin-top: 10px;
}

.blog-sub {
    margin-top: 8px;
}

.badge-navy {
    background: rgba(27, 42, 74, .08);
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--cream);
}

.blog-all-link {
    flex-shrink: 0;
    margin-top: 6px;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 10px;
}

.blog-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.blog-showcase--solo {
    grid-template-columns: 1fr;
}

.blog-showcase__lead {
    min-height: 100%;
}

.blog-showcase__lead .blog-card {
    min-height: 100%;
    height: 100%;
}

.blog-showcase__rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.blog-showcase__rail:has(.blog-card:only-child) {
    grid-template-columns: 1fr;
}

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

.blog-card {
    position: relative;
    height: 100%;
    min-height: 250px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy-deep);
    border: 1px solid rgba(27, 42, 74, .12);
    box-shadow: 0 14px 32px rgba(27, 42, 74, .08);
    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.blog-card--featured {
    min-height: 460px;
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(223, 169, 63, .55);
    box-shadow:
        0 22px 44px rgba(27, 42, 74, .16),
        0 0 0 1px rgba(223, 169, 63, .18);
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: inherit;
    color: inherit;
    text-decoration: none;
    outline: none;
}

.blog-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(223, 169, 63, .28), transparent 42%),
        linear-gradient(160deg, #2a3d66 0%, #1b2a4a 55%, #16233d 100%);
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .7s cubic-bezier(.22, 1, .36, 1), filter .7s ease;
    filter: saturate(0.92) contrast(1.03);
}

.blog-card:hover .blog-card__media img,
.blog-card:focus-within .blog-card__media img {
    transform: scale(1.1);
    filter: saturate(1.05) contrast(1.05);
}

.blog-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(223, 169, 63, .22), transparent 45%),
        linear-gradient(160deg, #31476f, #1b2a4a 60%, #122038);
}

.blog-card__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(22, 35, 61, .08) 0%, rgba(22, 35, 61, .28) 38%, rgba(16, 26, 46, .88) 100%);
    transition: background .4s ease;
}

.blog-card:hover .blog-card__veil,
.blog-card:focus-within .blog-card__veil {
    background:
        linear-gradient(180deg, rgba(22, 35, 61, .16) 0%, rgba(22, 35, 61, .42) 34%, rgba(12, 20, 36, .94) 100%);
}

.blog-card__shine {
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(90deg, transparent, rgba(223, 169, 63, .16), transparent);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
}

.blog-card:hover .blog-card__shine,
.blog-card:focus-within .blog-card__shine {
    opacity: 1;
    transform: translateY(0);
}

.blog-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
    color: #f7eed7;
}

.blog-card--featured .blog-card__body {
    padding: 28px 28px 30px;
    gap: 12px;
    max-width: 92%;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.blog-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(223, 169, 63, .92);
    color: var(--navy-deep);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.blog-card__date {
    font-size: 12px;
    font-weight: 600;
    color: rgba(247, 238, 215, .72);
}

.blog-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.7;
    color: #fff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s ease;
}

.blog-card--featured .blog-card__title {
    font-size: 28px;
    line-height: 1.55;
    -webkit-line-clamp: 4;
}

.blog-card:hover .blog-card__title,
.blog-card:focus-within .blog-card__title {
    color: var(--gold-light);
}

.blog-card__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.9;
    color: rgba(247, 238, 215, .78);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card--featured .blog-card__excerpt {
    font-size: 14.5px;
    -webkit-line-clamp: 3;
    max-width: 36em;
}

.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-light);
    transition: gap .25s ease, color .25s ease;
}

.blog-card__more svg {
    transform: scaleX(-1);
    transition: transform .25s ease;
}

.blog-card:hover .blog-card__more,
.blog-card:focus-within .blog-card__more {
    gap: 12px;
    color: #fff;
}

.blog-card:hover .blog-card__more svg,
.blog-card:focus-within .blog-card__more svg {
    transform: scaleX(-1) translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__media img,
    .blog-card__veil,
    .blog-card__shine,
    .blog-card__more,
    .blog-card__more svg,
    .blog-card__title {
        transition: none;
    }

    .blog-card:hover,
    .blog-card:focus-within {
        transform: none;
    }

    .blog-card:hover .blog-card__media img,
    .blog-card:focus-within .blog-card__media img {
        transform: none;
    }
}

.blog-page {
    min-height: 50vh;
    padding-top: 72px;
}

.blog-empty {
    text-align: center;
    color: var(--muted, #7a6f5c);
    padding: 40px 16px;
}

.blog-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.blog-back {
    margin-top: 28px;
    text-align: center;
}

/* ---------- portfolio ---------- */
.portfolio-page {
    min-height: 50vh;
    padding-top: 72px;
}

.portfolio-section {
    background: var(--navy);
}

.portfolio-section .section-title {
    color: var(--cream);
}

.portfolio-section .section-sub {
    color: rgba(244, 231, 199, .68);
}

.portfolio-section .badge-navy {
    background: rgba(223, 169, 63, .18);
    color: var(--gold-light);
}

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

.portfolio-grid--row {
    grid-template-columns: repeat(var(--portfolio-cols, 3), minmax(0, 1fr));
}

.portfolio-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #16233d;
    border: 1px solid rgba(227, 212, 174, .35);
    box-shadow: 0 12px 28px rgba(27, 42, 74, .14);
    isolation: isolate;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(16, 26, 46, .04) 36%, rgba(16, 26, 46, .5) 100%);
    pointer-events: none;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(223, 169, 63, 0);
    transition: box-shadow .35s ease;
    pointer-events: none;
}

.portfolio-card:hover,
.portfolio-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(27, 42, 74, .26);
    border-color: var(--gold);
}

.portfolio-card:hover::after,
.portfolio-card:focus-within::after {
    box-shadow: inset 0 0 0 1px rgba(223, 169, 63, .4);
}

.portfolio-card__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(160deg, #2a3d66 0%, #1b2a4a 60%, #16233d 100%);
}

.portfolio-card__zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: zoom-in;
}

.portfolio-card__zoom:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}

.portfolio-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.portfolio-card:hover .portfolio-card__media img,
.portfolio-card:focus-within .portfolio-card__media img {
    transform: scale(1.07);
}

.portfolio-card__hint {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 50% 42%, rgba(16, 26, 46, .5), transparent 68%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.portfolio-card__hint svg {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5));
    transform: translateY(6px);
    transition: transform .3s ease;
}

.portfolio-card:hover .portfolio-card__hint,
.portfolio-card:focus-within .portfolio-card__hint {
    opacity: 1;
}

.portfolio-card:hover .portfolio-card__hint svg,
.portfolio-card:focus-within .portfolio-card__hint svg {
    transform: translateY(0);
}

.portfolio-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(244, 231, 199, .45);
}

.portfolio-card__body {
    position: absolute;
    z-index: 2;
    inset-inline: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 15px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(22, 35, 61, .36), rgba(16, 26, 46, .66));
    -webkit-backdrop-filter: blur(10px) saturate(1.15);
    backdrop-filter: blur(10px) saturate(1.15);
    border: 1px solid rgba(244, 231, 199, .22);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
    pointer-events: none;
}

.portfolio-card__tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(223, 169, 63, .92);
    color: var(--navy-deep);
    font-size: 10.5px;
    font-weight: 800;
}

.portfolio-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    transition: color .25s ease;
}

.portfolio-card:hover .portfolio-card__title,
.portfolio-card:focus-within .portfolio-card__title {
    color: var(--gold-light);
}

.portfolio-card__desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.85;
    color: rgba(244, 231, 199, .82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-cta {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ---------- portfolio lightbox ---------- */
.portfolio-lightbox-open {
    overflow: hidden;
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.portfolio-lightbox[hidden] {
    display: none;
}

.portfolio-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 20, 36, .93);
    animation: portfolio-lightbox-fade .25s ease;
}

.portfolio-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: min(1120px, 94vw);
    max-height: 94vh;
}

.portfolio-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(74vh, 760px);
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    touch-action: none;
}

.portfolio-lightbox__stage.is-grabbable {
    cursor: grab;
}

.portfolio-lightbox__stage.is-dragging {
    cursor: grabbing;
}

.portfolio-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .2s ease;
}

.portfolio-lightbox__stage.is-dragging .portfolio-lightbox__image {
    transition: none;
}

.portfolio-lightbox__toolbar {
    display: flex;
    gap: 6px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(244, 231, 199, .18);
    backdrop-filter: blur(6px);
}

.portfolio-lightbox__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--cream);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.portfolio-lightbox__btn:hover,
.portfolio-lightbox__btn:focus-visible {
    background: rgba(223, 169, 63, .92);
    color: var(--navy-deep);
    outline: none;
}

.portfolio-lightbox__btn--close:hover,
.portfolio-lightbox__btn--close:focus-visible {
    background: var(--pink);
    color: #fff;
}

.portfolio-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(244, 231, 199, .22);
    border-radius: 50%;
    background: rgba(12, 20, 36, .6);
    color: var(--cream);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.portfolio-lightbox__nav:hover,
.portfolio-lightbox__nav:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
    outline: none;
}

.portfolio-lightbox__nav--prev {
    inset-inline-start: 14px;
}

.portfolio-lightbox__nav--next {
    inset-inline-end: 14px;
}

.portfolio-lightbox__meta {
    width: min(760px, 100%);
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(244, 231, 199, .16);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    text-align: center;
}

.portfolio-lightbox__meta[hidden] {
    display: none;
}

.portfolio-lightbox__title {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.7;
    color: #fff;
}

.portfolio-lightbox__title[hidden] {
    display: none;
}

.portfolio-lightbox__desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.95;
    color: rgba(244, 231, 199, .82);
    white-space: pre-line;
    max-height: 22vh;
    overflow: auto;
}

.portfolio-lightbox__desc[hidden] {
    display: none;
}

@keyframes portfolio-lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .portfolio-lightbox {
        padding: 12px;
    }

    .portfolio-lightbox__stage {
        height: 62vh;
        border-radius: 12px;
    }

    .portfolio-lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .portfolio-lightbox__btn {
        width: 38px;
        height: 38px;
    }
}

.portfolio-page .posts-pager ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.portfolio-page .posts-pager a,
.portfolio-page .posts-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--cream-line);
    background: var(--cream-card);
    color: var(--navy);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
}

.portfolio-page .posts-pager a:hover {
    border-color: var(--gold);
    color: #b8842a;
}

.portfolio-page .posts-pager .is-active span {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--cream);
}

.portfolio-page .posts-pager .is-disabled span {
    opacity: .45;
}

@media (max-width: 1024px) {
    .portfolio-grid,
    .portfolio-grid--row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .portfolio-grid,
    .portfolio-grid--row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .portfolio-card__title {
        font-size: 15.5px;
    }

    .portfolio-cta {
        margin-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-card,
    .portfolio-card__media img,
    .portfolio-card__hint,
    .portfolio-card__hint svg,
    .portfolio-lightbox__image {
        transition: none;
    }

    .portfolio-card:hover,
    .portfolio-card:focus-within {
        transform: none;
    }

    .portfolio-card:hover .portfolio-card__media img,
    .portfolio-card:hover .portfolio-card__hint svg {
        transform: none;
    }

    .portfolio-lightbox__backdrop {
        animation: none;
    }
}

.blog-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: linear-gradient(135deg, #e8dfc8, #f4e7c7);
}

/* ===== Single post article ===== */
.blog-article {
    position: relative;
    padding: 20px 0 80px;
    overflow: clip;
    background:
        radial-gradient(ellipse 70% 40% at 100% 0%, rgba(223, 169, 63, 0.16), transparent 55%),
        radial-gradient(ellipse 55% 35% at 0% 20%, rgba(27, 42, 74, 0.06), transparent 50%),
        linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 42%, #f8f1df 100%);
}

.blog-article__glow {
    pointer-events: none;
    position: absolute;
    inset-inline: 8%;
    top: 110px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
    filter: blur(20px);
}

.blog-article__shell {
    position: relative;
    z-index: 1;
    max-width: min(1320px, 100%);
}

.container.blog-article__shell {
    max-width: min(1320px, 100%);
}

.blog-article__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--muted);
}

.blog-article__crumb a {
    color: var(--navy-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-article__crumb a:hover {
    color: var(--gold);
}

.blog-article__crumb-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cream-line);
}

/* RTL: first column (copy) sits on the right, featured image on the left */
.blog-article__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px 36px;
    align-items: stretch;
    margin-bottom: 28px;
    animation: blog-rise 0.55s ease both;
}

.blog-article__intro--no-media {
    grid-template-columns: 1fr;
}

.blog-article__intro-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 8px 4px 4px;
}

.blog-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.blog-article__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(223, 169, 63, 0.35);
    background: rgba(255, 255, 255, 0.7);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-article__tag:hover {
    background: #fff;
    border-color: var(--gold);
    transform: translateY(-1px);
}

.blog-article__title {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3.4vw, 2.45rem);
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--navy-deep);
    text-wrap: balance;
}

.blog-article__lead {
    position: relative;
    margin: 0 0 20px;
    padding: 16px 18px 16px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(251, 244, 226, 0.92));
    border: 1px solid var(--cream-line);
    color: var(--navy-soft);
    font-size: 1.05rem;
    line-height: 1.9;
    box-shadow: 0 10px 24px rgba(27, 42, 74, 0.04);
}

.blog-article__lead::before {
    content: '';
    position: absolute;
    inset-block: 12px;
    inset-inline-start: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
}

.blog-article__lead p {
    margin: 0;
}

.blog-article__lead p + p {
    margin-top: 0.7em;
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 18px;
    margin-top: auto;
    padding: 14px 16px;
    border: 1px solid rgba(227, 212, 174, 0.9);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.88);
    box-shadow: 0 8px 22px rgba(27, 42, 74, 0.04);
}

.blog-article__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-article__avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--navy), var(--navy-soft));
    color: var(--cream);
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(27, 42, 74, 0.18);
}

.blog-article__author-copy {
    display: grid;
    gap: 2px;
}

.blog-article__author-copy strong {
    color: var(--navy);
    font-size: 14px;
}

.blog-article__author-copy span {
    color: var(--muted);
    font-size: 12px;
}

.blog-article__meta-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.blog-article__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.blog-article__meta-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

.blog-article__hero {
    position: relative;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
    min-height: 100%;
    background: var(--navy-deep);
    box-shadow:
        0 18px 40px rgba(27, 42, 74, 0.14),
        0 0 0 1px rgba(227, 212, 174, 0.7);
    animation: blog-rise 0.65s 0.06s ease both;
}

.blog-article__hero img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.blog-article__hero-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(22, 35, 61, 0.22) 100%);
    pointer-events: none;
}

.blog-article__panel {
    margin-top: 8px;
    padding: 40px 48px 36px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, #fffcf6 0%, #fffaf0 100%);
    border: 1px solid rgba(227, 212, 174, 0.95);
    box-shadow:
        0 18px 48px rgba(27, 42, 74, 0.07),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    animation: blog-rise 0.7s 0.12s ease both;
}

.blog-article__body {
    width: 100%;
    max-width: none;
    font-size: 1.08rem;
    line-height: 2;
    color: var(--ink);
    text-align: start;
}

.blog-article__body > *:first-child {
    margin-top: 0;
}

.blog-article__body > *:last-child {
    margin-bottom: 0;
}

/* Normalize TinyMCE inline leftovers so text fills the panel correctly */
.blog-article__body p,
.blog-article__body li,
.blog-article__body td,
.blog-article__body th {
    text-align: start;
}

.blog-article__body span {
    background-color: transparent !important;
    color: inherit !important;
    font-size: inherit !important;
}

.blog-article__body [style*="text-align"] {
    text-align: start !important;
}

.blog-article__body h2,
.blog-article__body h3,
.blog-article__body h4 {
    color: var(--navy-deep);
    line-height: 1.4;
    margin: 1.8em 0 0.7em;
    letter-spacing: -0.015em;
}

.blog-article__body h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    padding-bottom: 0.45em;
    border-bottom: 1px solid rgba(227, 212, 174, 0.85);
}

.blog-article__body h3 {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.blog-article__body h4 {
    font-size: 1.05rem;
}

.blog-article__body p,
.blog-article__body ul,
.blog-article__body ol,
.blog-article__body blockquote,
.blog-article__body figure,
.blog-article__body table,
.blog-article__body pre {
    margin: 0 0 1.15em;
    width: 100%;
    max-width: 100%;
}

.blog-article__body ul,
.blog-article__body ol {
    padding-inline-start: 1.35em;
}

.blog-article__body li + li {
    margin-top: 0.35em;
}

.blog-article__body a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-article__body a:hover {
    color: var(--pink);
}

.blog-article__body strong,
.blog-article__body b {
    color: var(--navy-deep);
    font-weight: 700;
}

.blog-article__body blockquote {
    position: relative;
    margin-inline: 0;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(27, 42, 74, 0.04);
    border: 1px solid rgba(227, 212, 174, 0.7);
    color: var(--navy-soft);
    font-size: 1.05rem;
}

.blog-article__body blockquote::before {
    content: '“';
    position: absolute;
    top: 4px;
    inset-inline-start: 14px;
    font-size: 2.4rem;
    line-height: 1;
    color: rgba(223, 169, 63, 0.55);
    font-family: Georgia, serif;
}

.blog-article__body img,
.blog-article__body video {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(27, 42, 74, 0.08);
}

.blog-article__body figure {
    margin: 1.5em 0;
}

.blog-article__body figcaption {
    margin-top: 0.65em;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.blog-article__body table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--cream-line);
    background: #fff;
}

.blog-article__body th,
.blog-article__body td {
    padding: 12px 14px;
    border: 1px solid var(--cream-line);
    text-align: right;
    vertical-align: top;
}

.blog-article__body th {
    background: rgba(27, 42, 74, 0.05);
    color: var(--navy);
    font-weight: 700;
}

.blog-article__body hr {
    border: 0;
    height: 1px;
    margin: 2em 0;
    background: linear-gradient(90deg, transparent, var(--cream-line), transparent);
}

.blog-article__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding: 22px 24px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--navy-deep), var(--navy-soft));
    color: var(--cream);
    box-shadow: 0 16px 36px rgba(22, 35, 61, 0.2);
}

.blog-article__foot-copy {
    display: grid;
    gap: 6px;
    max-width: 420px;
}

.blog-article__foot-copy strong {
    font-size: 1.1rem;
}

.blog-article__foot-copy p {
    margin: 0;
    color: rgba(244, 231, 199, 0.78);
    font-size: 0.95rem;
    line-height: 1.7;
}

.blog-article__foot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-article__foot-actions .btn-outline {
    border-color: rgba(244, 231, 199, 0.35);
    color: var(--cream);
    background: transparent;
}

.blog-article__foot-actions .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

@keyframes blog-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .blog-article__intro {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .blog-article__hero {
        order: -1;
    }

    .blog-article__hero img {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .blog-article__panel {
        padding: 28px 24px 24px;
        border-radius: 20px;
    }

    .blog-article__body {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .blog-article {
        padding: 16px 0 56px;
    }

    .blog-article__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-article__hero {
        border-radius: 16px;
    }

    .blog-article__panel {
        padding: 22px 16px 18px;
        border-radius: 18px;
    }

    .blog-article__foot {
        align-items: stretch;
    }

    .blog-article__foot-actions {
        width: 100%;
    }

    .blog-article__foot-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* legacy single aliases kept for safety */
.blog-single {
    padding-top: 72px;
    padding-bottom: 64px;
}

.blog-single__inner {
    max-width: 820px;
}

/* ---------- consult ---------- */
.consult-section {
    padding: 56px 0 64px;
    background: var(--cream);
}

.consult-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.consult-head {
    margin-bottom: 28px;
}

.consult-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.consult-field {
    width: 100%;
    background: var(--cream-card);
    border: 1px solid var(--cream-line);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--navy);
    font-size: 14.5px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.consult-field::placeholder {
    color: var(--muted);
}

.consult-field:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(223, 169, 63, .18);
}

.consult-field--full,
.consult-submit {
    grid-column: 1 / -1;
}

.consult-error,
.consult-success {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.65;
}

.consult-error::before,
.consult-success::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 14px;
}

.consult-error {
    background: linear-gradient(135deg, #fdf0f3 0%, #fde8ec 100%);
    color: #a12d4a;
    border: 1px solid #f0c0cd;
    box-shadow: 0 4px 14px rgba(161, 45, 74, 0.06);
}

.consult-error::before {
    content: '\f06a';
    color: #bb3a66;
}

.consult-success {
    background: linear-gradient(135deg, #eef8f2 0%, #e8f6ee 100%);
    color: #1f6b45;
    border: 1px solid #b6dfc6;
    box-shadow: 0 4px 14px rgba(31, 107, 69, 0.06);
}

.consult-success::before {
    content: '\f058';
    color: #2f8f5b;
}

.consult-submit {
    margin-top: 4px;
    width: 100%;
    padding: 14px 22px;
    border-radius: 12px;
}

/* ---------- footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: var(--cream);
    padding: 52px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.95fr 0.95fr 1.25fr 0.95fr;
    gap: 28px;
    padding-bottom: 42px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 13.5px;
    line-height: 2;
    color: rgba(244, 231, 199, .62);
    max-width: 280px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(244, 231, 199, .1);
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 11px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(244, 231, 199, .68);
    transition: color .2s ease, transform .2s ease;
}

.footer-links a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(223, 169, 63, .55);
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease;
}

.footer-links a:hover {
    color: var(--cream);
    transform: translateX(-3px);
}

.footer-links a:hover::before {
    background: var(--gold);
    transform: scale(1.15);
}

.footer-contact {
    list-style: none;
    display: grid;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: inherit;
    transition: opacity .2s ease;
}

a.footer-contact-item:hover {
    opacity: .92;
}

.footer-contact-item:hover .footer-contact-icon {
    border-color: rgba(223, 169, 63, .55);
    background: rgba(223, 169, 63, .12);
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(244, 231, 199, .12);
    color: var(--gold);
    transition: background .2s ease, border-color .2s ease;
}

.footer-contact-body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.footer-contact-body small {
    font-size: 11.5px;
    color: rgba(244, 231, 199, .48);
    font-weight: 500;
}

.footer-contact-body strong {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(244, 231, 199, .88);
    line-height: 1.7;
}

.footer-ltr {
    display: inline-block;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-trust-badge {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(244, 231, 199, .12);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.footer-trust-badge:hover {
    transform: translateY(-3px);
    border-color: rgba(223, 169, 63, .45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.footer-trust-badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-trust-badge--embed {
    width: auto;
    min-width: 86px;
    height: auto;
    min-height: 86px;
    padding: 6px;
}

.footer-trust-badge--embed a,
.footer-trust-badge--embed img {
    display: block;
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border: 0;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(244, 231, 199, .1);
    padding: 16px 0 18px;
    font-size: 12.5px;
    color: rgba(244, 231, 199, .45);
}

.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
}

.footer-bottom__copy {
    margin: 0;
    line-height: 1.7;
}

.footer-bottom__credit {
    margin: 0;
    margin-inline-start: auto;
    font-size: 12px;
    letter-spacing: .01em;
    color: rgba(244, 231, 199, .42);
    line-height: 1.7;
    white-space: nowrap;
}

.footer-bottom__credit-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}

.footer-bottom__credit-link:hover {
    color: var(--cream);
    border-bottom-color: rgba(223, 169, 63, .55);
}

/* ---------- footer service modal ---------- */
html.is-service-modal-open,
body.is-service-modal-open {
    overflow: hidden;
}

.site-service-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.site-service-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-service-modal[hidden] {
    display: none !important;
}

.site-service-modal:not([hidden]) {
    display: grid;
}

.site-service-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .62);
    backdrop-filter: blur(4px);
}

.site-service-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(84vh, 760px);
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, #fffdf8 0%, #fff 42%),
        #fff;
    border: 1px solid rgba(227, 212, 174, .9);
    border-radius: 18px;
    box-shadow: 0 28px 64px rgba(16, 24, 40, .28);
    transform: translateY(14px) scale(.98);
    transition: transform .24s cubic-bezier(.22, 1, .36, 1);
    overflow: hidden;
}

.site-service-modal.is-open .site-service-modal__dialog {
    transform: translateY(0) scale(1);
}

.site-service-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--cream-line);
    background: linear-gradient(180deg, #fbf6ea, #f7f0de);
}

.site-service-modal__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.site-service-modal__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--navy);
    color: #f4e7c7;
    flex-shrink: 0;
}

.site-service-modal__icon svg {
    display: block;
}

.site-service-modal__header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.4;
}

.site-service-modal__close {
    appearance: none;
    border: 1px solid rgba(27, 42, 74, .18);
    background: #fff;
    color: var(--navy);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.site-service-modal__close svg {
    display: block;
}

.site-service-modal__close:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    box-shadow: none;
}

.site-service-modal__close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.site-service-modal__body {
    padding: 18px 20px 8px;
    overflow: auto;
    color: var(--navy);
    font-size: 14.5px;
    line-height: 1.95;
}

.site-service-modal__body > *:first-child {
    margin-top: 0;
}

.site-service-modal__body > *:last-child {
    margin-bottom: 0;
}

.site-service-modal__body h3,
.site-service-modal__body h4 {
    margin: 0 0 10px;
    color: var(--navy);
    font-weight: 900;
    line-height: 1.55;
}

.site-service-modal__body h3 {
    font-size: 1.15rem;
}

.site-service-modal__body p,
.site-service-modal__body ul,
.site-service-modal__body ol {
    margin: 0 0 12px;
}

.site-service-modal__body ul,
.site-service-modal__body ol {
    padding-inline-start: 1.25em;
}

.site-service-modal__body li + li {
    margin-top: 6px;
}

.site-service-modal__body a {
    color: var(--teal);
    font-weight: 700;
}

.site-service-modal__body strong {
    color: var(--navy-deep);
}

.site-service-modal__footer {
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(227, 212, 174, .65);
    display: flex;
    justify-content: center;
    background: rgba(251, 246, 234, .55);
}

.site-service-modal__ok {
    min-width: 140px;
}

.footer-links__muted {
    color: rgba(244, 231, 199, .45);
    font-size: 13.5px;
}

@media (max-width: 640px) {
    .site-service-modal {
        padding: 16px 12px;
        place-items: center;
        align-items: center;
    }

    .site-service-modal__dialog {
        width: min(100%, 520px);
        max-height: min(86vh, 720px);
        border-radius: 16px;
    }

    .site-service-modal__header {
        padding: 14px;
    }

    .site-service-modal__body {
        padding: 14px 16px 6px;
        font-size: 14px;
    }

    .site-service-modal__footer {
        padding: 10px 14px 14px;
    }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-art {
        height: 420px;
    }

    .type-grid,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-showcase {
        grid-template-columns: 1fr;
    }

    .blog-showcase__rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card--featured {
        min-height: 380px;
    }

    .blog-card--featured .blog-card__title {
        font-size: 24px;
    }

    .blog-head {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-all-link {
        align-self: flex-start;
    }

    .why-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-media {
        order: -1;
    }

    .why-us {
        padding: 48px 0;
    }

    .why-lead {
        max-width: none;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px;
    }

    .steps::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }

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

    .footer-col--trust {
        grid-column: 1 / -1;
    }

    .footer-trust {
        justify-content: flex-start;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }
}

@media (max-width: 640px) {
    .hero-copy {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 29px;
    }

    .hero-features {
        align-items: center;
        margin-inline: auto;
        text-align: center;
    }

    .hero-feature {
        font-size: 14.5px;
    }

    .hero-cta {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        gap: 24px;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-stats > div {
        text-align: center;
    }

    .section-title {
        font-size: 24px;
    }

    .blog-head {
        align-items: center;
        text-align: center;
    }

    .blog-head-main {
        max-width: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .blog-sub {
        margin-inline: auto;
    }

    .blog-all-link {
        align-self: center;
    }

    .type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

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

    .blog-showcase__rail {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .blog-card {
        min-height: 220px;
        border-radius: 16px;
    }

    .blog-card--featured {
        min-height: 320px;
    }

    .blog-card--featured .blog-card__title {
        font-size: 21px;
    }

    .blog-card__body {
        padding: 14px 14px 16px;
        gap: 8px;
    }

    .blog-card--featured .blog-card__body {
        padding: 20px 18px 22px;
        max-width: none;
    }

    .type-card {
        padding: 10px 10px 14px;
        border-radius: 14px;
    }

    .type-media {
        border-radius: 11px;
        margin-bottom: 12px;
    }

    .type-name {
        font-size: 14.5px;
        padding-bottom: 8px;
    }

    .type-cta {
        margin-top: 28px;
        padding: 0 4px;
    }

    .type-cta-hint {
        font-size: 13.5px;
    }

    .btn-order {
        width: 100%;
        max-width: 360px;
        min-width: 0;
        padding: 15px 22px;
        font-size: 16px;
    }

    .product-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .why-us {
        padding: 40px 0;
    }

    .why-layout {
        gap: 24px;
    }

    .why-points li {
        padding: 12px 14px;
    }

    .why-video-frame {
        padding: 6px;
        border-radius: 14px;
    }

    .why-video {
        border-radius: 10px;
    }

    .consult-section {
        padding: 44px 0 52px;
    }

    .consult-form {
        grid-template-columns: 1fr;
    }

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

    .footer-brand,
    .footer-col--trust {
        grid-column: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 34em;
        margin-inline: auto;
    }

    .footer-brand .logo {
        display: inline-flex;
        justify-content: center;
    }

    .footer-col--trust .footer-heading {
        width: 100%;
        text-align: center;
    }

    .footer-trust {
        justify-content: center;
    }

    .footer-trust-badge {
        width: 78px;
        height: 78px;
    }

    .footer-bottom__inner {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .footer-bottom__credit {
        margin-inline-start: 0;
        white-space: normal;
    }

    .brands-section {
        padding: 44px 0 36px;
    }

    .brands-track {
        flex-wrap: nowrap;
        gap: 12px;
        animation-duration: 28s;
    }

    .brand-item {
        min-width: 122px;
        padding: 14px 14px 12px;
        border-radius: 14px;
        gap: 10px;
    }

    .brand-item-logo {
        height: 44px;
    }

    .brand-item-logo img {
        height: 40px;
        max-width: 108px;
    }

    .brand-item-name {
        font-size: 12px;
    }

    .header-actions .btn {
        display: none;
    }

    .logo img {
        height: 42px;
        max-width: min(150px, 46vw);
    }

    .header-inner {
        min-height: 68px;
        padding-block: 6px;
        padding-inline: 16px;
    }

    .blog-grid,
    .blog-showcase__rail {
        grid-template-columns: 1fr;
    }

    .blog-card--featured .blog-card__title {
        font-size: 20px;
    }

    .blog-card__excerpt {
        -webkit-line-clamp: 3;
    }
}
