/* Allied Catering — pure CSS, no build step */

:root {
    --brand-red:        #d3202a;
    --brand-red-dark:   #a31820;
    --brand-red-light:  #e85a62;
    --brand-navy:       #2c3e50;     /* softer midnight blue — easier on the eyes than #1c2b3a */
    --brand-navy-dark:  #1f2d3d;     /* subtle dark, not pitch black */
    --brand-navy-soft:  #3a4f64;     /* for hover backgrounds on dark navy */
    --brand-gray:       #4a4a4a;
    --brand-gray-light: #f4f4f4;
    --brand-border:     #e5e5e5;
    --maxw:             1200px;
    --body-font:        'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --heading-font:     'Montserrat', 'Open Sans', sans-serif;
    --ease:             cubic-bezier(.2, .7, .2, 1);
    --t-fast:           .15s;
    --t-base:           .25s;
    --t-slow:           .45s;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    margin: 0;
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--brand-navy);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-red-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-red); }
h6 { font-size: 1.125rem; color: var(--brand-gray); font-weight: 400; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.text-red { color: var(--brand-red); }
.text-navy { color: var(--brand-navy); }
.text-center { text-align: center; }
.muted { color: var(--brand-gray); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ====================== Header (2-row professional layout) ====================== */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 100; }

/* Top row: logo (left) | phone+CTA+locale (right) — phone is grouped with actions now */
.site-header__top { background: #fff; border-bottom: 1px solid var(--brand-border); }
.site-header__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
}
.site-brand { flex-shrink: 0; }
.site-brand img { height: 52px; width: auto; display: block; }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-shrink: 0;
}
.hdr-phone {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--brand-navy);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    letter-spacing: .01em;
    white-space: nowrap;
    padding: .35rem .6rem;
    border-radius: 4px;
    transition: color .15s ease, background .15s ease;
}
.hdr-phone i { color: var(--brand-red); font-size: .95rem; }
.hdr-phone:hover { color: var(--brand-red); background: rgba(211, 32, 42, .05); }

.site-header__actions .btn { padding: .55rem 1rem; font-size: .85rem; }
.site-header__actions .btn i { margin-right: .35rem; }

/* Bottom row: nav — clean professional, modern underline-on-hover, with submenu support */
.site-header__nav { background: var(--brand-navy); border-top: 1px solid rgba(255,255,255,.06); }
.site-header__nav .container { padding: 0 1rem; }
.site-header__nav > .container > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .15rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}
.site-header__nav li { position: relative; }
.site-header__nav > .container > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    height: 100%;
    color: rgba(255,255,255,.92);
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 1.1rem 1rem;
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
    white-space: nowrap;
    position: relative;
    text-align: center;
    border-radius: 0;
}
.site-header__nav > .container > ul > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--brand-red);
    transition: width .2s ease;
}
.site-header__nav > .container > ul > li > a:hover,
.site-header__nav > .container > ul > li > a.active,
.site-header__nav > .container > ul > li:hover > a {
    color: #fff; background: rgba(255,255,255,.04);
}
.site-header__nav > .container > ul > li > a:hover::after,
.site-header__nav > .container > ul > li > a.active::after { width: 70%; }
.submenu-arrow { font-size: .65rem; opacity: .7; transition: transform .2s ease; }
.site-header__nav > .container > ul > li.has-submenu:hover > a .submenu-arrow { transform: rotate(180deg); }

/* Submenu (dropdown) */
.submenu {
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 220px;
    background: var(--brand-navy-dark);
    border: 1px solid rgba(255,255,255,.08);
    border-top: 3px solid var(--brand-red);
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
    z-index: 200;
}
.site-header__nav > .container > ul > li.has-submenu:hover > .submenu,
.site-header__nav > .container > ul > li.has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .15s ease, transform .15s ease, visibility 0s;
}
.submenu li { position: relative; }
.submenu a {
    display: block;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: .02em;
    padding: .65rem 1.25rem;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.submenu a:hover { background: rgba(255,255,255,.08); color: var(--brand-red-light); }
.submenu a::after { display: none !important; }

/* Mobile menu toggle (only shows on small screens) */
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--brand-navy); position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content:''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }

