/*
 * Tawaya UI refresh — typography, navigation, rhythm, and responsive system.
 * Loaded after theme.css so this file is the final visual authority.
 */

@font-face {
    font-family: "Tajawal";
    src: url("/assets/fonts/Tajawal-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Tajawal";
    src: url("/assets/fonts/Tajawal-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Tajawal";
    src: url("/assets/fonts/Tajawal-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Tajawal";
    src: url("/assets/fonts/Tajawal-ExtraBold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Tajawal";
    src: url("/assets/fonts/Tajawal-Black.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --tawaya-ink: #080d12;
    --tawaya-ink-2: #0c1219;
    --tawaya-panel: #111a23;
    --tawaya-panel-2: #15202b;
    --tawaya-gold: #d4aa4b;
    --tawaya-gold-soft: #f0d58e;
    --tawaya-gold-dim: #846d34;
    --tawaya-line: #263747;
    --tawaya-line-soft: #1b2834;
    --tawaya-text: #f4f6f8;
    --tawaya-muted: #a9b6c3;
    --tawaya-muted-2: #7f8f9e;
    --tawaya-max-width: 1240px;
    --tawaya-header-height: 80px;
    --tawaya-radius-sm: 12px;
    --tawaya-radius: 18px;
    --tawaya-radius-lg: 26px;
    --tawaya-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

html {
    scroll-padding-top: calc(var(--tawaya-header-height) + 24px);
}

html.has-tawaya-menu {
    overflow: hidden;
}

body {
    background:
        radial-gradient(ellipse 75% 45% at 92% -12%, rgba(212, 170, 75, 0.11), transparent 62%),
        radial-gradient(ellipse 50% 38% at 0% 85%, rgba(0, 168, 232, 0.06), transparent 58%),
        var(--tawaya-ink);
    font-family: "Tajawal", system-ui, sans-serif;
}

.tawaya-theme {
    color: var(--tawaya-text);
    font-family: "Tajawal", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.tawaya-theme[dir="ltr"] {
    font-family: "Tajawal", system-ui, sans-serif;
}

.tawaya-theme :where(button, input, textarea, select) {
    font: inherit;
}

.tawaya-theme :where(h1, h2, h3, h4, strong, b) {
    font-family: "Tajawal", system-ui, sans-serif;
}

.wrap {
    width: min(100% - 72px, var(--tawaya-max-width));
}

/* Header */

.site-header {
    position: fixed;
    z-index: 200;
    inset: 0 0 auto;
    border-bottom: 1px solid rgba(132, 109, 52, 0.2);
    background: rgba(8, 13, 18, 0.82);
    backdrop-filter: blur(20px) saturate(130%);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-header.is-scrolled,
.site-header.has-open-menu {
    border-bottom-color: var(--tawaya-line);
    background: rgba(8, 13, 18, 0.97);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.site-header__inner {
    position: relative;
    z-index: 220;
    width: min(100% - 72px, var(--tawaya-max-width));
    height: var(--tawaya-header-height);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    margin-inline: auto;
}

.brandline {
    min-width: max-content;
    gap: 13px;
}

.brandline img {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    padding: 5px;
}

.brandline__name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.brandline small {
    margin-top: 5px;
    color: var(--tawaya-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}

.primary-nav--desktop {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(38, 55, 71, 0.74);
    border-radius: 999px;
    background: rgba(17, 26, 35, 0.62);
    padding: 5px;
}

.primary-nav--desktop a {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #c7d0d8;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 19px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.primary-nav--desktop a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
}

.primary-nav--desktop a.is-active {
    background: var(--tawaya-gold);
    color: var(--tawaya-ink);
    box-shadow: 0 8px 24px rgba(212, 170, 75, 0.18);
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.language-toggle,
.nav-toggle {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--tawaya-line);
    border-radius: 50%;
    background: rgba(17, 26, 35, 0.78);
    color: var(--tawaya-gold-soft);
}

.language-toggle {
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.language-toggle:hover {
    border-color: var(--tawaya-gold-dim);
    background: rgba(212, 170, 75, 0.1);
    color: #fff;
}

.nav-toggle {
    display: none !important;
    cursor: pointer;
    padding: 0;
}

.nav-toggle__icon {
    width: 19px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle__icon i {
    width: 100%;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.22s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:first-child {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    display: none !important;
}

/* Hero */

.hero {
    isolation: isolate;
    min-height: min(790px, 88vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--tawaya-header-height) + 86px) 0 76px;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block-start: 10%;
    inset-inline-end: 0;
    width: min(680px, 72vw);
    aspect-ratio: 1;
    border: 1px solid rgba(212, 170, 75, 0.08);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(212, 170, 75, 0.1), transparent 58%),
        repeating-radial-gradient(circle, transparent 0 54px, rgba(212, 170, 75, 0.035) 55px 56px);
    opacity: 0.9;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tawaya-gold-dim), transparent);
    opacity: 0.5;
}

.hero__eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tawaya-gold-soft);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero__eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--tawaya-gold);
}

.hero h1 {
    max-width: 1060px;
    margin-top: 24px;
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 900;
    letter-spacing: -1.8px;
    line-height: 1.08;
    text-align: start;
    text-wrap: balance;
}

.hero h1 span {
    color: var(--tawaya-gold);
    text-shadow: 0 10px 45px rgba(212, 170, 75, 0.12);
}

.hero__lead {
    max-width: 840px;
    margin-top: 30px !important;
    color: #b9c4ce;
    font-size: clamp(18px, 1.75vw, 22px);
    font-weight: 400;
    line-height: 1.9;
}

.hero__badges {
    gap: 10px;
    margin-top: 34px;
}

.hero__badges span {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    border-color: rgba(212, 170, 75, 0.42);
    border-radius: 999px;
    background: rgba(212, 170, 75, 0.055);
    color: var(--tawaya-gold-soft);
    font-size: 15px;
    font-weight: 700;
    padding: 9px 18px;
}

/* Homepage sections */

.stats {
    gap: 14px;
    margin: 32px 0 38px;
}

.stat {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--tawaya-radius);
    background:
        linear-gradient(150deg, rgba(21, 32, 43, 0.96), rgba(12, 18, 25, 0.94));
    padding: 30px 28px;
}

.stat::before {
    inset: 0 28px auto;
    height: 2px;
}

.stat strong {
    font-size: clamp(40px, 4vw, 54px);
    font-weight: 900;
}

.stat p {
    margin-top: 20px;
    color: #b4c0ca;
    font-size: 16px;
    line-height: 1.7;
}

.section {
    padding: 88px 0;
}

.section-heading {
    gap: 18px;
    margin-bottom: 42px;
}

.section-heading__index {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
}

.section-heading h2 {
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 900;
}

.section-heading__description {
    color: var(--tawaya-muted);
    font-size: 16px;
}

.field-grid {
    gap: 22px;
}

.mapcard,
.service-card,
.response-card,
.social-card,
.content-card {
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

.mapcard {
    border-radius: var(--tawaya-radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 168, 232, 0.06), transparent 32%),
        var(--tawaya-panel);
    padding: 32px;
}

.mapcard__note {
    margin-bottom: 24px !important;
    color: #bdc7d0;
    font-size: 17px;
    line-height: 1.85;
}

.regions,
.service-list {
    gap: 11px;
}

.region {
    min-height: 54px;
    border-radius: 11px;
    padding: 12px 17px;
}

.region__name {
    font-size: 17px;
}

.status-tag {
    font-size: 13px;
    padding: 6px 12px;
}

.legend {
    font-size: 14px;
}

.service-card {
    border-radius: var(--tawaya-radius);
    padding: 25px 26px;
}

.service-card h3 {
    margin-bottom: 9px;
    font-size: 21px;
    font-weight: 800;
}

.service-card p {
    color: #aebbc6;
    font-size: 16px;
    line-height: 1.85;
}

.response-grid {
    gap: 14px;
    margin-top: 24px;
}

.response-card {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--tawaya-radius);
    padding: 27px 28px;
}

.response-card__key {
    font-size: 14px;
}

.response-card strong {
    font-size: 27px;
    font-weight: 900;
}

.response-card > p:last-child {
    margin-top: 7px;
    font-size: 15px;
}

.social-grid,
.content-grid {
    gap: 18px;
}

.social-card {
    min-height: 260px;
    border-radius: var(--tawaya-radius);
    padding: 30px;
}

.social-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    border-radius: 14px;
    font-size: 23px;
}

.social-card h3 {
    margin-bottom: 12px;
    font-size: 23px;
    font-weight: 800;
}

.social-card p {
    color: #adbac5;
    font-size: 16px;
    line-height: 1.85;
}

.work {
    min-height: 104px;
    gap: 26px;
    padding: 26px 8px;
}

.work__kind {
    min-width: 82px;
    font-size: 16px;
}

.work__info h3 {
    font-size: 23px;
    font-weight: 800;
}

.work__info p {
    font-size: 15px;
}

.work__partner {
    max-width: 280px;
    font-size: 16px;
}

.work__partner span {
    font-size: 13px;
}

.watch-link {
    min-height: 46px;
    border-radius: 999px;
    font-size: 15px;
    padding: 10px 20px;
}

.content-card {
    border-radius: var(--tawaya-radius);
}

.content-card__body {
    padding: 26px;
}

.content-card__meta {
    font-size: 13px;
}

.content-card h3 {
    font-size: 23px;
    font-weight: 800;
}

.content-card__body > p {
    font-size: 16px;
    line-height: 1.8;
}

.text-link {
    font-size: 15px;
}

.cta-band {
    margin: 88px 0 28px;
    border-radius: var(--tawaya-radius-lg);
    padding: 60px 44px;
}

.cta-band h2 {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 900;
}

.cta-band > p {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.85;
}

.button {
    min-height: 54px;
    border-radius: 999px;
    font-size: 17px;
    padding: 12px 30px;
}

/* Inner pages and articles */

.breadcrumb {
    padding-top: calc(var(--tawaya-header-height) + 34px);
    font-size: 15px;
}

.inner-main {
    padding: 58px 0 36px;
}

.page-hero {
    max-width: 960px;
    margin-bottom: 48px;
}

.page-hero__eyebrow,
.content-page__eyebrow,
.page-section__label {
    font-size: 14px;
    letter-spacing: 1px;
}

.page-hero h1,
.content-page__header h1 {
    font-size: clamp(46px, 7vw, 78px);
    font-weight: 900;
    letter-spacing: -1px;
}

.page-hero > p:last-child:not(.page-hero__eyebrow),
.content-page__header > p:last-child {
    max-width: 860px;
    font-size: 20px;
    line-height: 1.9;
}

.content-page__header {
    padding-bottom: 48px;
}

.page-section {
    padding: 68px 0 34px;
}

.page-section h2 {
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 900;
}

.rich-copy,
.section-intro,
.page-section--accent > p,
.response-note > p,
.legal-section p,
.legal-section li {
    color: #c6d0d9;
    font-size: 18px;
    line-height: 2;
}

.metric-strip {
    border-radius: var(--tawaya-radius);
}

.metric-strip > div {
    min-height: 166px;
    padding: 30px 34px;
}

.metric-strip strong {
    font-size: 44px;
}

.metric-strip span {
    font-size: 16px;
}

.feature-grid,
.service-catalogue {
    gap: 18px;
}

.feature-card,
.service-detail,
.contact-card {
    border-radius: var(--tawaya-radius);
}

.feature-card {
    min-height: 250px;
    padding: 32px;
}

.feature-card__index,
.service-detail__index {
    font-size: 14px;
}

.feature-card h3 {
    font-size: 25px;
}

.feature-card p {
    font-size: 17px;
    line-height: 1.85;
}

.page-section--accent {
    border-radius: var(--tawaya-radius-lg);
    padding: 44px;
}

.page-cta {
    border-radius: var(--tawaya-radius-lg);
    padding: 48px;
}

.page-cta h2 {
    font-size: clamp(32px, 4vw, 48px);
}

.page-cta p {
    font-size: 18px;
}

.service-detail {
    min-height: 330px;
    padding: 34px;
}

.service-detail h3 {
    font-size: 27px;
}

.service-detail p,
.service-detail li,
.legal-list li {
    font-size: 17px;
    line-height: 1.85;
}

.response-banner {
    border-radius: var(--tawaya-radius);
}

.response-banner > div {
    min-height: 148px;
    padding: 30px;
}

.response-banner span {
    font-size: 14px;
}

.response-banner strong {
    font-size: 28px;
}

.process-list h3 {
    font-size: 23px;
}

.process-list p {
    font-size: 16px;
    line-height: 1.8;
}

.contact-card {
    padding: 28px;
}

.contact-card span {
    font-size: 13px;
}

.contact-card strong {
    font-size: 25px;
}

.contact-card small {
    font-size: 15px;
}

.brief-list li {
    font-size: 17px;
    padding-bottom: 13px;
}

.policy-note {
    border-radius: var(--tawaya-radius);
    padding: 26px 28px;
}

.policy-note strong,
.policy-note span,
.policy-note p {
    font-size: 15px;
}

.legal-section {
    padding: 40px 0;
}

.legal-section h2 {
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 900;
}

.document h1 {
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 900;
}

.document__category {
    font-size: 15px;
}

.document__meta {
    font-size: 15px;
}

.document__content {
    color: #d8dfe5;
    font-size: 19px;
    line-height: 2;
}

.document__content h2 {
    font-size: 36px;
}

.document__content h3 {
    font-size: 29px;
}

.related > h2 {
    font-size: 24px;
}

/* Footer */

.site-footer {
    margin-top: 82px;
    color: var(--tawaya-muted);
    font-size: 16px;
    padding: 56px 24px 62px;
}

.site-footer__inner {
    max-width: 860px;
}

.site-footer img {
    width: 86px;
    height: 86px;
    border-radius: 18px;
}

.site-footer__brand {
    font-size: 23px;
}

.site-footer__nav {
    gap: 10px 26px;
    margin-top: 26px;
}

.site-footer__nav a {
    font-size: 15px;
}

.site-footer__legal {
    font-size: 14px;
}

@media (max-width: 1180px) {
    .site-header__inner {
        width: min(100% - 44px, var(--tawaya-max-width));
        gap: 16px;
    }

    .brandline small {
        display: none;
    }

    .primary-nav--desktop a {
        padding-inline: 15px;
    }
}

@media (max-width: 1024px) {
    :root {
        --tawaya-header-height: 70px;
    }

    .wrap,
    .site-header__inner {
        width: min(100% - 40px, var(--tawaya-max-width));
    }

    .site-header__inner {
        display: flex;
        gap: 12px;
    }

    .brandline {
        min-width: 0;
    }

    .brandline img {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .brandline__name {
        font-size: 19px;
    }

    .primary-nav--desktop {
        display: none !important;
    }

    .site-header__actions {
        margin-inline-start: auto;
    }

    .nav-toggle {
        display: inline-grid !important;
    }

    .mobile-menu {
        position: absolute;
        z-index: 210;
        inset: 100% 0 auto;
        height: calc(100dvh - var(--tawaya-header-height));
        display: block !important;
        overflow-y: auto;
        background:
            radial-gradient(circle at 85% 10%, rgba(212, 170, 75, 0.13), transparent 35%),
            radial-gradient(circle at 8% 95%, rgba(0, 168, 232, 0.07), transparent 34%),
            rgba(8, 13, 18, 0.985);
        opacity: 0;
        transform: translateY(-14px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .mobile-menu[hidden] {
        display: none !important;
    }

    .mobile-menu.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-menu__inner {
        width: min(100% - 40px, 760px);
        min-height: 100%;
        display: flex;
        flex-direction: column;
        margin-inline: auto;
        padding: clamp(36px, 7vh, 72px) 0 30px;
    }

    .mobile-menu__eyebrow {
        margin-bottom: 18px !important;
        color: var(--tawaya-gold);
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 1.4px;
    }

    .mobile-menu__nav {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu__nav a {
        min-height: 100px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 18px;
        border-bottom: 1px solid var(--tawaya-line);
        color: var(--tawaya-text);
        text-decoration: none;
        transition: color 0.2s ease, padding 0.2s ease;
    }

    .mobile-menu__nav a:first-child {
        border-top: 1px solid var(--tawaya-line);
    }

    .mobile-menu__nav a:hover,
    .mobile-menu__nav a.is-active {
        color: var(--tawaya-gold-soft);
        padding-inline: 8px;
    }

    .mobile-menu__index {
        color: var(--tawaya-gold);
        font-size: 13px;
        font-weight: 800;
    }

    .mobile-menu__copy {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu__copy strong {
        font-size: clamp(25px, 5vw, 34px);
        font-weight: 900;
        line-height: 1.15;
    }

    .mobile-menu__copy small {
        margin-top: 7px;
        color: var(--tawaya-muted);
        font-size: 14px;
        font-weight: 400;
    }

    .mobile-menu__arrow {
        color: var(--tawaya-gold-dim);
        font-size: 21px;
    }

    .tawaya-theme[dir="rtl"] .mobile-menu__arrow {
        transform: scaleX(-1);
    }

    .mobile-menu__footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin-top: auto;
        color: var(--tawaya-muted-2);
        font-size: 14px;
        padding-top: 34px;
    }

    .mobile-menu__footer a {
        color: var(--tawaya-gold-soft);
        font-size: 17px;
        font-weight: 700;
        text-decoration: none;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--tawaya-header-height) + 90px);
    }

    .hero h1 {
        font-size: clamp(46px, 8vw, 70px);
    }

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

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

@media (max-width: 760px) {
    .wrap,
    .site-header__inner {
        width: min(100% - 30px, var(--tawaya-max-width));
    }

    .tawaya-theme {
        font-size: 17px;
    }

    .hero {
        padding-top: calc(var(--tawaya-header-height) + 66px);
        padding-bottom: 58px;
    }

    .hero::before {
        inset-inline-end: 0;
        width: 100%;
    }

    .hero h1 {
        max-width: 650px;
        font-size: clamp(38px, 10.8vw, 58px);
        letter-spacing: -0.9px;
        line-height: 1.12;
    }

    .hero__lead {
        font-size: 19px;
    }

    .hero__badges {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        contain: inline-size;
    }

    .hero__badges::-webkit-scrollbar {
        display: none;
    }

    .hero__badges span {
        flex: 0 0 auto;
        max-width: 86vw;
        scroll-snap-align: start;
        white-space: nowrap;
    }

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

    .stat {
        min-height: 168px;
        padding: 24px 20px;
    }

    .stat strong {
        font-size: clamp(34px, 9vw, 46px);
    }

    .stat p {
        font-size: 15px;
    }

    .section {
        padding: 66px 0;
    }

    .section-heading {
        align-items: center;
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .mapcard {
        padding: 24px 20px;
    }

    .response-grid,
    .social-grid,
    .content-grid,
    .service-catalogue,
    .feature-grid,
    .metric-strip,
    .response-banner,
    .process-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .social-card {
        min-height: auto;
    }

    .work {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 14px;
    }

    .work__partner {
        grid-column: 2 / -1;
        max-width: none;
        text-align: start;
    }

    .page-hero h1,
    .content-page__header h1,
    .document h1 {
        font-size: clamp(38px, 10vw, 56px);
    }

    .page-hero > p:last-child:not(.page-hero__eyebrow),
    .content-page__header > p:last-child {
        font-size: 18px;
    }

    .story-grid,
    .contact-grid,
    .page-section--accent {
        gap: 32px;
    }

    .page-section--accent,
    .page-cta {
        padding: 34px 26px;
    }

    .page-cta--compact {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-strip > div + div,
    .response-banner > div + div {
        border-inline-start: 0;
        border-top: 1px solid var(--tawaya-line);
    }

    .document__content {
        font-size: 18px;
    }

    .site-footer {
        margin-top: 64px;
    }
}

@media (max-width: 520px) {
    :root {
        --tawaya-header-height: 66px;
    }

    .site-header__inner {
        gap: 8px;
    }

    .brandline {
        gap: 9px;
    }

    .brandline img {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .brandline__name {
        font-size: 17px;
    }

    .brandline small {
        display: none;
    }

    .language-toggle,
    .nav-toggle {
        width: 42px;
        height: 42px;
    }

    .mobile-menu__inner {
        width: min(100% - 30px, 760px);
        padding-top: 28px;
    }

    .mobile-menu__nav a {
        min-height: 88px;
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .mobile-menu__copy strong {
        font-size: 27px;
    }

    .mobile-menu__copy small {
        font-size: 13px;
    }

    .hero__eyebrow {
        font-size: 13px;
    }

    .hero h1 {
        font-size: clamp(36px, 11.4vw, 48px);
    }

    .hero__lead {
        font-size: 18px;
        line-height: 1.85;
    }

    .hero__badges span {
        min-height: 44px;
        font-size: 14px;
    }

    .stat {
        min-height: 160px;
    }

    .section-heading__index {
        width: 40px;
        height: 40px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .region {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .work {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .work .watch-link,
    .work__partner {
        grid-column: 1 / -1;
    }

    .work .watch-link {
        justify-self: start;
    }

    .cta-band {
        padding: 42px 22px;
        text-align: start;
    }

    .cta-band__actions {
        justify-content: flex-start;
    }

    .button {
        width: 100%;
    }

    .page-section {
        padding-top: 52px;
    }

    .page-section--accent,
    .page-cta {
        padding: 28px 21px;
    }

    .feature-card,
    .service-detail {
        min-height: auto;
        padding: 26px 22px;
    }

    .site-footer__nav {
        gap: 10px 18px;
    }
}

@media (max-width: 340px) {
    .brandline__text {
        display: none;
    }

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

    .stat {
        min-height: 142px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .nav-toggle__icon i {
        transition: none;
    }
}
