/*
Theme Name: ASAS Redesign
Theme URI: http://asas-local.local/
Author: ASAS / Hermes
Description: Structured ASAS homepage theme prepared for the final ASAS website.
Version: 0.2.10
Text Domain: asas-redesign
*/
:root{--navy:#101d35;--navy2:#142642;--ink:#111827;--muted:#637083;--line:#e4e8ef;--soft:#f5f7fa;--orange:#ff9302;--orange2:#e57d00;--white:#fff;--shadow:0 24px 70px rgba(16,29,53,.16)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.6}img{max-width:100%;display:block}.wrap{width:min(1220px,calc(100% - 48px));margin:auto}.topbar{background:var(--navy);color:#dbe5f3;font-size:13px}.topbar .wrap{display:flex;justify-content:space-between;gap:20px;padding:9px 0}.nav{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(16,29,53,.08)}.nav .wrap{height:78px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;text-decoration:none;color:var(--navy)}.brand-logo{height:62px;width:auto;display:block}.menu{display:flex;gap:26px;align-items:center}.menu a{font-size:13px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:var(--navy);text-decoration:none}.menu a:hover{color:var(--orange)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;background:var(--orange);color:white;text-decoration:none;font-weight:900;border-radius:4px;box-shadow:0 14px 28px rgba(255,147,2,.28);transition:.25s}.btn:hover{transform:translateY(-2px);background:var(--orange2)}.btn.ghost{background:#fff;color:var(--navy);box-shadow:none;border:1px solid #d9e0ea}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.18em;text-transform:uppercase;color:var(--orange)}h1,h2,h3{margin:0;color:var(--navy);letter-spacing:-.04em}h1{font-size:clamp(46px,6vw,78px);line-height:.96}h2{font-size:clamp(34px,4vw,54px);line-height:1.02}.lead{font-size:20px;color:#dfe8f5;max-width:700px}.muted{color:var(--muted)}.hero{position:relative;min-height:790px;color:white;display:flex;align-items:center;overflow:hidden;background:var(--navy)}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,29,53,.96) 0%,rgba(16,29,53,.78) 46%,rgba(16,29,53,.22) 100%),url('assets/hero-airport-exterior.jpg') center/cover no-repeat;transform:scale(1.02)}.hero .wrap{position:relative;z-index:1}.hero h1{color:white;margin:18px 0 22px}.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}.hero-panel{margin-top:54px;display:grid;grid-template-columns:repeat(4,1fr);max-width:880px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(10px)}.hero-panel div{padding:22px;border-right:1px solid rgba(255,255,255,.14)}.hero-panel div:last-child{border-right:none}.hero-panel b{display:block;font-size:30px;color:white}.hero-panel span{font-size:13px;color:#d4dfec;font-weight:700}.section{padding:92px 0}.section.soft{background:var(--soft)}.section.dark{background:var(--navy);color:white}.section.dark h2,.section.dark h3{color:white}.section-head{display:flex;justify-content:space-between;gap:28px;align-items:end;margin-bottom:34px}.section-head p{max-width:540px}.grid{display:grid;gap:24px}.cards4{grid-template-columns:repeat(4,1fr)}.cards3{grid-template-columns:repeat(3,1fr)}.card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 16px 42px rgba(16,29,53,.08)}.card-body{padding:26px}.service{padding:30px}.service .num{width:52px;height:52px;border-radius:12px;background:#fff2df;color:var(--orange);display:grid;place-items:center;font-weight:900;font-size:20px;margin-bottom:22px}.service h3{font-size:22px;margin-bottom:10px}.split{display:grid;grid-template-columns:1.02fr .98fr;gap:58px;align-items:center}.image-stack{position:relative;min-height:520px}.image-stack img{position:absolute;object-fit:cover;border-radius:18px;box-shadow:var(--shadow)}.image-stack .a{width:78%;height:390px;right:0;top:0}.image-stack .b{width:54%;height:270px;left:0;bottom:0;border:9px solid white}.badge{display:inline-flex;gap:9px;align-items:center;background:#fff4e5;color:#9a5200;padding:9px 13px;border-radius:999px;font-size:13px;font-weight:900}.pill-list{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.pill{border:1px solid #dfe5ed;border-radius:999px;padding:10px 14px;font-size:13px;font-weight:800;color:var(--navy);background:white}.project img{height:235px;width:100%;object-fit:cover}.project .tag{display:inline-block;margin-bottom:12px;color:var(--orange);font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:900}.project h3{font-size:24px;margin-bottom:8px}.featured{display:grid;grid-template-columns:1.2fr .8fr;gap:24px}.featured-main{position:relative;min-height:470px;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);background:#000}.featured-main img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.featured-main:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(16,29,53,.82),rgba(16,29,53,.06) 65%)}.featured-main .copy{position:absolute;z-index:1;left:34px;right:34px;bottom:32px;color:white}.featured-main h3{color:white;font-size:36px}.mini-grid{display:grid;gap:24px}.mini{display:grid;grid-template-columns:150px 1fr;background:white;border-radius:16px;overflow:hidden;border:1px solid var(--line)}.mini img{height:100%;min-height:135px;object-fit:cover}.mini div{padding:18px}.mini h3{font-size:19px;margin-bottom:5px}.capability-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.14)}.capability-strip div{background:rgba(255,255,255,.06);padding:26px}.capability-strip b{display:block;font-size:30px;color:#fff}.capability-strip span{color:#d9e4f0;font-weight:700}.footer{background:#091427;color:#cfd9e7;padding:78px 0}.footer h2{color:white}.footer-grid{display:grid;grid-template-columns:1fr .8fr;gap:40px;align-items:center}.note{font-size:12px;color:#9aa6b5;text-align:center;padding:16px;background:#07101f}.arabic{font-family:Tahoma,Arial,sans-serif;direction:rtl}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:28px}.gallery img{height:160px;width:100%;object-fit:cover;border-radius:12px}.source-note{font-size:13px;color:#8390a2;margin-top:18px}
@media(max-width:950px){.menu{display:none}.hero{min-height:720px}.hero-panel,.cards4,.cards3,.featured,.split,.footer-grid,.capability-strip{grid-template-columns:1fr}.hero-panel div{border-right:0;border-bottom:1px solid rgba(255,255,255,.14)}.section-head{display:block}.image-stack{min-height:auto}.image-stack img{position:static;width:100%!important;height:auto!important;margin-top:18px}.mini{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(2,1fr)}}
/* SIDRA 3D render slider */
.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff7ea, #ffe9c6);
    color: var(--orange);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    box-shadow: inset 0 0 0 1px rgba(255,147,2,.12), 0 12px 28px rgba(255,147,2,.12);
}

