/* HACC — Hazza Alate Arabia Contracting Company Ltd. */

:root {
    --hacc-navy: #111111;
    --hacc-blue: #1a1a1a;
    --hacc-red: #D9232E;
    --hacc-gold: #C9A46A;
    --hacc-gold-deep: #A88845;
    --hacc-light: #F6F3EC;
    --hacc-white: #FFFFFF;
    --hacc-text: #161616;
    --hacc-muted: #6B675E;
    --hacc-border: #E6E0D4;
    --hacc-navy-soft: #1F1C16;
    --header-height: 84px;
    --radius: 4px;
    --shadow: 0 10px 30px rgba(16, 12, 6, 0.08);
    --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-ar: "IBM Plex Sans Arabic", "Noto Naskh Arabic", "Segoe UI", sans-serif;
    --page-bg: #ffffff;
    --page-text: #161616;
    --page-muted: #6B675E;
    --page-surface: #F6F3EC;
    --page-card: #ffffff;
    --page-border: #E6E0D4;
    --page-heading: #111111;
    --header-bg: #ffffff;
    --header-text: #111111;
    --header-muted: #6B675E;
    --header-line: #E6E0D4;
    --header-active: #C9A46A;
}

html[data-theme="dark"] {
    --page-bg: #050505;
    --page-text: #f4f1ea;
    --page-muted: #b7b1a4;
    --page-surface: #101010;
    --page-card: #121212;
    --page-border: #2a261e;
    --page-heading: #ffffff;
    --hacc-navy: #0a0a0a;
    --hacc-blue: #141414;
    --hacc-light: #101010;
    --hacc-text: #f4f1ea;
    --hacc-muted: #b7b1a4;
    --hacc-border: #2a261e;
    --header-bg: #050505;
    --header-text: #ffffff;
    --header-muted: rgba(255, 255, 255, 0.68);
    --header-line: rgba(201, 164, 106, 0.28);
    --header-active: #C9A46A;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 32px);
}

