/*
|--------------------------------------------------------------------------
| Al Hoda Contracting Public Website Design System
| Scope: Public-facing website only
|--------------------------------------------------------------------------
*/

:root {
    --ah-navy-950: #101820;
    --ah-navy-900: #121C27;
    --ah-charcoal-900: #2B2E33;
    --ah-steel-700: #384858;
    --ah-gold-500: #AD8A5A;
    --ah-gold-600: #96764B;
    --ah-concrete-400: #A5A6AC;
    --ah-cream-50: #FAF1EA;
    --ah-white: #FFFFFF;
    --ah-black: #05080C;

    --ah-text-main: #101820;
    --ah-text-muted: #5E6872;
    --ah-text-soft: #A5A6AC;
    --ah-text-inverse: #FAF1EA;

    --ah-surface-dark: #101820;
    --ah-surface-charcoal: #2B2E33;
    --ah-surface-steel: #384858;
    --ah-surface-light: #FAF1EA;
    --ah-surface-white: #FFFFFF;

    --ah-border-dark: rgba(250, 241, 234, 0.12);
    --ah-border-light: rgba(16, 24, 32, 0.12);
    --ah-border-gold: rgba(173, 138, 90, 0.45);

    --ah-shadow-sm: 0 8px 24px rgba(5, 8, 12, 0.08);
    --ah-shadow-md: 0 16px 44px rgba(5, 8, 12, 0.14);
    --ah-shadow-lg: 0 28px 80px rgba(5, 8, 12, 0.22);

    --ah-radius-xs: 8px;
    --ah-radius-sm: 10px;
    --ah-radius-md: 16px;
    --ah-radius-lg: 24px;

    --ah-container: 1180px;
    --ah-container-wide: 1360px;

    --ah-space-1: 0.25rem;
    --ah-space-2: 0.5rem;
    --ah-space-3: 0.75rem;
    --ah-space-4: 1rem;
    --ah-space-5: 1.5rem;
    --ah-space-6: 2rem;
    --ah-space-7: 3rem;
    --ah-space-8: 4rem;
    --ah-space-9: 6rem;
    --ah-space-10: 8rem;

    --ah-font-ar: "Tajawal", "Cairo", system-ui, sans-serif;
    --ah-font-en: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --ah-transition-fast: 180ms ease;
    --ah-transition: 280ms ease;
    --ah-transition-slow: 520ms ease;

    --ah-background: #FAF1EA;
    --ah-foreground: #101820;
    --ah-muted: #ECE2D8;
    --ah-muted-foreground: #5E6872;
    --ah-card: #FFFFFF;
    --ah-card-foreground: #101820;
    --ah-popover: #FFFFFF;
    --ah-popover-foreground: #101820;
    --ah-primary: #AD8A5A;
    --ah-primary-foreground: #101820;
    --ah-secondary: #2B2E33;
    --ah-secondary-foreground: #FAF1EA;
    --ah-accent: #E5D3BE;
    --ah-accent-foreground: #101820;
    --ah-destructive: #B42318;
    --ah-destructive-foreground: #FFFFFF;
    --ah-border: rgba(16, 24, 32, 0.14);
    --ah-input: rgba(16, 24, 32, 0.16);
    --ah-ring: rgba(173, 138, 90, 0.42);

    --ah-text-main: var(--ah-foreground);
    --ah-text-muted: var(--ah-muted-foreground);
    --ah-text-soft: #77828C;
    --ah-surface-light: var(--ah-background);
    --ah-surface-white: var(--ah-card);
    --ah-border-light: var(--ah-border);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ah-background: #090E14;
    --ah-foreground: #F5EFE7;
    --ah-muted: #121A22;
    --ah-muted-foreground: #BAC4CE;
    --ah-card: #121A22;
    --ah-card-foreground: #F5EFE7;
    --ah-popover: #101820;
    --ah-popover-foreground: #F5EFE7;
    --ah-primary: #C5A06E;
    --ah-primary-foreground: #090E14;
    --ah-secondary: #1B2630;
    --ah-secondary-foreground: #F5EFE7;
    --ah-accent: #25323D;
    --ah-accent-foreground: #F5EFE7;
    --ah-destructive: #F97066;
    --ah-destructive-foreground: #090E14;
    --ah-border: rgba(250, 241, 234, 0.14);
    --ah-input: rgba(250, 241, 234, 0.18);
    --ah-ring: rgba(197, 160, 110, 0.48);

    --ah-gold-500: var(--ah-primary);
    --ah-gold-600: #E0B778;
    --ah-cream-50: var(--ah-background);
    --ah-white: #F8F3EC;
    --ah-text-main: var(--ah-foreground);
    --ah-text-muted: var(--ah-muted-foreground);
    --ah-text-soft: #95A1AD;
    --ah-surface-light: var(--ah-background);
    --ah-surface-white: var(--ah-card);
    --ah-border-light: var(--ah-border);
    --ah-shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.24);
    --ah-shadow-md: 0 18px 46px rgba(0, 0, 0, 0.34);
    --ah-shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.46);
}

html {
    scroll-behavior: smooth;
    background: var(--ah-navy-950);
}

body {
    color: var(--ah-text-main);
    background: var(--ah-surface-light);
    font-family: var(--ah-font-en);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] body {
    font-family: var(--ah-font-ar);
    line-height: 1.75;
}

body[unresolved] {
    opacity: 0;
    display: block;
    overflow: hidden;
    position: relative;
}

img {
    max-width: 100%;
}

::selection {
    background: var(--ah-gold-500);
    color: var(--ah-navy-950);
}

:focus-visible {
    outline: 3px solid rgba(173, 138, 90, 0.7);
    outline-offset: 4px;
}

.ah-container {
    width: min(100% - clamp(1.25rem, 4vw, 2rem), var(--ah-container));
    margin-inline: auto;
}

.ah-container-wide {
    width: min(100% - clamp(1.25rem, 4vw, 2rem), var(--ah-container-wide));
    margin-inline: auto;
}

.ah-section {
    padding-block: clamp(4rem, 8vw, 8rem);
    position: relative;
}

.ah-section-dark {
    color: var(--ah-text-inverse);
    background: var(--ah-navy-950);
}

.ah-section-light {
    color: var(--ah-text-main);
    background: var(--ah-cream-50);
}

.ah-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--ah-gold-500);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

html[dir="rtl"] .ah-eyebrow {
    letter-spacing: 0;
}

.ah-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.ah-section-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 800;
}

html[dir="rtl"] .ah-section-title {
    letter-spacing: -0.02em;
    line-height: 1.22;
}

.ah-section-description {
    max-width: 680px;
    margin-top: 1.25rem;
    color: var(--ah-text-muted);
    font-size: 1.05rem;
}

.ah-section-dark .ah-section-description,
.ah-section-dark .ah-muted {
    color: rgba(250, 241, 234, 0.72);
}

.ah-muted {
    color: var(--ah-text-muted);
}

.ah-surface-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--ah-border-light);
    box-shadow: var(--ah-shadow-sm);
    border-radius: var(--ah-radius-md);
}

.ah-section-dark .ah-surface-card,
.ah-dark-card {
    background: rgba(43, 46, 51, 0.66);
    border: 1px solid var(--ah-border-dark);
    color: var(--ah-text-inverse);
    box-shadow: none;
}

.ah-blueprint-bg {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.ah-blueprint-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(250, 241, 234, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250, 241, 234, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(135deg, rgba(0,0,0,0.8), transparent 72%);
    pointer-events: none;
}

/* Buttons */
.ah-btn,
.btn.ah-btn {
    --btn-bg: transparent;
    --btn-color: currentColor;
    --btn-border: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 46px;
    padding: 0.74rem 1.18rem;
    border: 1px solid var(--btn-border);
    border-radius: var(--ah-radius-xs);
    background: var(--btn-bg);
    color: var(--btn-color);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--ah-transition), background var(--ah-transition), color var(--ah-transition), border-color var(--ah-transition), box-shadow var(--ah-transition);
}

.ah-btn i,
.btn.ah-btn i,
.ah-language-direct i,
.ah-footer-social a i,
.ah-footer-contact-icon i,
.ah-home-contact-item i,
.ah-home-check-item i,
.ah-home-why-item i,
.ah-input-icon > i,
.ah-portfolio-featured i,
.ah-portfolio-meta i,
.ah-portfolio-link i,
.ah-projects-empty-icon i,
.ah-case-meta-icon i,
.ah-case-gallery-zoom i,
.ah-home-whatsapp i,
.ah-case-whatsapp i,
.ah-scroll-top i,
.scroll-top i,
.ah-lightbox-close i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ah-btn:hover,
.btn.ah-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.ah-btn:focus-visible,
.btn.ah-btn:focus-visible,
.ah-language-direct:focus-visible,
.ah-footer-social a:focus-visible,
.ah-home-contact-item:focus-visible,
.ah-home-whatsapp:focus-visible,
.ah-case-whatsapp:focus-visible,
.ah-scroll-top:focus-visible,
.scroll-top:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.18rem rgba(173, 138, 90, 0.34), 0 14px 34px rgba(5, 8, 12, 0.18);
}

.ah-btn-primary,
.btn.ah-btn-primary {
    --btn-bg: var(--ah-gold-500);
    --btn-color: var(--ah-navy-950);
    --btn-border: var(--ah-gold-500);
    box-shadow: 0 14px 34px rgba(173, 138, 90, 0.25);
}

.ah-btn-primary:hover,
.btn.ah-btn-primary:hover {
    --btn-bg: var(--ah-gold-600);
    --btn-color: var(--ah-white);
    --btn-border: var(--ah-gold-600);
}

.ah-btn-secondary,
.btn.ah-btn-secondary {
    --btn-bg: transparent;
    --btn-color: var(--ah-text-inverse);
    --btn-border: rgba(250, 241, 234, 0.28);
}

.ah-btn-secondary:hover,
.btn.ah-btn-secondary:hover {
    --btn-bg: rgba(250, 241, 234, 0.08);
    --btn-border: var(--ah-gold-500);
    --btn-color: var(--ah-white);
}

.ah-btn-ghost,
.btn.ah-btn-ghost {
    --btn-bg: transparent;
    --btn-color: var(--ah-gold-500);
    --btn-border: transparent;
    padding-inline: 0;
}

.ah-btn-ghost:hover,
.btn.ah-btn-ghost:hover {
    --btn-color: var(--ah-gold-600);
    transform: translateX(-3px);
}

html[dir="ltr"] .ah-btn-ghost:hover,
html[dir="ltr"] .btn.ah-btn-ghost:hover {
    transform: translateX(3px);
}

/* Public Navbar */
.ah-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 78px;
    background: rgba(16, 24, 32, 0.88);
    border-bottom: 1px solid var(--ah-border-dark);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background var(--ah-transition), box-shadow var(--ah-transition), min-height var(--ah-transition);
}

.ah-navbar.is-scrolled {
    min-height: 68px;
    background: rgba(16, 24, 32, 0.97);
    box-shadow: 0 20px 50px rgba(5, 8, 12, 0.28);
}

.ah-navbar .navbar-brand {
    gap: 0;
    flex: 0 0 auto;
    color: var(--ah-text-inverse);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.ah-navbar-logo {
    width: 86px;
    height: 58px;
    object-fit: contain;
}

.ah-navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.ah-navbar-brand-name {
    color: var(--ah-white);
    font-size: 0.98rem;
}

.ah-navbar-brand-tagline {
    color: var(--ah-gold-500);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 0.28rem;
}

html[dir="rtl"] .ah-navbar-brand-tagline {
    letter-spacing: 0.08em;
}

.ah-navbar .navbar-toggler {
    border: 1px solid var(--ah-border-dark);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
}

.ah-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.18rem rgba(173, 138, 90, 0.35);
}

