/* =====================================================================
   Navy Heritage design system | فني سباكة وكهرباء حي العارض (Plumber and Electrician in Al Arid)
   ===================================================================== */

:root {
  --navy: #1e3a5f;
  --copper: #d4a574;
  --copper-strong: #c08f5c;
  --bg: #f8f6f1;
  --bg-alt: #efebe2;
  --surface: #ffffff;
  --text: #12263f;
  --muted: #56667a;
  --border: rgba(30, 58, 95, .14);
  --heading: var(--navy);
  --on-copper: #0a1422;
  --shadow: 0 10px 30px rgba(18, 38, 63, .08);
  --shadow-lg: 0 18px 44px rgba(18, 38, 63, .16);
  --radius: 20px;
  --header-h: 72px;
  --wa: #1fa855;
  /* premium card tokens (light theme) */
  --card-base: #ffffff;
  --card-overlay: rgba(30, 58, 95, .02);
  --card-shadow: 0 10px 40px rgba(18, 38, 63, .12);
  --card-border: linear-gradient(135deg, rgba(212, 165, 116, .75), rgba(30, 58, 95, .10) 42%, rgba(30, 58, 95, .06) 68%, rgba(212, 165, 116, .45));
  --card-border-hover: linear-gradient(135deg, #e8c29a, rgba(212, 165, 116, .35) 45%, rgba(212, 165, 116, .25) 65%, #d4a574);
  --card-glow: 0 18px 50px rgba(212, 165, 116, .28);
  --gold-grad: linear-gradient(135deg, #f1d4ae 0%, #d4a574 48%, #a9743f 100%);
  --gold-glow: 0 8px 24px rgba(212, 165, 116, .42);
}

:root[data-theme="dark"] {
  --bg: #0a1422;
  --bg-alt: #0e1b2e;
  --surface: #12223a;
  --text: #eaf0f7;
  --muted: #9db0c6;
  --border: rgba(212, 165, 116, .18);
  --heading: #f4e6d4;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .5);
  --card-base: #0b1829;                      /* very dark navy */
  --card-overlay: rgba(255, 255, 255, .03);  /* subtle transparent overlay */
  --card-shadow: 0 10px 40px rgba(0, 0, 0, .2);
  --card-border: linear-gradient(135deg, rgba(212, 165, 116, .6), rgba(255, 255, 255, .07) 40%, rgba(255, 255, 255, .04) 65%, rgba(212, 165, 116, .38));
  --card-border-hover: linear-gradient(135deg, #e8c29a, rgba(212, 165, 116, .4) 45%, rgba(255, 255, 255, .1) 65%, #d4a574);
  --card-glow: 0 18px 54px rgba(212, 165, 116, .22);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 2rem); -webkit-text-size-adjust: 100%; font-size: 106.25%; }
html[lang="ar"] body { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }
html[lang="en"] body { font-family: 'Inter', 'Cairo', system-ui, sans-serif; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background .3s, color .3s;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 200;
  background: var(--copper); color: var(--on-copper); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Icons ---------- */
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .7rem 1.3rem; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-cta { background: var(--copper); color: var(--on-copper); box-shadow: 0 8px 20px rgba(212, 165, 116, .35); }
.btn-cta:hover { background: #dcb284; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(31, 168, 85, .3); }
.btn-wa:hover { background: #23b85d; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-width: 42px; height: 42px; padding: 0 .6rem;
  background: transparent; border: 1px solid var(--border); border-radius: 12px;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--copper) 18%, transparent); border-color: var(--copper); }
.lang-label { font-size: .8rem; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; z-index: 100;
  inset: calc(.6rem + env(safe-area-inset-top, 0px)) .6rem auto .6rem;
  max-width: 1240px; margin-inline: auto;
  color: #fff;
  background: rgba(10, 20, 34, .45);
  backdrop-filter: blur(15px) saturate(140%); -webkit-backdrop-filter: blur(15px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(212, 165, 116, .30);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(10, 20, 34, .8);
  border-bottom-color: rgba(212, 165, 116, .45);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .35);
}
.site-header .container { width: 100%; padding-inline: 1.1rem; margin: 0; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 3px;
  display: grid; place-items: center; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; }
.brand-text small { font-size: .72rem; opacity: .8; }

.main-nav { display: flex; gap: .15rem; margin-inline: auto; }
.main-nav a { padding: .45rem .8rem; border-radius: 10px; font-weight: 600; font-size: .94rem; opacity: .9; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a.is-active { background: color-mix(in srgb, var(--copper) 22%, transparent); color: var(--copper); opacity: 1; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.site-header .icon-btn { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .04); }
.site-header .icon-btn:hover { border-color: var(--copper); background: rgba(212, 165, 116, .18); }

.ico-sun { display: none; }
:root[data-theme="dark"] .ico-sun { display: block; }
:root[data-theme="dark"] .ico-moon { display: none; }

.burger { display: none; }
.burger .ico-shut { display: none; }
.burger[aria-expanded="true"] .ico-shut { display: block; }
.burger[aria-expanded="true"] .ico-open { display: none; }

/* Mobile menu: animated open/close (JS toggles .is-open, then [hidden] after the transition) */
.mobile-menu {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  color: #fff; border-top: 1px solid rgba(212, 165, 116, .22);
  transition: grid-template-rows .32s ease, opacity .28s ease;
}
.mobile-menu.is-open { grid-template-rows: 1fr; opacity: 1; }
.mobile-menu nav { display: grid; min-height: 0; overflow-y: auto; max-height: calc(100svh - var(--header-h) - 2.4rem); padding-block: .6rem; }
.mobile-menu a { padding: .95rem .5rem; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .08); transition: color .2s, padding .2s; }
.mobile-menu a:hover { color: var(--copper); padding-inline-start: .9rem; }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 20, 34, .75) 0%, rgba(10, 20, 34, .55) 40%, rgba(10, 20, 34, .92) 100%),
    linear-gradient(90deg, rgba(30, 58, 95, .65), rgba(30, 58, 95, .15));
}
.hero-inner { padding-block: calc(var(--header-h) + 3rem) 4rem; }
.hero-content { max-width: 720px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.25; font-weight: 800; margin: 1rem 0; }
.hero p { font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 56ch; color: rgba(255, 255, 255, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-stats li { display: grid; }
.hero-stats strong { font-size: 2rem; font-weight: 800; color: var(--copper); line-height: 1.2; }
.hero-stats span { font-size: .9rem; color: rgba(255, 255, 255, .8); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--heading); font-weight: 800; line-height: 1.3; margin: .5rem 0; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--copper-strong); background: color-mix(in srgb, var(--copper) 16%, transparent);
  padding: .25rem .85rem; border-radius: 999px;
}
.eyebrow-light { color: var(--copper); background: rgba(212, 165, 116, .16); border: 1px solid rgba(212, 165, 116, .35); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--copper); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.service-card { padding: 1.7rem 1.5rem; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--navy), #2c5282); color: var(--copper);
}
.service-icon .ico { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.3rem; color: var(--heading); margin-bottom: 1rem; font-weight: 800; }
.service-list { display: grid; gap: .45rem; }
.service-list li { position: relative; padding-inline-start: 1.5rem; font-size: .95rem; color: var(--muted); }
.service-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: .9rem; height: .5rem;
  border-inline-start: 2px solid var(--copper); border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg) scale(.9); transform-origin: center;
}