html,
body {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

body {
    overflow-x: clip;
    font-family: var(--font-en);
    color: var(--page-text);
    background: var(--page-bg);
    line-height: 1.65;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

html[lang="ar"] body {
    font-family: var(--font-ar);
}

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

a {
    color: var(--hacc-gold-deep);
    text-decoration: none;
}

a:hover {
    color: var(--hacc-red);
}

html[data-theme="dark"] a:not([class*="btn-hacc"]) {
    color: var(--hacc-gold);
}

html[data-theme="dark"] a:not([class*="btn-hacc"]):hover {
    color: #fff;
}

a.btn-hacc-accent,
a.btn-hacc-accent:link,
a.btn-hacc-accent:visited,
a.btn-hacc-accent:hover,
a.btn-hacc-accent:focus,
html[data-theme="dark"] a.btn-hacc-accent,
html[data-theme="dark"] a.btn-hacc-accent:hover,
html[data-theme="dark"] a.btn-hacc-accent:focus,
html[data-theme="dark"] a.btn-hacc-accent:visited {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}

a.btn-hacc,
a.btn-hacc:link,
a.btn-hacc:visited,
a.btn-hacc:hover,
a.btn-hacc:focus,
a.btn-hacc:active,
button.btn-hacc {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

html[data-theme="dark"] a.btn-hacc,
html[data-theme="dark"] a.btn-hacc:link,
html[data-theme="dark"] a.btn-hacc:visited,
html[data-theme="dark"] a.btn-hacc:hover,
html[data-theme="dark"] a.btn-hacc:focus,
html[data-theme="dark"] a.btn-hacc:active,
html[data-theme="dark"] button.btn-hacc {
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}

a.btn-hacc-outline,
a.btn-hacc-outline:hover,
a.btn-hacc-outline:focus {
    -webkit-text-fill-color: currentColor;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 2000;
    background: var(--hacc-navy);
    color: var(--hacc-white);
    padding: 0.6rem 1rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
    color: var(--hacc-white);
}

.container-narrow {
    max-width: 760px;
}

/* Buttons */
.btn-hacc,
.btn-hacc-outline,
.btn-hacc-accent,
.btn-hacc-red,
.btn-hacc-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    line-height: 1;
    padding: 0.9rem 1.5rem;
    min-height: 48px;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hacc {
    background: var(--hacc-navy);
    color: var(--hacc-white);
}

.btn-hacc:hover,
.btn-hacc:focus {
    background: #000;
    color: var(--hacc-gold);
}

html[data-theme="dark"] .btn-hacc {
    background: var(--hacc-gold);
    color: #111;
}

html[data-theme="dark"] .btn-hacc:hover,
html[data-theme="dark"] .btn-hacc:focus {
    background: #fff;
    color: #111;
}

.btn-hacc-accent {
    background: var(--hacc-gold);
    color: #111;
}

.btn-hacc-accent:hover,
.btn-hacc-accent:focus {
    background: #fff;
    color: #111;
}

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

.btn-hacc-red::before {
    content: "\F4E7";
    font-family: "bootstrap-icons";
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
}

.btn-hacc-red:hover,
.btn-hacc-red:focus {
    background: #b81c26;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(217, 35, 46, 0.35);
}

html[data-theme="dark"] .btn-hacc-red,
html[data-theme="dark"] .btn-hacc-red:hover,
html[data-theme="dark"] .btn-hacc-red:focus {
    color: #fff;
}

.btn-hacc-outline {
    background: transparent;
    color: var(--hacc-white);
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-hacc-outline:hover,
.btn-hacc-outline:focus {
    background: var(--hacc-white);
    color: var(--hacc-navy);
}

.btn-hacc-light {
    background: var(--hacc-white);
    color: var(--hacc-navy);
}

.btn-hacc-light:hover,
.btn-hacc-light:focus {
    background: var(--hacc-light);
    color: var(--hacc-navy);
}

.btn-hacc-navy-outline {
    background: transparent;
    color: var(--hacc-navy);
    border: 1px solid var(--hacc-navy);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.85rem 1.45rem;
}

.btn-hacc-navy-outline:hover,
.btn-hacc-navy-outline:focus {
    background: var(--hacc-navy);
    color: var(--hacc-white);
}

/* Header — navy, red, white to match the official HACC logo */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--header-bg);
    border-top: 3px solid var(--hacc-gold);
    border-bottom: 1px solid var(--header-line);
    box-shadow: 0 6px 20px rgba(16, 12, 6, 0.06);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 28px rgba(16, 28, 77, 0.1);
}

.site-header .navbar {
    min-height: var(--header-height);
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: var(--header-text) !important;
    text-decoration: none;
}

.brand:hover,
.brand:focus {
    color: var(--header-text) !important;
}

.brand-mark {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    padding-inline-start: 0.85rem;
    border-inline-start: 2px solid var(--hacc-red);
    line-height: 1.15;
    min-width: 0;
}

.brand-title {
    color: var(--header-text);
    font-weight: 800;
    font-size: clamp(0.78rem, 1.5vw, 1.05rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-sub {
    color: var(--header-muted);
    font-size: clamp(0.58rem, 1.1vw, 0.72rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.site-header .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.75rem;
}

.header-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.05rem;
    margin: 0;
    padding: 0;
}

.header-nav-main {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.header-menu-btn {
    display: none !important;
}

.header-nav .nav-link {
    color: var(--header-text) !important;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.55rem !important;
    position: relative;
    white-space: nowrap;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    color: var(--header-active) !important;
}

.header-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    bottom: 0.05rem;
    height: 2px;
    background: var(--header-active);
}

.header-divider {
    width: 1px;
    height: 22px;
    background: var(--header-line);
    margin: 0 0.55rem;
}

.theme-toggle {
    width: 36px;
    height: 32px;
    border: 1px solid var(--header-line);
    border-radius: 6px;
    background: transparent;
    color: var(--header-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.theme-toggle:hover,
.theme-toggle:focus {
    color: var(--hacc-red);
    border-color: var(--hacc-red);
}

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

html[data-theme="dark"] .theme-toggle .icon-sun,
html[data-theme="light"] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon {
    display: inline-block;
}

.navbar-toggler {
    border: 1px solid var(--header-line);
    border-radius: 4px;
    padding: 0.35rem 0.45rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.15rem;
    height: 1.15rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(16, 28, 77, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

html[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.lang-switch button {
    border: 0;
    background: transparent;
    color: var(--header-muted);
    padding: 0.2rem 0.25rem;
    font-weight: 700;
}

.lang-switch button.is-active,
.lang-switch button:hover {
    color: var(--header-text);
}

.lang-switch .sep {
    width: 1px;
    height: 12px;
    background: var(--header-line);
    display: inline-block;
}

.offcanvas-hacc {
    width: min(88vw, 360px);
    background: var(--header-bg);
    color: var(--header-text);
}

.offcanvas-hacc .offcanvas-header {
    padding: 1rem 1.25rem;
    align-items: center;
}

.offcanvas-hacc .offcanvas-body {
    padding: 0.4rem 1.25rem 1.6rem;
    overflow-x: hidden;
}

.offcanvas-hacc .offcanvas-title,
.offcanvas-hacc .nav-link {
    color: var(--header-text);
}

.offcanvas-hacc .nav-link {
    display: block;
    width: 100%;
    padding: 0.85rem 0.1rem;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--header-line);
    border-radius: 0;
    box-shadow: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.92rem;
    line-height: 1.3;
    text-align: start;
}

.offcanvas-hacc .nav-link::before,
.offcanvas-hacc .nav-link::after {
    content: none !important;
}

.offcanvas-hacc .nav-link.active,
.offcanvas-hacc .nav-link:hover {
    color: var(--hacc-gold);
    box-shadow: none;
    background: transparent;
}

.offcanvas-hacc .nav-link.active {
    border-bottom-color: var(--hacc-gold);
}

.offcanvas-hacc .btn-hacc-accent {
    width: 100%;
    margin-top: 1.1rem;
    color: #111 !important;
    -webkit-text-fill-color: #111 !important;
}

.offcanvas-hacc .lang-switch button {
    color: var(--header-muted);
}

.offcanvas-hacc .lang-switch button.is-active {
    color: var(--header-text);
}

html[data-theme="dark"] .offcanvas-hacc .nav-link {
    color: #fff;
}

html[data-theme="dark"] .offcanvas-hacc .nav-link.active,
html[data-theme="dark"] .offcanvas-hacc .nav-link:hover {
    color: var(--hacc-gold);
}

html[data-theme="dark"] .offcanvas-hacc .btn-close {
    filter: invert(1) grayscale(1);
}

.section-title {
    color: var(--page-heading);
}

.section-sub {
    color: var(--page-muted);
}

.service-card,
.why-card,
.contact-card {
    background: var(--page-card);
    border-color: var(--page-border);
}

html[data-theme="dark"] .trust-strip,
html[data-theme="dark"] .section-navy {
    background: #0a0a0a;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background: #111;
    color: #eee;
    border-color: #2c2c2c;
}

html[data-theme="dark"] .btn-hacc-navy-outline {
    color: #fff;
    border-color: #fff;
}

html[data-theme="dark"] .btn-hacc-navy-outline:hover {
    background: #fff;
    color: #000;
}

html[data-theme="dark"] .map-fallback,
html[data-theme="dark"] .notice-box,
html[data-theme="dark"] .img-frame {
    background: #1a1a1a;
}

html[data-theme="dark"] .legal-page h2 {
    color: #fff;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .header-nav .nav-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.42rem !important;
        letter-spacing: 0.05em;
    }

    .brand-title {
        font-size: 0.86rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .brand-sub {
        display: none;
    }

    .header-nav .nav-link {
        font-size: 0.68rem;
        padding: 0.35rem 0.38rem !important;
        letter-spacing: 0.05em;
    }

    .brand-title {
        font-size: 0.78rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .brand-sub {
        display: none;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .header-nav .nav-link {
        font-size: 0.6rem;
        padding: 0.28rem 0.26rem !important;
        letter-spacing: 0.03em;
    }

    .brand-title {
        font-size: 0.7rem;
    }
}

@media (max-width: 767.98px) {
    .header-nav-main {
        display: none !important;
    }

    .header-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .site-header .header-bar {
        padding-left: 0.9rem !important;
        padding-right: 0.9rem !important;
        gap: 0.45rem;
        align-items: center;
    }

    .header-tools {
        gap: 0.3rem;
    }

    .home-hero .container,
    .page-hero .container,
    .section .container,
    .cta-band .container,
    .trust-strip .container {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }
}

@media (max-width: 575.98px) {
    .brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand-copy {
        padding-inline-start: 0.6rem;
    }

    .brand-sub {
        display: none;
    }
}

@media (max-width: 379.98px) {
    .brand-copy {
        display: none;
    }
}

/* Page hero (inner pages) */
.page-hero {
    background: var(--hacc-navy);
    color: var(--hacc-white);
    padding: 4.2rem 0 3.4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #050505;
    background-image: linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(12, 10, 6, 0.72)), var(--page-hero-image, none);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

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

.page-hero-compact {
    min-height: 0;
    padding: 2.6rem 0 2.2rem;
}

.page-hero-compact::after {
    background-image: linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(12, 10, 6, 0.82));
}

.page-hero-slider {
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 5rem 0 4.2rem;
}

.sector-band {
    background: #050505;
}

.sector-accordion {
    display: flex;
    width: 100%;
    height: 460px;
    overflow: hidden;
}

.sector-panel {
    position: relative;
    flex: 0.72 1 0;
    min-width: 64px;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none !important;
    transition: flex 0.55s ease;
}

.sector-panel.is-open,
.sector-accordion:hover .sector-panel:hover {
    flex: 4.6 1 0;
}

.sector-accordion:hover .sector-panel.is-open:not(:hover) {
    flex: 0.72 1 0;
}

.sector-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 0.7s ease;
}

.sector-panel.is-open img,
.sector-panel:hover img {
    transform: scale(1.1);
}

.sector-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 30%, rgba(0, 0, 0, 0.72) 100%);
}

.sector-label {
    position: absolute;
    left: 1.1rem;
    right: 0.6rem;
    bottom: 1.2rem;
    z-index: 1;
    font-weight: 800;
    font-size: clamp(0.82rem, 1.5vw, 1.25rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

@media (max-width: 767.98px) {
    .sector-accordion {
        flex-direction: column;
        height: auto;
    }

    .sector-panel {
        flex: none;
        min-width: 0;
        height: 72px;
        transition: height 0.45s ease;
    }

    .sector-panel.is-open,
    .sector-accordion:hover .sector-panel:hover {
        flex: none;
        height: 230px;
    }

    .sector-accordion:hover .sector-panel.is-open:not(:hover) {
        flex: none;
        height: 72px;
    }
}

.page-hero-slider::after {
    display: none;
}

.page-hero-slider .home-hero-media,
.page-hero-slider .home-hero-overlay {
    z-index: 0;
}

.eyebrow {
    color: var(--hacc-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.page-hero .eyebrow {
    color: #f3d9a0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.page-hero p {
    color: #fff;
    max-width: 640px;
    margin-bottom: 0;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

/* Home hero */
.home-hero {
    position: relative;
    min-height: 58vh;
    max-height: 640px;
    display: flex;
    align-items: center;
    color: var(--hacc-white);
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-slide.is-active img {
    animation: hero-move 5s linear forwards;
}

.hero-slide:nth-child(even).is-active img {
    animation-name: hero-move-alt;
}

@keyframes hero-move {
    from {
        transform: scale(1.04) translateX(0);
    }
    to {
        transform: scale(1.14) translateX(-2.5%);
    }
}

@keyframes hero-move-alt {
    from {
        transform: scale(1.08) translateX(-2%);
    }
    to {
        transform: scale(1.16) translateX(2%);
    }
}

@keyframes hero-move-mobile {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1.14);
    }
}

@keyframes hero-move-mobile-alt {
    from {
        transform: scale(1.08);
    }
    to {
        transform: scale(1.16);
    }
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dot.is-active,
.hero-dot:hover,
.hero-dot:focus {
    background: var(--hacc-gold);
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(100deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.22) 100%);
}

.home-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 2.6rem;
    padding-bottom: 3.2rem;
}

.home-hero h1 {
    font-size: clamp(2.1rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    max-width: 16ch;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-line {
    display: block;
    width: 72px;
    height: 3px;
    background: var(--hacc-gold);
    margin-bottom: 1.4rem;
}

.home-hero .lead-kicker {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f3d9a0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
}

.home-hero .hero-copy {
    max-width: 640px;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

/* Trust strip */
.trust-strip {
    background: #0a0a0a;
    color: var(--hacc-white);
    padding: 1.25rem 0;
    border-top: 3px solid var(--hacc-gold);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    font-weight: 600;
    font-size: 0.92rem;
}

.trust-item i {
    color: var(--hacc-gold);
    font-size: 1.2rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--page-surface);
}

.section-navy {
    background: var(--hacc-navy);
    color: var(--hacc-white);
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
    color: var(--page-heading);
}

.section-navy .section-title,
.section-navy .section-sub {
    color: var(--hacc-white);
}

.section-sub {
    color: var(--page-muted);
    max-width: 640px;
}

.img-frame {
    overflow: hidden;
    background: var(--hacc-light);
    min-height: 280px;
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
    transition: transform 0.6s ease;
}

.img-frame:hover img {
    transform: scale(1.04);
}

.service-visual img {
    animation: hero-move 14s linear infinite alternate;
}

.service-visual:hover img {
    animation-play-state: paused;
}

.img-fallback,
img.img-fallback {
    visibility: hidden;
}

.img-frame.has-fallback,
.industry-card.has-fallback,
.service-visual.has-fallback {
    background:
        linear-gradient(160deg, var(--hacc-navy), var(--hacc-blue));
}

/* Service cards */
.service-card {
    background: var(--page-card);
    border: 1px solid var(--page-border);
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--hacc-gold);
}

.service-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #111;
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-card-body {
    padding: 1.35rem 1.3rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card .num {
    color: var(--hacc-gold);
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.service-card i {
    font-size: 1.5rem;
    color: var(--hacc-gold);
    margin: 0.7rem 0 0.6rem;
}

.service-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.service-card p,
.service-card li {
    color: var(--hacc-muted);
    font-size: 0.92rem;
}

.service-card ul {
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

html[dir="rtl"] .service-card ul {
    padding-left: 0;
    padding-right: 1.1rem;
}

.learn-more {
    margin-top: auto;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hacc-gold);
}

.learn-more:hover {
    color: var(--hacc-red);
}

/* Industries grid */
.industry-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: var(--hacc-white);
    background: var(--hacc-navy);
}

.industry-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.industry-card:hover img {
    transform: scale(1.08);
}

.industry-card .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.08) 0%, rgba(5, 5, 5, 0.86) 100%);
}

.industry-card .copy {
    position: relative;
    z-index: 1;
    padding: 1.4rem;
}

.industry-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.industry-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.industry-tall {
    min-height: 420px;
}

/* Why cards */
.why-card {
    background: var(--page-card);
    border-top: 3px solid var(--hacc-gold);
    padding: 1.5rem 1.3rem;
    height: 100%;
    box-shadow: var(--shadow);
}

.why-card .num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hacc-gold);
    letter-spacing: 0.04em;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.5rem 0 0.55rem;
}

.why-card p {
    color: var(--hacc-muted);
    margin: 0;
    font-size: 0.94rem;
}

/* Pillars */
.pillar {
    padding: 1.5rem 0.4rem;
}

.pillar i {
    font-size: 1.6rem;
    color: var(--hacc-gold);
    margin-bottom: 0.8rem;
}

.pillar h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pillar p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

/* CTA band */
.cta-band {
    background:
        linear-gradient(110deg, #0a0a0a 0%, #16130e 68%, #2a1014 100%);
    color: var(--hacc-white);
    padding: 4.5rem 0;
    position: relative;
}

.cta-band::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--hacc-gold);
}

html[dir="rtl"] .cta-band::before {
    left: auto;
    right: 0;
}

.cta-band h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
}

.cta-actions {
    align-items: center;
}

/* Footer */
.site-footer {
    background: #050505;
    color: rgba(255, 255, 255, 0.78);
    padding-top: 4rem;
}

.site-footer h3 {
    color: var(--hacc-white);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
    color: var(--hacc-gold);
}

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

.site-footer li {
    margin-bottom: 0.45rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2.5rem;
    padding: 1.1rem 0 4.5rem;
    font-size: 0.88rem;
}

/* Contact */
.contact-card {
    background: var(--page-card);
    border: 1px solid var(--page-border);
    padding: 1.3rem 1.2rem;
    height: 100%;
}

.contact-card i {
    color: var(--hacc-gold);
    font-size: 1.25rem;
}

.contact-card a {
    color: var(--page-heading);
    font-weight: 600;
}

.contact-card .map-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201, 164, 106, 0.16);
    color: var(--hacc-gold) !important;
    -webkit-text-fill-color: var(--hacc-gold);
}

.contact-card .map-jump i {
    font-size: 1.35rem;
    color: inherit;
}

.contact-card .map-jump:hover,
.contact-card .map-jump:focus {
    background: var(--hacc-gold);
    color: #111 !important;
    -webkit-text-fill-color: #111;
}

.map-frame {
    position: relative;
}

.map-open {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--hacc-gold);
    color: #111 !important;
    -webkit-text-fill-color: #111;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.map-open i {
    font-size: 1.35rem;
    color: inherit;
}

.map-open:hover,
.map-open:focus {
    background: #fff;
    color: #111 !important;
}

.form-hacc .form-label {
    font-weight: 600;
    color: var(--page-heading);
}

.form-hacc .is-invalid {
    border-color: var(--hacc-red);
}

.form-hacc .form-control,
.form-hacc .form-select {
    border-radius: var(--radius);
    border-color: var(--hacc-border);
    padding: 0.75rem 0.9rem;
}

.form-hacc .form-control:focus,
.form-hacc .form-select:focus {
    border-color: var(--hacc-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 164, 106, 0.2);
}

.form-error {
    color: var(--hacc-red);
    font-size: 0.82rem;
    min-height: 1.1rem;
}

.form-status {
    display: none;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
}

.form-status.is-success {
    display: block;
    background: #e8f6ee;
    color: #0f5b32;
}

.form-status.is-error {
    display: block;
    background: #fdecec;
    color: #8a1f24;
}

.map-fallback {
    background: var(--hacc-light);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.map-frame {
    overflow: hidden;
    border: 1px solid var(--page-border);
    background: #111;
}

.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 380px;
    height: 52vh;
    max-height: 520px;
    border: 0;
}

/* Detail layouts */
.service-detail,
.industry-detail {
    padding: 5rem 0;
    min-height: calc(100vh - var(--header-height));
    scroll-margin-top: calc(var(--header-height) + 32px);
}

.service-detail.is-target,
.industry-detail.is-target {
    outline: 0;
    box-shadow: inset 0 3px 0 var(--hacc-gold);
}

.service-detail.is-target .reveal,
.industry-detail.is-target .reveal {
    opacity: 1;
    transform: none;
}

.page-hero {
    scroll-margin-top: calc(var(--header-height) + 12px);
}

.service-detail:nth-child(even),
.industry-detail:nth-child(even) {
    background: var(--hacc-light);
}

.icon-gold,
.text-danger {
    color: var(--hacc-gold) !important;
}

.big-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--hacc-gold);
    line-height: 1;
    letter-spacing: -0.04em;
}

