/* =====================================================================
   شركة الراشد للمساحة — Public stylesheet  (v2, calm/editorial)
   Cream base · Navy #052951 · restrained Orange #E25922
   Topographic contour pattern = signature element
   ===================================================================== */

/* ----------------------------- Tokens ----------------------------- */
:root {
    --navy:        #052951;
    --navy-700:    #0C3A66;
    --navy-300:    #6E89A8;
    --orange:      #E25922;
    --orange-600:  #C8481A;
    --orange-tint: #FBEDE5;

    --cream:       #FBF8F2;
    --cream-2:     #F5EFE3;
    --paper:       #FFFFFF;

    --ink:         #0A1F33;   /* headings */
    --body:        #45525F;   /* paragraphs */
    --muted:       #5C6B7A;   /* secondary, WCAG AA on cream */
    --line:        rgba(10, 31, 51, .10);
    --line-2:      rgba(10, 31, 51, .16);

    --shadow-sm:   0 1px 2px rgba(10,31,51,.05);
    --shadow-md:   0 14px 34px -18px rgba(10,31,51,.24);
    --shadow-lg:   0 36px 70px -30px rgba(10,31,51,.30);

    --radius-sm: 12px;
    --radius:    16px;
    --radius-lg: 24px;

    --container: 1160px;
    --gutter: clamp(20px, 5vw, 56px);

    --serif: 'Thmanyah Serif', 'Times New Roman', serif;
    --sans:  'Thmanyah Sans', system-ui, 'Segoe UI', Tahoma, sans-serif;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 86px;
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    color: var(--body);
    background: var(--cream);
    line-height: 1.8;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--navy); color: #fff; }

/* ----------------------------- Typography ------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.18;
    font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.55rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
p { color: var(--body); }
strong { color: var(--ink); font-weight: 700; }

/* ----------------------------- Layout ----------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(70px, 10vw, 132px); position: relative; }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--line { border-top: 1px solid var(--line); }
.section--navy {
    background: var(--navy); color: #C4D2E2; overflow: hidden; isolation: isolate;
}
.section--navy h2, .section--navy h3 { color: #fff; }

/* Section head */
.section-head { max-width: 660px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
    font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600);
    margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--orange); display: inline-block; }
.eyebrow.no-rule::before { display: none; }
.section--navy .eyebrow { color: var(--orange); }
.section-head h2 { margin-bottom: 18px; }
.section-head .lead { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }
.section--navy .section-head .lead { color: #9DB1C8; }

/* ----------------------------- Buttons ---------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: 14px 28px;
    border-radius: 100px; transition: transform .3s var(--ease), background-color .3s var(--ease),
    color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-text { padding: 14px 6px; color: var(--ink); font-weight: 600; }
.btn-text svg { transition: transform .3s var(--ease); }
.btn-text:hover { color: var(--orange-600); }
.btn-text:hover svg { transform: translateX(-5px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================== HEADER ============================= */
/* Floating pill bar */
.site-header { position: fixed; inset-block-start: 14px; inset-inline: 0; z-index: 100;
    padding-inline: clamp(14px, 4vw, 40px); transition: inset-block-start .4s var(--ease); }
.header-bar { position: relative; max-width: 1240px; margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px); border: 1px solid var(--line);
    border-radius: 100px; box-shadow: 0 16px 40px -18px rgba(10,31,51,.24);
    padding: 8px 10px; transition: box-shadow .4s var(--ease), background-color .4s var(--ease); }
.site-header.scrolled { inset-block-start: 8px; }
.scrolled .header-bar { background: rgba(255,255,255,.96); box-shadow: 0 18px 48px -18px rgba(10,31,51,.32); }

.brand { display: flex; align-items: center; padding-inline-start: 10px; }
.brand img { height: 58px; width: auto; transition: height .4s var(--ease); }
.scrolled .brand img { height: 50px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { font-weight: 500; color: var(--ink); padding: 8px 16px; font-size: .98rem;
    position: relative; transition: color .25s; }
.main-nav a::after { content: ''; position: absolute; inset-block-end: 0; inset-inline: 50%;
    width: 0; height: 2px; background: var(--orange); border-radius: 2px;
    transition: width .3s var(--ease), inset-inline-start .3s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--orange-600); }
.main-nav a:hover::after, .main-nav a.active::after { width: 18px; inset-inline-start: calc(50% - 9px); }