.ah-navbar .navbar-nav {
    gap: 0.05rem;
}

.ah-navbar .nav-link {
    position: relative;
    color: rgba(250, 241, 234, 0.74);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.7rem 0.85rem !important;
    transition: color var(--ah-transition);
}

.ah-navbar .nav-link::after {
    content: "";
    position: absolute;
    inset-inline-start: 0.85rem;
    inset-inline-end: 0.85rem;
    bottom: 0.35rem;
    height: 1px;
    background: var(--ah-gold-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--ah-transition);
}

.ah-navbar .nav-link:hover,
.ah-navbar .nav-link:focus,
.ah-navbar .nav-link.active {
    color: var(--ah-white);
}

.ah-navbar .nav-link:hover::after,
.ah-navbar .nav-link:focus::after,
.ah-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.ah-language-switcher .dropdown-toggle,
.ah-language-direct {
    min-width: 78px;
    min-height: 42px;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--ah-border-dark);
    border-radius: 999px;
    color: var(--ah-text-inverse);
    background: rgba(250, 241, 234, 0.065);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform var(--ah-transition), background var(--ah-transition), border-color var(--ah-transition), color var(--ah-transition), box-shadow var(--ah-transition);
}

.ah-language-switcher .dropdown-toggle:hover,
.ah-language-direct:hover {
    color: var(--ah-white);
    background: rgba(173, 138, 90, 0.14);
    border-color: var(--ah-border-gold);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(5, 8, 12, 0.2);
}

.ah-language-direct i {
    width: 16px;
    height: 16px;
    font-size: 0.92rem;
    color: var(--ah-gold-500);
}

.ah-navbar .dropdown-menu {
    background: var(--ah-navy-950);
    border: 1px solid var(--ah-border-dark);
    border-radius: var(--ah-radius-sm);
    box-shadow: var(--ah-shadow-lg);
    padding: 0.45rem;
}

.ah-navbar .dropdown-item {
    color: rgba(250, 241, 234, 0.78);
    border-radius: var(--ah-radius-xs);
    font-weight: 700;
    padding: 0.65rem 0.8rem;
}

.ah-navbar .dropdown-item:hover,
.ah-navbar .dropdown-item:focus,
.ah-navbar .dropdown-item.active {
    color: var(--ah-navy-950);
    background: var(--ah-gold-500);
}

.ah-navbar-cta {
    min-height: 42px;
    padding-inline: 0.95rem;
    white-space: nowrap;
}

/* Footer */
.ah-footer {
    position: relative;
    overflow: hidden;
    color: var(--ah-text-inverse);
    background:
        radial-gradient(circle at 12% 0%, rgba(173, 138, 90, 0.14), transparent 32%),
        linear-gradient(180deg, #101820 0%, #070C12 100%);
    border-top: 1px solid var(--ah-border-dark);
}

.ah-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(250, 241, 234, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250, 241, 234, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 86%);
    pointer-events: none;
}

.ah-footer > * {
    position: relative;
}

.ah-footer-cta {
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--ah-border-dark);
}

.ah-footer-cta-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

html[dir="rtl"] .ah-footer-cta-title {
    letter-spacing: -0.02em;
}

.ah-footer-cta-text {
    color: rgba(250, 241, 234, 0.72);
    max-width: 580px;
    margin: 1rem 0 0;
}

.ah-footer-main {
    padding-block: clamp(3.25rem, 6vw, 5.5rem);
}

.ah-footer-brand-logo {
    width: 112px;
    height: 104px;
    object-fit: contain;
    margin-bottom: 1.1rem;
}

.ah-footer-brand-title {
    color: var(--ah-white);
    font-size: 1.35rem;
    font-weight: 900;
    margin: 0 0 0.65rem;
}

.ah-footer-brand-text {
    color: rgba(250, 241, 234, 0.7);
    max-width: 360px;
    margin: 0;
}

.ah-footer-slogan {
    display: inline-flex;
    margin-top: 1.25rem;
    color: var(--ah-gold-500);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

html[dir="rtl"] .ah-footer-slogan {
    letter-spacing: 0.02em;
}

.ah-footer-title {
    position: relative;
    color: var(--ah-white);
    font-size: 0.95rem;
    font-weight: 900;
    margin: 0 0 1.15rem;
    padding-bottom: 0.75rem;
}

.ah-footer-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 34px;
    height: 1px;
    background: var(--ah-gold-500);
}

.ah-footer-links {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ah-footer-links a,
.ah-footer-contact a {
    color: rgba(250, 241, 234, 0.68);
    text-decoration: none;
    transition: color var(--ah-transition), transform var(--ah-transition);
}

.ah-footer-links a:hover,
.ah-footer-contact a:hover {
    color: var(--ah-gold-500);
}

.ah-footer-links a:hover {
    transform: translateX(-4px);
}

html[dir="ltr"] .ah-footer-links a:hover {
    transform: translateX(4px);
}

.ah-footer-contact {
    display: grid;
    gap: 1rem;
}

.ah-footer-contact-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    color: rgba(250, 241, 234, 0.72);
}

html[dir="rtl"] .ah-footer-contact-item {
    grid-template-columns: minmax(0, 1fr) 36px;
}

.ah-footer-contact-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ah-border-dark);
    color: var(--ah-gold-500);
    background: rgba(250, 241, 234, 0.04);
    border-radius: 999px;
    flex: 0 0 36px;
}

.ah-footer-social {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.35rem;
}

.ah-footer-social a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ah-border-dark);
    color: var(--ah-text-inverse);
    background: rgba(250, 241, 234, 0.045);
    border-radius: 999px;
    text-decoration: none;
    transition: transform var(--ah-transition), background var(--ah-transition), color var(--ah-transition), border-color var(--ah-transition);
}

.ah-footer-social a:hover {
    transform: translateY(-3px);
    color: var(--ah-navy-950);
    background: var(--ah-gold-500);
    border-color: var(--ah-gold-500);
}

.ah-footer-bottom {
    border-top: 1px solid var(--ah-border-dark);
    padding-block: 1.2rem;
    color: rgba(250, 241, 234, 0.58);
    font-size: 0.875rem;
}

.ah-footer-bottom a {
    color: rgba(250, 241, 234, 0.72);
    text-decoration: none;
    transition: color var(--ah-transition), transform var(--ah-transition);
}

.ah-footer-bottom a:hover {
    color: var(--ah-gold-500);
    transform: translateY(-1px);
}

/* Forms foundation */
.ah-form-control,
.form-control.ah-form-control,
.form-select.ah-form-control {
    min-height: 52px;
    border: 1px solid var(--ah-border-light);
    border-radius: var(--ah-radius-sm);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ah-text-main);
    box-shadow: none;
    transition: border-color var(--ah-transition), box-shadow var(--ah-transition), background var(--ah-transition);
}

.ah-form-control:focus,
.form-control.ah-form-control:focus,
.form-select.ah-form-control:focus {
    border-color: var(--ah-gold-500);
    box-shadow: 0 0 0 0.18rem rgba(173, 138, 90, 0.18);
    background: var(--ah-white);
}

/* Floating elements foundation */
.ah-scroll-top,
.scroll-top {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ah-border-gold);
    border-radius: 999px;
    background: var(--ah-gold-500);
    color: var(--ah-navy-950);
    box-shadow: var(--ah-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--ah-transition), visibility var(--ah-transition), transform var(--ah-transition), background var(--ah-transition);
}

.ah-scroll-top.is-visible,
.scroll-top.is-visible,
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Direction helpers */
html[dir="rtl"] .dropdown-menu-end {
    --bs-position: start;
    left: 0;
    right: auto;
}

/* Responsive */
@media (max-width: 991.98px) {
    .ah-navbar {
        min-height: 68px;
    }

    .ah-navbar .navbar-toggler {
        display: inline-flex;
    }

    .ah-navbar .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(5, 8, 12, 0.96);
        border: 1px solid var(--ah-border-dark);
        border-radius: var(--ah-radius-md);
        box-shadow: var(--ah-shadow-lg);
    }

    .ah-navbar .navbar-nav {
        gap: 0.25rem;
    }

    .ah-navbar .nav-link {
        padding: 0.85rem 0 !important;
    }

    .ah-navbar .nav-link::after {
        inset-inline-start: 0;
        inset-inline-end: auto;
        width: 34px;
    }

    .ah-navbar-actions {
        display: grid !important;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .ah-navbar-cta,
    .ah-language-direct {
        width: 100%;
    }

    .ah-footer-cta .row,
    .ah-footer-bottom .row {
        row-gap: 1.25rem;
    }

    .ah-footer-bottom,
    .ah-footer-bottom .text-md-end,
    .ah-footer-bottom .text-md-start {
        text-align: center !important;
    }
}

@media (min-width: 992px) {
    .ah-navbar .navbar-toggler {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .ah-container,
    .ah-container-wide {
        width: min(100% - 1.15rem, var(--ah-container-wide));
    }

    .ah-navbar-brand-name {
        font-size: 0.88rem;
    }

    .ah-navbar-brand-tagline {
        font-size: 0.58rem;
    }

    .ah-navbar-logo {
        width: 70px;
        height: 50px;
    }

    .ah-language-direct,
    .ah-navbar-cta,
    .ah-btn,
    .btn.ah-btn {
        min-height: 46px;
    }

    .ah-footer-main {
        padding-block: 2.75rem;
    }

    .ah-footer-brand-logo {
        width: 98px;
        height: 92px;
    }

    .ah-footer-contact-item,
    html[dir="rtl"] .ah-footer-contact-item {
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
    }

    html[dir="rtl"] .ah-footer-contact-item .ah-footer-contact-icon {
        order: -1;
    }

    .ah-footer-bottom .d-flex {
        justify-content: center !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Legacy public partial compatibility until homepage/pages are migrated */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 800;
    color: inherit;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    inset-inline-start: 50%;
    width: 64px;
    height: 2px;
    background: var(--ah-gold-500);
    transform: translateX(-50%);
}

.btn-gold,
.btn.btn-gold {
    background: var(--ah-gold-500);
    color: var(--ah-navy-950);
    border: 1px solid var(--ah-gold-500);
    border-radius: var(--ah-radius-xs);
    font-weight: 800;
    padding: 0.72rem 1.25rem;
    transition: transform var(--ah-transition), background var(--ah-transition), color var(--ah-transition), border-color var(--ah-transition);
}

.btn-gold:hover,
.btn.btn-gold:hover {
    background: var(--ah-gold-600);
    border-color: var(--ah-gold-600);
    color: var(--ah-white);
    transform: translateY(-2px);
}

.btn-outline-gold,
.btn.btn-outline-gold {
    background: transparent;
    color: var(--ah-gold-500);
    border: 1px solid var(--ah-gold-500);
    border-radius: var(--ah-radius-xs);
    font-weight: 800;
    padding: 0.72rem 1.25rem;
    transition: transform var(--ah-transition), background var(--ah-transition), color var(--ah-transition), border-color var(--ah-transition);
}

.btn-outline-gold:hover,
.btn.btn-outline-gold:hover {
    background: var(--ah-gold-500);
    color: var(--ah-navy-950);
    transform: translateY(-2px);
}

.contact-section {
    background: var(--ah-cream-50);
}

.contact-info-card,
.glass-contact-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--ah-border-light);
    border-radius: var(--ah-radius-md);
    box-shadow: var(--ah-shadow-sm);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.info-item,
.contact-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.icon-box {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: var(--ah-gold-500);
    background: rgba(173, 138, 90, 0.12);
    border: 1px solid rgba(173, 138, 90, 0.22);
}

.social-contact,
.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-contact a,
.social-icons .social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ah-navy-950);
    background: rgba(173, 138, 90, 0.14);
    border: 1px solid rgba(173, 138, 90, 0.22);
    text-decoration: none;
    transition: transform var(--ah-transition), background var(--ah-transition), color var(--ah-transition);
}