/* Floating actions */
.whatsapp-float,
.back-to-top {
    position: fixed;
    z-index: 1050;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hacc-white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.whatsapp-float {
    right: 22px;
    bottom: 22px;
    background: #25D366;
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: wa-pulse 2s ease-out infinite;
}

.whatsapp-float::after {
    content: attr(data-label);
    position: absolute;
    right: 68px;
    white-space: nowrap;
    background: #111;
    color: #fff;
    border: 1px solid var(--hacc-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
}

html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 22px;
}

html[dir="rtl"] .whatsapp-float::after {
    right: auto;
    left: 68px;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    color: var(--hacc-white);
    background: #1ebe5d;
    transform: translateY(-2px);
}

@keyframes wa-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

.back-to-top {
    right: 22px;
    bottom: 94px;
    background: transparent;
    border: 1px solid var(--hacc-gold);
    color: var(--hacc-gold);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 22px;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus {
    color: #111;
    background: var(--hacc-gold);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.legal-page h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    color: var(--page-heading);
}

.notice-box {
    background: var(--hacc-light);
    border-left: 3px solid var(--hacc-gold);
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
}

html[dir="rtl"] .notice-box {
    border-left: 0;
    border-right: 3px solid var(--hacc-gold);
}

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.error-page .code {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    color: var(--hacc-gold);
    line-height: 1;
}

/* RTL niceties */
html[dir="rtl"] .home-hero h1 {
    max-width: 16ch;
}

html[dir="rtl"] .navbar-nav .nav-link.active::after {
    left: 0.7rem;
    right: 0.7rem;
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .img-frame:hover img,
    .industry-card:hover img,
    .hero-slide.is-active img,
    .service-visual img,
    .sector-panel img {
        transform: none;
        animation: none;
    }

    .sector-panel,
    .sector-panel.is-open,
    .sector-accordion:hover .sector-panel:hover {
        transition: none;
    }
}

@media (max-width: 991.98px) {
    .home-hero {
        min-height: 0;
        max-height: none;
        align-items: flex-end;
    }

    .hero-slide img {
        object-fit: cover;
        object-position: 32% 42%;
    }

    .hero-slide:nth-child(2) img { object-position: 50% 40%; }
    .hero-slide:nth-child(3) img { object-position: 48% 35%; }
    .hero-slide:nth-child(4) img { object-position: 45% 38%; }
    .hero-slide:nth-child(5) img { object-position: 50% 42%; }

    .hero-slide.is-active img {
        animation: hero-move-mobile 4s linear forwards;
    }

    .hero-slide:nth-child(even).is-active img {
        animation-name: hero-move-mobile-alt;
    }

    .home-hero-overlay,
    html[dir="rtl"] .home-hero-overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 48%, rgba(0, 0, 0, 0.88) 100%);
    }

    .home-hero .container {
        padding-top: 5.5rem;
        padding-bottom: 3.4rem;
        width: 100%;
    }

    .home-hero h1 {
        max-width: none;
        font-size: clamp(1.85rem, 8vw, 2.6rem);
    }

    .home-hero .hero-copy {
        max-width: none;
    }

    .section {
        padding: 3.5rem 0;
    }

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

@media (max-width: 575.98px) {
    .home-hero {
        min-height: 0;
    }

    .home-hero .container {
        padding-top: 4.8rem;
        padding-bottom: 3.8rem;
    }

    .hero-dots {
        bottom: 0.85rem;
    }

    .btn-hacc,
    .btn-hacc-outline,
    .btn-hacc-accent,
    .btn-hacc-red,
    .btn-hacc-light,
    .btn-hacc-navy-outline {
        width: 100%;
    }

    .hero-actions,
    .cta-actions {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
    }

    .whatsapp-float,
    .back-to-top {
        width: 46px;
        height: 46px;
    }

    .whatsapp-float::after {
        display: none;
    }
}

/* Custom cursor — desktop only */
.cursor-ring,
.cursor-dot {
    display: none;
}

@media (pointer: fine) {
    html.has-custom-cursor,
    html.has-custom-cursor * {
        cursor: none !important;
    }

    html.has-custom-cursor input,
    html.has-custom-cursor textarea,
    html.has-custom-cursor select,
    html.has-custom-cursor [contenteditable="true"] {
        cursor: text !important;
    }

    .cursor-ring,
    .cursor-dot {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 3000;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        will-change: transform;
    }

    .cursor-ring {
        width: 36px;
        height: 36px;
        border: 1px solid var(--hacc-gold);
        transition: width 0.18s ease, height 0.18s ease, background 0.18s ease;
    }

    .cursor-dot {
        width: 6px;
        height: 6px;
        background: var(--hacc-red);
    }

    html.is-cursor-hover .cursor-ring {
        width: 52px;
        height: 52px;
        background: rgba(201, 164, 106, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before {
        animation: none;
    }

    html.has-custom-cursor,
    html.has-custom-cursor * {
        cursor: auto !important;
    }

    .cursor-ring,
    .cursor-dot {
        display: none !important;
    }
}

/* Arabic / RTL only — English layout is unchanged */
html[dir="rtl"] body {
    line-height: 1.9;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] label,
html[dir="rtl"] .section-sub,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .service-card,
html[dir="rtl"] .why-card,
html[dir="rtl"] .form-hacc {
    text-align: start;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .header-nav .nav-link,
html[dir="rtl"] .offcanvas-hacc .nav-link,
html[dir="rtl"] .learn-more,
html[dir="rtl"] .sector-label,
html[dir="rtl"] .site-footer h3,
html[dir="rtl"] .btn-hacc,
html[dir="rtl"] .btn-hacc-accent,
html[dir="rtl"] .btn-hacc-outline,
html[dir="rtl"] .btn-hacc-light,
html[dir="rtl"] .btn-hacc-red,
html[dir="rtl"] .btn-hacc-navy-outline,
html[dir="rtl"] .lang-switch,
html[dir="rtl"] .whatsapp-float::after {
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] .home-hero h1,
html[dir="rtl"] .page-hero h1,
html[dir="rtl"] .section-title,
html[dir="rtl"] .cta-band h2,
html[dir="rtl"] .big-num {
    letter-spacing: 0;
    line-height: 1.4;
    max-width: none;
}

html[dir="rtl"] .home-hero {
    max-height: none;
    min-height: 62vh;
}

html[dir="rtl"] .home-hero-overlay {
    background:
        linear-gradient(260deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.22) 100%);
}

@media (max-width: 991.98px) {
    html[dir="rtl"] .home-hero-overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 48%, rgba(0, 0, 0, 0.88) 100%);
    }
}

html[dir="rtl"] .home-hero .container {
    text-align: start;
}

html[dir="rtl"] .home-hero .hero-copy,
html[dir="rtl"] .page-hero p {
    max-width: 40rem;
    line-height: 1.95;
}

@media (min-width: 768px) {
    html[dir="rtl"] .header-nav-main {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
    }
}

html[dir="rtl"] .header-nav .nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 0.4rem !important;
    white-space: nowrap;
}

