:root {
    --brand: #ff751f;
    --brand-strong: #e85f12;
    --bg: #ffffff;
    --text: #19212b;
    --muted: #657180;
    --border: #e6e9ee;
    --surface: #ffffff;
    --surface-soft: #fff7f1;
    --shadow: rgba(25, 33, 43, 0.1);
    --elevation: 0 16px 42px rgba(25, 33, 43, 0.09);
    --content-width: 1240px;
    --radius: 20px;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #101419;
    --text: #f5f6f7;
    --muted: #a9b2bc;
    --border: #2b333c;
    --surface: #171d23;
    --surface-soft: #211b17;
    --shadow: rgba(0, 0, 0, 0.32);
    --elevation: 0 18px 44px rgba(0, 0, 0, 0.26);
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    max-width: 100%;
    overflow-x: clip;
}

body {
    min-width: 320px;
    max-width: 100%;
    overflow-x: clip;
    color: var(--text);
    font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(255, 117, 31, 0.7);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    inset-inline-start: 1rem;
    top: 0.75rem;
    padding: 0.7rem 1rem;
    transform: translateY(-160%);
    border-radius: 0.65rem;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 26px rgba(16, 24, 40, 0.07);
}

header .nav,
header .header-container,
header .header-content,
header > .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    width: min(100% - 2rem, var(--content-width));
    min-height: 76px;
    margin-inline: auto;
    padding: 0.65rem 0;
}

header .header-container {
    flex-direction: row;
}

header .header-content {
    text-align: start;
}

header .header-content > #theme-toggle {
    order: 4;
    position: static !important;
}

header .logo,
header .logo-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.7rem;
    width: auto !important;
    height: auto !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

header .logo-img,
header .logo-link img,
header .logo img {
    display: block;
    width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    object-position: center;
}

header .logo-circle {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
}

header .logo-circle img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    object-position: center;
}

header .logo-text {
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 800;
}

header nav {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    margin-inline: auto;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.55rem, 1.7vw, 1.45rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav li {
    margin: 0;
}

header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.35rem 0.15rem;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease;
}

header nav a:hover,
header nav a:focus-visible {
    border-bottom-color: var(--brand);
    color: var(--brand-strong);
}

header .header-actions,
header .nav-right {
    order: 3;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
}

header #theme-toggle,
header .theme-toggle,
header .lang-switch {
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

header #theme-toggle:hover,
header .theme-toggle:hover,
header .lang-switch:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.site-menu-toggle,
.menu-toggle {
    display: none;
    order: 1;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.site-global-nav .nav-en,
.site-global-nav .nav-ar {
    display: none !important;
}

html[lang="en"] .site-global-nav .nav-en {
    display: inline !important;
}

html[lang="ar"] .site-global-nav .nav-ar {
    display: inline !important;
}

.site-global-nav ul {
    justify-content: flex-end;
}

main {
    width: 100%;
    margin: 0 auto;
}

main > section {
    padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 2.5rem);
    scroll-margin-top: 6rem;
}

main .container {
    width: min(100%, var(--content-width));
    margin-inline: auto;
}

main h1,
main .page-title {
    max-width: 100%;
    margin: 0 auto 1.25rem;
    color: var(--text);
    font-size: clamp(2rem, 4.5vw, 3.65rem);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

main h2 {
    max-width: 100%;
    margin-block: 0 1.1rem;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.3;
    white-space: normal;
    text-wrap: balance;
}

main h3 {
    line-height: 1.4;
    text-wrap: balance;
}

.hero,
.service-hero {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 0 0 34px 34px;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(255, 117, 31, 0.17), transparent 38%),
        linear-gradient(135deg, var(--surface-soft), var(--bg) 70%);
    text-align: center;
}

.hero {
    min-height: min(82vh, 780px);
    padding-block: clamp(5rem, 11vw, 9rem);
}

.hero h1 {
    max-width: 900px;
    margin-bottom: 1.25rem;
    font-size: clamp(2.5rem, 6.4vw, 5rem);
    letter-spacing: -0.035em;
}

.hero-subtitle,
.hero h2,
.page-title + .page-subtitle {
    color: var(--brand);
}

.hero-description {
    max-width: 760px;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--elevation);
}