.social-contact a:hover,
.social-icons .social-icon:hover {
    transform: translateY(-3px);
    color: var(--ah-navy-950);
    background: var(--ah-gold-500);
}

.btn-contact,
.btn.btn-contact {
    width: 100%;
    min-height: 52px;
    background: var(--ah-gold-500);
    color: var(--ah-navy-950);
    border: 1px solid var(--ah-gold-500);
    border-radius: var(--ah-radius-xs);
    font-weight: 900;
}

.btn-contact:hover,
.btn.btn-contact:hover {
    background: var(--ah-gold-600);
    border-color: var(--ah-gold-600);
    color: var(--ah-white);
}

.feature-box,
.feature-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--ah-border-light);
    border-radius: var(--ah-radius-md);
    box-shadow: var(--ah-shadow-sm);
    padding: 2rem;
    text-align: center;
    transition: transform var(--ah-transition), box-shadow var(--ah-transition), border-color var(--ah-transition);
}

.feature-box:hover,
.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--ah-border-gold);
    box-shadow: var(--ah-shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    color: var(--ah-gold-500);
    background: rgba(173, 138, 90, 0.12);
    border: 1px solid rgba(173, 138, 90, 0.22);
    font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   Homepage Redesign — Batch 2
   -------------------------------------------------------------------------- */
.ah-home-page {
    background: var(--ah-cream-50);
    overflow-x: hidden;
}

.ah-home-page main {
    background: var(--ah-cream-50);
}

.ah-home-hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--ah-text-inverse);
    background: var(--ah-navy-950);
    padding-block: clamp(6rem, 10vw, 9rem);
}

.ah-home-hero-media,
.ah-home-hero-media::after,
.ah-home-hero-overlay {
    position: absolute;
    inset: 0;
}

.ah-home-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.05);
    transform: scale(1.02);
}

.ah-home-hero-media::after {
    content: "";
    background: linear-gradient(90deg, rgba(5, 8, 12, 0.92) 0%, rgba(16, 24, 32, 0.76) 46%, rgba(16, 24, 32, 0.42) 100%);
}

html[dir="rtl"] .ah-home-hero-media::after {
    background: linear-gradient(270deg, rgba(5, 8, 12, 0.92) 0%, rgba(16, 24, 32, 0.76) 46%, rgba(16, 24, 32, 0.42) 100%);
}

.ah-home-hero-overlay {
    background:
        radial-gradient(circle at 18% 18%, rgba(173, 138, 90, 0.20), transparent 28%),
        linear-gradient(180deg, rgba(5, 8, 12, 0.25), rgba(5, 8, 12, 0.78));
    pointer-events: none;
}

.ah-home-hero .container {
    position: relative;
    z-index: 2;
}

.ah-home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.45fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.ah-home-hero-title {
    max-width: 920px;
    margin: 0;
    color: var(--ah-white);
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.94;
    font-weight: 900;
    letter-spacing: -0.07em;
}

html[dir="rtl"] .ah-home-hero-title {
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.ah-home-hero-lead {
    max-width: 720px;
    margin: 1.5rem 0 0;
    color: rgba(250, 241, 234, 0.78);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.85;
}

.ah-home-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.ah-home-hero-panel {
    padding: clamp(1.25rem, 3vw, 1.8rem);
    border: 1px solid var(--ah-border-dark);
    background: rgba(16, 24, 32, 0.64);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--ah-shadow-lg);
}

.ah-home-hero-panel-label {
    display: block;
    color: var(--ah-gold-500);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 1.2rem;
}

html[dir="rtl"] .ah-home-hero-panel-label {
    letter-spacing: 0.02em;
}

.ah-home-hero-stats {
    display: grid;
    gap: 1px;
    background: var(--ah-border-dark);
}

.ah-home-stat-mini {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(5, 8, 12, 0.48);
}

.ah-home-stat-mini strong {
    color: var(--ah-white);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1;
    font-weight: 900;
}

.ah-home-stat-mini span {
    color: rgba(250, 241, 234, 0.68);
    font-size: 0.85rem;
}

.ah-home-section-head {
    max-width: 820px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ah-home-about-list,
.ah-home-why-list,
.ah-home-contact-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 2rem;
}

.ah-home-check-item,
.ah-home-why-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--ah-text-main);
    font-weight: 800;
}

.ah-home-check-item i,
.ah-home-why-item i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--ah-navy-950);
    background: rgba(173, 138, 90, 0.18);
    border: 1px solid rgba(173, 138, 90, 0.28);
    border-radius: 999px;
}

.ah-home-image-composition,
.ah-home-why-image {
    position: relative;
    overflow: hidden;
    min-height: clamp(360px, 46vw, 560px);
    border: 1px solid var(--ah-border-light);
    background: var(--ah-charcoal-900);
    box-shadow: var(--ah-shadow-lg);
}

.ah-home-image-composition::before,
.ah-home-why-image::before {
    content: "";
    position: absolute;
    inset: 1rem;
    z-index: 2;
    border: 1px solid rgba(173, 138, 90, 0.42);
    pointer-events: none;
}

.ah-home-image-composition img,
.ah-home-why-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    filter: saturate(0.76) contrast(1.03);
    transition: transform var(--ah-transition-slow);
}

.ah-home-image-composition:hover img,
.ah-home-why-image:hover img {
    transform: scale(1.035);
}

.ah-home-image-badge {
    position: absolute;
    z-index: 3;
    inset-inline-start: 1.6rem;
    bottom: 1.6rem;
    min-width: 160px;
    padding: 1rem;
    color: var(--ah-text-inverse);
    background: rgba(16, 24, 32, 0.88);
    border: 1px solid var(--ah-border-gold);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ah-home-image-badge strong {
    display: block;
    color: var(--ah-gold-500);
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.ah-home-image-badge span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(250, 241, 234, 0.72);
    font-size: 0.85rem;
}

.ah-home-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--ah-border-dark);
    border-inline-start: 1px solid var(--ah-border-dark);
}

.ah-home-value-card {
    min-height: 260px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-inline-end: 1px solid var(--ah-border-dark);
    border-bottom: 1px solid var(--ah-border-dark);
    background: rgba(43, 46, 51, 0.28);
    transition: background var(--ah-transition), transform var(--ah-transition);
}

.ah-home-value-card:hover {
    background: rgba(173, 138, 90, 0.11);
}

.ah-home-value-card span,
.ah-home-service-number {
    display: inline-flex;
    color: var(--ah-gold-500);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 1.6rem;
}

.ah-home-value-card h3,
.ah-home-service-card h3,
.ah-home-process-step h3 {
    color: inherit;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.25;
    font-weight: 900;
    margin: 0 0 0.8rem;
}

.ah-home-value-card p,
.ah-home-service-card p,
.ah-home-process-step p {
    color: rgba(250, 241, 234, 0.68);
    margin: 0;
}

.ah-home-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.ah-home-service-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: clamp(1.35rem, 3vw, 2rem);
    color: var(--ah-text-main);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--ah-border-light);
    border-radius: var(--ah-radius-sm);
    box-shadow: var(--ah-shadow-sm);
    transition: transform var(--ah-transition), border-color var(--ah-transition), box-shadow var(--ah-transition), background var(--ah-transition);
}

.ah-home-service-card:hover {
    transform: translateY(-6px);
    border-color: var(--ah-border-gold);
    box-shadow: var(--ah-shadow-md);
    background: var(--ah-white);
}

.ah-home-service-card p {
    color: var(--ah-text-muted);
    margin-bottom: 1.5rem;
}

.ah-home-service-card .ah-btn {
    margin-top: auto;
}

.ah-home-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(330px, auto);
    gap: 1rem;
}

.ah-home-project-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: var(--ah-charcoal-900);
    border: 1px solid var(--ah-border-dark);
    border-radius: var(--ah-radius-sm);
}

.ah-home-project-card.is-featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 680px;
}

.ah-home-project-card a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    color: var(--ah-text-inverse);
    text-decoration: none;
}

.ah-home-project-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) contrast(1.06);
    transition: transform var(--ah-transition-slow), filter var(--ah-transition-slow);
}

.ah-home-project-card:hover img {
    transform: scale(1.055);
    filter: saturate(0.86) contrast(1.08);
}

.ah-home-project-card a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 12, 0.08), rgba(5, 8, 12, 0.88));
}

.ah-home-project-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.ah-home-project-category {
    display: inline-flex;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.65rem;
    color: var(--ah-navy-950);
    background: var(--ah-gold-500);
    font-size: 0.72rem;
    font-weight: 900;
    border-radius: 999px;
}

.ah-home-project-card h3 {
    color: var(--ah-white);
    font-size: clamp(1.25rem, 2vw, 2.25rem);
    line-height: 1.18;
    font-weight: 900;
    margin: 0;
}

.ah-home-project-card p {
    color: rgba(250, 241, 234, 0.72);
    margin: 0.75rem 0 0;
}

.ah-home-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    color: rgba(250, 241, 234, 0.72);
    font-size: 0.86rem;
}

.ah-home-project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ah-home-project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    color: var(--ah-gold-500);
    font-weight: 900;
}

.ah-home-empty-state {
    display: grid;
    place-items: center;
    gap: 1rem;
    min-height: 260px;
    color: rgba(250, 241, 234, 0.74);
    border: 1px dashed var(--ah-border-dark);
    background: rgba(250, 241, 234, 0.04);
}

.ah-home-empty-state i {
    color: var(--ah-gold-500);
    font-size: 2rem;
}

.ah-home-process-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: var(--ah-border-light);
    border: 1px solid var(--ah-border-light);
}

.ah-home-process-step {
    min-height: 290px;
    padding: clamp(1.25rem, 2.5vw, 1.8rem);
    background: rgba(255, 255, 255, 0.72);
}

.ah-home-process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.5rem;
    color: var(--ah-navy-950);
    background: rgba(173, 138, 90, 0.18);
    border: 1px solid rgba(173, 138, 90, 0.32);
    border-radius: 999px;
    font-weight: 900;
}

.ah-home-process-step p {
    color: var(--ah-text-muted);
}

.ah-home-why .ah-home-why-item {
    color: var(--ah-text-inverse);
    border-bottom: 1px solid var(--ah-border-dark);
    padding-bottom: 0.9rem;
}

.ah-home-why .ah-home-why-item i {
    color: var(--ah-gold-500);
    background: rgba(250, 241, 234, 0.04);
    border-color: var(--ah-border-dark);
}

.ah-home-partners-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 1px;
    margin-top: 3rem;
    background: var(--ah-border-light);
    border: 1px solid var(--ah-border-light);
}

.ah-home-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 136px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.68);
}