@media (max-width: 1100px) {
    .site-header__nav > .container > ul > li > a { padding: 1rem .8rem; font-size: .8rem; }
}

@media (max-width: 880px) {
    .site-header__top-row { flex-wrap: wrap; gap: .75rem; padding: .75rem 0; }
    /* Hide the long phone text on small screens, keep just the icon */
    .hdr-phone-text { display: none; }
    .hdr-phone { padding: .35rem .5rem; }
    .menu-toggle { display: block; }
    .site-header__nav { display: none; }
    .site-header__nav.open { display: block; }
    .site-header__nav > .container > ul { flex-direction: column; gap: 0; }
    .site-header__nav > .container > ul > li > a { padding: .85rem 1.25rem; justify-content: flex-start; }
    .site-header__nav > .container > ul > li > a::after { display: none; }
    /* On mobile, submenu becomes an inline accordion (always visible) */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0,0,0,.2);
        border: 0;
        border-top: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    .submenu a { padding-left: 2.5rem; font-size: .82rem; }
    html[dir="rtl"] .submenu a { padding-left: 1.25rem; padding-right: 2.5rem; }
    .submenu-arrow { display: none; }
}

@media (max-width: 520px) {
    /* Tightest viewports: hide the locale switcher and the phone, just logo + hamburger */
    .site-header__actions .hdr-phone { display: none; }
    .site-header__actions .btn span { display: none; }
    .site-header__actions .btn { padding: .55rem .8rem; }
    .site-header__actions .btn i { margin-right: 0; }
}

/* Locale switcher */
.locale-switcher { display: flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; }
.locale-switcher a { color: var(--brand-gray); padding: .25rem .4rem; }
.locale-switcher a:hover { color: var(--brand-red); }
.locale-switcher a.active { color: var(--brand-red); border-bottom: 2px solid var(--brand-red); }
.locale-switcher .sep { color: var(--brand-border); }

/* Hero — bigger and more prominent */
.hero {
    position: relative;
    min-height: 860px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.25rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;            /* clip any text that would push past the viewport */
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,43,58,.45) 0%, rgba(28,43,58,.65) 100%); }
.hero .container {
    position: relative;
    z-index: 1;
    min-width: 0;                 /* allow flex item to shrink below its content */
    max-width: var(--maxw);
    width: 100%;
}
.hero h1 {
    color: #fff;
    font-size: 3.75rem;
    margin-bottom: .6rem;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
    overflow-wrap: break-word;    /* let the title wrap on narrow viewports */
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}
.hero .lede { font-size: 1.3rem; max-width: 820px; margin: 0 auto 2rem; opacity: .95; line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,.3); overflow-wrap: break-word; }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 3rem auto 0;
    min-width: 0;
}
.hero-stats .stat { padding: 1.4rem 1.25rem; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; background: rgba(255,255,255,.06); backdrop-filter: blur(2px); min-width: 0; }
.hero-stats .stat .num { display: block; font-family: 'Montserrat', sans-serif; font-size: 2.75rem; font-weight: 700; color: var(--brand-red-light); line-height: 1.1; }
.hero-stats .stat .lbl { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; margin-top: .35rem; }