.hero p,
.section-lead,
.page-subtitle {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.85;
    text-wrap: pretty;
}

.cta-button,
.profile-btn,
.submit-btn,
.apply-btn,
.back-button,
.contact-links a {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cta-button:hover,
.profile-btn:hover,
.submit-btn:hover,
.apply-btn:hover,
.back-button:hover,
.contact-links a:hover {
    transform: translateY(-2px);
    background: var(--brand-strong);
    box-shadow: 0 10px 24px rgba(255, 117, 31, 0.24);
}

.service-card,
.service-detail,
.portfolio-item,
.blog-card,
.job-card,
.vm-card,
.contact-card,
.referral-card,
.post-item,
.video-card,
.logo-card,
.client-card,
.testimonial,
.profile-section,
.why-us-card,
.gallery-item,
.contact-form-box,
.form-container,
.contact-box,
.jobs-intro,
.blog-intro,
.dashboard,
.share-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(25, 33, 43, 0.055);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.service-card:hover,
.service-detail:hover,
.portfolio-item:hover,
.blog-card:hover,
.job-card:hover,
.vm-card:hover,
.contact-card:hover,
.referral-card:hover,
.post-item:hover,
.video-card:hover,
.logo-card:hover,
.client-card:hover,
.testimonial:hover,
.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 117, 31, 0.65);
    box-shadow: var(--elevation);
}