.ah-home-partner-logo img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(0.66);
    transition: filter var(--ah-transition), transform var(--ah-transition);
}

.ah-home-partner-logo:hover img {
    filter: grayscale(0) opacity(1);
    transform: translateY(-3px);
}

.ah-home-contact-list {
    gap: 1rem;
}

.ah-home-contact-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    color: var(--ah-text-inverse);
    background: rgba(250, 241, 234, 0.04);
    border: 1px solid var(--ah-border-dark);
    border-radius: var(--ah-radius-sm);
    text-decoration: none;
    transition: transform var(--ah-transition), border-color var(--ah-transition), background var(--ah-transition);
}

html[dir="rtl"] .ah-home-contact-item {
    grid-template-columns: 44px minmax(0, 1fr);
}

.ah-home-contact-item:hover {
    color: var(--ah-text-inverse);
    border-color: var(--ah-border-gold);
    background: rgba(250, 241, 234, 0.065);
    transform: translateY(-2px);
}

.ah-home-contact-item i {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-gold-500);
    background: rgba(173, 138, 90, 0.12);
    border: 1px solid rgba(173, 138, 90, 0.22);
    border-radius: 999px;
}

.ah-home-contact-item span {
    color: rgba(250, 241, 234, 0.56);
    font-size: 0.78rem;
    font-weight: 800;
}

.ah-home-contact-item strong {
    min-width: 0;
    color: var(--ah-white);
    font-weight: 800;
    word-break: break-word;
}

.ah-home-contact-card {
    height: 100%;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    color: var(--ah-text-inverse);
    background: rgba(43, 46, 51, 0.72);
    border: 1px solid var(--ah-border-dark);
    border-radius: var(--ah-radius-md);
    box-shadow: var(--ah-shadow-lg);
}

.ah-home-contact-card h3 {
    margin: 0;
    color: var(--ah-white);
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 900;
}

.ah-home-contact-card p {
    color: rgba(250, 241, 234, 0.62);
    margin: 0.75rem 0 1.5rem;
}

.ah-home-contact-card .form-label {
    color: rgba(250, 241, 234, 0.82);
    font-weight: 800;
    font-size: 0.88rem;
}

.ah-home-contact-card .ah-form-control {
    color: var(--ah-text-inverse);
    background: rgba(5, 8, 12, 0.35);
    border-color: var(--ah-border-dark);
}

.ah-home-contact-card .ah-form-control::placeholder {
    color: rgba(250, 241, 234, 0.36);
}

.ah-home-contact-card .ah-form-control:focus {
    color: var(--ah-white);
    background: rgba(5, 8, 12, 0.54);
    border-color: var(--ah-gold-500);
}

.ah-home-form-status {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    color: var(--ah-navy-950);
    background: var(--ah-gold-500);
    font-weight: 800;
}

.ah-home-whatsapp {
    position: fixed;
    inset-inline-start: 22px;
    bottom: 22px;
    z-index: 1041;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-white);
    background: #25D366;
    border-radius: 999px;
    box-shadow: var(--ah-shadow-md);
    text-decoration: none;
    transition: transform var(--ah-transition), box-shadow var(--ah-transition);
}

.ah-home-whatsapp:hover {
    color: var(--ah-white);
    transform: translateY(-3px);
    box-shadow: var(--ah-shadow-lg);
}

.ah-home-whatsapp i {
    font-size: 1.45rem;
}

@media (max-width: 1199.98px) {
    .ah-home-hero-grid {
        grid-template-columns: 1fr;
    }

    .ah-home-hero-panel {
        max-width: 720px;
    }

    .ah-home-hero-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ah-home-services-grid,
    .ah-home-process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ah-home-project-card.is-featured {
        grid-column: span 2;
        min-height: 520px;
    }
}

@media (max-width: 991.98px) {
    .ah-home-hero {
        min-height: auto;
    }

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

    .ah-home-partners-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ah-section {
        padding-block: clamp(3rem, 12vw, 4.5rem);
    }

    .ah-home-hero-title {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
        line-height: 1;
    }

    html[dir="rtl"] .ah-home-hero-title {
        font-size: clamp(2.1rem, 10.5vw, 3rem);
        line-height: 1.18;
        letter-spacing: -0.01em;
    }

    .ah-home-hero-lead,
    .ah-section-description {
        font-size: 1rem;
        line-height: 1.75;
    }

    .ah-home-section-head {
        margin-bottom: 2rem;
    }

    .ah-home-hero-actions,
    .ah-home-hero-actions .ah-btn {
        width: 100%;
    }

    .ah-home-hero-stats,
    .ah-home-services-grid,
    .ah-home-values-grid,
    .ah-home-process-list,
    .ah-home-projects-grid,
    .ah-home-partners-strip {
        grid-template-columns: 1fr;
    }

    .ah-home-project-card,
    .ah-home-project-card.is-featured {
        grid-column: auto;
        grid-row: auto;
        min-height: 390px;
    }

    .ah-home-project-card a {
        position: relative;
        min-height: 390px;
    }

    .ah-home-value-card,
    .ah-home-service-card,
    .ah-home-process-step {
        min-height: auto;
        padding: 1.35rem;
    }

    .ah-home-image-composition,
    .ah-home-why-image {
        min-height: 320px;
    }

    .ah-home-contact-card {
        padding: 1.25rem;
    }

    .ah-home-contact-item {
        padding: 0.9rem;
    }

    .ah-home-partner-logo {
        min-height: 112px;
    }

    .ah-home-whatsapp {
        inset-inline-start: 16px;
        bottom: 16px;
    }

    .ah-scroll-top,
    .scroll-top {
        inset-inline-end: 16px;
        bottom: 16px;
    }
}

/*
|--------------------------------------------------------------------------
| Projects Archive Page
|--------------------------------------------------------------------------
*/

.ah-projects-body {
    background: var(--ah-cream-50);
}

.ah-projects-page {
    background: var(--ah-cream-50);
    overflow: hidden;
}

.ah-projects-hero {
    position: relative;
    min-height: clamp(520px, 70vh, 760px);
    display: flex;
    align-items: center;
    color: var(--ah-text-inverse);
    background:
        linear-gradient(90deg, rgba(5, 8, 12, 0.92), rgba(16, 24, 32, 0.72) 44%, rgba(16, 24, 32, 0.42)),
        var(--ah-projects-hero-image),
        var(--ah-navy-950);
    background-position: center;
    background-size: cover;
    isolation: isolate;
    padding-block: clamp(6rem, 10vw, 9rem) clamp(4rem, 7vw, 7rem);
}

.ah-projects-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(173, 138, 90, 0.55), transparent);
    z-index: 1;
}

.ah-projects-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.42fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
}

.ah-projects-hero-content {
    max-width: 880px;
}

.ah-projects-hero-content h1 {
    max-width: 920px;
    margin: 0;
    color: var(--ah-white);
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.055em;
}

html[dir="rtl"] .ah-projects-hero-content h1 {
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.ah-projects-hero-content p {
    max-width: 700px;
    margin: 1.5rem 0 0;
    color: rgba(250, 241, 234, 0.78);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.ah-projects-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.ah-projects-hero-panel {
    position: relative;
    padding: clamp(1.4rem, 3vw, 2.25rem);
    color: var(--ah-text-inverse);
    background: rgba(16, 24, 32, 0.72);
    border: 1px solid var(--ah-border-dark);
    box-shadow: var(--ah-shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ah-projects-hero-panel::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 3px;
    background: var(--ah-gold-500);
}

.ah-projects-hero-panel span,
.ah-projects-hero-panel small {
    display: block;
    color: rgba(250, 241, 234, 0.68);
    font-weight: 800;
}

.ah-projects-hero-panel span {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

html[dir="rtl"] .ah-projects-hero-panel span {
    letter-spacing: 0.02em;
}

.ah-projects-hero-panel strong {
    display: block;
    margin-top: 1rem;
    color: var(--ah-gold-500);
    font-size: clamp(3.25rem, 8vw, 6rem);
    line-height: 0.9;
    font-weight: 900;
}

.ah-projects-archive {
    background:
        radial-gradient(circle at 12% 0%, rgba(173, 138, 90, 0.1), transparent 28%),
        var(--ah-cream-50);
}

.ah-projects-filter-card {
    margin-top: clamp(-7rem, -8vw, -4rem);
    position: relative;
    z-index: 4;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.91);
    border: 1px solid var(--ah-border-light);
    border-radius: var(--ah-radius-md);
    box-shadow: var(--ah-shadow-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ah-projects-filter-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ah-border-light);
}

.ah-projects-filter-heading h2 {
    margin: 0;
    color: var(--ah-text-main);
    font-size: clamp(1.65rem, 3vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

html[dir="rtl"] .ah-projects-filter-heading h2 {
    line-height: 1.24;
    letter-spacing: -0.02em;
}

.ah-projects-filter-heading p {
    margin: 0;
    color: var(--ah-text-muted);
}

.ah-projects-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.8fr) auto;
    gap: 1rem;
    align-items: end;
}

.ah-form-group label {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--ah-text-main);
    font-size: 0.86rem;
    font-weight: 900;
}

.ah-input-icon {
    position: relative;
}

.ah-input-icon > i {
    position: absolute;
    top: 50%;
    inset-inline-start: 1rem;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--ah-gold-500);
    z-index: 1;
    pointer-events: none;
}

.ah-input-icon .form-control,
.ah-input-icon .form-select {
    min-height: 54px;
    padding-inline-start: 2.8rem;
    border: 1px solid rgba(16, 24, 32, 0.16);
    border-radius: var(--ah-radius-sm);
    background-color: rgba(250, 241, 234, 0.56);
    color: var(--ah-text-main);
    font-weight: 700;
    box-shadow: none;
}

.ah-input-icon .form-control:focus,
.ah-input-icon .form-select:focus {
    border-color: var(--ah-gold-500);
    box-shadow: 0 0 0 0.22rem rgba(173, 138, 90, 0.18);
    background-color: var(--ah-white);
}

.ah-projects-filter-actions {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ah-btn-light-ghost,
.btn.ah-btn-light-ghost {
    --btn-bg: transparent;
    --btn-color: var(--ah-text-muted);
    --btn-border: rgba(16, 24, 32, 0.14);
    box-shadow: none;
}

.ah-btn-light-ghost:hover,
.btn.ah-btn-light-ghost:hover {
    --btn-color: var(--ah-text-main);
    --btn-border: var(--ah-border-gold);
    background: rgba(173, 138, 90, 0.08);
}

.ah-projects-results-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin: clamp(2rem, 5vw, 4rem) 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ah-border-light);
    color: var(--ah-text-muted);
    font-weight: 700;
}

.ah-projects-results-header strong {
    display: inline-flex;
    margin-inline-start: 0.4rem;
    color: var(--ah-text-main);
}

.ah-projects-results-header small {
    color: var(--ah-gold-600);
    font-weight: 900;
}

.ah-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
}

.ah-portfolio-card {
    min-height: 100%;
    background: var(--ah-white);
    border: 1px solid var(--ah-border-light);
    border-radius: var(--ah-radius-sm);
    overflow: hidden;
    box-shadow: var(--ah-shadow-sm);
    transition: transform var(--ah-transition), box-shadow var(--ah-transition), border-color var(--ah-transition);
}

.ah-portfolio-card:hover {
    transform: translateY(-7px);
    border-color: var(--ah-border-gold);
    box-shadow: var(--ah-shadow-md);
}