.service-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidra-showcase{margin-top:30px;padding:24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 16px 42px rgba(16,29,53,.07)}
.sidra-showcase-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:18px}.sidra-showcase-head h3{font-size:28px}.sidra-showcase-head p{max-width:520px;margin:0}
.sidra-slider{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(360px,52%);gap:18px;align-items:start;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px;scrollbar-color:var(--orange) #e8edf4}.sidra-slider figure{margin:0;scroll-snap-align:start;border-radius:16px;overflow:hidden;background:#fff;border:1px solid var(--line);box-shadow:0 10px 26px rgba(16,29,53,.08)}.sidra-slider img{height:320px;width:100%;object-fit:cover}.sidra-slider figcaption{padding:12px 14px;font-weight:900;color:var(--navy);font-size:14px}.sidra-brand-slide figcaption{padding:18px 20px}.sidra-brand-slide .tag{display:block;margin-bottom:10px}.sidra-brand-slide strong{display:block;font-size:24px;line-height:1.12;letter-spacing:-.04em;color:var(--navy)}.sidra-brand-slide small{display:block;margin-top:14px;font-size:15px;line-height:1.5;font-weight:500;color:var(--muted)}
@media(max-width:950px){.sidra-showcase-head{display:block}.sidra-slider{grid-auto-columns:86%}.sidra-slider img{height:250px}}

/* Final responsive hardening */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.wrap,
.section-head,
.hero .wrap,
.split,
.featured,
.footer-grid,
.capability-strip,
.cards4,
.cards3,
.mini-grid {
    min-width: 0;
}

@media (max-width: 950px) {
    .wrap {
        width: min(100% - 32px, 1220px);
    }

    .topbar .wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        font-size: 12px;
        line-height: 1.35;
    }

    .nav .wrap {
        height: 76px;
    }

    .brand-logo {
        height: 54px;
    }

    .hero {
        min-height: auto;
        padding: 72px 0 54px;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 52px);
        line-height: 1.04;
        max-width: 100%;
        overflow-wrap: normal;
    }

    .hero .lead {
        font-size: 17px;
        line-height: 1.35;
        max-width: 100%;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 260px;
    }

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

    .hero-panel {
        width: 100%;
        margin-top: 36px;
    }

    .section {
        padding: 72px 0;
    }

    h2 {
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.08;
    }

    .card.service {
        min-height: auto;
        padding: 32px;
    }

    .featured-main img {
        min-height: 360px;
    }

    .featured-main .copy {
        padding: 24px;
    }

    .featured-main h3 {
        font-size: clamp(26px, 7vw, 38px);
        line-height: 1.1;
    }

    .mini {
        display: block;
    }

    .mini img {
        width: 100%;
        height: auto;
        max-height: 320px;
        object-fit: cover;
    }

    .mini div {
        padding: 22px;
    }

    .sidra-showcase {
        padding: 16px;
    }

    .sidra-slider {
        grid-auto-columns: 88%;
    }

    .sidra-slider img {
        height: 230px;
    }

    .sidra-brand-slide strong {
        font-size: 21px;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: calc(100% - 32px);
    }

    .topbar .wrap {
        width: calc(100% - 32px);
    }

    .hero {
        padding: 42px 0 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-panel {
        margin-bottom: 0;
    }

    .section {
        padding: 64px 0;
    }

    .section-head p {
        margin-top: 18px;
    }

    .pill-list {
        gap: 10px;
    }

    .pill {
        font-size: 13px;
        padding: 10px 14px;
    }

    .featured-main img {
        min-height: 420px;
    }

    .featured-main .copy {
        padding: 22px;
    }

    .sidra-slider {
        grid-auto-columns: 92%;
    }

    .sidra-slider img {
        height: 220px;
    }

    .capability-strip div {
        padding: 22px;
    }

    .footer .btn {
        width: 100%;
    }
}