html[dir="rtl"] .header-nav .nav-link.active::after {
    left: 0.3rem;
    right: 0.3rem;
}

html[dir="rtl"] .offcanvas-hacc .nav-link {
    font-size: 1rem;
    font-weight: 700;
}

html[dir="rtl"] .sector-label {
    left: 0.6rem;
    right: 1.1rem;
    white-space: normal;
    line-height: 1.4;
    font-size: clamp(0.78rem, 1.4vw, 1.1rem);
}

html[dir="rtl"] .service-card h3,
html[dir="rtl"] .why-card h3,
html[dir="rtl"] .industry-card h3 {
    line-height: 1.5;
}

html[dir="rtl"] .service-card-body,
html[dir="rtl"] .why-card,
html[dir="rtl"] .contact-card {
    padding-top: 1.2rem;
}

html[dir="rtl"] .trust-item {
    justify-content: flex-start;
    text-align: start;
    gap: 0.6rem;
}

html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select,
html[dir="rtl"] .form-error,
html[dir="rtl"] .form-status,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .offcanvas-hacc,
html[dir="rtl"] .pillar,
html[dir="rtl"] .legal-page {
    text-align: start;
}

html[dir="rtl"] .brand-title,
html[dir="rtl"] .brand-sub {
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] .lang-switch {
    flex-direction: row;
}