.ah-portfolio-card a {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.ah-portfolio-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: var(--ah-charcoal-900);
}

.ah-portfolio-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 12, 0.02), rgba(5, 8, 12, 0.28));
    pointer-events: none;
}

.ah-portfolio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.76) contrast(1.05);
    transition: transform var(--ah-transition-slow), filter var(--ah-transition-slow);
}

.ah-portfolio-card:hover .ah-portfolio-card-media img {
    transform: scale(1.055);
    filter: saturate(0.9) contrast(1.08);
}

.ah-portfolio-featured {
    position: absolute;
    z-index: 2;
    top: 1rem;
    inset-inline-start: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.65rem;
    color: var(--ah-navy-950);
    background: var(--ah-gold-500);
    font-size: 0.72rem;
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(5, 8, 12, 0.24);
}

.ah-portfolio-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.2rem, 2vw, 1.55rem);
}

.ah-portfolio-category {
    align-self: flex-start;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.55rem;
    color: var(--ah-gold-600);
    background: rgba(173, 138, 90, 0.1);
    border: 1px solid rgba(173, 138, 90, 0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
}

.ah-portfolio-card h3 {
    margin: 0;
    color: var(--ah-text-main);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.025em;
}

html[dir="rtl"] .ah-portfolio-card h3 {
    line-height: 1.32;
    letter-spacing: -0.01em;
}

.ah-portfolio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    margin-top: 1rem;
    color: var(--ah-text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.ah-portfolio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
}

.ah-portfolio-meta i {
    color: var(--ah-gold-500);
}

.ah-portfolio-card p {
    margin: 1rem 0 0;
    color: var(--ah-text-muted);
}

.ah-portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.35rem;
    color: var(--ah-gold-600);
    font-weight: 900;
}

.ah-portfolio-link i {
    transition: transform var(--ah-transition);
}

.ah-portfolio-card:hover .ah-portfolio-link i {
    transform: translateX(-4px);
}

html[dir="ltr"] .ah-portfolio-card:hover .ah-portfolio-link i {
    transform: translateX(4px);
}

.ah-projects-empty-state {
    display: grid;
    place-items: center;
    gap: 1rem;
    min-height: 420px;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px dashed rgba(173, 138, 90, 0.5);
    border-radius: var(--ah-radius-md);
    box-shadow: var(--ah-shadow-sm);
}

.ah-projects-empty-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-gold-500);
    background: rgba(173, 138, 90, 0.12);
    border-radius: 999px;
    font-size: 2rem;
}

.ah-projects-empty-state h2 {
    margin: 0;
    color: var(--ah-text-main);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 900;
}

.ah-projects-empty-state p {
    max-width: 560px;
    margin: 0;
    color: var(--ah-text-muted);
}

.ah-projects-pagination {
    margin-top: clamp(2rem, 5vw, 4rem);
    color: var(--ah-text-main);
}

.ah-projects-pagination nav[role="navigation"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ah-projects-pagination nav[role="navigation"] > div:first-child {
    display: none;
}

.ah-projects-pagination nav[role="navigation"] > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
}

.ah-projects-pagination nav[role="navigation"] > div:last-child > div:first-child {
    display: none;
}

.ah-projects-pagination nav[role="navigation"] > div:last-child > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.ah-projects-pagination nav[role="navigation"] a,
.ah-projects-pagination nav[role="navigation"] span,
.ah-projects-pagination .pagination .page-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    color: var(--ah-text-main) !important;
    background: var(--ah-white) !important;
    border: 1px solid var(--ah-border-light) !important;
    border-radius: var(--ah-radius-xs) !important;
    box-shadow: none !important;
    font-weight: 900;
    text-decoration: none;
    transition: transform var(--ah-transition), background var(--ah-transition), border-color var(--ah-transition), color var(--ah-transition);
}

.ah-projects-pagination nav[role="navigation"] span[aria-current="page"] span,
.ah-projects-pagination .pagination .page-item.active .page-link {
    color: var(--ah-navy-950) !important;
    background: var(--ah-gold-500) !important;
    border-color: var(--ah-gold-500) !important;
}

.ah-projects-pagination nav[role="navigation"] a:hover,
.ah-projects-pagination .pagination .page-link:hover {
    color: var(--ah-navy-950) !important;
    border-color: var(--ah-gold-500) !important;
    background: rgba(173, 138, 90, 0.12) !important;
    transform: translateY(-2px);
}

.ah-projects-cta {
    color: var(--ah-text-inverse);
    background: var(--ah-navy-950);
    padding-block: clamp(4rem, 7vw, 7rem);
}

.ah-projects-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--ah-border-dark);
    border-radius: var(--ah-radius-md);
    background: linear-gradient(135deg, rgba(250, 241, 234, 0.08), rgba(250, 241, 234, 0.03));
}

.ah-projects-cta h2 {
    max-width: 680px;
    margin: 0;
    color: var(--ah-white);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

html[dir="rtl"] .ah-projects-cta h2 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ah-projects-cta p {
    max-width: 720px;
    margin: 1rem 0 0;
    color: rgba(250, 241, 234, 0.72);
}

@media (max-width: 1199.98px) {
    .ah-projects-hero-grid,
    .ah-projects-filter-heading,
    .ah-projects-filter-form,
    .ah-projects-cta-inner {
        grid-template-columns: 1fr;
    }

    .ah-projects-hero-panel {
        max-width: 420px;
    }

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

    .ah-projects-filter-actions {
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .ah-projects-hero {
        min-height: auto;
        padding-block: 4.75rem 3.5rem;
    }

    .ah-projects-hero-content h1 {
        font-size: clamp(2.25rem, 11vw, 3.4rem);
        line-height: 1.04;
    }

    html[dir="rtl"] .ah-projects-hero-content h1 {
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 1.2;
        letter-spacing: -0.01em;
    }

    .ah-projects-hero-content p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .ah-projects-hero-actions,
    .ah-projects-hero-actions .ah-btn,
    .ah-projects-filter-actions,
    .ah-projects-filter-actions .ah-btn,
    .ah-projects-cta .ah-btn {
        width: 100%;
    }

    .ah-projects-filter-card {
        margin-top: -3rem;
        padding: 1.1rem;
    }

    .ah-projects-filter-heading {
        gap: 0.8rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .ah-projects-filter-heading h2 {
        font-size: clamp(1.55rem, 8vw, 2.2rem);
    }

    .ah-input-icon .form-control,
    .ah-input-icon .form-select {
        min-height: 50px;
    }

    .ah-projects-results-header {
        display: grid;
        align-items: start;
    }

    .ah-projects-grid {
        grid-template-columns: 1fr;
    }

    .ah-portfolio-card-media {
        aspect-ratio: 4 / 3;
    }

    .ah-portfolio-card-body {
        padding: 1.1rem;
    }

    .ah-portfolio-card h3 {
        font-size: 1.28rem;
    }

    html[dir="rtl"] .ah-portfolio-card h3 {
        font-size: 1.22rem;
        line-height: 1.35;
    }

    .ah-projects-pagination nav[role="navigation"] a,
    .ah-projects-pagination nav[role="navigation"] span,
    .ah-projects-pagination .pagination .page-link {
        min-width: 40px;
        min-height: 40px;
        padding: 0.55rem 0.7rem;
    }
}

.ah-projects-pagination nav[role="navigation"] span[aria-current="page"],
.ah-projects-pagination nav[role="navigation"] span[aria-disabled="true"] {
    min-width: auto;
    min-height: auto;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

.ah-projects-pagination nav[role="navigation"] svg {
    width: 1rem;
    height: 1rem;
}

/* Project details case-study page */
.ah-project-case-body {
    background: var(--ah-cream-50);
}

.ah-project-case-hero {
    position: relative;
    min-height: clamp(560px, 78vh, 860px);
    display: flex;
    align-items: end;
    color: var(--ah-text-inverse);
    padding-block: clamp(6rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem);
    isolation: isolate;
    overflow: hidden;
    background: var(--ah-navy-950);
}

.ah-project-case-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(16, 24, 32, 0.95), rgba(16, 24, 32, 0.74) 44%, rgba(16, 24, 32, 0.34)),
        linear-gradient(0deg, rgba(16, 24, 32, 0.94), rgba(16, 24, 32, 0.18) 56%),
        var(--ah-case-hero-image) center / cover no-repeat;
    transform: scale(1.02);
}

.ah-case-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    color: rgba(250, 241, 234, 0.66);
    font-size: 0.92rem;
}

.ah-case-breadcrumb a {
    color: rgba(250, 241, 234, 0.78);
    text-decoration: none;
    transition: color var(--ah-transition-fast);
}

.ah-case-breadcrumb a:hover,
.ah-case-breadcrumb a:focus {
    color: var(--ah-gold-500);
}

.ah-case-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
}

.ah-case-hero-content {
    max-width: 920px;
}

.ah-case-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1.1rem;
    padding: 0.48rem 0.75rem;
    color: var(--ah-navy-950);
    background: var(--ah-gold-500);
    border: 1px solid var(--ah-gold-500);
    border-radius: var(--ah-radius-xs);
    font-size: 0.78rem;
    font-weight: 900;
}

.ah-case-hero-content h1 {
    max-width: 980px;
    margin: 0;
    color: var(--ah-white);
    font-size: clamp(3rem, 7vw, 7.25rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 900;
}

html[dir="rtl"] .ah-case-hero-content h1 {
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.ah-case-hero-content p {
    max-width: 720px;
    margin: 1.35rem 0 0;
    color: rgba(250, 241, 234, 0.74);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.ah-case-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.ah-case-hero-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--ah-border-dark);
    background: rgba(16, 24, 32, 0.48);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ah-case-hero-panel span,
.ah-case-hero-panel small {
    display: block;
    color: rgba(250, 241, 234, 0.68);
    font-weight: 800;
}

.ah-case-hero-panel strong {
    display: block;
    margin-block: 0.8rem 0.4rem;
    color: var(--ah-gold-500);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.ah-case-overview-section {
    padding-block: clamp(4rem, 8vw, 8rem);
}

.ah-case-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.ah-case-overview-card,
.ah-case-info-panel {
    border: 1px solid var(--ah-border-light);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--ah-shadow-sm);
}

.ah-case-overview-card {
    padding: clamp(1.5rem, 4vw, 3.25rem);
}

.ah-case-info-panel {
    position: sticky;
    top: 96px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.ah-case-overview-card h2,
.ah-case-info-panel h2 {
    margin: 0;
    color: var(--ah-text-main);
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

html[dir="rtl"] .ah-case-overview-card h2,
html[dir="rtl"] .ah-case-info-panel h2 {
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.ah-case-description {
    margin-top: 1.5rem;
    color: var(--ah-text-muted);
    font-size: 1.06rem;
    line-height: 1.92;
}

.ah-case-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.ah-case-meta-card {
    min-height: 152px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid var(--ah-border-light);
    border-radius: var(--ah-radius-sm);
    background: rgba(250, 241, 234, 0.62);
}

.ah-case-meta-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-gold-500);
    background: rgba(173, 138, 90, 0.12);
    border-radius: 999px;
}

.ah-case-meta-label {
    color: var(--ah-text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

html[dir="rtl"] .ah-case-meta-label {
    letter-spacing: 0;
}

.ah-case-meta-card strong {
    color: var(--ah-text-main);
    font-size: 1rem;
    font-weight: 900;
    word-break: break-word;
}

.ah-case-gallery-section {
    padding-block: clamp(4rem, 8vw, 8rem);
}

.ah-case-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: end;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.ah-case-section-heading p {
    margin: 0;
    color: rgba(250, 241, 234, 0.72);
    font-size: 1.05rem;
}

.ah-case-section-heading-light p {
    color: var(--ah-text-muted);
}

.ah-case-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 180px);
    gap: 1rem;
}

.ah-case-gallery-main {
    position: relative;
    display: block;
    width: 100%;
    min-height: clamp(320px, 62vw, 720px);
    padding: 0;
    border: 1px solid var(--ah-border-dark);
    border-radius: var(--ah-radius-md);
    background: rgba(250, 241, 234, 0.04);
    cursor: zoom-in;
    overflow: hidden;
}

.ah-case-gallery-main img {
    width: 100%;
    height: 100%;
    min-height: clamp(320px, 62vw, 720px);
    display: block;
    object-fit: cover;
    transition: transform var(--ah-transition-slow), opacity var(--ah-transition);
}

.ah-case-gallery-main:hover img,
.ah-case-gallery-main:focus-visible img {
    transform: scale(1.025);
}

.ah-case-gallery-zoom {
    position: absolute;
    inset-inline-end: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-navy-950);
    background: var(--ah-gold-500);
    border-radius: 999px;
    box-shadow: var(--ah-shadow-md);
}

.ah-case-gallery-thumbs {
    display: grid;
    gap: 0.75rem;
    max-height: clamp(320px, 62vw, 720px);
    overflow: auto;
    padding-inline-end: 0.25rem;
}

.ah-case-gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--ah-radius-sm);
    background: transparent;
    opacity: 0.62;
    cursor: pointer;
    overflow: hidden;
    transition: opacity var(--ah-transition), border-color var(--ah-transition), transform var(--ah-transition);
}

