/* ==========================================================================
   FORMIX DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES
   -------------------------------------------------------------------------- */
:root{
  --navy:#0b1f4d; --navy-2:#102a63; --white:#ffffff; --text:#1c2434; --muted:#6b7280;
  --bg:#f7f8fb; --border:#e7eaf0; --surface:#ffffff; --surface-2:#f8fafc;
  --shadow:0 10px 30px rgba(11,31,77,.08); --container:1200px;
  --hero-logo:url("/assets/images/logo.svg");
}

body.dark{
  --navy:#dbe7ff; --navy-2:#bcd0ff; --white:#0b1220; --text:#e5e7eb; --muted:#9ca3af;
  --bg:#0f172a; --border:#243044; --surface:#111827; --surface-2:#0b1220;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
html,body{
  overflow-wrap:anywhere;
  word-wrap:break-word;
}

@font-face{
  font-family: Vazirmatn;
  src: url("/fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: Vazirmatn;
  src: url("/fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: Vazirmatn;
  src: url("/fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: Vazirmatn;
  src: url("/fonts/vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

body{
  margin:0;
  width:100%;
  max-width:100%;
  position:relative;
  overflow-x:hidden;
  font-family: Vazirmatn, system-ui, -apple-system, "Segoe UI", sans-serif;
  color:var(--text);
  background:var(--surface);
  line-height:1.7;
  transition:.25s;
  padding-left:env(safe-area-inset-left,0px);
  padding-right:env(safe-area-inset-right,0px);
}
a{text-decoration:none;color:inherit}
img,video,iframe{max-width:100%;display:block}
button,input,textarea,select{font-family:inherit}
input,textarea,select{
  font:inherit;
  min-width:0;
  max-width:100%;
}
input[type="search"]{
  -webkit-appearance:none;
  appearance:none;
}

:focus-visible{
  outline:3px solid rgba(11,31,77,.35);
  outline-offset:3px;
}

.skip-link{
  position:absolute;top:-48px;right:16px;z-index:3000;
  background:var(--navy);color:#fff;padding:10px 14px;border-radius:12px;
  transition:top .18s ease;
}
.skip-link:focus{top:12px}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container{
  width:100%;
  max-width:min(var(--container),100%);
  margin-inline:auto;
  padding-inline:clamp(16px,4.5vw,28px);
}
main,header,footer,.topbar,.site-footer{
  min-width:0;
  max-width:100%;
}
#main-content{overflow-x:hidden}
.page-detail{
  padding-block:clamp(20px,4vw,32px) clamp(40px,7vw,64px);
  min-width:0;
}
.page-detail--narrow{max-width:900px}
.page-detail h1{
  color:var(--navy);
  margin:10px 0 16px;
  font-size:clamp(1.4rem,3.2vw,2.15rem);
  line-height:1.35;
  overflow-wrap:anywhere;
}
.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.rich-text{overflow-wrap:anywhere;word-break:break-word}
.rich-text img,.rich-text video,.rich-text iframe{max-width:100%;height:auto;border-radius:14px}
.rich-text table{width:100%;max-width:100%;display:block;overflow-x:auto;border-collapse:collapse}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY SCALE
   -------------------------------------------------------------------------- */
.eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--navy);margin-bottom:8px;display:block}
.lead{font-size:1.15rem;color:var(--muted);line-height:1.8;max-width:640px}
.display-1{font-size:clamp(32px,4.5vw,60px);font-weight:800;line-height:1.15;color:var(--navy)}
.display-2{font-size:clamp(26px,3.5vw,44px);font-weight:800;line-height:1.2;color:var(--navy)}
.display-3{font-size:clamp(22px,2.8vw,34px);font-weight:700;line-height:1.3;color:var(--navy)}
.text-accent{color:var(--navy)}

/* --------------------------------------------------------------------------
   5. TOPBAR / NAVIGATION
   -------------------------------------------------------------------------- */
.topbar{border-bottom:1px solid var(--border);background:var(--surface);position:sticky;top:0;z-index:1000;width:100%;overflow-x:clip}
.nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;transition:.25s;min-width:0}
.brand-center{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:2;max-width:min(42%,220px)}
.brand-center a{pointer-events:auto;display:inline-flex;align-items:center;max-width:100%}
.brand-center img{height:38px;width:auto;max-width:100%;object-fit:contain;transition:.25s}

.left-tools,.header-actions{display:flex;align-items:center;gap:10px;z-index:3;flex:0 0 auto;min-width:0}
.left-tools{gap:8px}

.icon-btn,.theme-toggle{
  width:42px;height:42px;border-radius:10px;border:1px solid var(--border);
  background:var(--surface);display:grid;place-items:center;cursor:pointer;transition:.2s;padding:0;color:var(--text)
}
.icon-btn svg,.theme-toggle svg{
  width:18px;height:18px;stroke:currentColor;fill:none;display:block
}
.search-toggle{color:var(--navy)}
.icon-btn:hover,.theme-toggle:hover{background:var(--surface-2)}

.menu-toggle .bars{width:22px;height:16px;display:flex;flex-direction:column;justify-content:space-between}
.menu-toggle .bars span{display:block;height:2px;background:var(--navy);border-radius:2px}

.search-wrap{border-top:1px solid var(--border);background:var(--surface);max-height:0;overflow:hidden;width:100%;max-width:100%}
.search-wrap.open{max-height:90px}
.search-inner{height:72px;display:flex;align-items:center;min-width:0;width:100%}
.search-box{width:100%;min-width:0;max-width:100%;display:flex;align-items:center;gap:10px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:10px 12px}
.search-box svg{width:18px;height:18px;stroke:var(--muted);flex-shrink:0}
.search-box input{flex:1 1 0;min-width:0;width:auto;border:none;outline:none;background:transparent;color:var(--text);font-size:.95rem}

/* Scrolled state */
.topbar.scrolled{box-shadow:0 10px 25px rgba(0,0,0,.07)}
.topbar.scrolled .nav{height:62px}
.topbar.scrolled .brand-center img{height:32px}
.topbar.scrolled .icon-btn,.topbar.scrolled .theme-toggle{width:38px;height:38px}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;cursor:pointer;border-radius:999px;padding:9px 16px;font-weight:700;transition:.25s;font-size:.92rem;max-width:100%}
.btn-primary{background:#0b1f4d;color:#fff;box-shadow:0 8px 20px rgba(11,31,77,.2)}
.btn-primary:hover{background:#102a63;transform:translateY(-1px)}
.btn-outline{border:1px solid var(--navy);color:var(--navy);background:transparent}
.btn-outline:hover{background:var(--navy);color:#fff}
.btn-light{background:#fff;color:#0b1f4d;border:1px solid #fff}

/* --------------------------------------------------------------------------
   7. SECTION SYSTEM
   -------------------------------------------------------------------------- */
section{padding:clamp(40px,6vw,56px) 0}
.section{padding:clamp(48px,7vw,80px) 0}
.section--sm{padding:clamp(36px,5vw,56px) 0}
.section--dark{background:var(--navy);color:#fff}
.section--dark .eyebrow{color:rgba(255,255,255,.6)}
.section--dark .display-2,.section--dark .display-3{color:#fff}
.section--dark .lead{color:rgba(255,255,255,.7)}
.section--accent{background:var(--bg);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section-header{text-align:center;margin-bottom:48px}
.section-header .lead{margin-inline:auto}
.section-title{margin:0 0 24px;font-size:clamp(24px,2.6vw,36px);color:var(--navy);font-weight:800;text-align:center;overflow-wrap:anywhere;text-wrap:balance}

/* --------------------------------------------------------------------------
   8. HERO (template shape)
   -------------------------------------------------------------------------- */
.hero{
  min-height:calc(100vh - 72px);
  display:flex;align-items:center;position:relative;overflow:hidden;
  background-color:var(--navy);
  border-bottom:1px solid var(--border)
}
.hero::before{
  content:"";position:absolute;top:50%;left:0;width:min(34%,470px);aspect-ratio:1/1;
  transform:translateY(-50%);
  background-image:var(--hero-logo);background-repeat:no-repeat;background-position:center;background-size:contain;
  opacity:.14;pointer-events:none;z-index:0
}
.hero-content{width:min(620px,100%);padding:clamp(28px,5vw,48px) 0;position:relative;z-index:1}
.hero h1{margin:0 0 8px;font-size:clamp(30px,4vw,56px);line-height:1.2;color:#fff;font-weight:800}
.hero p{margin:0 0 24px;color:#f3f4f6;font-size:1.1rem}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:stretch}
.hero .btn-light{background:#fff;color:#0b1f4d;border:1px solid #fff}
.hero .btn-light:hover{background:#f3f4f6}
.hero__media{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
  z-index:0;
}
.hero__scrim{
  position:absolute;inset:0;z-index:0;
  background:linear-gradient(to left,rgba(11,31,77,.45),rgba(11,31,77,.72));
}
.hero__eyebrow{color:rgba(255,255,255,.78);letter-spacing:.18em;font-size:.78rem;font-weight:700;margin:0 0 10px}

/* --------------------------------------------------------------------------
   9. PROJECT CARDS (arch style – homepage featured only)
   -------------------------------------------------------------------------- */
#projects{padding-top:clamp(48px,8vw,88px);padding-bottom:clamp(56px,9vw,96px);background:var(--surface)}
.projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,30px)}
.card-arch{overflow:hidden;aspect-ratio:1/1.08}
.card-arch img{width:100%;height:100%;object-fit:cover;border-radius:999px 999px 0 0 / 999px 999px 0 0}
.card-arch-placeholder{
  width:100%;height:100%;
  border-radius:999px 999px 0 0 / 999px 999px 0 0;
  background:linear-gradient(135deg, rgba(11,31,77,.18), rgba(16,42,99,.35));
}
.card-body{padding:24px 4px 0}
.card-body h3,.card h3{text-align:center;margin:0;color:var(--navy);font-size:1.05rem}
.center{text-align:center;margin-top:24px;display:flex;justify-content:center;gap:10px;flex-wrap:wrap}

/* Homepage featured projects: arched image top, no rectangular card chrome */
#projects .card-project--arch{
  background:transparent;
  border:none;
  border-radius:0;
  overflow:visible;
  box-shadow:none;
}
#projects .card-project--arch:hover{
  border:none;
  box-shadow:none;
}
#projects .card-project--arch .card-project__img{
  aspect-ratio:1/1.08;
  overflow:hidden;
  border-radius:999px 999px 0 0 / 999px 999px 0 0;
  background:var(--surface-2);
}
#projects .card-project--arch .card-project__img img,
#projects .card-project--arch .card-project__img .visual-placeholder{
  border-radius:inherit;
}
#projects .card-project--arch .card-project__body{
  padding:20px 4px 0;
  background:transparent;
}

/* --------------------------------------------------------------------------
   10. LOCATIONS MAP
   -------------------------------------------------------------------------- */
.locations-section{
  padding:72px 0 88px;
  background:linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.locations-layout{
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(240px,380px);
  min-height:580px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
#locationsMainMap{
  width:100%;
  max-width:100%;
  height:100%;
  min-height:580px;
  min-width:0;
  overflow:hidden;
  background:#dbe2ef;
}
.locations-side{
  border-right:1px solid var(--border);
  background:var(--surface);
  display:flex;
  flex-direction:column;
  min-height:580px;
}
.locations-side-head{
  padding:14px;
  border-bottom:1px solid var(--border);
  background:var(--surface-2);
}
.locations-search{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  padding:11px 14px;
  color:var(--text);
  outline:none;
  transition:.2s;
}
.locations-search:focus{
  border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(11,31,77,.12);
}
.locations-list{
  padding:12px;
  overflow:auto;
  max-height:240px;
  border-bottom:1px solid var(--border);
  background:var(--surface-2);
}
.loc-item{
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  margin-bottom:8px;
  transition:.2s;
}
.loc-item:last-child{margin-bottom:0}
.loc-item:hover{
  border-color:color-mix(in srgb, var(--navy) 35%, var(--border));
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(11,31,77,.06);
}
.loc-item.active{
  border-color:var(--navy);
  background:linear-gradient(135deg, rgba(11,31,77,.06), rgba(11,31,77,.02));
  box-shadow:0 0 0 1px rgba(11,31,77,.08);
}
.loc-item__title{
  margin:0 0 4px;
  font-size:.95rem;
  font-weight:800;
  color:var(--navy);
}
.loc-item__meta{
  margin:0;
  color:var(--muted);
  font-size:.82rem;
}
.locations-detail{
  padding:16px;
  overflow:auto;
  flex:1;
  background:var(--surface);
}
.locations-detail__empty{
  margin:0;
  color:var(--muted);
  font-size:.9rem;
  text-align:center;
  padding:28px 8px;
}
.locations-detail__cover{
  width:100%;
  height:170px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:12px;
  border:1px solid var(--border);
}
.locations-detail__title{
  margin:0 0 6px;
  color:var(--navy);
  font-size:1.08rem;
  font-weight:800;
}
.locations-detail__meta{
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:10px;
}
.locations-detail__desc{
  margin:0 0 14px;
  font-size:.9rem;
  line-height:1.9;
  color:var(--text);
}
.locations-detail .btn{width:100%}
.meta{font-size:.85rem;color:var(--muted)}

/* Leaflet polish */
.leaflet-container{font-family:inherit;direction:ltr;width:100%;max-width:100%;overflow:hidden}
.leaflet-popup-content-wrapper{
  border-radius:14px;
  box-shadow:0 12px 30px rgba(11,31,77,.18);
  border:1px solid var(--border);
}
.leaflet-popup-content{margin:10px 12px;line-height:1.6;direction:rtl;text-align:right}
.leaflet-control-zoom a{
  border-radius:10px !important;
  color:var(--navy) !important;
}

/* --------------------------------------------------------------------------
   11. FEATURES
   -------------------------------------------------------------------------- */
.features{background:var(--bg);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.feature{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 18px;
  text-align:center;
  font-weight:700;
  color:var(--navy);
  transition:.2s;
  overflow-wrap:anywhere;
}
.feature:hover{border-color:var(--navy);box-shadow:var(--shadow)}

/* --------------------------------------------------------------------------
   11b. STATISTICS — split copy + 2×2 counters
   -------------------------------------------------------------------------- */
.stats-section{
  padding:88px 0;
  background:var(--surface);
}
.stats-layout{
  display:grid;
  grid-template-columns:minmax(260px,.92fr) minmax(0,1.08fr);
  gap:clamp(28px,5vw,72px);
  align-items:center;
}
.stats-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  max-width:460px;
}
.stats-section__eyebrow{
  margin:0 0 12px;
  font-size:.82rem;
  font-weight:500;
  color:var(--muted);
}
.stats-section__title{
  margin:0;
  color:var(--navy);
  font-size:clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight:800;
  line-height:1.45;
}
.stats-section__lead{
  margin:16px 0 0;
  color:var(--muted);
  font-size:.98rem;
  line-height:1.9;
}
.stats-section__cta{
  margin-top:28px;
  padding:12px 26px;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.stat-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:168px;
  padding:32px 18px 26px;
  border-radius:16px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:0 10px 28px rgba(11,31,77,.06);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stat-card:hover{
  transform:translateY(-4px);
  border-color:color-mix(in srgb, var(--navy) 28%, var(--border));
  box-shadow:0 16px 36px rgba(11,31,77,.1);
}
.stat-card__number{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:2px;
  margin:0 0 10px;
  font-size:clamp(2.35rem, 4vw, 3.35rem);
  font-weight:800;
  color:var(--navy);
  line-height:1;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.03em;
}
.stat-prefix,
.stat-suffix{
  font-size:.48em;
  font-weight:700;
  color:var(--navy);
}
.stat-value{display:inline-block}
.stat-card__title{
  margin:0;
  font-size:.9rem;
  font-weight:500;
  color:var(--muted);
  line-height:1.6;
}

body.dark .stat-card{
  background:var(--surface);
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}
body.dark .stat-card:hover{
  box-shadow:0 18px 40px rgba(0,0,0,.38);
}

@media (prefers-reduced-motion: reduce){
  .stat-card{transition:none}
  .stat-card:hover{transform:none}
}

/* --------------------------------------------------------------------------
   11. IMAGE-TEXT LAYOUT
   -------------------------------------------------------------------------- */
.image-text{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:center}
.image-text--flip .image-text__img{order:2}
.image-text__img{border-radius:20px;overflow:hidden;aspect-ratio:4/3}
.image-text__img img,.image-text__img .media-figure,.image-text__img .media-figure img{width:100%;height:100%;object-fit:cover}
.image-text__img .media-figure{margin:0;height:100%}
.image-text__content{display:flex;flex-direction:column;gap:16px}

/* --------------------------------------------------------------------------
   12. CARD – SERVICE
   -------------------------------------------------------------------------- */
.card-service{display:flex;flex-direction:column;height:100%;background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:hidden;text-align:center;transition:.3s}
.card-service:hover{border-color:var(--navy);transform:translateY(-4px);box-shadow:var(--shadow)}
.card-service__icon{width:56px;height:56px;margin:0 auto 16px;border-radius:14px;background:rgba(11,31,77,.06);display:grid;place-items:center;font-size:1.5rem;color:var(--navy)}
.card-service__title{margin:0 0 8px;font-size:1.05rem;font-weight:700;color:var(--navy)}
.card-service__desc{margin:0 0 12px;font-size:.9rem;color:var(--muted);line-height:1.7}
.card-service--visual{padding:0;text-align:right}
.card-service__img{display:block;aspect-ratio:4/3;overflow:hidden}
.card-service__img img{width:100%;height:100%;object-fit:cover;transition:.4s}
.card-service--visual:hover .card-service__img img{transform:scale(1.04)}
.card-service__body{padding:20px 22px 24px;display:flex;flex-direction:column;flex:1;min-width:0}

/* --------------------------------------------------------------------------
   13. CARD – PROJECT (image + body, same pattern as product/blog)
   -------------------------------------------------------------------------- */
.card-project{
  display:flex;flex-direction:column;height:100%;
  background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:hidden;transition:.3s
}
.card-project:hover{border-color:var(--navy);box-shadow:var(--shadow)}
.card-project__img{display:block;position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--surface-2);flex:0 0 auto}
.card-project__img img,.card-project__img .visual-placeholder{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:.4s}
.card-project:hover .card-project__img img{transform:scale(1.04)}
.card-project__body{
  display:flex;flex-direction:column;flex:1;position:relative;z-index:1;
  padding:16px 18px 18px;background:var(--surface);color:var(--text);min-width:0
}
.card-project__cat{font-size:.75rem;color:var(--navy);background:rgba(11,31,77,.06);padding:3px 10px;border-radius:999px;display:inline-block;margin-bottom:8px}
.card-project__title{margin:0 0 8px;font-size:1.08rem;font-weight:800;color:var(--navy);line-height:1.5;overflow-wrap:anywhere}
.card-project__loc{margin:0 0 12px;font-size:.88rem;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-project--large .card-project__img{aspect-ratio:16/10}
body.dark .card-project__cat{background:rgba(219,231,255,.12)}

/* --------------------------------------------------------------------------
   14. CARD – PRODUCT (catalog)
   -------------------------------------------------------------------------- */
.card-product{
  display:flex;flex-direction:column;height:100%;
  background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:hidden;transition:.3s
}
.card-product:hover{border-color:var(--navy);box-shadow:var(--shadow)}
.card-product__img{display:block;position:relative;aspect-ratio:4/3;overflow:hidden;background:var(--surface-2);flex:0 0 auto}
.card-product__img img,.card-product__img .visual-placeholder{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:.4s}
.card-product:hover .card-product__img img{transform:scale(1.04)}
.card-product__body{
  display:flex;flex-direction:column;flex:1;position:relative;z-index:1;
  padding:16px 18px 18px;background:var(--surface);color:var(--text);min-width:0
}
.card-product__cat{font-size:.75rem;color:var(--navy);background:rgba(11,31,77,.06);padding:3px 10px;border-radius:999px;display:inline-block;margin-bottom:8px}
.card-product__title{margin:0 0 8px;font-size:1.08rem;font-weight:800;color:var(--navy);line-height:1.5;overflow-wrap:anywhere}
.card-product__desc{margin:0 0 12px;font-size:.88rem;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* --------------------------------------------------------------------------
   15. CARD – BLOG
   -------------------------------------------------------------------------- */
.card-blog{
  display:flex;flex-direction:column;height:100%;
  background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:hidden;transition:.3s
}
.card-blog:hover{border-color:var(--navy);box-shadow:var(--shadow)}
.card-blog__img{display:block;position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--surface-2);flex:0 0 auto}
.card-blog__img img,.card-blog__img .visual-placeholder{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:.4s}
.card-blog:hover .card-blog__img img{transform:scale(1.04)}
.card-blog__body{
  display:flex;flex-direction:column;flex:1;position:relative;z-index:1;
  padding:16px 18px 18px;background:var(--surface);color:var(--text);min-width:0
}
.card-blog__meta{font-size:.78rem;color:var(--muted);margin-bottom:8px;display:flex;gap:10px;flex-wrap:wrap}
.card-blog__title{margin:0 0 8px;font-size:1.12rem;font-weight:800;color:var(--navy);line-height:1.5;overflow-wrap:anywhere}
.card-blog__excerpt{margin:0 0 12px;font-size:.9rem;color:var(--muted);line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-blog--featured{grid-column:span 2}
.card-blog--featured .card-blog__img{aspect-ratio:21/10}

/* --------------------------------------------------------------------------
   16. CARD – STAT (legacy alias kept with stats-section styles above)
   -------------------------------------------------------------------------- */
/* styles defined in section 11b */

/* --------------------------------------------------------------------------
   17. GALLERY & LIGHTBOX
   -------------------------------------------------------------------------- */
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gallery-grid__item{border-radius:14px;overflow:hidden;cursor:pointer;aspect-ratio:4/3;border:0;padding:0;background:transparent}
.gallery-grid__item img{width:100%;height:100%;object-fit:cover;transition:.3s}
.gallery-grid__item:hover img{transform:scale(1.05)}
.gallery-masonry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gallery-masonry .gallery-grid__item:nth-child(3n+1){aspect-ratio:16/10}
.gallery-masonry .gallery-grid__item:nth-child(3n+2){aspect-ratio:4/5}
.gallery-masonry .gallery-grid__item:nth-child(3n){aspect-ratio:4/3}
.gallery-grid__caption{display:block;padding:8px 2px 0;font-size:.82rem;color:var(--muted)}

.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:9999;display:none;align-items:center;justify-content:center;padding:24px}
.lightbox.active{display:flex}
.lightbox img{max-width:min(90%,calc(100% - 24px));max-height:85vh;border-radius:12px;object-fit:contain}
.lightbox__close{position:absolute;top:20px;right:20px;width:44px;height:44px;border:none;background:rgba(255,255,255,.15);color:#fff;border-radius:50%;font-size:24px;cursor:pointer}
.lightbox__nav{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:none;background:rgba(255,255,255,.15);color:#fff;border-radius:50%;font-size:20px;cursor:pointer}
.lightbox__prev{left:20px}
.lightbox__next{right:20px}

/* --------------------------------------------------------------------------
   18. CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section{background:var(--navy);padding:64px 0;text-align:center;position:relative;overflow:hidden}
.cta-section__title{margin:0 0 12px;font-size:clamp(24px,3vw,38px);font-weight:800;color:#fff}
.cta-section__text{margin:0 0 24px;color:rgba(255,255,255,.7);font-size:1.05rem;max-width:560px;margin-inline:auto}
.cta-section .btn-light{background:#fff;color:var(--navy)}
.cta-section .btn-light:hover{background:#f3f4f6}
.cta-section__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cta-section--visual::after{content:"";position:absolute;inset:0;background:rgba(11,31,77,.62)}

/* --------------------------------------------------------------------------
   19. PROCESS / TIMELINE
   -------------------------------------------------------------------------- */
.process-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;counter-reset:step}
.process-step{text-align:center;position:relative}
.process-step__number{width:56px;height:56px;border-radius:50%;background:rgba(11,31,77,.08);color:var(--navy);font-weight:800;font-size:1.2rem;display:grid;place-items:center;margin:0 auto 16px;border:2px solid var(--navy)}
.process-step__title{margin:0 0 6px;font-weight:700;color:var(--navy)}
.process-step__desc{margin:0;font-size:.88rem;color:var(--muted);line-height:1.7}

/* --------------------------------------------------------------------------
   20. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb{display:flex;gap:8px;align-items:center;padding:16px 0;font-size:.85rem;color:var(--muted)}
.breadcrumb a{color:var(--navy)}
.breadcrumb__sep{color:var(--border)}

/* --------------------------------------------------------------------------
   21. CONTACT
   -------------------------------------------------------------------------- */
.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(18px,3vw,40px);align-items:start}
.contact-form{
  background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:clamp(16px,3vw,22px)
}
.contact-form .field{margin-bottom:12px}
.contact-form input,.contact-form textarea{
  width:100%;border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:var(--surface-2);color:var(--text);outline:none
}
.contact-aside{display:flex;flex-direction:column;gap:10px;min-width:0}
.contact-map{
  height:min(360px,55vh);border:1px solid var(--border);border-radius:14px;overflow:hidden;direction:ltr;width:100%
}
.contact-info__item{display:flex;gap:14px;align-items:flex-start;padding:16px;background:var(--surface-2);border:1px solid var(--border);border-radius:14px}
.contact-info__icon{width:44px;height:44px;border-radius:12px;background:rgba(11,31,77,.06);display:grid;place-items:center;flex-shrink:0;color:var(--navy)}
.contact-info__text{flex:1}
.contact-info__label{font-size:.82rem;color:var(--muted);display:block}
.contact-info__value{font-weight:700;color:var(--text)}

/* --------------------------------------------------------------------------
   22. BADGE & TAG
   -------------------------------------------------------------------------- */
.badge{display:inline-flex;align-items:center;font-size:.75rem;font-weight:600;padding:4px 12px;border-radius:999px;background:rgba(11,31,77,.06);color:var(--navy)}
.badge--light{background:rgba(255,255,255,.15);color:#fff}
.tag{display:inline-flex;font-size:.78rem;padding:4px 10px;border:1px solid var(--border);border-radius:999px;color:var(--muted);transition:.2s}
.tag:hover{border-color:var(--navy);color:var(--navy)}

/* --------------------------------------------------------------------------
   23. ARTICLE / DETAIL PAGE
   -------------------------------------------------------------------------- */
.article-hero{margin-bottom:32px}
.article-hero img{width:100%;max-height:480px;object-fit:cover;border-radius:20px}
.article-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:.85rem;color:var(--muted);margin-bottom:16px}
.article-content{max-width:780px;margin-inline:auto;line-height:1.9;font-size:1.02rem;overflow-wrap:anywhere}
.article-content h2{margin:32px 0 12px;font-size:1.35rem;color:var(--navy)}
.article-content h3{margin:24px 0 10px;font-size:1.15rem;color:var(--navy)}
.article-content img,.article-content video,.article-content iframe{max-width:100%;height:auto;border-radius:14px;margin:20px 0}
.article-content table{display:block;width:100%;overflow-x:auto;border-collapse:collapse}
.article-content blockquote{border-right:3px solid var(--navy);padding:12px 20px;background:var(--surface-2);border-radius:0 12px 12px 0;margin:20px 0;color:var(--muted)}
.article-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}

/* --------------------------------------------------------------------------
   24. GRID UTILITIES
   -------------------------------------------------------------------------- */
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.grid-2 > *,.grid-3 > *,.grid-4 > *,.catalog-grid > *,.projects-grid > *,.feature-grid > *,.process-steps > *{min-width:0}

/* --------------------------------------------------------------------------
   25. SCROLL ANIMATIONS
   -------------------------------------------------------------------------- */
.fade-up{opacity:0;transform:translateY(24px);transition:opacity .6s ease, transform .6s ease}
.fade-up.visible{opacity:1;transform:translateY(0)}

/* --------------------------------------------------------------------------
   26. DRAWER
   -------------------------------------------------------------------------- */
.drawer-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.35);opacity:0;pointer-events:none;transition:.25s;z-index:1200}
.drawer{
  position:fixed;top:0;right:0;height:100dvh;width:min(360px,100%);
  background:var(--surface);border-left:1px solid var(--border);
  transform:translateX(110%);transition:transform .3s,visibility .3s;z-index:1300;display:flex;flex-direction:column;
  visibility:hidden;pointer-events:none;max-width:100%;
}
.drawer-header{height:72px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 14px}
.drawer-close{width:38px;height:38px;border:1px solid var(--border);border-radius:10px;background:var(--surface);cursor:pointer;font-size:20px}
.drawer-nav{padding:14px;display:flex;flex-direction:column;gap:6px}
.drawer-nav a{padding:10px 12px;border-radius:10px}
body.drawer-open{overflow:hidden}
body.drawer-open .drawer{transform:translateX(0);visibility:visible;pointer-events:auto}
body.drawer-open .drawer-backdrop{opacity:1;pointer-events:auto}

/* --------------------------------------------------------------------------
   27. PROFILE & NOTIFICATIONS
   -------------------------------------------------------------------------- */
.profile-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(2,6,23,.72);backdrop-filter:blur(5px);z-index:2100}
.profile-modal.open{display:flex}
.profile-window{width:min(860px,calc(100% - 24px));max-height:92vh;border:1px solid var(--border);border-radius:22px;background:var(--surface);overflow:hidden;box-shadow:0 25px 80px rgba(0,0,0,.35);display:flex;flex-direction:column}
.profile-header{min-height:66px;padding:10px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.profile-close{width:38px;height:38px;border:1px solid var(--border);border-radius:10px;background:var(--surface);cursor:pointer;font-size:22px}
.profile-body{padding:16px;overflow:auto}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field span{font-size:.88rem;color:var(--muted)}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:10px;padding:10px 12px;outline:none}
.field label{font-size:.88rem;color:var(--muted)}
.validation-summary-errors{color:#b91c1c;margin-bottom:12px}
.input-validation-error{border-color:#ef4444}
.field-validation-error{color:#b91c1c;font-size:.85rem}
.field-full{grid-column:1/-1}
.profile-icon-btn{width:42px;height:42px;border-radius:50%;border:1px solid var(--border);background:var(--surface);display:grid;place-items:center;cursor:pointer;transition:.2s;padding:0}
.profile-icon-btn:hover{background:var(--surface-2)}
.profile-icon-btn svg{width:22px;height:22px;stroke:var(--navy)}

.notif-btn{position:relative;color:var(--navy)}
.notif-btn svg{width:20px;height:20px}
.notif-dot{position:absolute;top:7px;left:7px;width:10px;height:10px;border-radius:50%;background:#ef4444;border:2px solid var(--surface);display:none}
.notif-dot.show{display:block}
.notif-panel{position:fixed;top:80px;left:12px;right:12px;width:auto;max-width:420px;max-height:min(72vh,620px);overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:0 20px 50px rgba(0,0,0,.18);z-index:2200;transform:translateY(-8px);opacity:0;pointer-events:none;transition:.22s;margin-inline-end:auto}
.notif-panel.open{transform:translateY(0);opacity:1;pointer-events:auto}
.notif-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--border)}
.notif-actions{display:flex;gap:8px;align-items:center}
.notif-clear{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;padding:6px 10px;cursor:pointer;font-size:.8rem}
.notif-close{width:34px;height:34px;border:1px solid var(--border);border-radius:10px;background:var(--surface);cursor:pointer;font-size:20px}
.notif-list{padding:10px;overflow:auto;max-height:calc(72vh - 58px)}
.notif-item{border:1px solid var(--border);border-radius:12px;padding:12px;background:var(--surface-2);margin-bottom:8px}
.notif-item__title{font-weight:800;color:var(--navy);line-height:1.5}
.notif-item__meta{font-size:.78rem;color:var(--muted);margin:4px 0 8px}
.notif-item__body{margin:0;color:var(--text);font-size:.9rem;line-height:1.85;white-space:pre-wrap}
.notif-empty{text-align:center;color:var(--muted);font-size:.9rem;padding:18px 8px}

/* --------------------------------------------------------------------------
   28. FOOTER
   -------------------------------------------------------------------------- */
.site-footer{background:var(--surface);border-top:1px solid var(--border);padding:56px 0 calc(24px + env(safe-area-inset-bottom,0px));overflow-x:hidden}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:24px}
.footer-card{padding:0}
.footer-title{margin:0 0 14px;color:var(--navy);font-size:1rem;font-weight:800}
.footer-list{list-style:none;padding:0;margin:0}
.footer-list li{margin:8px 0}
.footer-list a:hover{color:var(--navy)}
.footer-social{display:flex;gap:10px;margin-top:12px}
.footer-social a{width:40px;height:40px;border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;transition:.2s;color:var(--muted)}
.footer-social a:hover{border-color:var(--navy);color:var(--navy)}
.footer-bottom{margin-top:24px;padding-top:20px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.copy{margin:0;color:var(--muted);font-size:.9rem}
.copy--credit a{color:var(--navy);font-weight:700}
.copy--credit a:hover{text-decoration:underline}

/* --------------------------------------------------------------------------
   28b. AUDIENCE CLUB
   -------------------------------------------------------------------------- */
.audience-hp{
  position:absolute !important;
  left:0;
  top:0;
  width:1px;
  height:1px;
  margin:0;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  border:0;
  white-space:nowrap;
  pointer-events:none;
}
.audience-toast{
  position:fixed;bottom:20px;right:20px;z-index:2400;
  background:var(--navy);color:#fff;border-radius:14px;padding:14px 18px;
  box-shadow:0 16px 40px rgba(11,31,77,.25);max-width:min(420px,calc(100% - 32px));font-size:.95rem;line-height:1.8
}
.audience-toast--error{background:#7f1d1d}
.audience-footer{
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px;align-items:start;
  padding:0 0 32px;margin:0 0 32px;border-bottom:1px solid var(--border)
}
.audience-footer__copy{max-width:420px}
.audience-form{display:flex;flex-direction:column;gap:12px;position:relative}
.audience-form__title{margin:0;color:var(--navy);font-size:clamp(1.05rem,2vw,1.3rem);font-weight:800;line-height:1.5}
.audience-form__lead{margin:8px 0 0;color:var(--muted);font-size:.92rem;line-height:1.8}
.audience-form__field{display:flex;flex-direction:column;gap:6px}
.audience-form__field span{font-size:.86rem;color:var(--muted)}
.audience-form__field input{
  width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);
  border-radius:12px;padding:10px 12px;outline:none;min-height:44px
}
.audience-form__field input:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(11,31,77,.12)}
.audience-form__consent{display:flex;gap:10px;align-items:flex-start;color:var(--text);font-size:.88rem;line-height:1.7}
.audience-form__consent input{margin-top:4px;accent-color:var(--navy);width:18px;height:18px}
.audience-form__submit{align-self:flex-start;padding:11px 20px}
.audience-form__status{margin:0;font-size:.88rem;line-height:1.7}
.audience-form__status.is-ok{color:#047857}
.audience-form__status.is-error{color:#b91c1c}
.audience-form--footer{
  max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end
}
.audience-form--footer > input[type=hidden],
.audience-form--footer .audience-hp{
  position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)
}
.audience-form--footer .audience-form__consent,
.audience-form--footer .audience-form__submit,
.audience-form--footer .audience-form__status{grid-column:1/-1}
@media(max-width:900px){
  .audience-footer,.audience-form--footer{grid-template-columns:1fr}
}
.audience-contextual{
  margin-top:36px;padding:28px 24px;border:1px solid var(--border);border-radius:20px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, var(--navy) 12%), var(--surface));
}
.audience-popup{position:fixed;inset:0;z-index:2300;display:flex;align-items:flex-end;justify-content:center;padding:16px}
.audience-popup[hidden]{display:none}
.audience-popup__backdrop{position:absolute;inset:0;background:rgba(11,31,77,.42)}
.audience-popup__dialog{
  position:relative;width:min(440px,100%);background:var(--surface);border:1px solid var(--border);
  border-radius:22px;padding:28px 22px 22px;box-shadow:0 24px 60px rgba(11,31,77,.22);z-index:1
}
.audience-popup__close{
  position:absolute;top:10px;left:10px;width:36px;height:36px;border:1px solid var(--border);
  border-radius:10px;background:var(--surface);cursor:pointer;font-size:22px;color:var(--text)
}
body.dark .audience-popup__dialog,body.dark .audience-contextual{box-shadow:0 20px 50px rgba(0,0,0,.4)}
@media(min-width:720px){
  .audience-popup{align-items:center}
}

/* --------------------------------------------------------------------------
   29. SEARCH PAGE
   -------------------------------------------------------------------------- */
.search-page-form{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap;align-items:stretch}
.search-page-form input[type=search],.search-page-form select{flex:1 1 220px;min-width:0;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:12px;padding:12px 14px;outline:none}
.search-hint{color:var(--muted);margin:0 0 22px}
.search-group-title{margin:0 0 10px;color:var(--navy);font-size:1.05rem}
.search-results{list-style:none;padding:0;margin:0 0 28px}
.search-results li{margin:0 0 8px}
.search-results a{display:block;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);padding:12px 14px}
.search-results a:hover{border-color:var(--navy)}
.search-results strong{display:block;color:var(--navy);margin:4px 0}
.search-results a span:last-child{color:var(--muted);font-size:.9rem;line-height:1.7}
.search-kind{display:inline-block;font-size:.75rem;color:var(--navy);border:1px solid var(--border);border-radius:999px;padding:2px 8px}

/* --------------------------------------------------------------------------
   30. ADMIN
   -------------------------------------------------------------------------- */
.admin-body{background:var(--bg)}
.admin-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}
.admin-sidebar{background:#0b1f4d;color:#fff;padding:20px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:auto}
.admin-brand{font-weight:800;letter-spacing:.04em;padding:8px 12px 18px}
.admin-nav{display:flex;flex-direction:column;gap:4px;flex:1}
.admin-nav a{display:block;padding:9px 12px;border-radius:10px;color:rgba(255,255,255,.86)}
.admin-nav a:hover,.admin-nav a.active{background:rgba(255,255,255,.12);color:#fff}
.admin-sidebar-foot{margin-top:18px;display:flex;flex-direction:column;gap:10px;padding:12px}
.admin-sidebar-foot a,.admin-sidebar-foot button{color:rgba(255,255,255,.9);background:transparent;border:1px solid rgba(255,255,255,.2);border-radius:10px;padding:8px 10px;cursor:pointer;font:inherit;text-align:right}
.admin-main-wrap{min-width:0}
.admin-main{padding:8px 0 36px}

/* --------------------------------------------------------------------------
   31. MEDIA LIBRARY
   -------------------------------------------------------------------------- */
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
.media-card{border:1px solid var(--border);border-radius:14px;background:var(--surface-2);overflow:hidden;transition:.2s}
.media-card:hover{border-color:var(--navy);box-shadow:var(--shadow)}
.media-card img{width:100%;height:140px;object-fit:cover}
.media-card-info{padding:10px}
.media-card-info .name{font-weight:700;font-size:.88rem;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-card-info .meta{font-size:.78rem;color:var(--muted);margin-top:4px}
.media-card-actions{display:flex;gap:6px;padding:0 10px 10px;flex-wrap:wrap}
.media-upload-zone{border:2px dashed var(--border);border-radius:16px;padding:24px;text-align:center;color:var(--muted);cursor:pointer;transition:.2s}
.media-upload-zone:hover,.media-upload-zone.drag-over{border-color:var(--navy);background:rgba(11,31,77,.04)}

/* --------------------------------------------------------------------------
   32. DARK MODE – NEW COMPONENTS
   -------------------------------------------------------------------------- */
body.dark .locations-layout{box-shadow:0 12px 32px rgba(0,0,0,.35)}
body.dark .loc-item{background:var(--surface);border-color:var(--border)}
body.dark .loc-item.active{background:rgba(219,231,255,.06)}
body.dark .locations-side-head,
body.dark .locations-list{background:var(--surface-2)}
body.dark .card-service{background:var(--surface);border-color:var(--border)}
body.dark .card-service__icon{background:rgba(219,231,255,.08)}
body.dark .card-product{background:var(--surface);border-color:var(--border)}
body.dark .card-blog{background:var(--surface);border-color:var(--border)}
body.dark .process-step__number{background:rgba(219,231,255,.08)}
body.dark .contact-info__item{background:var(--surface-2);border-color:var(--border)}
body.dark .contact-info__icon{background:rgba(219,231,255,.08)}
body.dark .badge{background:rgba(219,231,255,.1)}
body.dark .article-content blockquote{background:var(--surface-2);border-color:var(--navy)}
body.dark .footer-social a{border-color:var(--border);color:var(--muted)}

/* --------------------------------------------------------------------------
   34. VISUAL MEDIA SYSTEM
   -------------------------------------------------------------------------- */
.visual-placeholder{
  width:100%;height:100%;min-height:180px;
  background:linear-gradient(135deg, rgba(11,31,77,.14), rgba(16,42,99,.32));
}
.visual-placeholder--project{position:absolute;inset:0;min-height:0}
.media-figure{margin:0}
.media-figure img{display:block;width:100%;height:100%;object-fit:cover}
.media-figure__caption{margin-top:8px;color:var(--muted);font-size:.88rem;line-height:1.7}
.tpl-read{display:inline-flex;border:1px solid var(--navy);color:var(--navy);padding:7px 12px;border-radius:999px;font-size:.88rem;margin-top:auto;align-self:flex-start}
.page-hero{position:relative;min-height:42vh;display:flex;align-items:flex-end;overflow:hidden;background:var(--navy);margin-bottom:0}
.page-hero__media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.page-hero__scrim{position:absolute;inset:0;background:linear-gradient(to top,rgba(11,31,77,.78),rgba(11,31,77,.28))}
.page-hero__content{position:relative;z-index:1;padding:56px 0 40px;color:#fff}
.page-hero__content h1{margin:0;color:#fff;font-size:clamp(28px,4vw,48px)}
.stats-section{position:relative;overflow:hidden}
.stats-section__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.18;pointer-events:none}
.stats-section--visual .stats-copy,.stats-section--visual .stat-card{position:relative;z-index:1}
.process-step__img{width:100%;aspect-ratio:4/3;border-radius:16px;overflow:hidden;margin:0 0 14px}
.process-step__img img{width:100%;height:100%;object-fit:cover}
.detail-hero{border-radius:20px;overflow:hidden;aspect-ratio:16/7;margin-bottom:28px;width:100%}
.detail-hero img{width:100%;height:100%;object-fit:cover}
.contact-visual{border-radius:20px;overflow:hidden;min-height:220px}
.contact-visual img{width:100%;height:100%;min-height:220px;max-height:360px;object-fit:cover}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.catalog-grid--blog{grid-template-columns:repeat(2,minmax(0,1fr))}

.media-picker-overlay{position:fixed;inset:0;background:rgba(11,31,77,.55);z-index:99999;display:flex;align-items:center;justify-content:center;padding:18px}
.media-picker-overlay[hidden]{display:none}
.media-picker-dialog{width:min(980px,100%);background:var(--surface-2);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:16px}
.media-picker-dialog__head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.media-picker-dialog__title{font-weight:900;color:var(--navy)}
.media-picker-dialog__sub,.media-picker-dialog__foot,.media-picker-slot__hint{color:var(--muted);font-size:.92rem;line-height:1.7}
.media-picker-dialog__toolbar{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.media-picker-dialog__toolbar input{flex:1;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);padding:10px 12px;outline:none;color:var(--text)}
.media-picker-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:420px;overflow:auto}
.media-picker-card{border:1px solid var(--border);background:var(--surface);border-radius:14px;padding:8px}
.media-picker-card img{width:100%;height:98px;object-fit:cover;border-radius:10px}
.media-picker-card .btn{width:100%;margin-top:8px}
.media-picker-card__name{color:var(--muted);font-size:.85rem;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.media-picker-status{grid-column:1/-1;color:var(--muted);padding:16px;border:1px dashed var(--border);border-radius:14px}
.media-picker-status.is-error{color:#b91c1c;border-color:#ef4444;border-style:solid}
.media-picker-upload{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.media-picker-slot{border:1px solid var(--border);border-radius:16px;background:var(--surface-2);padding:12px}
.media-picker-slot__label{color:var(--navy);font-weight:800;margin-bottom:10px}
.media-picker-slot__frame{border-radius:12px;overflow:hidden;border:1px solid var(--border);background:var(--surface);min-height:160px}
.media-picker-slot__preview{width:100%;height:160px;object-fit:cover;display:block}
.media-picker-slot__empty{min-height:160px;display:grid;place-items:center;color:var(--muted)}
.media-picker-slot__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.media-picker-slot__remove{color:#ef4444;border-color:#ef4444}

@media(max-width:980px){
  .media-picker-results{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-hero{aspect-ratio:16/9}
}

/* --------------------------------------------------------------------------
   33. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media(max-width:1100px){
  .catalog-grid,.gallery-grid,.gallery-masonry{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .grid-4,.feature-grid,.process-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-top{grid-template-columns:1fr 1fr}
  .card-blog--featured{grid-column:span 1}
  .card-blog--featured .card-blog__img{aspect-ratio:16/10}
  .locations-layout{grid-template-columns:minmax(0,1fr) minmax(220px,320px);min-height:520px}
  #locationsMainMap,.locations-side{min-height:520px}
}

@media(max-width:1024px){
  .image-text{gap:28px}
  .stats-layout{gap:32px}
}

@media(max-width:980px){
  .locations-layout{grid-template-columns:1fr;min-height:0}
  .locations-side{border-right:none;border-top:1px solid var(--border);min-height:auto}
  #locationsMainMap{min-height:320px;height:320px}
  .stats-layout{grid-template-columns:1fr;gap:28px}
  .stats-copy{max-width:none;align-items:center;text-align:center}
  .stats-section__cta{align-self:center}
  .image-text,.image-text--flip{grid-template-columns:1fr}
  .image-text--flip .image-text__img{order:0}
  .contact-grid{grid-template-columns:1fr}
  .catalog-grid--blog{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:900px){
  .admin-shell{grid-template-columns:1fr}
  .admin-sidebar{position:relative;height:auto}
  .hero{min-height:min(78vh,640px)}
  .hero::before{opacity:.08;width:min(40%,220px);left:0;right:auto}
  .grid-3,.projects-grid{grid-template-columns:1fr;gap:18px}
}

@media(max-width:768px){
  .nav{height:64px;gap:8px}
  .brand-center{max-width:min(38%,150px)}
  .brand-center img{height:30px}
  .icon-btn,.theme-toggle{width:40px;height:40px}
  .topbar.scrolled .nav{height:56px}
  .page-hero{min-height:32vh}
  .page-hero__content{padding:36px 0 28px}
  .grid-2,.grid-3,.grid-4,.projects-grid,.catalog-grid,.catalog-grid--blog,
  .feature-grid,.gallery-grid,.gallery-masonry,.process-steps{
    grid-template-columns:1fr;
  }
  .stat-card{min-height:148px;padding:26px 14px 22px}
  .search-page-form .btn{width:100%}
  .footer-bottom{justify-content:center;text-align:center}
  .profile-grid,.footer-top{grid-template-columns:1fr}
  .lightbox{padding:12px}
  .lightbox__nav{width:40px;height:40px}
  .lightbox__prev{left:8px}
  .lightbox__next{right:8px}
  input,textarea,select{font-size:16px}
}

@media(max-width:640px){
  .hero{min-height:auto;padding:56px 0 48px;align-items:flex-end}
  .hero-content{width:100%;padding:12px 0 8px}
  .hero-actions,.center{flex-direction:column;align-items:stretch}
  .hero-actions .btn,.center .btn{width:100%}
  .drawer{width:min(86%,340px)}
  .section-header{margin-bottom:28px}
  .audience-toast{right:12px;left:12px;max-width:none}
  .notif-panel{left:8px;right:8px;width:auto}
}

@media(max-width:480px){
  .nav{height:60px}
  .left-tools,.header-actions{gap:6px}
  .icon-btn,.theme-toggle{width:38px;height:38px}
  .brand-center img{height:26px}
  .stats-grid{gap:12px}
  .stat-card{min-height:132px;border-radius:14px}
  .cta-section{padding:48px 0}
  .site-footer{padding:40px 0 calc(20px + env(safe-area-inset-bottom,0px))}
}