.service-card,
.service-detail,
.portfolio-content,
.blog-content,
.job-card,
.vm-card,
.contact-form-box,
.form-container,
.referral-card,
.client-card,
.testimonial {
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.service-card p,
.service-detail p,
.portfolio-content p,
.blog-card p,
.job-card p,
.vm-card p,
.contact-info p,
.client-card p,
.testimonial p,
.referral-card p {
    color: var(--muted);
    line-height: 1.85;
}

.services-grid,
.services-detailed,
.gallery,
.posts-grid,
.videos-grid,
.blog-grid,
.jobs-grid,
.referral-grid,
.contact-grid,
.vision-mission,
.testimonials-grid {
    gap: clamp(1rem, 2.5vw, 2rem);
}

.service-card img,
.service-detail img,
.portfolio-item img,
.blog-image img,
.gallery-item img,
.post-item img,
.client-card img,
.logo-card img {
    display: block;
    max-width: 100%;
    border-radius: 12px;
}

.portfolio-image,
.blog-image {
    background: linear-gradient(140deg, rgba(255, 117, 31, 0.95), rgba(255, 154, 84, 0.75));
}

.contact-form-box,
.form-container {
    box-shadow: var(--elevation);
}

input,
select,
textarea {
    max-width: 100%;
    border-color: var(--border);
    border-radius: 10px;
    background-color: var(--bg);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(255, 117, 31, 0.16);
    outline-offset: 1px;
}

.back-link,
.blog-content a,
.nav-en[style*="color: #ff751f"],
.nav-ar[style*="color: #ff751f"] {
    color: #a84310 !important;
}

.submit-btn,
.cta-button {
    background-color: #b84f12 !important;
}

.vm-card h3,
h3.nav-en,
h3.nav-ar,
a.nav-en[style*="color: rgb(255, 117, 31)"],
a.nav-ar[style*="color: rgb(255, 117, 31)"] {
    color: #a84310 !important;
}

.service-card h3.nav-en,
.service-card h3.nav-ar {
    color: #fff !important;
}

.footer-logo .footer-brand-mark {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

footer {
    margin-top: clamp(3rem, 7vw, 6rem);
    border-top: 1px solid rgba(255, 117, 31, 0.32);
    background: #101419;
    color: #f5f6f7;
}

footer a {
    color: rgba(255, 255, 255, 0.82);
}

footer a:hover {
    color: #ff9a54;
}

footer * {
    color: inherit;
}

.success-message[role="status"],
.success-message[role="alert"] {
    display: block;
    margin-block: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
}

.success-message[role="alert"] {
    background: #fff1ee;
    color: #8d2b1d;
}

.success-message[hidden] {
    display: none !important;
}

.form-honeypot {
    position: absolute !important;
    inset-inline-start: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    header .nav,
    header .header-container,
    header .header-content,
    header > .container {
        min-height: 68px;
        flex-wrap: wrap;
    }

    header nav {
        position: absolute;
        z-index: 1002;
        top: calc(100% + 0.35rem);
        inset-inline: 0;
        display: none;
        width: 100%;
        max-height: min(72vh, 520px);
        overflow-y: auto;
        padding: 0.55rem;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: var(--elevation);
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    header nav li {
        border-bottom: 1px solid var(--border);
    }

    header nav li:last-child {
        border-bottom: 0;
    }

    header nav a {
        display: flex;
        width: 100%;
        min-height: 46px;
        padding: 0.65rem 0.8rem;
        border: 0;
        border-radius: 10px;
    }

    header nav a:hover,
    header nav a:focus-visible {
        background: var(--surface-soft);
    }

    .site-menu-toggle,
    header .menu-toggle {
        display: inline-flex;
    }

    header .header-info {
        display: none !important;
    }

    #services .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }

    .hero {
        min-height: 0;
    }
}

@media (max-width: 360px) {
    body {
        min-width: 0;
        width: 100%;
    }

    main,
    section,
    .container,
    .header-container,
    .footer-container,
    .nav-right {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    header .nav,
    header .header-container,
    header .header-content,
    header > .container {
        width: calc(100% - 1.25rem);
        min-height: 64px;
        gap: 0.5rem;
        padding-block: 0.45rem;
    }

    header .logo-img,
    header .logo-link img,
    header .logo img {
        width: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        max-height: 28px !important;
    }

    header .logo-text {
        font-size: 0.95rem;
    }

    header .header-actions,
    header .nav-right {
        gap: 0.35rem;
    }

    header #theme-toggle,
    header .theme-toggle,
    header .lang-switch,
    .site-menu-toggle,
    header .menu-toggle {
        min-width: 40px;
        width: 40px;
        min-height: 40px;
        height: 40px;
        border-radius: 10px;
    }

    main > section {
        padding: 3.2rem 1rem;
    }

    .hero {
        padding-block: 4.75rem;
        border-radius: 0 0 24px 24px;
    }

    .hero-description {
        padding: 1.15rem;
    }

    .jobs-grid,
    .blog-grid,
    .videos-grid,
    .contact-grid,
    .vision-mission {
        grid-template-columns: minmax(0, 1fr);
    }

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

    footer {
        padding-inline: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High-impact brand presentation: intentional depth, rhythm, and editorial hierarchy */
body {
    background:
        radial-gradient(circle at 0 0, rgba(255, 117, 31, 0.055), transparent 28rem),
        var(--bg) !important;
}

header {
    backdrop-filter: saturate(140%) blur(14px) !important;
    -webkit-backdrop-filter: saturate(140%) blur(14px) !important;
}

header .nav,
header .header-container,
header .header-content,
header > .container {
    min-height: 86px !important;
}

header .logo-link,
header .logo-circle {
    filter: drop-shadow(0 8px 14px rgba(255, 117, 31, 0.16));
}

.hero,
.service-hero,
.page-hero,
.contact-hero,
.careers-hero {
    isolation: isolate;
    position: relative;
    min-height: min(72vh, 720px) !important;
    padding-top: clamp(5.5rem, 10vw, 8.5rem) !important;
    padding-bottom: clamp(5.5rem, 10vw, 8.5rem) !important;
}

.hero::before,
.service-hero::before,
.page-hero::before,
.contact-hero::before,
.careers-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(34vw, 420px);
    aspect-ratio: 1;
    inset-inline-end: -10%;
    top: -32%;
    border: 1px solid rgba(255, 117, 31, 0.22);
    border-radius: 50%;
}

.hero h1,
.service-hero h1,
.page-hero h1,
.contact-hero h1,
.careers-hero h1,
main .page-title {
    max-width: 980px !important;
    letter-spacing: -0.045em;
}

.hero-description {
    position: relative;
    border: 1px solid rgba(255, 117, 31, 0.18) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 24px 58px rgba(37, 28, 20, 0.10) !important;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-description {
    background: rgba(23, 29, 35, 0.88) !important;
}

.hero-stats {
    position: relative;
    border: 1px solid rgba(255, 117, 31, 0.16);
    background: linear-gradient(135deg, rgba(255, 117, 31, 0.12), rgba(255, 117, 31, 0.035)) !important;
    box-shadow: 0 18px 44px rgba(255, 117, 31, 0.07);
}

.hero-stats .stat {
    position: relative;
}

.hero-stats .stat + .stat::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 56%;
    inset-inline-start: -20px;
    top: 22%;
    background: rgba(255, 117, 31, 0.22);
}

main > section {
    position: relative;
    border-bottom: 0 !important;
}

main h2,
.section-title,
.page-title {
    position: relative;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 0 0.8rem !important;
}

main h2::after,
.section-title::after,
.page-title::after {
    content: "";
    position: absolute;
    width: 58px;
    height: 4px;
    bottom: 0;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--brand);
}

.services-grid,
.testimonials-grid,
.jobs-grid,
.blog-grid,
.videos-grid,
.gallery,
.contact-grid,
.vision-mission,
.referral-grid {
    align-items: stretch;
}

.service-card,
.service-detail,
.portfolio-item,
.blog-card,
.job-card,
.vm-card,
.contact-card,
.referral-card,
.post-item,
.video-card,
.logo-card,
.client-card,
.testimonial,
.why-us-card,
.gallery-item,
.contact-form-box,
.form-container,
.contact-box,
.jobs-intro,
.blog-intro {
    overflow: visible;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 38px rgba(25, 33, 43, 0.075) !important;
}

.portfolio-item,
.blog-card,
.post-item,
.video-card,
.logo-card,
.gallery-item {
    overflow: hidden;
}

.service-card {
    min-height: 250px;
}

.service-card h3 {
    position: relative;
    overflow: hidden;
    border-radius: 14px 14px 0 0 !important;
}

.service-card h3::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    inset-inline-end: -46px;
    top: -48px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.video-card,
.blog-card,
.job-card {
    border-top: 3px solid var(--brand) !important;
}

.why-us-card {
    border-inline-start: 3px solid var(--brand) !important;
}

.cta-button,
.profile-btn,
.submit-btn,
.apply-btn,
.back-button,
.contact-links a,
.header-quote-btn {
    box-shadow: 0 12px 28px rgba(255, 117, 31, 0.18);
}

.contact-form-box,
.form-container,
.contact-box {
    border-top: 4px solid var(--brand) !important;
}

footer {
    position: relative;
}

@media (max-width: 900px) {
    header .nav,
    header .header-container,
    header .header-content,
    header > .container {
        min-height: 68px !important;
    }

    .hero,
    .service-hero,
    .page-hero,
    .contact-hero,
    .careers-hero {
        min-height: 0 !important;
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }

    .hero::before {
        width: 48vw;
        inset-inline-end: -18%;
    }

    .hero-stats .stat + .stat::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero h1,
    main h1,
    main .page-title {
        font-size: clamp(2rem, 10vw, 2.65rem) !important;
        line-height: 1.12 !important;
    }

    .hero-subtitle,
    main .page-subtitle {
        font-size: 1.02rem !important;
    }

    .hero-description,
    main .section-lead {
        width: 100%;
        max-width: 100%;
        font-size: 0.98rem !important;
        line-height: 1.75 !important;
    }

    main > section {
        padding: 3.75rem 1rem !important;
    }

    .hero {
        justify-content: center;
        text-align: center;
    }

    .hero-stats {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.1rem 0.55rem !important;
        gap: 0.5rem !important;
    }

    .hero-stats .stat-number {
        display: block !important;
        font-size: 1.35rem !important;
    }

    .hero-stats .stat-label {
        font-size: 0.68rem !important;
    }

    .services-grid,
    .testimonials-grid,
    .why-us-grid,
    .jobs-grid,
    .blog-grid,
    .videos-grid,
    .contact-grid,
    .vision-mission,
    .referral-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1rem !important;
    }

    .service-card,
    .service-detail,
    .portfolio-item,
    .blog-card,
    .job-card,
    .vm-card,
    .contact-card,
    .referral-card,
    .post-item,
    .video-card,
    .client-card,
    .testimonial,
    .why-us-card,
    .gallery-item,
    .contact-form-box,
    .form-container,
    .contact-box {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0;
    }

    footer {
        text-align: center;
    }
}

#home.hero::before {
    content: none;
}

.service-hero {
    background: linear-gradient(135deg, #a64100, #c45308) !important;
    color: #fff !important;
}

.service-hero h2,
.service-hero p {
    color: #fff !important;
}

.service-hero .cta-button {
    background: #fff !important;
    color: #713000 !important;
}

/* Careers page: preserve its form-first experience while giving it the same brand header */
body:has(header .header-content) header {
    padding: 10px 20px !important;
}

body:has(header .header-content) header .header-content {
    width: min(100%, var(--content-width));
    min-height: 68px;
    margin-inline: auto;
    flex-direction: row;
    justify-content: space-between;
    gap: 14px;
}

body:has(header .header-content) header .logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
}

body:has(header .header-content) header .logo img {
    width: 28px;
    height: 28px;
}

body:has(header .header-content) header .header-content > div {
    margin-inline-end: auto;
    text-align: start;
}

body:has(header .header-content) header h1 {
    margin: 0;
    font-size: 1.08rem;
}

body:has(header .header-content) header .subtitle {
    font-size: 0.82rem;
}

.brand-logo-frame {
    display: inline-flex !important;
    flex: 0 0 42px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 6px !important;
    overflow: hidden;
    border: 1px solid var(--border, #d8dfe6) !important;
    border-radius: 50% !important;
    background: var(--bg, #fff) !important;
}

.brand-logo-frame > img.brand-logo {
    display: block;
    flex: 0 0 28px !important;
    box-sizing: border-box !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: none !important;
}

footer .brand-logo-frame {
    border-color: #ff751f !important;
    background: #ff751f !important;
}

body:has(header .header-content) header #theme-toggle {
    position: static !important;
    order: 4;
    width: 42px;
    height: 42px;
}

body:has(header .header-content) header nav {
    order: 3;
}

body:has(header .header-content) main {
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(3rem, 7vw, 5.5rem) 20px;
}

body:has(header .header-content) .form-container {
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 3rem);
}

@media (max-width: 900px) {
    body:has(header .header-content) header {
        padding: 8px 10px !important;
    }

    body:has(header .header-content) header .header-content {
        min-height: 58px;
    }

    body:has(header .header-content) header .header-content > div {
        display: none;
    }

    body:has(header .header-content) header nav {
        position: absolute;
        inset-inline: 10px;
        top: calc(100% + 6px);
        display: none;
    }

    body:has(header .header-content) header nav.active {
        display: block;
    }

    body:has(header .header-content) header nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}