@media (max-width: 880px) {
    .hero { min-height: 600px; padding: 4rem 1.25rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero .lede { font-size: 1.05rem; }
    .hero-stats .stat .num { font-size: 2.25rem; }
}

@media (max-width: 600px) {
    .hero { min-height: 520px; padding: 3rem 1rem; }
    .hero h1 { font-size: 2rem; line-height: 1.15; }
    .hero .lede { font-size: .95rem; margin-bottom: 1.5rem; }
    .hero-stats { gap: .85rem; margin-top: 1.75rem; }
    .hero-stats .stat { padding: 1rem .85rem; }
    .hero-stats .stat .num { font-size: 1.85rem; }
    .hero-stats .stat .lbl { font-size: .72rem; letter-spacing: .05em; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 1.65rem; }
    .hero .lede { font-size: .88rem; }
    .hero-stats .stat .num { font-size: 1.55rem; }
}

/* ====================== Page body ====================== */
.page-body { padding: 3.5rem 0; }
.page-body section { margin-bottom: 2.5rem; }
.page-body .container { max-width: 960px; }
.page-body h3 { margin-top: 1.75rem; }
.page-body h3:first-child { margin-top: 0; }
.page-body h5 { margin-top: 2.5rem; }
.page-body h5 a { color: inherit; }
.page-body h5 a:hover { color: var(--brand-red-dark); }
.page-body figure { margin: 1.5rem 0; }
.page-body ol, .page-body ul { padding-left: 1.5rem; }
.page-body li { margin-bottom: .35rem; }
.page-body img.iconset { max-width: 360px; }

/* Capabilities grid (Catering services page) */
.capabilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-top: 2rem; }
.capabilities .cap { text-align: center; padding: 1.25rem; background: #fff; border: 1px solid var(--brand-border); border-radius: 6px; transition: transform .2s ease, box-shadow .2s ease; }
.capabilities .cap:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.capabilities .cap img { margin: 0 auto 1rem; max-width: 80px; }
.capabilities .cap h6 { color: var(--brand-navy); font-weight: 600; margin-bottom: .35rem; }
.capabilities .cap p { color: var(--brand-gray); font-size: .9rem; margin: 0; }

/* Page-body figure.cap (icon boxes from Elementor image-box) */
.page-body .cap { text-align: center; padding: 1rem; background: #fff; border: 1px solid var(--brand-border); border-radius: 6px; }
.page-body .cap img { margin: 0 auto .75rem; max-width: 90px; }
.page-body .cap h6 { color: var(--brand-navy); font-weight: 600; margin-bottom: .25rem; }
.page-body .cap p { color: var(--brand-gray); font-size: .9rem; margin: 0; }

/* Page-body inline section wrapper */
.page-body section section { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.page-body section section > figure { margin: 0; }
.page-body section section > h3 { grid-column: 1 / -1; margin-top: 1rem; }
.page-body section section > h3:first-child { margin-top: 0; }
.page-body section section > p,
.page-body section section > hr,
.page-body section section > div,
.page-body section section > .cap { grid-column: span 1; }
@media (max-width: 600px) {
    .page-body section section { grid-template-columns: 1fr; }
}

/* ====================== CTA strip ====================== */
.cta-strip { background: var(--brand-red); color: #fff; padding: 2.5rem 0 1.75rem; text-align: center; margin-bottom: 0; }
.cta-strip h2 { color: #fff; margin-bottom: .5rem; }
.cta-strip p { margin-bottom: 1.25rem; opacity: .9; }
.cta-strip .btn { background: #fff; color: var(--brand-red); }
.cta-strip .btn:hover { background: var(--brand-navy); color: #fff; }

/* ====================== Contact ====================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { margin: .25rem 0; }
.contact-company { font-size: 1.1rem; margin-top: 0; }

/* Contact card grid (replaces the form) */
.contact-grid--no-form { align-items: start; }
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform var(--t-base) var(--ease),
                box-shadow var(--t-base) var(--ease),
                border-color var(--t-base) var(--ease);
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--brand-red);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform var(--t-base) var(--ease);
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border-color: var(--brand-red);
    color: inherit;
}
.contact-card:hover::before { transform: scaleY(1); }
.contact-card__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(211, 32, 42, .08);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.contact-card:hover .contact-card__icon { background: var(--brand-red); color: #fff; }
.contact-card--whatsapp .contact-card__icon { background: rgba(37, 211, 102, .12); color: #1f9d52; }
.contact-card--whatsapp:hover .contact-card__icon { background: #1f9d52; color: #fff; }
.contact-card__body { min-width: 0; flex: 1 1 auto; }
.contact-card__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--brand-gray);
    font-weight: 600;
    margin-bottom: .15rem;
}
.contact-card__value {
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.contact-card--social .contact-card__value { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-card__social { display: flex; flex-wrap: wrap; gap: .4rem; }
.social-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: var(--brand-gray-light);
    color: var(--brand-navy);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.social-pill:hover { background: var(--brand-red); color: #fff; }
.social-pill i { color: inherit; }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--brand-navy); }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: .65rem .8rem; font: inherit; color: inherit;
    border: 1px solid var(--brand-border); border-radius: 4px; background: #fff;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(211,32,42,.12); }
.form-field .err { color: var(--brand-red); font-size: .85rem; margin-top: .25rem; }
.btn { display: inline-block; padding: .75rem 1.5rem; background: var(--brand-red); color: #fff; border: 0; border-radius: 4px; font-weight: 600; cursor: pointer; transition: background .15s ease; text-decoration: none; }
.btn:hover { background: var(--brand-red-dark); color: #fff; }
.btn-secondary { background: var(--brand-navy); }
.btn-secondary:hover { background: var(--brand-navy-dark); }
.btn-ghost { background: transparent; color: var(--brand-red); border: 1px solid var(--brand-red); }
.btn-ghost:hover { background: var(--brand-red); color: #fff; }

/* ====================== Footer ====================== */
.site-footer {
    background: var(--brand-navy-dark);
    color: #d6dde6;
    padding: 0 0 2.5rem;            /* top padding zero — footer-cities handles its own space above */
    margin-top: 0;                  /* no white gap above — sits flush below footer-cities */
    border-top: 0;
    box-shadow: none;
}
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3.5rem; margin-top: 2.5rem; } /* clear gap from cities above */
@media (max-width: 720px) { .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 { color: #fff; margin-bottom: 1.25rem; font-size: 1rem; }
.site-footer a { color: #d6dde6; }
.site-footer a:hover { color: var(--brand-red-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer p { line-height: 1.6; }
.site-footer .copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; text-align: center; opacity: .7; }
.site-footer .footer-logo { max-width: 160px; margin-bottom: 1.25rem; }

/* =============================================================================
 * RTL — Arabic
 *
 * Native browser support already flips most things (text direction, list
 * markers, default alignment). We only need to override the few places where
 * we used explicit `left`/`right` or `padding-left`/`padding-right` in the
 * English stylesheet, plus swap font family to an Arabic-friendly one.
 * ============================================================================= */
html[dir="rtl"] {
    --body-font:    'Cairo', 'Tajawal', 'Open Sans', sans-serif;
    --heading-font: 'Tajawal', 'Cairo', 'Montserrat', sans-serif;
}
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 { letter-spacing: 0; }
html[dir="rtl"] h5 { letter-spacing: 0; }
html[dir="rtl"] .site-nav a.active::after,
html[dir="rtl"] .site-nav a:hover::after { left: 0; right: 0; }
html[dir="rtl"] .cta-strip .btn { font-weight: 700; }
html[dir="rtl"] .form-field input,
html[dir="rtl"] .form-field textarea { text-align: right; }
html[dir="rtl"] .form-field label { text-align: right; }
html[dir="rtl"] .hero-stats { direction: ltr; }   /* numerals stay LTR for consistency */
html[dir="rtl"] .hero h1, html[dir="rtl"] .hero .lede { text-align: center; }
html[dir="rtl"] .page-body .cap { text-align: center; }
html[dir="rtl"] .capabilities .cap { text-align: center; }

/* ====================== Small hero (non-home pages) ====================== */
.hero-sm { min-height: 280px; padding: 3.5rem 1.25rem; }
.hero-sm h1 { font-size: 2.25rem; }
.hero-sm .lede { font-size: 1.05rem; }

/* (old header-cta block removed — replaced by .site-header__actions in the 2-row header) */

/* ====================== Trust sections (home) ====================== */
.trust-section { padding: 5rem 0; }
.trust-section h5 { margin-bottom: .6rem; }
.trust-section h2 { margin-bottom: .75rem; }
.trust-section .trust-lede { max-width: 720px; margin: 0 auto 3rem; font-size: 1.05rem; }
.trust-section h5 + h2 + .trust-lede { text-align: center; }
.trust-certs   { background: var(--brand-gray-light); }
.trust-clients { background: #fff; }
.trust-cities  { background: var(--brand-gray-light); }

/* ====================== Certifications flip cards ====================== */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.cert-card { perspective: 1000px; }
.cert-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    transition: transform .6s ease;
    transform-style: preserve-3d;
}
.cert-card:hover .cert-card-inner,
.cert-card:focus-within .cert-card-inner { transform: rotateY(180deg); }
.cert-card-front, .cert-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: #fff;
}
.cert-card-front img { max-height: 75%; max-width: 85%; object-fit: contain; }
.cert-card-placeholder {
    font-weight: 600;
    color: var(--brand-navy);
    font-size: .95rem;
    line-height: 1.3;
}
.cert-card-back {
    transform: rotateY(180deg);
    background: var(--brand-navy);
    color: #fff;
}
.cert-card-back h4 { color: #fff; font-size: 1rem; margin-bottom: .35rem; }
.cert-card-issuer { font-size: .8rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .15rem; }
.cert-card-year   { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--brand-red-light); margin: 0 0 .5rem; }
.cert-card-desc   { font-size: .8rem; line-height: 1.5; opacity: .85; margin: 0; }
html[dir="rtl"] .cert-card:hover .cert-card-inner { transform: rotateY(-180deg); }

/* ====================== Client logo strip ====================== */
.clients-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.client-tile {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    padding: 1rem;
    transition: box-shadow .2s ease, transform .2s ease;
}
.client-tile:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.client-tile img { max-height: 70%; max-width: 80%; object-fit: contain; filter: grayscale(40%); transition: filter .2s ease; }
.client-tile:hover img { filter: grayscale(0%); }
.client-tile-placeholder {
    text-align: center;
    color: var(--brand-gray);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.client-tile-placeholder span { font-weight: 600; color: var(--brand-navy); }
.client-tile-placeholder small { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }

/* ====================== Cities served icon list ====================== */
.cities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.city-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.15rem 1.5rem;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.city-item:hover { border-color: var(--brand-red); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.05); }
.city-item.has-image {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}
.city-item.has-image .city-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
}
.city-item.has-image .city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.city-item.has-image:hover .city-image img { transform: scale(1.05); }
.city-item.has-image .city-name,
.city-item.has-image .city-kitchen {
    padding: 0 1.25rem;
}
.city-item.has-image .city-name {
    padding-top: 1rem;
    padding-bottom: .25rem;
    font-size: 1.05rem;
}
.city-item.has-image .city-kitchen {
    padding-bottom: 1rem;
    align-self: flex-start;
    margin-bottom: 0;
}
.city-icon { color: var(--brand-red); display: flex; align-items: center; }
.city-name { font-weight: 600; color: var(--brand-navy); flex: 1; }
.city-kitchen {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    background: var(--brand-navy);
    padding: .2rem .5rem;
    border-radius: 3px;
}

/* ====================== News ====================== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.news-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .news-grid-3 { grid-template-columns: 1fr; } }

.news-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.news-card-link { display: block; color: inherit; text-decoration: none; }
.news-card-image { position: relative; aspect-ratio: 16 / 9; background: var(--brand-gray-light); overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-card-image img { transform: scale(1.05); }
.news-card-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%); }
.news-card-cat {
    position: absolute;
    top: .75rem;
    inset-inline-start: .75rem;
    background: var(--brand-red);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .25rem .6rem;
    border-radius: 3px;
}
.news-card-body { padding: 1.25rem; }
.news-card-date { font-size: .8rem; color: var(--brand-gray); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.news-card-title { font-size: 1.1rem; margin-bottom: .5rem; color: var(--brand-navy); line-height: 1.3; }
.news-card-excerpt { color: var(--brand-gray); font-size: .9rem; margin: 0; }

.news-breadcrumb { font-size: .85rem; margin-bottom: .5rem; opacity: .8; }
.news-breadcrumb a { color: inherit; }
.news-breadcrumb .sep { margin: 0 .5rem; opacity: .5; }

.news-hero { margin: 0 0 2rem; border-radius: 8px; overflow: hidden; }
.news-hero img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.news-lede { font-size: 1.15rem; color: var(--brand-gray); margin-bottom: 2rem; line-height: 1.6; }
.news-body { line-height: 1.8; }
.news-body p { margin-bottom: 1.25rem; }
.news-more h2 { margin-bottom: 1.5rem; }

/* ====================== Projects ====================== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.projects-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .projects-grid-3 { grid-template-columns: 1fr; } }

.project-card {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.project-card-link { display: block; color: inherit; text-decoration: none; }
.project-card-image { aspect-ratio: 16 / 10; background: var(--brand-gray-light); overflow: hidden; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card-image-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%); }
.project-card-body { padding: 1.5rem; }
.project-card-sector {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--brand-red);
    background: rgba(211,32,42,.08);
    padding: .25rem .6rem;
    border-radius: 3px;
    margin-bottom: .75rem;
}
.project-card-title { font-size: 1.15rem; margin-bottom: .75rem; color: var(--brand-navy); }
.project-card-meta { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--brand-gray); }
.project-card-meta li { margin-bottom: .25rem; }
.project-card-meta strong { color: var(--brand-navy); font-weight: 600; }
.project-card-scope { color: var(--brand-gray); font-size: .9rem; line-height: 1.6; margin: 0; }

.project-hero { margin: 0 0 2rem; border-radius: 8px; overflow: hidden; }
.project-hero img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 2rem;
    margin: 0 0 2rem;
    padding: 1.5rem;
    background: var(--brand-gray-light);
    border-radius: 6px;
}
.project-meta-grid div { margin: 0; }
.project-meta-grid dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-gray); font-weight: 600; margin-bottom: .25rem; }
.project-meta-grid dd { font-size: 1rem; color: var(--brand-navy); font-weight: 600; margin: 0; }
.project-body { line-height: 1.8; }
.project-body p { margin-bottom: 1.25rem; }

/* ====================== Careers ====================== */
.careers-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}
@media (max-width: 880px) { .careers-grid { grid-template-columns: 1fr; } }
.careers-content h2 { margin-top: 2rem; }
.careers-content h2:first-child { margin-top: 0; }
.careers-content p { line-height: 1.7; margin-bottom: 1rem; color: var(--brand-gray); }
.careers-roles { list-style: none; padding: 0; margin: 1rem 0 2rem; }
.careers-roles li {
    position: relative;
    padding: .75rem 0 .75rem 1.75rem;
    border-bottom: 1px solid var(--brand-border);
    color: var(--brand-navy);
}
.careers-roles li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
}
html[dir="rtl"] .careers-roles li { padding: .75rem 1.75rem .75rem 0; }
html[dir="rtl"] .careers-roles li::before { left: auto; right: 0; }
.careers-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.careers-side-card {
    background: var(--brand-navy);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}
.careers-side-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.careers-side-card ul { list-style: none; padding: 0; margin: 0; }
.careers-side-card li {
    padding: .65rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: .9rem;
    line-height: 1.5;
}
.careers-side-card li:last-child { border-bottom: 0; }
.careers-side-card strong { color: var(--brand-red-light); font-weight: 600; }

/* ====================== Floating WhatsApp button ====================== */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37,211,102,.4);
    z-index: 90;
    transition: transform .2s ease, box-shadow .2s ease;
    line-height: 0;
    text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37,211,102,.5); color: #fff; }
.wa-float i { font-size: 30px; line-height: 1; }
html[dir="rtl"] .wa-float { left: auto; right: 1.5rem; }
@media (max-width: 600px) {
    .wa-float { width: 50px; height: 50px; bottom: 1rem; left: 1rem; }
    .wa-float i { font-size: 26px; }
    html[dir="rtl"] .wa-float { right: 1rem; }
}

/* ====================== Footer additions ====================== */
.footer-cities {
    background: #324c63;        /* slightly lighter than main footer below — gives visible seam */
    padding: 3rem 0 5.5rem;      /* generous bottom space so cities don't crowd the Quick Links below */
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.1);  /* hairline seam above the darker main footer */
    margin-bottom: 0;
}
.footer-cities-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-cities h4 {
    color: #fff;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 600;
}
.footer-cities h4 i { color: var(--brand-red-light); font-size: 1.2rem; }
.footer-cities-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-red);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    line-height: 1;
}

.footer-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.footer-city-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.15rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.footer-city-card:hover { background: rgba(255,255,255,.08); border-color: var(--brand-red-light); transform: translateY(-1px); }
.footer-city-pin {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(211, 32, 42, .18);
    color: var(--brand-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-city-pin i { font-size: 15px; }
.footer-city-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.footer-city-name { color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.footer-city-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .7rem;
    color: #d6dde6;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .85;
}
.footer-city-badge i { color: var(--brand-red-light); font-size: .7rem; }

/* Footer contact column — slightly more breathing room */
.footer-contact-line { margin: .55rem 0; line-height: 1.5; }
.footer-contact-line strong { color: #fff; display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem; }

.footer-social { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; gap: .5rem; }
.footer-social .social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #d6dde6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    text-decoration: none;
}
.footer-social .social-link:hover { background: var(--brand-red); color: #fff; transform: translateY(-2px); }
.footer-social .social-link i { font-size: 16px; line-height: 1; }

/* ====================== Misc ====================== */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--brand-gray); }
.pagination { margin-top: 2.5rem; }
.pagination nav { display: flex; justify-content: center; }
.pagination svg { width: 16px; height: 16px; }

/* ====================== News/Project detail RTL ====================== */
html[dir="rtl"] .news-card-cat { inset-inline-start: auto; inset-inline-end: .75rem; }

/* ====================== Home page (intro + capabilities) ====================== */
.home-intro {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    color: var(--brand-gray);
    line-height: 1.8;
}
.home-intro p { margin-bottom: 1.25rem; }
.home-intro p:last-child { margin-bottom: 0; }
.home-intro strong { color: var(--brand-navy); }

.home-capabilities { margin-top: 4rem; }
.home-capabilities h2 { margin-bottom: 2rem; }
.home-capabilities .capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.home-capabilities .cap {
    text-align: left;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-capabilities .cap:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    border-color: var(--brand-red);
}
.home-capabilities .cap-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(211, 32, 42, .08);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
/* Size the Font Awesome <i> inside .cap-icon (icon came from FA 6.5.2) */
.home-capabilities .cap-icon i { font-size: 26px; line-height: 1; }
/* Old inline <svg> inside .cap-icon is the same size as the FA icon */
.home-capabilities .cap-icon svg { width: 28px; height: 28px; }
.home-capabilities .cap h6 {
    color: var(--brand-navy);
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: .5rem;
    font-weight: 600;
    font-family: var(--heading-font);
}
.home-capabilities .cap p {
    color: var(--brand-gray);
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
}
html[dir="rtl"] .home-capabilities .cap { text-align: right; }

/* ====================== Client tile placeholder (when no logo) ====================== */
.client-tile-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    width: 100%;
    height: 100%;
    text-align: center;
}
.client-tile-initial {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: .25rem;
}
.client-tile-sector {
    font-size: .8rem;
    font-weight: 600;
    color: var(--brand-navy);
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
    max-width: 90%;
}
html[dir="rtl"] .client-tile-sector { letter-spacing: 0; }

/* ====================== Gallery (legacy WP photos) ====================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.gallery-tile {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    background: var(--brand-navy);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.15); }
.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.gallery-tile:hover img { transform: scale(1.05); }
@media (min-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ====================== Initial fade-in ====================== */

/* Fade the body in once the JS has had a chance to attach everything.
   Click-to-navigate is now a plain browser navigation — no View
   Transitions, no progress bar, no intercept. */
body {
    opacity: 0;
    transition: opacity .25s var(--ease);
}
body.is-ready { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    body { transition: none; opacity: 1; }
}