.ah-case-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ah-case-gallery-thumb:hover,
.ah-case-gallery-thumb:focus-visible,
.ah-case-gallery-thumb.is-active {
    opacity: 1;
    border-color: var(--ah-gold-500);
    transform: translateY(-2px);
}

.ah-case-related-section {
    padding-block: clamp(4rem, 8vw, 8rem);
}

.ah-case-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 1.5rem);
}

.ah-case-related-card .ah-portfolio-card-media {
    aspect-ratio: 4 / 3;
}

.ah-case-cta {
    color: var(--ah-text-inverse);
    background: var(--ah-navy-950);
    padding-block: clamp(4rem, 7vw, 7rem);
}

.ah-case-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--ah-border-dark);
    border-radius: var(--ah-radius-md);
    background: linear-gradient(135deg, rgba(250, 241, 234, 0.08), rgba(250, 241, 234, 0.03));
}

.ah-case-cta h2 {
    max-width: 760px;
    margin: 0;
    color: var(--ah-white);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

html[dir="rtl"] .ah-case-cta h2 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ah-case-cta p {
    max-width: 720px;
    margin: 1rem 0 0;
    color: rgba(250, 241, 234, 0.72);
}

.ah-case-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

html[dir="rtl"] .ah-case-cta-actions {
    justify-content: flex-start;
}

.ah-case-whatsapp {
    position: fixed;
    inset-inline-start: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-white);
    background: #25D366;
    border-radius: 999px;
    box-shadow: var(--ah-shadow-md);
    text-decoration: none;
    transition: transform var(--ah-transition), box-shadow var(--ah-transition);
}

.ah-case-whatsapp:hover,
.ah-case-whatsapp:focus {
    color: var(--ah-white);
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(37, 211, 102, 0.28);
}

.ah-lightbox[hidden] {
    display: none !important;
}

.ah-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(5, 8, 12, 0.92);
}

.ah-lightbox-image {
    max-width: min(100%, 1180px);
    max-height: 88vh;
    object-fit: contain;
    box-shadow: var(--ah-shadow-lg);
}

.ah-lightbox-close {
    position: fixed;
    inset-block-start: 1.2rem;
    inset-inline-end: 1.2rem;
    z-index: 2001;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ah-border-dark);
    border-radius: 999px;
    color: var(--ah-white);
    background: rgba(250, 241, 234, 0.08);
}

@media (max-width: 1199.98px) {
    .ah-case-hero-grid,
    .ah-case-overview-grid,
    .ah-case-section-heading,
    .ah-case-cta-inner {
        grid-template-columns: 1fr;
    }

    .ah-case-info-panel {
        position: static;
    }

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

    .ah-case-cta-actions,
    html[dir="rtl"] .ah-case-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .ah-project-case-hero {
        min-height: auto;
        padding-block: 5.5rem 4rem;
    }

    .ah-project-case-hero::after {
        background:
            linear-gradient(0deg, rgba(16, 24, 32, 0.94), rgba(16, 24, 32, 0.6)),
            var(--ah-case-hero-image) center / cover no-repeat;
    }

    .ah-case-hero-actions,
    .ah-case-hero-actions .ah-btn,
    .ah-case-cta-actions,
    .ah-case-cta-actions .ah-btn {
        width: 100%;
    }

    .ah-case-meta-grid,
    .ah-case-related-grid {
        grid-template-columns: 1fr;
    }

    .ah-case-gallery {
        grid-template-columns: 1fr;
    }

    .ah-case-gallery-thumbs {
        display: flex;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 0.35rem;
    }

    .ah-case-gallery-thumb {
        min-width: 92px;
        width: 92px;
    }

    .ah-case-whatsapp {
        bottom: 78px;
    }
}

/* --------------------------------------------------------------------------
   Frontend Visual Upgrade Pass
   -------------------------------------------------------------------------- */
.ah-btn,
.btn.ah-btn {
    min-height: 48px;
    padding: 0.78rem 1.28rem;
    border-radius: 999px;
}

.ah-btn i,
.btn.ah-btn i {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    font-size: 0.95rem;
}

.ah-btn-ghost,
.btn.ah-btn-ghost {
    min-height: 38px;
    border-radius: 0;
}

.ah-navbar {
    min-height: 72px;
    background: rgba(16, 24, 32, 0.93);
}

.ah-navbar.is-scrolled {
    min-height: 66px;
}

.ah-navbar .container {
    gap: 1.25rem;
}

.ah-navbar .navbar-brand {
    padding-block: 0.35rem;
}

.ah-navbar-logo {
    width: 82px;
    height: 52px;
    object-fit: contain;
}

.ah-navbar .nav-link {
    font-size: 0.82rem;
    padding: 0.7rem 0.78rem !important;
}

.ah-navbar .navbar-toggler {
    display: none !important;
}

.ah-language-direct {
    min-width: 86px;
    min-height: 40px;
    padding: 0.45rem 0.82rem;
    gap: 0.48rem !important;
    background: rgba(250, 241, 234, 0.07);
}

.ah-language-direct span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ah-language-direct i {
    width: 17px;
    height: 17px;
    font-size: 0.9rem;
}

.ah-navbar-cta {
    min-height: 40px;
    padding-inline: 1rem;
}

.ah-home-hero-media img {
    object-position: center;
    filter: saturate(0.88) contrast(1.04) brightness(0.92);
}

.ah-home-hero-media::after {
    background: linear-gradient(90deg, rgba(5, 8, 12, 0.9) 0%, rgba(16, 24, 32, 0.76) 44%, rgba(16, 24, 32, 0.36) 100%);
}

html[dir="rtl"] .ah-home-hero-media::after {
    background: linear-gradient(270deg, rgba(5, 8, 12, 0.9) 0%, rgba(16, 24, 32, 0.76) 44%, rgba(16, 24, 32, 0.36) 100%);
}

.ah-home-hero-panel,
.ah-projects-hero-panel,
.ah-case-hero-panel,
.ah-projects-filter-card,
.ah-case-overview-card,
.ah-case-info-panel,
.ah-projects-cta-inner,
.ah-case-cta-inner,
.ah-home-contact-card {
    border-radius: 18px;
}

.ah-home-hero-panel,
.ah-projects-hero-panel,
.ah-case-hero-panel {
    border-color: rgba(173, 138, 90, 0.32);
    background: rgba(16, 24, 32, 0.68);
}

.ah-home-image-composition,
.ah-home-why-image,
.ah-case-gallery-main {
    border-radius: 18px;
}

.ah-home-why-image img {
    object-position: center;
}

.ah-home-partners-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ah-shadow-sm);
}

.ah-home-partner-logo {
    min-height: 178px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1.35rem;
    text-align: start;
    transition: background var(--ah-transition), transform var(--ah-transition);
}

.ah-home-partner-logo:hover {
    background: var(--ah-white);
    transform: translateY(-2px);
}

.ah-home-partner-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    color: var(--ah-gold-600);
    background: rgba(173, 138, 90, 0.12);
    border: 1px solid rgba(173, 138, 90, 0.2);
}

.ah-home-partner-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    line-height: 1;
}

.ah-home-partner-logo h3 {
    margin: 0;
    color: var(--ah-text-main);
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 900;
}