/* ---------- Offers ---------- */
#offersGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.offer-card { overflow: hidden; display: flex; flex-direction: column; }
.offer-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.offer-media > img, .oc-slide img { width: 100%; height: 100%; object-fit: cover; }
.offer-media-empty { width: 100%; height: 100%; background: linear-gradient(135deg, var(--navy), #2c5282); }
.offer-badge {
  position: absolute; z-index: 3; top: .8rem; inset-inline-start: .8rem;
  background: var(--copper); color: var(--on-copper); font-weight: 800; font-size: .85rem;
  padding: .3rem .8rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.offer-badge:empty { display: none; }
.offer-body { padding: 1.3rem; display: grid; gap: .8rem; align-content: start; flex: 1; }
.offer-body h3 { font-size: 1.2rem; color: var(--heading); font-weight: 800; }
.offer-body p { color: var(--muted); font-size: .95rem; }
.offer-body .btn { margin-top: auto; }

.offer-carousel { position: relative; width: 100%; height: 100%; }
.oc-viewport {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.oc-viewport::-webkit-scrollbar { display: none; }
.oc-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: var(--bg-alt); }
.oc-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: rgba(10, 20, 34, .6); color: #fff; backdrop-filter: blur(4px);
  transition: background .2s;
}
.oc-arrow:hover { background: var(--copper); color: var(--on-copper); }
.oc-prev { inset-inline-start: .6rem; }
.oc-next { inset-inline-end: .6rem; }
[dir="rtl"] .oc-arrow .ico { transform: scaleX(-1); }
.oc-dots { position: absolute; z-index: 3; bottom: .7rem; inset-inline: 0; display: flex; justify-content: center; gap: .4rem; }
.oc-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .2s, background .2s; }
.oc-dot.is-active { width: 22px; border-radius: 99px; background: var(--copper); }
.oc-counter {
  position: absolute; z-index: 3; bottom: .6rem; inset-inline-end: .7rem;
  font-size: .75rem; font-weight: 700; color: #fff; background: rgba(10, 20, 34, .6); padding: .1rem .5rem; border-radius: 99px;
}

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; direction: ltr; }
.cd-box { background: var(--navy); color: #fff; border-radius: 12px; padding: .5rem .2rem; text-align: center; line-height: 1.2; }
.cd-box b { display: block; font-size: 1.35rem; color: var(--copper); font-variant-numeric: tabular-nums; }
.cd-box span { font-size: .7rem; opacity: .85; }

/* ---------- Gallery ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.chip {
  padding: .5rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: var(--surface); border: 1px solid var(--border); transition: all .2s;
}
.chip:hover { border-color: var(--copper); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip.is-active { background: var(--copper); border-color: var(--copper); color: var(--on-copper); }

#gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.g-item {
  position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; background: var(--bg-alt); animation: fadeUp .5s both;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.07); }
.g-zoom {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(10, 20, 34, .5); opacity: 0; transition: opacity .25s;
}
.g-zoom .ico { width: 34px; height: 34px; }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { opacity: 1; }

/* ---------- Coverage ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.areas-grid li {
  display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; font-weight: 600;
  transition: border-color .2s, transform .2s;
}
.areas-grid li:hover { border-color: var(--copper); transform: translateY(-2px); }
.areas-grid .ico { color: var(--copper-strong); }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.why-item { text-align: center; padding: 1.6rem 1.2rem; border-radius: var(--radius); }
.why-icon {
  width: 68px; height: 68px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%;
  color: var(--copper-strong); background: color-mix(in srgb, var(--copper) 16%, transparent); border: 1px solid var(--border);
}
.why-icon .ico { width: 30px; height: 30px; }
.why-item h3 { color: var(--heading); font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; }
.why-item p { color: var(--muted); font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); }
.contact-box {
  text-align: center; color: #fff; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; border-radius: 28px;
  background: radial-gradient(circle at 85% 0%, rgba(212, 165, 116, .22), transparent 55%), linear-gradient(135deg, #1e3a5f, #0a1422);
  box-shadow: var(--shadow-lg);
}
.contact-box h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin: .8rem 0 .5rem; }
.contact-box p { max-width: 54ch; margin-inline: auto; color: rgba(255, 255, 255, .85); }
.contact-box .hero-cta { justify-content: center; }
.contact-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin-top: 2rem; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.contact-meta li { display: inline-flex; align-items: center; gap: .5rem; }
.contact-meta .ico { color: var(--copper); }
.contact-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-meta a:hover { color: var(--copper); }
.phone-num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-block: 3rem 2rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: .6rem; max-width: 46ch; }
.footer-logo { display: inline-flex; width: 72px; height: 72px; border-radius: 18px; background: #fff; padding: 4px; overflow: hidden; }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-name { font-size: 1.35rem; font-weight: 800; color: var(--heading); line-height: 1.3; }
.footer-desc { color: var(--muted); font-size: .95rem; line-height: 1.8; }
.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.footer-social[hidden] { display: none; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--border); background: transparent;
  transition: color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.footer-social svg { width: 20px; height: 20px; display: block; }
.footer-social a:hover, .footer-social a:focus-visible {
  color: #d4a574; border-color: #d4a574; transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(212, 165, 116, .5), 0 0 18px rgba(212, 165, 116, .45);
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; font-weight: 600; font-size: .92rem; color: var(--muted); }
.footer-nav a:hover { color: var(--copper-strong); }
.footer-sep { width: 100%; height: 1px; border: 0; margin: .2rem 0 0; background: var(--border); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.copy { font-size: .85rem; color: var(--muted); }
.footer-address { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.footer-address .ico { width: 1.1em; height: 1.1em; color: var(--copper); }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  display: none; position: fixed; z-index: 90; inset-inline: 0; bottom: 0;
  gap: .6rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom, 0));
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
  transform: translateY(110%); transition: transform .3s;
}
.sticky-bar .btn { flex: 1; }
.sticky-bar.is-visible { transform: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(5, 10, 18, .94); padding: 3.5rem 1rem; }
.lb-figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: grid; gap: .8rem; justify-items: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 12px; }
.lb-figure figcaption { color: rgba(255, 255, 255, .8); font-size: .9rem; }
.lb-btn {
  position: absolute; z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s;
}
.lb-btn:hover { background: var(--copper); color: var(--on-copper); }
.lb-close { top: calc(1rem + env(safe-area-inset-top, 0)); inset-inline-end: 1rem; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { inset-inline-start: 1rem; }
.lb-next { inset-inline-end: 1rem; }
[dir="rtl"] .lb-prev .ico, [dir="rtl"] .lb-next .ico { transform: scaleX(-1); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .header-actions { margin-inline-start: auto !important; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand-text small { display: none; }
  .header-call { display: none; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 76px; }
  .hero-stats { gap: 1rem 1.8rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; }
}

/* =====================================================================
   PREMIUM LAYER | Navy Heritage + Glassmorphism
   (placed after the base rules so it refines them; admin styles follow)
   ===================================================================== */

/* ---------- Global ---------- */
body {
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(212, 165, 116, .09), transparent 62%),
    radial-gradient(900px 520px at -6% 38%, rgba(44, 82, 130, .22), transparent 62%),
    var(--bg);
  background-attachment: fixed, fixed, scroll;
}
:root:not([data-theme="dark"]) body {
  background:
    radial-gradient(1100px 560px at 88% -8%, rgba(212, 165, 116, .16), transparent 62%),
    var(--bg);
}
.section { position: relative; padding-block: 6rem; }
.section-alt, .contact { background: linear-gradient(180deg, var(--bg-alt), color-mix(in srgb, var(--bg-alt) 70%, var(--bg))); }
.section-head { margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.01em; }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin: 1rem auto 0; border-radius: 99px;
  background: var(--gold-grad); box-shadow: 0 0 18px rgba(212, 165, 116, .55);
}
.section-head p { font-size: 1.08rem; margin-top: .9rem; }
.eyebrow {
  font-size: .88rem; padding: .35rem 1.05rem; border: 1px solid color-mix(in srgb, var(--copper) 35%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Buttons ---------- */
.btn { font-weight: 800; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.15rem; min-height: 60px; border-radius: 999px; }
.btn-cta {
  background: linear-gradient(135deg, #f0cfa6 0%, #d4a574 50%, #b88450 100%);
  box-shadow: 0 10px 28px rgba(212, 165, 116, .42), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-cta:hover { background: linear-gradient(135deg, #f6d9b5 0%, #dcae7c 50%, #c4905a 100%); box-shadow: 0 14px 36px rgba(212, 165, 116, .58), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-wa { background: linear-gradient(135deg, #2bc46b, #1a9a4e); box-shadow: 0 10px 28px rgba(31, 168, 85, .38), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-wa:hover { background: linear-gradient(135deg, #34d378, #1fa855); box-shadow: 0 14px 36px rgba(31, 168, 85, .5); }

/* ---------- Header: brand, nav, actions ---------- */
.brand-logo { box-shadow: 0 0 0 2px rgba(212, 165, 116, .55), 0 6px 18px rgba(0, 0, 0, .3); }
.brand-text strong { font-weight: 900; }
.main-nav a { font-size: 1rem; }
.main-nav a:hover, .main-nav a.is-active { background: rgba(212, 165, 116, .16); color: var(--copper); }
.header-actions { flex: none; }
.header-call { box-shadow: 0 6px 18px rgba(212, 165, 116, .35); }

/* Hamburger (.menu-btn / .burger): always shown below 1024px, never shrinks, never pushed off-screen */
.menu-btn, .burger { display: none; flex: none; width: 46px; min-width: 46px; height: 46px; padding: 0; border-radius: 14px; position: relative; z-index: 2; }
.menu-btn .ico { width: 24px; height: 24px; stroke-width: 2.2; }
.menu-btn .ico-shut { display: none; }
.menu-btn[aria-expanded="true"] .ico-shut { display: block; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
@media (max-width: 1023px) {
  .menu-btn, .burger { display: inline-flex !important; align-items: center; justify-content: center; visibility: visible; opacity: 1; }
  .header-inner { gap: .6rem; }
  .brand { min-width: 0; flex: 1 1 auto; }          /* brand gives way instead of pushing the buttons out */
  .brand-text { min-width: 0; }
  .brand-text strong { font-size: 1rem; line-height: 1.25; }
  .header-actions { gap: .4rem; }
}
@media (max-width: 480px) {
  .site-header { inset-inline: .4rem; border-radius: 18px; }
  .site-header .container { padding-inline: .7rem; }
  .brand { gap: .5rem; }
  .brand-logo { width: 40px; height: 40px; border-radius: 11px; }
  .brand-text strong { font-size: .88rem; }
  .icon-btn { min-width: 40px; height: 40px; }
  .menu-btn, .burger { width: 42px; min-width: 42px; height: 42px; }
}
@media (max-width: 380px) { .lang-label { display: none; } }

/* ---------- Hero ---------- */
.hero-inner { padding-block: calc(var(--header-h) + 4.5rem) 5rem; }
.hero-overlay {
  background:
    radial-gradient(ellipse at 75% 20%, rgba(212, 165, 116, .20), transparent 55%),
    linear-gradient(180deg, rgba(6, 13, 24, .86) 0%, rgba(8, 17, 30, .62) 38%, rgba(6, 13, 24, .96) 100%),
    linear-gradient(90deg, rgba(30, 58, 95, .78), rgba(30, 58, 95, .12));
}
.hero h1 { font-weight: 900; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.2; letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); margin: 1.2rem 0; }
.hero p { font-size: clamp(1.08rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .92); text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.eyebrow-light { background: rgba(212, 165, 116, .14); border: 1px solid rgba(212, 165, 116, .45); color: #f1d4ae; }
.hero-cta { gap: 1rem; margin-top: 2.4rem; }
.hero-stats { border-top: 0; padding-top: 0; margin-top: 3.2rem; gap: 1rem; }
.hero-stats li {
  padding: .9rem 1.5rem; border-radius: 18px; min-width: 120px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-stats strong { font-size: 2.2rem; font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Premium cards: gradient border + dark navy glass + soft shadow ---------- */
.card, .why-item, .contact-box {
  border: 1px solid transparent; border-radius: var(--radius);
  background:
    linear-gradient(var(--card-overlay), var(--card-overlay)) padding-box,
    linear-gradient(var(--card-base), var(--card-base)) padding-box,
    var(--card-border) border-box;
  box-shadow: var(--card-shadow);
}
.card, .why-item { transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease; }
.card.reveal, .why-item.reveal { transition: opacity .7s ease, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease; }
.card:hover, .why-item:hover,
.card.reveal.is-in:hover, .why-item.reveal.is-in:hover {
  transform: translateY(-5px);
  border-color: transparent;
  background:
    linear-gradient(var(--card-overlay), var(--card-overlay)) padding-box,
    linear-gradient(var(--card-base), var(--card-base)) padding-box,
    var(--card-border-hover) border-box;
  box-shadow: var(--card-shadow), var(--card-glow);
}

/* ---------- Services ---------- */
.services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.service-card { padding: 2rem 1.9rem; }
.service-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid color-mix(in srgb, var(--copper) 22%, transparent); }
.service-card h3 { margin: 0; font-size: 1.45rem; font-weight: 900; line-height: 1.25; }
.service-icon, .why-icon {
  background: var(--gold-grad); color: #1a2433; border: 0;
  box-shadow: var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.service-icon { width: 60px; height: 60px; flex: none; margin: 0; border-radius: 18px; }
.service-icon .ico { width: 30px; height: 30px; stroke-width: 2; }
.service-card:hover .service-icon, .why-item:hover .why-icon { box-shadow: 0 10px 34px rgba(212, 165, 116, .65), inset 0 1px 0 rgba(255, 255, 255, .55); }
.service-list { grid-template-columns: 1fr 1fr; gap: .7rem 1.1rem; align-content: start; }
.service-list li { font-size: .98rem; line-height: 1.5; padding-inline-start: 1.45rem; }
.service-list li::before { width: .85rem; height: .45rem; top: .52em; }
@media (max-width: 820px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .service-card { padding: 1.6rem 1.25rem; }
  .service-list { gap: .6rem .7rem; }
  .service-list li { font-size: .9rem; padding-inline-start: 1.25rem; }
}

/* ---------- Why us ---------- */
.why-item { padding: 2.2rem 1.5rem; }
.why-icon { width: 76px; height: 76px; margin: 0 auto 1.3rem; border-radius: 50%; }
.why-icon .ico { width: 34px; height: 34px; stroke-width: 2; }
.why-item h3 { font-size: 1.25rem; font-weight: 900; }
.why-item p { font-size: 1rem; }

/* ---------- Coverage: pill tags ---------- */
.areas-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.areas-grid li {
  padding: .65rem 1.3rem; border-radius: 999px; font-size: 1.02rem;
  background: rgba(255, 255, 255, .03); border: 1px solid color-mix(in srgb, var(--copper) 24%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .3s, box-shadow .3s, transform .3s, background .3s, color .3s;
}
:root:not([data-theme="dark"]) .areas-grid li { background: rgba(255, 255, 255, .7); }
.areas-grid li:hover {
  border-color: var(--copper); transform: translateY(-2px);
  background: color-mix(in srgb, var(--copper) 12%, transparent);
  box-shadow: 0 0 0 1px rgba(212, 165, 116, .55), 0 0 24px rgba(212, 165, 116, .45);
}
.areas-grid .ico { color: var(--copper); width: 1.15em; height: 1.15em; }

/* ---------- Contact ---------- */
.contact-box {
  color: #fff; padding: clamp(2.6rem, 6vw, 4.5rem) 1.5rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(212, 165, 116, .24), transparent 55%) padding-box,
    linear-gradient(135deg, #1e3a5f, #0a1422) padding-box,
    var(--card-border-hover) border-box;
  box-shadow: var(--card-shadow), 0 24px 70px rgba(212, 165, 116, .12);
}
.contact-box:hover { transform: none; box-shadow: var(--card-shadow), 0 26px 80px rgba(212, 165, 116, .22); }
.contact-box h2 { font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.contact-box p { font-size: 1.1rem; }
.contact-meta { font-size: 1.02rem; }

/* ---------- Offers / gallery / chips polish ---------- */
.offer-card { overflow: hidden; }
.offer-body h3 { font-weight: 900; }
.g-item { border-radius: var(--radius); }
.chip { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip:hover { box-shadow: 0 0 18px rgba(212, 165, 116, .3); }

/* ---------- Footer & sticky bar ---------- */
.site-footer { border-top: 1px solid color-mix(in srgb, var(--copper) 30%, transparent); padding-block: 2.6rem; }
.sticky-bar { backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-top-color: rgba(212, 165, 116, .3); }

@media (max-width: 720px) {
  .section { padding-block: 4.5rem; }
  .section-head { margin-bottom: 2.5rem; }
  .hero-inner { padding-block: calc(var(--header-h) + 3.5rem) 3.5rem; }
  .btn-lg { padding: 1rem 1.8rem; font-size: 1.08rem; min-height: 56px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats li { flex: 1 1 calc(33% - 1rem); min-width: 0; padding: .8rem .9rem; text-align: center; }
  .hero-stats strong { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .card:hover, .why-item:hover, .card.reveal.is-in:hover, .why-item.reveal.is-in:hover { transform: none; }
}

/* =====================================================================
   ADMIN PANEL (admin.html) | all classes prefixed .adm-
   ===================================================================== */
.adm-body { min-height: 100vh; background: var(--bg); padding-bottom: 3rem; }
.adm-sub { color: var(--muted); font-size: .92rem; }
.adm-hint { color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.adm-block { width: 100%; margin-top: 1.2rem; }
.adm-empty { text-align: center; color: var(--muted); padding: 1.5rem 0; }

/* Buttons */
.adm-btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.adm-btn-ghost:hover { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 14%, transparent); }
.adm-btn-outline { background: transparent; border: 1.5px dashed var(--copper); color: var(--heading); }
.adm-btn-outline:hover { background: color-mix(in srgb, var(--copper) 14%, transparent); }
.adm-btn-danger { background: transparent; border: 1px solid rgba(214, 69, 69, .5); color: #d64545; }
.adm-btn-danger:hover { background: rgba(214, 69, 69, .1); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Login */
.adm-login {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(circle at 80% 0%, rgba(212, 165, 116, .2), transparent 50%), linear-gradient(160deg, #1e3a5f, #0a1422);
}
.adm-login-card {
  width: min(420px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 24px; padding: 2rem 1.6rem; box-shadow: var(--shadow-lg); text-align: center;
}
.adm-login-card form { text-align: start; }
.adm-login-logo { width: 84px; height: 84px; margin: 0 auto 1rem; background: #fff; border-radius: 20px; padding: 6px; box-shadow: var(--shadow); }
.adm-login-logo img { width: 100%; height: 100%; object-fit: contain; }
.adm-login-card h1 { font-size: 1.6rem; color: var(--heading); font-weight: 800; }
.adm-login-card .adm-sub { margin: .3rem 0 1.4rem; }
.adm-back { display: inline-block; margin-top: 1.2rem; font-size: .88rem; color: var(--muted); }
.adm-back:hover { color: var(--copper-strong); }
.adm-error { margin-top: .8rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(214, 69, 69, .12); color: #d64545; font-size: .9rem; font-weight: 600; }

/* Inputs */
.adm-label { display: block; font-weight: 700; font-size: .9rem; margin: 1rem 0 .35rem; color: var(--heading); }
.adm-input {
  width: 100%; padding: .7rem .9rem; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.adm-input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 28%, transparent); }
textarea.adm-input { resize: vertical; min-height: 84px; }
.adm-narrow { max-width: 160px; }
.adm-pass { position: relative; }
.adm-pass .adm-input { padding-inline-end: 3rem; }
.adm-pass-btn { position: absolute; inset-block: 0; inset-inline-end: .4rem; width: 40px; background: none; border: 0; color: var(--muted); display: grid; place-items: center; }
.adm-inline { display: flex; gap: .5rem; align-items: center; }

/* Top bar */
.adm-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); color: var(--text); padding-top: env(safe-area-inset-top, 0); }
.adm-top-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.adm-top-actions { display: flex; align-items: center; gap: .6rem; }
.adm-user { font-size: .82rem; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Cards */
.adm-main { display: grid; gap: 1.5rem; padding-block: 1.75rem; }
.adm-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(1.1rem, 3vw, 1.8rem); }
.adm-card-head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.adm-card-head > div { flex: 1; min-width: 0; }
.adm-card-head h2 { font-size: 1.3rem; color: var(--heading); font-weight: 800; }
.adm-card-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), #2c5282); color: var(--copper); }
.adm-pill { flex: none; padding: .25rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 800; background: color-mix(in srgb, var(--copper) 20%, transparent); color: var(--copper-strong); }

/* Cover */
.adm-cover-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.adm-cover-preview { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--border); }
.adm-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.adm-cover-actions { display: grid; gap: .7rem; }

/* Forms */
.adm-form { display: grid; gap: .2rem; padding: 1.2rem; margin-bottom: 1.5rem; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); }
.adm-form-title { font-size: 1.05rem; font-weight: 800; color: var(--heading); }
.adm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.adm-fieldset { border: 1px solid var(--border); border-radius: 14px; padding: .4rem 1rem 1rem; margin: 1rem 0 0; min-width: 0; }
.adm-fieldset legend { padding-inline: .4rem; margin: 0; }
.adm-radios { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 600; }
.adm-radios label { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.adm-radios input, .adm-switch input { accent-color: var(--copper-strong); }
.adm-badge-fields { margin-top: .4rem; }
.adm-form-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.adm-switch-wrap { display: flex; align-items: center; padding-top: 1.6rem; }
.adm-switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 700; }
.adm-switch input { position: absolute; opacity: 0; pointer-events: none; }
.adm-slider { width: 46px; height: 26px; border-radius: 99px; background: var(--border); position: relative; transition: background .2s; flex: none; }
.adm-slider::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.adm-switch input:checked + .adm-slider { background: var(--wa); }
.adm-switch input:checked + .adm-slider::after { transform: translateX(-20px); }
[dir="ltr"] .adm-switch input:checked + .adm-slider::after { transform: translateX(20px); }
.adm-switch input:focus-visible + .adm-slider { outline: 3px solid var(--copper); outline-offset: 2px; }

/* Thumbnails */
.adm-thumbs { display: flex; flex-wrap: wrap; gap: .7rem; margin: .5rem 0 .8rem; }
.adm-thumbs:empty { display: none; }
.adm-thumb { position: relative; width: 104px; height: 104px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt); }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-thumb-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(10, 20, 34, .75); color: #fff; }
.adm-thumb-x:hover { background: #d64545; }
.adm-thumb-x .ico { width: 14px; height: 14px; }
.adm-thumb-tag { position: absolute; inset-inline: 0; bottom: 0; text-align: center; font-size: .7rem; font-weight: 700; background: var(--copper); color: var(--on-copper); padding: .1rem 0; }

/* Lists */
.adm-list { display: grid; gap: .8rem; }
.adm-item { display: flex; align-items: center; gap: 1rem; padding: .8rem; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); }
.adm-item-img { width: 84px; height: 66px; flex: none; border-radius: 12px; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; color: var(--muted); }
.adm-item-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-item-body { flex: 1; min-width: 0; }
.adm-item-body h4 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--heading); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.adm-item-body p { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.adm-item-actions, .adm-gitem-actions { display: flex; gap: .3rem; flex: none; }
.adm-act { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all .2s; }
.adm-act:hover:not(:disabled) { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 16%, transparent); }
.adm-act:disabled { opacity: .35; cursor: not-allowed; }
.adm-act.is-danger:hover:not(:disabled) { border-color: #d64545; background: rgba(214, 69, 69, .12); color: #d64545; }
.adm-act .ico { width: 18px; height: 18px; }
.adm-tag { display: inline-block; padding: .08rem .6rem; border-radius: 99px; font-size: .74rem; font-weight: 800; background: color-mix(in srgb, var(--copper) 20%, transparent); color: var(--copper-strong); }
.adm-tag.is-on { background: rgba(31, 168, 85, .16); color: var(--wa); }
.adm-tag.is-off { background: rgba(214, 69, 69, .14); color: #d64545; }

.adm-chips { justify-content: flex-start; margin-bottom: 1.2rem; }
.adm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.adm-gitem { margin: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg); }
.adm-gitem img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.adm-gitem figcaption { padding: .5rem .7rem 0; }
.adm-gitem-actions { padding: .5rem .7rem .7rem; justify-content: flex-end; }

/* Toasts */
.adm-toasts { position: fixed; z-index: 400; inset-inline: 0; bottom: calc(1rem + env(safe-area-inset-bottom, 0)); display: grid; justify-items: center; gap: .5rem; pointer-events: none; padding-inline: 1rem; }
.adm-toast { background: #0a1422; color: #fff; border: 1px solid var(--copper); padding: .7rem 1.2rem; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: all .3s; max-width: 100%; }
.adm-toast.is-err { border-color: #d64545; background: #3a1417; }
.adm-toast.is-in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .adm-cover-grid, .adm-row { grid-template-columns: 1fr; }
  .adm-switch-wrap { padding-top: 0; }
  .adm-user { display: none; }
  .adm-item { flex-wrap: wrap; }
  .adm-item-actions { width: 100%; justify-content: flex-end; }
}


/* =====================================================================
   V3 UPDATES
   ===================================================================== */

/* ---------- Offers: horizontal scroll-snap row ---------- */
#offersGrid {
  display: flex; flex-wrap: nowrap; gap: 1.5rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: 1px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  padding: .4rem .25rem 1.2rem; margin-inline: -.25rem;
  scrollbar-width: thin; scrollbar-color: var(--copper) transparent;
}
#offersGrid::-webkit-scrollbar { height: 8px; }
#offersGrid::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--copper) 70%, transparent); border-radius: 99px; }
#offersGrid::-webkit-scrollbar-track { background: transparent; }
#offersGrid > .offer-card { flex: 0 0 min(360px, 86%); scroll-snap-align: center; }
#offersGrid.is-single { justify-content: center; overflow-x: visible; }
#offersGrid.is-single > .offer-card { flex-basis: min(420px, 100%); }

/* ---------- Gallery: marquee ---------- */
.gallery-hint {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  margin: -.6rem auto 1.4rem; text-align: center;
  font-size: .95rem; font-weight: 600; color: var(--muted);
}
.gallery-hint .ico { width: 1.15em; height: 1.15em; color: var(--copper); flex: none; }

#gallery { overflow-x: hidden; overflow-x: clip; }
.g-marquee {
  /* full-bleed in both LTR and RTL: symmetric inline margins, no left/right offsets; no mask / fade overlay */
  width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); position: relative;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain; cursor: grab; user-select: none; -webkit-user-select: none;
}
.g-marquee::-webkit-scrollbar { display: none; }
.g-marquee.is-dragging { cursor: grabbing; }
.g-marquee.is-dragging .g-item { pointer-events: none; }
#gallery-grid.g-track { display: flex; flex-wrap: nowrap; gap: 1rem; width: max-content; padding-block: .3rem; }
#gallery-grid .g-item {
  flex: 0 0 auto; width: clamp(200px, 26vw, 280px); aspect-ratio: 4 / 3;
  animation: none;
}
@media (max-width: 720px) { #gallery-grid .g-item { width: 62vw; max-width: 260px; } }

/* ---------- Coverage: strict grid ---------- */
.areas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .8rem; max-width: 900px; margin-inline: auto; padding: 0; list-style: none;
}
.areas-grid li {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-width: 0; min-height: 52px; padding: .55rem .6rem; text-align: center; line-height: 1.3;
  white-space: nowrap; word-break: normal; overflow-wrap: normal;
}
.areas-grid li span { display: block; white-space: nowrap; word-break: normal; text-align: center; }
.areas-grid .ico { flex: none; }
@media (max-width: 720px) {
  .areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .areas-grid li { padding: .5rem .3rem; gap: .3rem; font-size: .9rem; min-height: 48px; }
  .areas-grid .ico { width: .95em; height: .95em; }
  /* long English names (e.g. Al Sulaimaniyah) need more room: 2 columns on phones */
  html[lang="en"] .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 560px) and (max-width: 720px) {
  html[lang="en"] .areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  html[lang="ar"] .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) { .areas-grid .ico { display: none; } }

/* ---------- Service cards: request button ---------- */
.service-card { display: flex; flex-direction: column; }
.service-card .service-req { margin-top: auto; align-self: stretch; justify-content: center; }
.service-list { margin-bottom: 1.6rem; }

/* ---------- Admin: tabs ---------- */
.adm-tabs {
  position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 40;
  display: flex; gap: .5rem; padding: .5rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab {
  flex: 1 1 0; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border: 1px solid transparent; border-radius: 13px; background: transparent;
  color: var(--text); font: inherit; font-weight: 800; font-size: .98rem; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.adm-tab .ico { width: 1.2em; height: 1.2em; }
.adm-tab:hover { background: color-mix(in srgb, var(--copper) 14%, transparent); }
.adm-tab.active {
  background: #d4a574; color: #0a1422; border-color: #d4a574;
  box-shadow: 0 6px 18px rgba(212, 165, 116, .38);
}
.adm-tab:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.adm-tab-panel { display: none; }
.adm-tab-panel.active { display: flex; flex-direction: column; animation: fadeUp .35s both; }
@media (max-width: 820px) {
  .adm-tab { flex: 0 0 auto; padding: .7rem 1.1rem; font-size: .92rem; }
  .adm-top-actions .adm-preview span { display: none; }
}


/* =====================================================================
   V4: ADMIN WEB-APP REDESIGN
   ===================================================================== */

/* ---- Tab navigation: desktop = top bar (see V3), mobile = bottom app-nav ---- */
.adm-tab-short { display: none; }
.adm-tab-panel.active { gap: 1.25rem; }

/* ---- Toolbar at the top of every tab ---- */
.adm-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
}
.adm-toolbar-title { font-size: 1.35rem; font-weight: 900; color: var(--heading); margin: 0; }
.adm-toolbar-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-inline-start: auto; }
.adm-preview {
  background: linear-gradient(135deg, #f1d4ae 0%, #d4a574 52%, #b9824d 100%); color: #0a1422;
  font-weight: 900; border: 0; box-shadow: 0 8px 22px rgba(212, 165, 116, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.adm-preview:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 165, 116, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.adm-add { background: var(--navy); color: #fff; font-weight: 800; border: 1px solid color-mix(in srgb, var(--copper) 55%, transparent); }
:root[data-theme="dark"] .adm-add { background: #1e3a5f; }
.adm-add:hover { background: #2c5282; transform: translateY(-2px); }
.adm-add .ico, .adm-preview .ico { width: 1.15em; height: 1.15em; }
.adm-btn-outline.adm-solid { background: color-mix(in srgb, var(--copper) 10%, transparent); }

/* ---- Dashboard ---- */
.adm-dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.adm-stat {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow);
}
.adm-stat-head { display: flex; align-items: center; gap: .7rem; }
.adm-stat-head h3 { flex: 1; margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--heading); }
.adm-stat-head .adm-card-icon { width: 42px; height: 42px; border-radius: 12px; }
.adm-stat-cover { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--border); }
.adm-stat-cover img { width: 100%; height: 100%; object-fit: cover; }
.adm-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: .6rem; }
.adm-num { padding: .7rem .5rem; border-radius: 14px; text-align: center; background: var(--bg); border: 1px solid var(--border); }
.adm-num b { display: block; font-size: 1.7rem; font-weight: 900; line-height: 1.15; color: var(--heading); font-variant-numeric: tabular-nums; }
.adm-num span { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; margin-top: .15rem; }
.adm-num.is-ok b { color: #1fa855; }
.adm-num.is-off b { color: var(--copper-strong); }
.adm-dash-thumbs { display: flex; flex-wrap: wrap; gap: .45rem; min-height: 48px; align-items: center; }
.adm-dash-thumb {
  position: relative; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--bg-alt); border: 2px solid #1fa855; color: var(--muted);
}
.adm-dash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-dash-thumb.is-draft, .adm-dash-thumb.is-hidden { border-color: var(--copper); opacity: .7; }
.adm-dash-more { border: 1px dashed var(--copper); font-weight: 800; font-size: .85rem; color: var(--copper-strong); }
.adm-cats { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.adm-cats li { display: flex; align-items: center; justify-content: space-between; padding: .45rem .8rem; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-weight: 700; font-size: .92rem; }
.adm-cats b { min-width: 2rem; text-align: center; padding: .05rem .5rem; border-radius: 99px; background: color-mix(in srgb, var(--copper) 22%, transparent); color: var(--copper-strong); font-variant-numeric: tabular-nums; }
.adm-link {
  margin-top: auto; align-self: flex-start; padding: .5rem .9rem; border-radius: 10px; font: inherit; font-weight: 800; font-size: .88rem;
  color: var(--heading); background: transparent; border: 1px solid var(--border); cursor: pointer; transition: all .2s;
}
.adm-link:hover { border-color: var(--copper); background: color-mix(in srgb, var(--copper) 14%, transparent); }
.adm-link::after { content: " ←"; }
[dir="ltr"] .adm-link::after { content: " →"; }

/* ---- Offers: card grid ---- */
.adm-note { padding-top: 1rem; }
.adm-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.adm-ocard { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.adm-ocard:hover { border-color: var(--copper); box-shadow: var(--shadow); }
.adm-ocard.is-draft, .adm-ocard.is-hidden { opacity: .88; }
.adm-ocard-img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.adm-ocard-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-ocard.is-draft .adm-ocard-img img, .adm-ocard.is-hidden .adm-ocard-img img { filter: grayscale(.55); }
.adm-ocard-badge { position: absolute; top: .6rem; inset-inline-start: .6rem; padding: .22rem .7rem; border-radius: 99px; font-size: .8rem; font-weight: 900; background: var(--copper); color: var(--on-copper); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.adm-ocard-body { padding: .9rem 1rem .4rem; flex: 1; }
.adm-ocard-body h4 { margin: 0 0 .5rem; font-size: 1.02rem; font-weight: 800; color: var(--heading); line-height: 1.4; }
.adm-ocard-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.adm-ocard-body .adm-hint { margin-top: .5rem; }
.adm-status { display: inline-block; padding: .12rem .7rem; border-radius: 99px; font-size: .76rem; font-weight: 900; }
.adm-status.st-published { background: rgba(31, 168, 85, .16); color: #1fa855; }
.adm-status.st-draft { background: rgba(212, 165, 116, .25); color: var(--copper-strong); }
.adm-status.st-hidden { background: rgba(120, 130, 145, .22); color: var(--muted); }
.adm-status.st-expired { background: rgba(214, 69, 69, .15); color: #d64545; }
.adm-ocard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .7rem 1rem 1rem; }
.adm-act-txt { width: auto; height: 36px; display: inline-flex; align-items: center; gap: .35rem; padding: 0 .7rem; font: inherit; font-weight: 700; font-size: .82rem; }
.adm-act-txt .ico { width: 1.05em; height: 1.05em; }
.adm-act.is-danger { color: #d64545; }
.adm-act.is-danger:hover:not(:disabled) { border-color: #d64545; background: rgba(214, 69, 69, .1); }
.adm-act:disabled { opacity: .4; cursor: not-allowed; }
.adm-act-sep { flex: 1; }

/* ---- Gallery: groups ---- */
.adm-ggroup + .adm-ggroup { margin-top: 1.8rem; }
.adm-ggroup-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; padding-bottom: .6rem; font-size: 1.1rem; font-weight: 800; color: var(--heading); border-bottom: 1px dashed color-mix(in srgb, var(--copper) 45%, transparent); }
.adm-gitem { display: flex; flex-direction: column; }
.adm-gitem-cat { padding: .55rem .7rem 0; display: grid; gap: .2rem; }
.adm-gitem-label { font-size: .72rem; font-weight: 800; color: var(--muted); }
.adm-select {
  width: 100%; padding: .45rem .6rem; font: inherit; font-size: .88rem; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.adm-select:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper) 28%, transparent); }
.adm-select:disabled { opacity: .6; cursor: progress; }
.adm-gitem-actions { margin-top: auto; }

@media (max-width: 980px) { .adm-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- MOBILE: bottom app navigation ---- */
@media (max-width: 820px) {
  .adm-main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .adm-dash { grid-template-columns: 1fr; }
  .adm-toolbar-title { font-size: 1.15rem; }
  .adm-toolbar-actions .btn { padding-inline: 1rem; }

  .adm-tabs {
    position: fixed; top: auto; bottom: 0; inset-inline: 0; z-index: 300;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: .15rem;
    margin: 0; padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0; border: 0; border-top: 1px solid color-mix(in srgb, var(--copper) 45%, transparent);
    background: linear-gradient(180deg, #17304f, #0a1422);
    box-shadow: 0 -10px 34px rgba(0, 0, 0, .38);
    overflow: visible;
  }
  .adm-tab {
    flex-direction: column; gap: .2rem; min-width: 0; padding: .55rem .2rem;
    border-radius: 16px; color: rgba(255, 255, 255, .72); font-size: .74rem; font-weight: 800;
  }
  .adm-tab .ico { width: 1.5rem; height: 1.5rem; }
  .adm-tab-full { display: none; }
  .adm-tab-short { display: inline; }
  .adm-tab:hover { background: rgba(212, 165, 116, .12); }
  .adm-tab.active {
    background: rgba(212, 165, 116, .16); color: #d4a574; border-color: transparent; box-shadow: none; position: relative;
  }
  .adm-tab.active::before {
    content: ""; position: absolute; top: -.45rem; left: 28%; right: 28%; height: 3px; border-radius: 0 0 4px 4px; background: #d4a574;
  }
  .adm-tab.active .ico { filter: drop-shadow(0 0 8px rgba(212, 165, 116, .6)); }

  /* keep toasts clear of the bottom nav */
  .adm-toasts { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .adm-offers { grid-template-columns: 1fr; }
  .adm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .adm-tab { font-size: .68rem; }
  .adm-toolbar-actions { width: 100%; }
  .adm-toolbar-actions .btn { flex: 1; justify-content: center; }
}

/* =====================================================================
   V5: ADMIN SOCIAL LINKS + DYNAMIC FOOTER ICONS
   ===================================================================== */
.adm-stat-wide { grid-column: 1 / -1; }
.adm-social-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.adm-social-chip {
  padding: .3rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 800;
  border: 1px dashed var(--border); color: var(--muted);
}
.adm-social-chip.is-on { border-style: solid; border-color: #1fa855; color: #1fa855; background: rgba(31, 168, 85, .12); }
.adm-social-form { display: grid; gap: .2rem; }
.adm-social-form .adm-input { direction: ltr; text-align: left; }