.header-end { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center;
    justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
    position: relative; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; inset-inline: 0;
    height: 2px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle span::before { inset-block-start: -7px; } .nav-toggle span::after { inset-block-start: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { inset-block-start: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { inset-block-start: 0; transform: rotate(-45deg); }

/* ============================== HERO ============================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-block: calc(var(--header-h) + 44px) 72px; overflow: hidden; isolation: isolate; }
.hero::before { /* faint warm focal glow */
    content: ''; position: absolute; inset: 0; z-index: -3;
    background: radial-gradient(660px 360px at 50% 40%, rgba(226,89,34,.055), transparent 72%); }
.hero-pattern { position: absolute; inset: 0; z-index: -2; pointer-events: none;
    -webkit-mask: radial-gradient(56% 74% at 22% 50%, #000 30%, transparent 82%);
            mask: radial-gradient(56% 74% at 22% 50%, #000 30%, transparent 82%); }
.hero-pattern svg { position: absolute; top: 50%; left: 22%;  /* visual counterweight on the end side */
    transform: translate(-50%, -50%); width: min(860px, 90%); height: auto; }
.hero-pattern .l-navy { stroke: var(--navy); opacity: .10; }
.hero-pattern .l-orange { stroke: var(--orange); opacity: .50; }
.hero::after { /* soft top fade so header reads cleanly */
    content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 200px; z-index: -1;
    background: linear-gradient(180deg, var(--cream), transparent); }

.hero-inner { text-align: start; max-width: 1040px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; background: var(--paper);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 8px 18px; border-radius: 100px;
    font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 34px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { margin-bottom: 32px; white-space: nowrap; font-size: clamp(1.5rem, 3.15vw, 2.6rem); line-height: 1.36; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lead { font-size: clamp(1.04rem, 1.6vw, 1.22rem); color: var(--body); max-width: 580px;
    margin: 0 0 42px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }

/* Hero stats — clean contained panel that grounds the hero */
.hero-stats { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
    margin-top: clamp(46px, 6vw, 78px); background: var(--paper); border: 1px solid var(--line);
    border-radius: 22px; box-shadow: var(--shadow-md); padding: 6px; }
.hero-stat { text-align: center; padding: 16px clamp(22px, 4vw, 48px); }
.hero-stat + .hero-stat { border-inline-start: 1px solid var(--line); }
.hero-stat .num { font-family: var(--serif); font-weight: 800; font-size: clamp(1.85rem, 2.8vw, 2.35rem);
    color: var(--navy); line-height: 1; }
.hero-stat .num span { color: var(--orange); }
.hero-stat .label { font-size: .88rem; color: var(--muted); margin-top: 8px; }

.scroll-cue { position: absolute; inset-block-end: 30px; inset-inline: 0; display: flex; justify-content: center;
    z-index: 1; pointer-events: none; }
.scroll-cue span { width: 27px; height: 46px; border: 2px solid var(--navy-300); border-radius: 100px;
    position: relative; opacity: .7; }
.scroll-cue span::after { content: ''; position: absolute; inset-block-start: 9px; inset-inline-start: 50%;
    width: 4px; height: 9px; background: var(--orange); border-radius: 4px; transform: translateX(-50%);
    animation: cue 1.8s var(--ease) infinite; }

/* ============================== ABOUT ============================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.about-text p + p { margin-top: 18px; }
.about-points { display: grid; gap: 22px; margin-top: 36px; }
.about-point { display: flex; gap: 16px; align-items: flex-start; }
.about-point .ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px;
    background: var(--orange-tint); color: var(--orange-600); display: grid; place-items: center; }
.about-point .ico svg { width: 23px; height: 23px; }
.about-point h4 { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1.04rem; margin-bottom: 3px; }
.about-point p { font-size: .96rem; color: var(--muted); }

.about-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden;
    background: var(--navy); aspect-ratio: 5 / 5.2; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; justify-content: space-between; padding: 38px; color: #fff; }
.about-figure .topo { position: absolute; inset: 0; opacity: .5; }
.about-figure .topo svg { width: 100%; height: 100%; }
.about-figure .topo .a { stroke: rgba(255,255,255,.16); }
.about-figure .topo .b { stroke: var(--orange); opacity: .5; }
.about-figure .ft { position: relative; z-index: 1; font-size: .8rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--orange); font-weight: 700; }
.about-figure .fh { position: relative; z-index: 1; }
.about-figure .fh h3 { color: #fff; font-size: 1.5rem; max-width: 300px; }
.about-figure .fb { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px;
    border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; }
.about-figure .fb .big { font-family: var(--serif); font-weight: 800; font-size: 2.4rem; color: #fff; line-height: 1; }
.about-figure .fb .tx { font-size: .92rem; color: #9DB1C8; }

/* ============================== SERVICES ========================= */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.service-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 36px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-num { font-family: var(--serif); font-size: .95rem; color: var(--orange); font-weight: 700;
    letter-spacing: .05em; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--navy); color: #fff; margin: 14px 0 22px; transition: background-color .4s; }
.service-card:hover .service-icon { background: var(--orange); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.22rem; color: var(--ink); margin-bottom: 16px; }
.service-list { display: grid; gap: 12px; }
.service-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--body); font-size: .97rem; }
.service-list li svg { flex: 0 0 19px; width: 19px; height: 19px; color: var(--orange); margin-top: 5px; }

/* ============================== STATS (navy) ===================== */
.stats-topo { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.stats-topo svg { width: 100%; height: 100%; }
.stats-topo .a { stroke: rgba(255,255,255,.10); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.stat { text-align: center; padding: 14px; }
.stat .ico { width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 13px;
    background: rgba(255,255,255,.07); color: var(--orange); display: grid; place-items: center; }
.stat .ico svg { width: 25px; height: 25px; }
.stat .num { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.7rem); color: #fff; line-height: 1; }
.stat .num span { color: var(--orange); }
.stat .label { color: #9DB1C8; margin-top: 10px; font-size: .94rem; }
.stat + .stat { border-inline-start: 1px solid rgba(255,255,255,.10); }

/* ============================== PORTFOLIO ======================== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.project { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 34px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.project:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project .tag { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700;
    letter-spacing: .03em; color: var(--navy); padding-bottom: 18px; border-bottom: 1px solid var(--line);
    margin-bottom: 18px; width: 100%; }
.project .tag svg { width: 17px; height: 17px; color: var(--orange); }
.project h3 { font-family: var(--sans); font-weight: 700; font-size: 1.16rem; color: var(--ink); margin-bottom: 16px; }
.project ul { display: grid; gap: 11px; }
.project ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); font-size: .95rem; }
.project ul li svg { flex: 0 0 17px; width: 17px; height: 17px; color: var(--orange); margin-top: 5px; }

/* ============================== TEAM ============================= */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.team-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.role .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--orange-tint); color: var(--orange-600);
    display: grid; place-items: center; margin-bottom: 16px; }
.role .ico svg { width: 23px; height: 23px; }
.role h4 { font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.role p { font-size: .88rem; color: var(--muted); }

/* ===================== VISION (compact, inside About) =========== */
.about-vision { margin-top: 32px; padding: 22px 24px; background: var(--cream);
    border: 1px solid var(--line); border-inline-start: 3px solid var(--orange); border-radius: 14px; }
.about-vision .av-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans);
    font-weight: 700; color: var(--navy); font-size: .82rem; letter-spacing: .05em; margin-bottom: 10px; }
.about-vision .av-label svg { width: 18px; height: 18px; color: var(--orange); }
.about-vision p { font-size: .97rem; color: var(--body); line-height: 1.8; }
.about-vision p b { color: var(--orange-600); font-weight: 700; }

/* ============================== CONTACT ========================== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 4vw, 60px); align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item .ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--navy);
    color: #fff; display: grid; place-items: center; }
.contact-item .ico svg { width: 23px; height: 23px; }
.contact-item .lbl { font-size: .78rem; color: var(--muted); margin-bottom: 4px; letter-spacing: .04em; }
.contact-item .val { font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.55; }
.contact-item .val a:hover { color: var(--orange-600); }
.contact-socials { display: flex; gap: 10px; margin-top: 8px; }
.contact-socials a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
    display: grid; place-items: center; color: var(--navy); transition: .3s var(--ease); }
.contact-socials a:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-3px); }
.contact-socials a svg { width: 21px; height: 21px; }

.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 42px); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .92rem; }
.field label .req { color: var(--orange); }
.field input, .field textarea { width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
    background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px;
    transition: border-color .25s, box-shadow .25s, background-color .25s; }
.field textarea { min-height: 124px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5C6B7A; opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff;
    box-shadow: 0 0 0 4px rgba(226,89,34,.10); }
.field.invalid input, .field.invalid textarea { border-color: #D14343; box-shadow: 0 0 0 4px rgba(209,67,67,.12); }
.field .err { color: #D14343; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.form-note svg { width: 16px; height: 16px; color: var(--navy-300); }
.form-alert { display: none; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: .95rem; }
.form-alert.show { display: flex; align-items: center; gap: 12px; }
.form-alert.ok { background: #E7F6EC; color: #1B7A43; border: 1px solid #BFE6CD; }
.form-alert.bad { background: #FBE9E9; color: #B02A2A; border: 1px solid #F2C7C7; }
.form-alert svg { width: 21px; height: 21px; flex-shrink: 0; }
.btn-submit .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-submit.loading .spinner { display: inline-block; }

.map-wrap { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    height: 300px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ============================== FOOTER ========================== */
.site-footer { background: var(--navy); color: #C2D0E0; padding-block: clamp(56px, 7vw, 86px) 0;
    position: relative; overflow: hidden; }
.footer-topo { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.footer-topo svg { width: 100%; height: 100%; }
.footer-topo .a { stroke: rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; position: relative; z-index: 1; }
.footer-logo { display: inline-flex; background: #fff; padding: 16px 22px; border-radius: 18px;
    margin-bottom: 22px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.5); }
.footer-logo img { height: 66px; }
.footer-brand p { font-size: .95rem; max-width: 330px; line-height: 1.9; color: #BBCADC; }
.footer-col h4 { font-family: var(--sans); color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 700; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul li a { font-size: .94rem; color: #C2D0E0; transition: color .25s, padding .25s;
    display: inline-flex; align-items: center; gap: 9px; }
.footer-col ul li a:hover { color: #fff; padding-inline-start: 4px; }
.footer-col ul li a svg { width: 15px; height: 15px; color: var(--orange); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem;
    margin-bottom: 16px; line-height: 1.75; }
.footer-contact li svg { flex: 0 0 19px; width: 19px; height: 19px; color: var(--orange); margin-top: 4px; }
.footer-contact li span, .footer-contact li a { flex: 1; min-width: 0; text-align: right; word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 52px; padding-block: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    position: relative; z-index: 1; font-size: .87rem; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07);
    display: grid; place-items: center; color: #fff; transition: .3s var(--ease); }
.footer-bottom .socials a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-bottom .socials a svg { width: 18px; height: 18px; }

/* ============================== FLOATING ======================== */
.floats { position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 90;
    display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    box-shadow: var(--shadow-md); transition: transform .3s var(--ease); color: #fff; }
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab svg { width: 26px; height: 26px; }
.fab.whatsapp { background: #25D366; }
.fab.call { background: var(--orange); }
.to-top { position: fixed; inset-block-end: 24px; inset-inline-start: 24px; z-index: 90;
    width: 48px; height: 48px; border-radius: 13px; background: var(--navy); color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: .35s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top svg { width: 23px; height: 23px; }

/* ============================== REVEAL ========================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* slide in from the right (RTL: text enters from the start side) */
.reveal.from-right { transform: translateX(54px); }
.reveal.from-right.in { transform: none; }
.reveal-d1 { transition-delay: .07s; } .reveal-d2 { transition-delay: .14s; }
.reveal-d3 { transition-delay: .21s; } .reveal-d4 { transition-delay: .28s; }

/* ============================== KEYFRAMES ===================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ============================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .about-grid, .team-grid { grid-template-columns: 1fr; }
    .about-figure { max-width: 480px; margin-inline: auto; aspect-ratio: 5 / 4; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
    .stat:nth-child(3) { border-inline-start: none; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    :root { --header-h: 76px; }
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .main-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; inset-block-start: calc(100% + 10px); inset-inline: 0;
        background: var(--paper); padding: 14px; border-radius: 22px; box-shadow: var(--shadow-lg);
        border: 1px solid var(--line); }
    .main-nav.open a { padding: 13px 16px; font-size: 1.02rem; }
    .main-nav.open a::after { display: none; }
    .services-grid, .portfolio-grid, .team-roles { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { white-space: normal; font-size: clamp(1.7rem, 6.6vw, 2.35rem); }
    .hero-pattern { -webkit-mask: radial-gradient(72% 56% at 50% 40%, #000 26%, transparent 80%);
        mask: radial-gradient(72% 56% at 50% 40%, #000 26%, transparent 80%); }
    .hero-pattern svg { left: 50%; width: min(640px, 124%); }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .header-end .btn-navy { display: none; }   /* keep the pill uncrowded on phones */
    .brand { padding-inline-start: 6px; }
    .brand img { height: 44px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-inline-start: 1px solid rgba(255,255,255,.10); }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-stats { display: flex; width: 100%; }
    .hero-stat { flex: 1; padding: 14px 6px; }
    .hero-stat .num { font-size: 1.55rem; }
    .hero-stat .label { font-size: .76rem; }
}

/* ============================== A11Y ========================= */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: -9999px; inset-block-start: 12px; z-index: 200;
    background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { inset-inline-start: 12px; }
.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; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