.ah-home-partner-logo p {
    margin: 0;
    color: var(--ah-text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.ah-projects-cta,
.ah-case-cta {
    padding-block: clamp(3rem, 5vw, 5rem);
}

.ah-projects-cta-inner,
.ah-case-cta-inner {
    padding: clamp(1.35rem, 3vw, 2.25rem);
    background:
        linear-gradient(135deg, rgba(250, 241, 234, 0.09), rgba(250, 241, 234, 0.035)),
        radial-gradient(circle at 8% 50%, rgba(173, 138, 90, 0.16), transparent 30%);
}

.ah-projects-cta h2,
.ah-case-cta h2 {
    font-size: clamp(2rem, 3.4vw, 3.35rem);
}

.ah-projects-filter-card {
    padding: clamp(1.35rem, 2.6vw, 2rem);
}

.ah-input-icon .form-control,
.ah-input-icon .form-select,
.ah-form-control,
.form-control.ah-form-control,
.form-select.ah-form-control {
    border-radius: 14px;
}

.ah-input-icon > i {
    width: 18px;
    height: 18px;
    font-size: 0.95rem;
}

.ah-portfolio-card {
    border-radius: 16px;
}

.ah-portfolio-card-media {
    aspect-ratio: 16 / 10.5;
}

.ah-portfolio-meta span,
.ah-home-project-meta span,
.ah-portfolio-link,
.ah-home-project-link {
    align-items: center;
}

.ah-portfolio-meta i,
.ah-home-project-meta i,
.ah-portfolio-link i,
.ah-home-project-link i {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
}

.ah-case-overview-section,
.ah-case-gallery-section,
.ah-case-related-section {
    padding-block: clamp(3.5rem, 6vw, 6rem);
}

.ah-case-meta-card {
    min-height: 136px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
}

.ah-case-meta-icon,
.ah-footer-contact-icon,
.ah-home-contact-item i,
.ah-case-gallery-zoom,
.ah-home-whatsapp,
.ah-case-whatsapp,
.ah-scroll-top,
.scroll-top,
.ah-lightbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ah-case-meta-icon i,
.ah-footer-contact-icon i,
.ah-home-contact-item i,
.ah-case-gallery-zoom i,
.ah-home-whatsapp i,
.ah-case-whatsapp i,
.ah-scroll-top i,
.scroll-top i,
.ah-lightbox-close i {
    width: 1rem;
    height: 1rem;
    line-height: 1;
}

.ah-footer-cta {
    padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.ah-footer-main {
    padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.ah-footer-brand-logo {
    width: 104px;
    height: 86px;
}

.ah-footer-contact-item {
    gap: 0.85rem;
}

.ah-footer-social a {
    width: 40px;
    height: 40px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ah-footer-social a i {
    width: 1rem;
    height: 1rem;
    font-size: 0.92rem;
}

.ah-footer-bottom .d-flex {
    align-items: center;
}

@media (min-width: 992px) {
    .ah-navbar .navbar-toggler {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .ah-navbar .navbar-toggler {
        display: inline-flex !important;
    }

    .ah-navbar-logo {
        width: 74px;
        height: 48px;
    }

    .ah-navbar .navbar-collapse {
        border-radius: 18px;
    }

    .ah-home-partners-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ah-section {
        padding-block: 3.35rem;
    }

    .ah-home-hero,
    .ah-projects-hero,
    .ah-project-case-hero {
        padding-block: 5rem 3.75rem;
    }

    .ah-home-hero-title,
    .ah-projects-hero-content h1,
    .ah-case-hero-content h1 {
        font-size: clamp(2.55rem, 14vw, 4rem);
    }

    html[dir="rtl"] .ah-home-hero-title,
    html[dir="rtl"] .ah-projects-hero-content h1,
    html[dir="rtl"] .ah-case-hero-content h1 {
        line-height: 1.18;
        letter-spacing: -0.02em;
    }

    .ah-section-title,
    .ah-projects-filter-heading h2,
    .ah-case-overview-card h2,
    .ah-case-info-panel h2 {
        font-size: clamp(1.8rem, 9vw, 2.6rem);
    }

    html[dir="rtl"] .ah-section-title,
    html[dir="rtl"] .ah-projects-filter-heading h2,
    html[dir="rtl"] .ah-case-overview-card h2,
    html[dir="rtl"] .ah-case-info-panel h2 {
        line-height: 1.24;
    }

    .ah-btn,
    .btn.ah-btn {
        min-height: 48px;
        padding-inline: 1rem;
    }

    .ah-home-hero-actions,
    .ah-projects-hero-actions,
    .ah-projects-filter-actions,
    .ah-case-hero-actions,
    .ah-case-cta-actions {
        gap: 0.7rem;
    }

    .ah-projects-filter-card,
    .ah-projects-cta-inner,
    .ah-case-cta-inner,
    .ah-home-contact-card {
        padding: 1.15rem;
        border-radius: 16px;
    }

    .ah-projects-results-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .ah-portfolio-card-body {
        padding: 1.1rem;
    }

    .ah-home-partners-strip {
        grid-template-columns: 1fr;
    }

    .ah-home-partner-logo {
        min-height: auto;
        padding: 1.15rem;
    }

    .ah-footer-cta .col-lg-4 {
        align-items: stretch !important;
    }

    .ah-footer-main .row {
        row-gap: 2rem;
    }

    .ah-footer-brand-logo {
        width: 92px;
        height: 74px;
    }

    html[dir="rtl"] .ah-footer-main,
    html[dir="rtl"] .ah-footer-bottom {
        text-align: right;
    }

    html[dir="rtl"] .ah-footer-social {
        justify-content: flex-start;
    }
}

/* --------------------------------------------------------------------------
   Public Theme Stabilization
   Semantic tokens keep light/dark modes consistent without touching admin UI.
   -------------------------------------------------------------------------- */
html[data-theme="light"],
html[data-theme="dark"] {
    background: var(--ah-background);
}

html[data-theme="light"] body,
html[data-theme="dark"] body,
html[data-theme="light"] .ah-public-body,
html[data-theme="dark"] .ah-public-body,
html[data-theme="light"] .ah-home-page,
html[data-theme="dark"] .ah-home-page,
html[data-theme="light"] .ah-projects-body,
html[data-theme="dark"] .ah-projects-body,
html[data-theme="light"] .ah-project-case-body {
    color: var(--ah-foreground);
    background: var(--ah-background);
}

html[data-theme="light"] .ah-home-page main,
html[data-theme="dark"] .ah-home-page main,
html[data-theme="light"] .ah-projects-page,
html[data-theme="dark"] .ah-projects-page {
    background: var(--ah-background);
}

.ah-theme-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid var(--ah-border-dark);
    border-radius: 999px;
    color: var(--ah-text-inverse);
    background: rgba(250, 241, 234, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform var(--ah-transition), background var(--ah-transition), border-color var(--ah-transition), color var(--ah-transition), box-shadow var(--ah-transition);
}

.ah-theme-toggle:hover {
    color: var(--ah-white);
    background: rgba(173, 138, 90, 0.16);
    border-color: var(--ah-border-gold);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(5, 8, 12, 0.2);
}

.ah-theme-toggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.18rem var(--ah-ring), 0 12px 28px rgba(5, 8, 12, 0.2);
}

.ah-theme-toggle i {
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

html[data-theme="light"] .ah-theme-toggle-moon,
html[data-theme="dark"] .ah-theme-toggle-sun {
    display: none;
}

html[data-theme="light"] .ah-theme-toggle-sun,
html[data-theme="dark"] .ah-theme-toggle-moon {
    display: inline-flex;
}

.ah-section-light {
    color: var(--ah-foreground);
    background: var(--ah-background);
}

html[data-theme="dark"] .ah-section-light,
html[data-theme="dark"] .ah-projects-archive {
    background:
        radial-gradient(circle at 12% 0%, rgba(197, 160, 110, 0.09), transparent 30%),
        var(--ah-background);
}

html[data-theme="dark"] .ah-section-dark {
    background: #070B10;
}

.ah-surface-card,
.ah-home-service-card,
.ah-home-process-step,
.ah-home-partner-logo,
.ah-projects-filter-card,
.ah-portfolio-card,
.ah-projects-empty-state,
.ah-case-overview-card,
.ah-case-info-panel,
.ah-case-meta-card,
.contact-info-card,
.glass-contact-card,
.feature-box,
.feature-card {
    color: var(--ah-card-foreground);
    background: color-mix(in srgb, var(--ah-card) 92%, transparent);
    border-color: var(--ah-border);
}

html[data-theme="dark"] .ah-surface-card,
html[data-theme="dark"] .ah-home-service-card,
html[data-theme="dark"] .ah-home-process-step,
html[data-theme="dark"] .ah-home-partner-logo,
html[data-theme="dark"] .ah-projects-filter-card,
html[data-theme="dark"] .ah-portfolio-card,
html[data-theme="dark"] .ah-projects-empty-state,
html[data-theme="dark"] .ah-case-overview-card,
html[data-theme="dark"] .ah-case-info-panel,
html[data-theme="dark"] .ah-case-meta-card,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .glass-contact-card,
html[data-theme="dark"] .feature-box,
html[data-theme="dark"] .feature-card {
    background: color-mix(in srgb, var(--ah-card) 88%, transparent);
    border-color: var(--ah-border);
    box-shadow: var(--ah-shadow-sm);
}

.ah-home-service-card:hover,
.ah-home-partner-logo:hover,
.ah-portfolio-card:hover,
.feature-box:hover,
.feature-card:hover {
    background: var(--ah-card);
}

.ah-home-services-grid,
.ah-home-process-list,
.ah-home-partners-strip {
    background: var(--ah-border);
    border-color: var(--ah-border);
}

.ah-section-title,
.ah-projects-filter-heading h2,
.ah-portfolio-card h3,
.ah-projects-empty-state h2,
.ah-case-overview-card h2,
.ah-case-info-panel h2,
.ah-home-partner-logo h3,
.ah-home-check-item,
.ah-form-group label {
    color: var(--ah-foreground);
}

.ah-section-description,
.ah-muted,
.ah-home-service-card p,
.ah-home-process-step p,
.ah-home-partner-logo p,
.ah-projects-filter-heading p,
.ah-projects-results-header,
.ah-portfolio-meta,
.ah-portfolio-card p,
.ah-projects-empty-state p,
.ah-case-description,
.ah-case-section-heading-light p,
.ah-case-meta-label {
    color: var(--ah-muted-foreground);
}

.ah-home-value-card p,
.ah-section-dark .ah-section-description,
.ah-section-dark .ah-muted,
.ah-case-section-heading p {
    color: rgba(250, 241, 234, 0.76);
}

.ah-input-icon .form-control,
.ah-input-icon .form-select,
.ah-form-control,
.form-control.ah-form-control,
.form-select.ah-form-control,
.contact-section .form-control,
.contact-section .form-select,
.contact-section textarea {
    color: var(--ah-foreground);
    background-color: color-mix(in srgb, var(--ah-card) 76%, var(--ah-background));
    border-color: var(--ah-input);
}

.ah-input-icon .form-control::placeholder,
.ah-form-control::placeholder,
.contact-section .form-control::placeholder,
.contact-section textarea::placeholder {
    color: color-mix(in srgb, var(--ah-muted-foreground) 72%, transparent);
    opacity: 1;
}

.ah-input-icon .form-control:focus,
.ah-input-icon .form-select:focus,
.ah-form-control:focus,
.form-control.ah-form-control:focus,
.form-select.ah-form-control:focus,
.contact-section .form-control:focus,
.contact-section .form-select:focus,
.contact-section textarea:focus {
    color: var(--ah-foreground);
    background-color: var(--ah-card);
    border-color: var(--ah-primary);
    box-shadow: 0 0 0 0.22rem var(--ah-ring);
}

html[data-theme="dark"] .ah-home-contact-card .ah-form-control {
    color: var(--ah-foreground);
    background: rgba(5, 8, 12, 0.42);
    border-color: var(--ah-border);
}

html[data-theme="dark"] .ah-home-contact-card .ah-form-control:focus {
    color: var(--ah-white);
    background: rgba(5, 8, 12, 0.62);
}

.ah-btn-primary,
.btn.ah-btn-primary,
.btn-gold,
.btn.btn-gold,
.btn-contact,
.btn.btn-contact {
    background: var(--ah-primary);
    color: var(--ah-primary-foreground);
    border-color: var(--ah-primary);
}

.ah-btn-primary:hover,
.btn.ah-btn-primary:hover,
.btn-gold:hover,
.btn.btn-gold:hover,
.btn-contact:hover,
.btn.btn-contact:hover {
    background: var(--ah-gold-600);
    border-color: var(--ah-gold-600);
    color: var(--ah-primary-foreground);
}

.ah-btn-light-ghost,
.btn.ah-btn-light-ghost {
    --btn-color: var(--ah-muted-foreground);
    --btn-border: var(--ah-border);
}

.ah-btn-light-ghost:hover,
.btn.ah-btn-light-ghost:hover {
    --btn-color: var(--ah-foreground);
    --btn-border: var(--ah-border-gold);
    background: color-mix(in srgb, var(--ah-primary) 12%, transparent);
}

html[data-theme="dark"] .ah-portfolio-category,
html[data-theme="dark"] .ah-case-meta-icon,
html[data-theme="dark"] .ah-home-check-item i,
html[data-theme="dark"] .ah-home-partner-icon,
html[data-theme="dark"] .feature-icon,
html[data-theme="dark"] .icon-box {
    color: var(--ah-primary);
    background: rgba(197, 160, 110, 0.13);
    border-color: rgba(197, 160, 110, 0.24);
}

html[data-theme="dark"] .ah-projects-pagination nav[role="navigation"] a,
html[data-theme="dark"] .ah-projects-pagination nav[role="navigation"] span,
html[data-theme="dark"] .ah-projects-pagination .pagination .page-link {
    color: var(--ah-foreground) !important;
    background: var(--ah-card) !important;
    border-color: var(--ah-border) !important;
}

html[data-theme="dark"] .ah-projects-pagination nav[role="navigation"] span[aria-current="page"] span,
html[data-theme="dark"] .ah-projects-pagination .pagination .page-item.active .page-link {
    color: var(--ah-primary-foreground) !important;
    background: var(--ah-primary) !important;
    border-color: var(--ah-primary) !important;
}

@media (max-width: 991.98px) {
    .ah-theme-toggle,
    .ah-language-direct,
    .ah-navbar-cta {
        width: 100%;
    }

    .ah-theme-toggle {
        min-height: 44px;
    }
}

/* --------------------------------------------------------------------------
   Public Light/Dark Section Rhythm
   Light mode keeps only hero, final CTAs, and footer dark. Middle content turns
   bright and warm while dark mode keeps the premium navy system.
   -------------------------------------------------------------------------- */
html[data-theme="light"] body {
    --ah-section-warm: #FAF1EA;
    --ah-section-soft: #FFF8F1;
    --ah-section-white: #FFFFFF;
    --ah-section-rail: #EFE2D4;
    --ah-light-card: rgba(255, 255, 255, 0.9);
    --ah-light-card-solid: #FFFFFF;
    --ah-light-border: rgba(118, 91, 57, 0.16);
    --ah-light-shadow: 0 18px 48px rgba(58, 42, 24, 0.08);
}

html[data-theme="dark"] body {
    --ah-section-warm: #090E14;
    --ah-section-soft: #0D141B;
    --ah-section-white: #121A22;
    --ah-section-rail: rgba(250, 241, 234, 0.12);
    --ah-light-card: rgba(18, 26, 34, 0.88);
    --ah-light-card-solid: #121A22;
    --ah-light-border: rgba(250, 241, 234, 0.14);
    --ah-light-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

html[data-theme="light"] .ah-home-about,
html[data-theme="light"] #services,
html[data-theme="light"] #partners,
html[data-theme="light"] .ah-case-overview-section,
html[data-theme="light"] .ah-case-related-section {
    color: var(--ah-foreground);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
        var(--ah-section-warm);
}

html[data-theme="light"] #values,
html[data-theme="light"] #projects,
html[data-theme="light"] #process,
html[data-theme="light"] #why-us,
html[data-theme="light"] #contact,
html[data-theme="light"] .ah-projects-archive,
html[data-theme="light"] .ah-case-gallery-section {
    color: var(--ah-foreground);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 248, 241, 0.82)),
        var(--ah-section-soft);
}

html[data-theme="light"] #values.ah-blueprint-bg::before,
html[data-theme="light"] #contact.ah-blueprint-bg::before,
html[data-theme="light"] .ah-case-gallery-section.ah-blueprint-bg::before {
    background-image:
        linear-gradient(rgba(16, 24, 32, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px);
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.26), transparent 72%);
}

html[data-theme="light"] #values .ah-section-title,
html[data-theme="light"] #projects .ah-section-title,
html[data-theme="light"] #why-us .ah-section-title,
html[data-theme="light"] #contact .ah-section-title,
html[data-theme="light"] .ah-case-gallery-section .ah-section-title {
    color: var(--ah-foreground);
}

html[data-theme="light"] #values .ah-section-description,
html[data-theme="light"] #projects .ah-section-description,
html[data-theme="light"] #why-us .ah-section-description,
html[data-theme="light"] #contact .ah-section-description,
html[data-theme="light"] .ah-case-gallery-section .ah-case-section-heading p {
    color: var(--ah-muted-foreground);
}

html[data-theme="light"] .ah-home-values-grid {
    background: var(--ah-light-border);
    border-color: var(--ah-light-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ah-light-shadow);
}

html[data-theme="light"] .ah-home-value-card {
    color: var(--ah-foreground);
    background: rgba(255, 255, 255, 0.74);
    border-color: var(--ah-light-border);
}

html[data-theme="light"] .ah-home-value-card:hover {
    background: var(--ah-light-card-solid);
}

html[data-theme="light"] .ah-home-value-card h3,
html[data-theme="light"] .ah-home-value-card p {
    color: inherit;
}

html[data-theme="light"] .ah-home-value-card p {
    color: var(--ah-muted-foreground);
}

html[data-theme="light"] .ah-home-service-card,
html[data-theme="light"] .ah-home-process-step,
html[data-theme="light"] .ah-home-partner-logo,
html[data-theme="light"] .ah-projects-filter-card,
html[data-theme="light"] .ah-portfolio-card,
html[data-theme="light"] .ah-case-overview-card,
html[data-theme="light"] .ah-case-info-panel,
html[data-theme="light"] .ah-case-meta-card {
    background: var(--ah-light-card);
    border-color: var(--ah-light-border);
    box-shadow: var(--ah-light-shadow);
}

html[data-theme="light"] .ah-home-projects-grid {
    padding: clamp(0.65rem, 1.5vw, 1rem);
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid var(--ah-light-border);
    border-radius: 22px;
    box-shadow: var(--ah-light-shadow);
}

html[data-theme="light"] .ah-home-project-card {
    border-color: rgba(118, 91, 57, 0.2);
    box-shadow: 0 18px 44px rgba(58, 42, 24, 0.12);
}

html[data-theme="light"] .ah-home-project-card a::after {
    background: linear-gradient(180deg, rgba(5, 8, 12, 0.05), rgba(5, 8, 12, 0.74));
}

html[data-theme="light"] .ah-home-why .ah-home-why-item {
    color: var(--ah-foreground);
    border-bottom-color: var(--ah-light-border);
}

html[data-theme="light"] .ah-home-why .ah-home-why-item i {
    color: var(--ah-primary);
    background: rgba(173, 138, 90, 0.12);
    border-color: rgba(173, 138, 90, 0.24);
}

html[data-theme="light"] .ah-home-contact-item,
html[data-theme="light"] .ah-home-contact-card {
    color: var(--ah-foreground);
    background: var(--ah-light-card);
    border-color: var(--ah-light-border);
    box-shadow: var(--ah-light-shadow);
}

html[data-theme="light"] .ah-home-contact-item:hover {
    color: var(--ah-foreground);
    background: var(--ah-light-card-solid);
}

html[data-theme="light"] .ah-home-contact-item span,
html[data-theme="light"] .ah-home-contact-card p {
    color: var(--ah-muted-foreground);
}

html[data-theme="light"] .ah-home-contact-item strong,
html[data-theme="light"] .ah-home-contact-card h3,
html[data-theme="light"] .ah-home-contact-card .form-label {
    color: var(--ah-foreground);
}

html[data-theme="light"] .ah-home-contact-card .ah-form-control {
    color: var(--ah-foreground);
    background: var(--ah-light-card-solid);
    border-color: var(--ah-input);
}

html[data-theme="light"] .ah-home-contact-card .ah-form-control::placeholder {
    color: color-mix(in srgb, var(--ah-muted-foreground) 70%, transparent);
}

html[data-theme="light"] .ah-home-contact-card .ah-form-control:focus {
    color: var(--ah-foreground);
    background: var(--ah-light-card-solid);
    border-color: var(--ah-primary);
}

html[data-theme="light"] .ah-case-gallery {
    padding: clamp(0.65rem, 1.5vw, 1rem);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid var(--ah-light-border);
    border-radius: 22px;
    box-shadow: var(--ah-light-shadow);
}

html[data-theme="light"] .ah-case-gallery-main {
    background: var(--ah-light-card-solid);
    border-color: var(--ah-light-border);
}

html[data-theme="light"] .ah-case-gallery-thumb {
    background: var(--ah-light-card-solid);
}

html[data-theme="dark"] #values,
html[data-theme="dark"] #projects,
html[data-theme="dark"] #why-us,
html[data-theme="dark"] #contact,
html[data-theme="dark"] .ah-case-gallery-section {
    color: var(--ah-text-inverse);
    background: #070B10;
}

html[data-theme="dark"] .ah-home-projects-grid,
html[data-theme="dark"] .ah-case-gallery {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}


/* --------------------------------------------------------------------------
   Targeted Home UI refinements: services cards + animated counters
   -------------------------------------------------------------------------- */
.ah-home-stat-mini strong[data-ah-counter] {
    display: inline-flex;
    align-items: baseline;
    min-width: 3ch;
    font-variant-numeric: tabular-nums;
}

#services .ah-home-services-grid {
    gap: clamp(0.9rem, 1.6vw, 1.15rem);
    background: transparent;
    border: 0;
    box-shadow: none;
}

#services .ah-home-service-card {
    overflow: hidden;
    border-color: rgba(118, 91, 57, 0.14);
    box-shadow: 0 18px 42px rgba(58, 42, 24, 0.075);
}

#services .ah-home-service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(173, 138, 90, 0.32);
    box-shadow: 0 22px 48px rgba(58, 42, 24, 0.11);
}

html[data-theme="dark"] #services .ah-home-services-grid {
    background: transparent;
    border: 0;
    box-shadow: none;
}