/* Mobile overflow and typography final pass */
@media (max-width: 520px) {
    body,
    .wrap,
    .section,
    .hero,
    .card,
    .featured-main,
    .mini,
    .sidra-showcase,
    .footer {
        max-width: 100vw;
    }

    .wrap {
        width: calc(100vw - 32px);
        margin-left: 16px;
        margin-right: 16px;
    }

    h1,
    h2,
    h3,
    p,
    span,
    small,
    figcaption,
    .lead,
    .muted {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    h2 {
        font-size: 27px;
        line-height: 1.12;
        letter-spacing: -0.035em;
    }

    .section-head h2,
    .split h2 {
        max-width: 100%;
    }

    .lead,
    .section-head p,
    .split p,
    .card p,
    .mini p,
    .footer p {
        font-size: 15px;
        line-height: 1.55;
    }

    .card.service {
        padding: 30px 28px;
    }

    .featured-main h3 {
        font-size: 25px;
    }

    .mini h3 {
        font-size: 25px;
    }

    .sidra-showcase-head h3 {
        font-size: 25px;
        line-height: 1.12;
    }
}

/* Conservative small-phone layout: prevent horizontal page width */
@media (max-width: 520px) {
    * {
        box-sizing: border-box;
    }

    body.asas-homepage {
        width: 100% !important;
        min-width: 0 !important;
    }

    .wrap,
    .topbar .wrap,
    .nav .wrap,
    .hero .wrap,
    .section .wrap,
    .footer .wrap {
        width: auto !important;
        max-width: none !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
    }

    .section-head,
    .split,
    .featured,
    .mini-grid,
    .cards4,
    .cards3,
    .footer-grid,
    .capability-strip {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .section-head > *,
    .split > *,
    .featured > *,
    .mini-grid > *,
    .cards4 > *,
    .cards3 > *,
    .footer-grid > *,
    .capability-strip > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .hero h1,
    .section-head h2,
    .split h2 {
        font-size: 28px !important;
        line-height: 1.12 !important;
        letter-spacing: -0.025em !important;
    }

    .hero .lead,
    .section-head p,
    .split p,
    .card p,
    .mini p,
    .footer p {
        font-size: 14px !important;
    }

    .card.service,
    .mini,
    .sidra-showcase,
    .featured-main {
        width: 100% !important;
    }
}

/* Small-phone text measure lock */
@media (max-width: 520px) {
    .hero h1,
    .hero .lead,
    .section-head h2,
    .section-head p,
    .split h2,
    .split p,
    .featured-main h3,
    .featured-main p,
    .mini h3,
    .mini p,
    .card h3,
    .card p,
    .sidra-showcase-head h3,
    .sidra-showcase-head p,
    .footer h2,
    .footer p {
        width: 100% !important;
        max-width: 330px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    .hero h1 {
        max-width: 320px !important;
        font-size: 27px !important;
    }

    .section-head h2,
    .split h2 {
        max-width: 330px !important;
        font-size: 26px !important;
    }

    .featured-main h3 {
        max-width: 310px !important;
        font-size: 23px !important;
    }

    .hero .lead,
    .section-head p,
    .split p,
    .featured-main p,
    .mini p,
    .card p,
    .sidra-showcase-head p,
    .footer p {
        max-width: 330px !important;
        font-size: 14px !important;
    }
}

/* Dynamic hero and auto-scrolling project sliders */
.hero-auto-slider {
    isolation: isolate;
}

.hero-auto-slider:before {
    z-index: -1;
    background: linear-gradient(90deg, rgba(16,29,53,.96) 0%, rgba(16,29,53,.78) 46%, rgba(16,29,53,.22) 100%);
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg-slider span {
    position: absolute;
    inset: 0;
    background-image: var(--hero-slide-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.045);
    animation: asasHeroFade 66s infinite;
    animation-delay: calc(var(--slide-index) * 6s);
}

@keyframes asasHeroFade {
    0% { opacity: 0; transform: scale(1.045); }
    1.4% { opacity: 1; transform: scale(1.035); }
    7% { opacity: 1; transform: scale(1.01); }
    8.4% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.045); }
}

.sidra-slider[data-auto-scroll="true"] {
    scroll-behavior: auto;
    cursor: grab;
}

.sidra-slider[data-auto-scroll="true"]:hover {
    scrollbar-color: var(--orange2) #dbe3ee;
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-slider span {
        animation: none;
    }

    .hero-bg-slider span:first-child {
        opacity: 1;
        transform: none;
    }

    .sidra-slider[data-auto-scroll="true"] {
        scroll-behavior: smooth;
    }
}

@media (max-width: 700px) {
    .hero-bg-slider span {
        background-position: center top;
    }
}

/* Hide footer Google Maps widget */
.elementor-70 .elementor-element.elementor-element-998c9ba,
.elementor-widget-google_maps.elementor-element-998c9ba,
.elementor-widget-google_maps.elementor-element-998c9ba iframe {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