html[dir="rtl"] .header-bar,
html[dir="rtl"] .header-tools,
html[dir="rtl"] .header-nav {
    align-items: center;
}

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

html[dir="rtl"] .service-card ul,
html[dir="rtl"] .service-detail ul,
html[dir="rtl"] .industry-detail ul {
    padding-right: 1.15rem;
    padding-left: 0;
}

html[dir="rtl"] .hero-line {
    margin-inline-start: 0;
}

html[dir="rtl"] .cta-band,
html[dir="rtl"] .site-footer,
html[dir="rtl"] .page-hero .container {
    text-align: start;
}

@media (max-width: 1299.98px) {
    html[dir="rtl"] .header-nav .nav-link {
        font-size: 0.74rem;
        padding: 0.4rem 0.28rem !important;
    }
}

@media (max-width: 767.98px) {
    html[dir="rtl"] .header-nav-main {
        display: none !important;
    }
}

/* Phone — fluid sizes, visible button text, even spacing */
@media (max-width: 767.98px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .site-header .header-bar {
        padding-left: max(0.9rem, env(safe-area-inset-left)) !important;
        padding-right: max(0.9rem, env(safe-area-inset-right)) !important;
        align-items: center;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-title {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .container,
    .container-fluid {
        padding-left: max(1rem, env(safe-area-inset-left)) !important;
        padding-right: max(1rem, env(safe-area-inset-right)) !important;
    }

    .home-hero {
        min-height: auto;
        max-height: none;
        height: auto;
        align-items: flex-end;
    }

    .home-hero h1 {
        font-size: clamp(1.5rem, 7vw, 2.15rem);
        line-height: 1.18;
        max-width: none;
    }

    .home-hero .lead-kicker {
        font-size: clamp(0.76rem, 3.3vw, 0.95rem);
        color: #f3d9a0 !important;
        -webkit-text-fill-color: #f3d9a0;
    }

    .home-hero .hero-copy,
    .page-hero p {
        font-size: clamp(0.88rem, 3.7vw, 1rem);
        color: #fff !important;
        -webkit-text-fill-color: #fff;
        max-width: none;
    }

    .hero-actions,
    .cta-actions {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-hacc,
    .btn-hacc-outline,
    .btn-hacc-accent,
    .btn-hacc-red,
    .btn-hacc-light,
    .btn-hacc-navy-outline,
    .hero-actions a,
    .cta-actions a,
    .offcanvas-hacc .btn-hacc-accent {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 48px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        white-space: normal;
        overflow: visible;
        line-height: 1.3;
        font-size: clamp(0.78rem, 3.6vw, 0.9rem);
        letter-spacing: 0.04em;
        box-sizing: border-box;
    }

    a.btn-hacc-accent,
    .btn-hacc-accent,
    .offcanvas-hacc .btn-hacc-accent {
        background: #c9a46a !important;
        color: #111 !important;
        -webkit-text-fill-color: #111 !important;
        opacity: 1 !important;
    }

    a.btn-hacc-outline,
    .btn-hacc-outline {
        color: #f3d9a0 !important;
        -webkit-text-fill-color: #f3d9a0 !important;
        border-color: #fff !important;
    }

    a.btn-hacc,
    a.btn-hacc:link,
    a.btn-hacc:visited,
    a.btn-hacc:hover,
    a.btn-hacc:focus,
    a.btn-hacc:active,
    button.btn-hacc,
    .btn-hacc {
        background: #111 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    html[data-theme="dark"] a.btn-hacc,
    html[data-theme="dark"] a.btn-hacc:link,
    html[data-theme="dark"] a.btn-hacc:visited,
    html[data-theme="dark"] a.btn-hacc:hover,
    html[data-theme="dark"] a.btn-hacc:focus,
    html[data-theme="dark"] a.btn-hacc:active,
    html[data-theme="dark"] button.btn-hacc,
    html[data-theme="dark"] .btn-hacc {
        background: #c9a46a !important;
        color: #111 !important;
        -webkit-text-fill-color: #111 !important;
    }

    .offcanvas-hacc {
        width: 100% !important;
        max-width: 100%;
    }

    .offcanvas-hacc .nav-link {
        font-size: clamp(0.86rem, 4vw, 1rem);
        letter-spacing: 0.02em;
        padding-block: 0.9rem;
    }

    .home-hero {
        overflow: hidden;
    }

    .home-hero .container {
        overflow: visible;
    }

    .home-hero .hero-copy {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sector-band {
        display: none;
    }

    .service-card {
        margin-bottom: 0;
        border-radius: 8px;
    }

    .service-card-media {
        height: 160px;
        overflow: hidden;
    }

    .service-card-media img {
        width: 100%;
        height: 160px;
        object-fit: cover;
        transform: none;
    }

    .service-card-body {
        padding: 1rem 1.05rem 1.15rem;
    }

    .service-card h3 {
        font-size: 1rem;
        line-height: 1.35;
    }

    .service-card p {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .industry-card {
        min-height: 200px;
        overflow: hidden;
    }

    .industry-card img {
        height: 200px;
        object-fit: cover;
    }
}

/* Phone screen-fit — last so it wins */
@media (max-width: 767.98px) {
    html {
        max-width: 100%;
        overflow-x: clip;
    }

    body {
        overflow-x: clip;
        max-width: 100%;
        width: 100%;
        overscroll-behavior-x: none;
    }

    main,
    #main,
    .section,
    .service-detail,
    .industry-detail,
    .reveal,
    .row,
    .col-lg-6,
    .container,
    .container-fluid {
        overflow: visible;
    }

    .service-detail,
    .industry-detail {
        min-height: 0;
        padding: 2.4rem 0;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .service-visual img {
        animation: none;
        transform: none;
    }

    img,
    iframe,
    video,
    table,
    .container,
    .container-fluid {
        max-width: 100%;
    }

    h1,
    h2,
    h3,
    p,
    li,
    .section-title,
    .section-sub,
    .hero-copy,
    .lead-kicker,
    .brand-title,
    .why-card p,
    .service-card p {
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: manual;
    }

    html[dir="rtl"] .home-hero h1,
    html[dir="rtl"] .page-hero h1,
    html[dir="rtl"] .section-title {
        max-width: none;
        letter-spacing: 0;
        line-height: 1.45;
    }

    .page-hero {
        padding: 3rem 0 2rem;
    }

    .page-hero h1 {
        font-size: clamp(1.4rem, 6.4vw, 2rem);
        line-height: 1.25;
    }

    .page-hero p {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .section {
        padding: 2.4rem 0;
    }

    .section-title {
        font-size: clamp(1.3rem, 5.8vw, 1.75rem);
        line-height: 1.3;
    }

    .section-sub {
        font-size: 0.94rem;
    }

    .trust-strip {
        padding: 0.9rem 0;
    }

    .trust-item {
        font-size: 0.8rem;
        gap: 0.45rem;
        padding: 0.3rem 0;
    }

    .why-card,
    .pillar,
    .contact-card {
        padding: 1rem;
    }

    .why-card h3,
    .pillar h3 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .cta-band {
        padding: 2.4rem 0 2.6rem;
    }

    .cta-band h2 {
        font-size: clamp(1.35rem, 6vw, 1.8rem);
    }

    .site-footer {
        padding-top: 2.4rem;
    }

    .footer-bottom {
        padding-bottom: 5.6rem;
        font-size: 0.8rem;
    }

    .map-frame iframe {
        min-height: 240px;
        height: 40vh;
        max-height: 340px;
    }

    .form-hacc .form-control,
    .form-hacc .form-select {
        font-size: 1rem;
    }

    .big-num {
        font-size: 2rem;
    }

    .whatsapp-float,
    .back-to-top {
        right: 12px;
        bottom: 12px;
    }

    .back-to-top {
        bottom: 68px;
    }

    html[dir="rtl"] .whatsapp-float,
    html[dir="rtl"] .back-to-top {
        right: auto;
        left: 12px;
    }

    .header-tools {
        flex-shrink: 0;
    }

    .lang-switch {
        letter-spacing: 0;
        font-size: 0.72rem;
    }
}