html[data-theme="dark"] #services .ah-home-service-card {
    border-color: rgba(250, 241, 234, 0.1);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] #services .ah-home-service-card:hover {
    border-color: rgba(173, 138, 90, 0.34);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

/* --------------------------------------------------------------------------
   Public Branded Preloader
   Scoped to public pages that explicitly render partials.preloader.
   -------------------------------------------------------------------------- */
.ah-public-preloader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    color: #101820;
    background:
        radial-gradient(circle at 50% 38%, rgba(173, 138, 90, 0.2), transparent 24rem),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.82), transparent 20rem),
        linear-gradient(135deg, #FFF8F1 0%, #FAF1EA 54%, #EFE0D2 100%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 420ms ease,
        visibility 420ms ease;
    animation: ahPreloaderSafety 4s ease forwards;
}

.ah-public-preloader::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 24, 32, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 32, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.5), transparent 76%);
}

.ah-public-preloader::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    background: linear-gradient(0deg, rgba(16, 24, 32, 0.08), transparent);
    pointer-events: none;
}

.ah-public-preloader-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
}

.ah-public-preloader-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(150px, 22vw, 210px);
    aspect-ratio: 1;
    border: 1px solid rgba(173, 138, 90, 0.24);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 248, 241, 0.84));
    box-shadow:
        0 28px 70px rgba(58, 42, 24, 0.14),
        inset 0 0 0 10px rgba(173, 138, 90, 0.055);
}

.ah-public-preloader-mark::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(173, 138, 90, 0.3);
    border-radius: inherit;
    animation: ahPreloaderRing 7s linear infinite;
}

.ah-public-preloader-logo {
    position: relative;
    width: clamp(104px, 17vw, 154px);
    height: auto;
    filter: drop-shadow(0 14px 26px rgba(16, 24, 32, 0.18));
}

.ah-public-preloader-copy {
    display: grid;
    gap: 0.25rem;
}

.ah-public-preloader-copy strong {
    color: #101820;
    font-size: clamp(1.08rem, 2.2vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 0;
}

.ah-public-preloader p {
    margin: 0;
    color: #765B39;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
}

.ah-public-preloader.is-hiding,
.ah-public-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
}

.ah-public-preloader.is-leaving {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: none;
}

@keyframes ahPreloaderRing {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ahPreloaderSafety {
    0%,
    88% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ah-public-preloader {
        transition: none;
        animation-duration: 2.5s;
    }

    .ah-public-preloader-mark::before {
        animation: none;
    }
}
