/* =========================================================
   Madinet Masr — Minimal Editorial Layer
   Palette: White / Near-black / ONE red accent (monochrome + red)
   Loaded after main.css and editorial.css to override.
   ========================================================= */

/* Remove legacy editorial overlays (IL CAZAR side rail, marquee, watermark) */
body.index-page::after,
body.index-page::before{
  display: none !important;
  content: none !important;
}

/* ---------- 1. TOKENS ---------- */
:root{
  --bg:           #ffffff;
  --bg-soft:      #f7f7f7;
  --bg-card:      #ffffff;
  --hairline:     #e4e4e4;

  --red:          #d1182f;
  --red-deep:     #a3111f;
  --red-tint:     #fdecef;

  /* "blue" tokens repurposed as the neutral dark tone — keeps every
     component that reads var(--blue*) monochrome instead of adding a
     second color, per the single-accent minimal direction. */
  --blue:         #111114;
  --blue-mid:     #2c2c30;
  --blue-tint:    #f2f2f3;

  --ink:          #0a0a0b;
  --ink-2:        #2b2b2e;
  --ink-3:        #6b6b70;

  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 2px;
  --r-pill: 2px;

  --shadow-soft: 0 1px 0 rgba(0,0,0,.05);
  --shadow-card: 0 0 0 1px rgba(0,0,0,.07);

  --ease-out:  cubic-bezier(.2,.7,.2,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 600ms;
  --dur-4: 900ms;

  --container: 1280px;

  /* override legacy theme vars used by main.css */
  --default-color: #2b2b2e;
  --heading-color: #0a0a0b;
  --accent-color:  #d1182f;
  --background-color: #ffffff;
  --surface-color:    #ffffff;
  --contrast-color:   #ffffff;
  --nav-color:           #0a0a0b;
  --nav-hover-color:     #d1182f;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #0a0a0b;
  --nav-dropdown-hover-color: #d1182f;
}

/* ---------- 2. BASE ---------- */
html, body{
  background: var(--bg) !important;
  color: var(--ink-2) !important;
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif !important;
}

body.index-page{ background: var(--bg) !important; }

h1, h2, h3, h4, h5, h6{
  color: var(--ink) !important;
  font-family: 'Tajawal', system-ui, sans-serif !important;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
h2{ font-weight: 500; }

p{ color: var(--ink-2); line-height: 1.85; }

a{ color: var(--ink); transition: color var(--dur-1) var(--ease-out); }
a:hover{ color: var(--red); }

::selection{ background: var(--red); color:#fff; }

/* Bold, heavy display type — minimal/editorial direction */
strong, b{ font-weight: 700 !important; }
h1, h2, h3, h4, h5, h6{ font-weight: 700 !important; }
.hero-headline, .about-main-title, .why-main-title,
.projects-showcase-header h2, .gallery-v2 h2,
.cta-banner h2, .footer-brand-name{
  font-weight: 900 !important;
}

img{ display:block; max-width:100%; }

/* Smooth scroll, but respect reduced motion below */
html{ scroll-behavior: smooth; }

/* Reusable container width */
.container, .container-xl, .container-fluid{ max-width: var(--container); }

/* ---------- 3. HEADER ---------- */
.header, #header.header{
  background: rgba(255,255,255,0.85) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  box-shadow: none;
}
#header.header.is-stuck{
  background: rgba(255,255,255,0.96) !important;
  border-bottom-color: var(--hairline) !important;
  box-shadow: 0 8px 24px -20px rgba(0,0,0,.18) !important;
}

/* Transparent nav over the dark cover hero (homepage only), until scrolled.
   Once .is-stuck is added (scrollY > 8) it reverts to the solid white header.
   Note: uses #header to outrank the base `#header.header` background rule. */
body.has-cover-hero #header.header:not(.is-stuck){
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
body.has-cover-hero .header:not(.is-stuck) .ure-navmenu a,
body.has-cover-hero .header:not(.is-stuck) .ure-navmenu a.active{
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.has-cover-hero .header:not(.is-stuck) .header-phone{ color: #fff !important; -webkit-text-fill-color: #fff !important; }
body.has-cover-hero .header:not(.is-stuck) .header-phone i{ color: #fff !important; }
body.has-cover-hero .header:not(.is-stuck) .ure-mobile-toggle span{ background: #fff !important; }
/* Render the logo as a white silhouette so it reads over the dark image */
body.has-cover-hero .header:not(.is-stuck) .header-brand img{
  filter: brightness(0) invert(1);
}
/* Keep the red hover-underline; nudge nav-link idle color a touch brighter on hover */
body.has-cover-hero .header:not(.is-stuck) .ure-navmenu a:hover{ color: var(--red) !important; -webkit-text-fill-color: var(--red) !important; }

/* Pages WITHOUT a dark cover hero (project detail pages) always have a light
   header — force dark nav links so they're legible (overrides the legacy
   cream `.header .ure-navmenu a` colour from editorial.css). */
body:not(.has-cover-hero) #header .ure-navmenu a{ color: var(--ink) !important; }
body:not(.has-cover-hero) #header .ure-navmenu a:hover{ color: var(--red) !important; }

/* Nav underline: add clear space between the underline accent and the text
   (uses #header to outrank the legacy padding/underline rules). */
@media (min-width: 992px){
  #header .ure-navmenu a{ padding-bottom: 26px !important; }
  #header .ure-navmenu a::after{ bottom: 8px !important; }
}

/* Nav links */
.ure-navmenu a{
  color: var(--ink) !important;
  font-weight: 500;
  position: relative;
  padding: 10px 14px;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: color var(--dur-1) var(--ease-out);
}
.ure-navmenu a::after{
  content:"";
  position: absolute;
  inset: auto 14px 4px 14px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-2) var(--ease-out);
}
.ure-navmenu a:hover{ color: var(--red) !important; }
.ure-navmenu a:hover::after{ transform: scaleX(1); }

/* Header phone number (desktop) */
.header-phone{
  align-items: center;
  gap: 8px;
  color: var(--blue) !important;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none !important;
  padding: 8px 4px;
  transition: color var(--dur-1) var(--ease-out);
}
.header-phone i{ color: var(--red); font-size: 1.05rem; }
.header-phone:hover{ color: var(--red) !important; }

/* Mobile drawer call CTA (outlined, sits under WhatsApp CTA) */
.ure-mobile-cta-call{
  background: #fff !important;
  color: var(--blue) !important;
  border: 1px solid var(--blue) !important;
  margin-top: 12px !important;
}
.ure-mobile-cta-call:hover{ background: var(--blue) !important; color: #fff !important; }

/* Primary CTA */
.btn-getstarted, .btn-register, .btn-register-out-side{
  background: var(--red) !important;
  color: #fff !important;
  border: 1px solid var(--red) !important;
  padding: 12px 28px !important;
  border-radius: var(--r-pill) !important;
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  box-shadow: 0 8px 24px -14px rgba(200,16,46,.55);
  text-decoration: none !important;
}
.btn-getstarted:hover, .btn-register:hover, .btn-register-out-side:hover{
  background: var(--red-deep) !important;
  border-color: var(--red-deep) !important;
  color:#fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -14px rgba(200,16,46,.6);
}
.btn-getstarted:active, .btn-register:active{ transform: translateY(0); }

/* Secondary CTA (outlined blue) */
.btn-register-out-side.btn-secondary-cta{
  background: #fff !important;
  color: var(--blue) !important;
  border: 1px solid var(--blue) !important;
  box-shadow: none !important;
}
.btn-register-out-side.btn-secondary-cta:hover{
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
}

/* Mobile hamburger morph */
.ure-mobile-toggle{ background: transparent; border: 0; }
.ure-mobile-toggle span{
  display:block; width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform var(--dur-2) var(--ease-out),
              opacity var(--dur-1) var(--ease-out);
}
.ure-mobile-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.ure-mobile-toggle.open span:nth-child(2){ opacity: 0; }
.ure-mobile-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.ure-mobile-menu{
  background: #fff !important;
  color: var(--ink) !important;
}
.ure-drawer-eyebrow{
  color: var(--red) !important;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.ure-drawer-nav a{
  color: var(--ink) !important;
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  display: block;
  font-size: 1.1rem;
  transition: color var(--dur-1) var(--ease-out), padding var(--dur-2) var(--ease-out);
}
.ure-drawer-nav a:hover{ color: var(--red) !important; padding-right: 8px; }
.ure-mobile-cta{
  background: var(--red) !important;
  color:#fff !important;
  text-align:center;
  border-radius: var(--r-pill);
  padding: 14px 22px;
  display:block;
  margin-top: 20px;
  font-weight: 400;
}

/* ---------- 4. HERO (full-screen cover, image background) ---------- */
.hero-cover{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

/* Background image layer */
.hero-cover-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-cover-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform: scale(1.06);
  animation: hero-cover-zoom 12s var(--ease-out) forwards;
}
@keyframes hero-cover-zoom{
  to{ transform: scale(1); }
}

/* Dark gradient overlay for text legibility (weighted to the RTL-right) */
.hero-cover-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(10,10,11,.82) 0%, rgba(10,10,11,.55) 42%, rgba(10,10,11,.15) 100%),
    linear-gradient(to top, rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 45%);
}

.hero-cover-inner{
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 96px;
}
.hero-cover-content{
  max-width: 680px;
  text-align: right;
}
@media (max-width: 767px){
  .hero-cover-content{ text-align: center; margin-inline: auto; }
}

.hero-cover-eyebrow{
  display: inline-block;
  color: #fff;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--red);
  opacity: 1;
  animation: hero-rise 550ms var(--ease-out) 120ms both;
}

.hero-cover-headline{
  font-size: clamp(2.4rem, 6vw, 5rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
  opacity: 1;
  animation: hero-rise 700ms var(--ease-out) 220ms both;
}
.hero-cover-headline .hl{
  color: #fff !important;
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
}
/* Animated red underline with a moving shine (motion) */
.hero-cover-headline .hl::after{
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--red) 38%, #ff6b7e 50%, var(--red) 62%, var(--red) 100%);
  background-size: 220% 100%;
  transform: scaleX(0);
  transform-origin: right; /* RTL: draw in from the right */
  animation:
    hl-underline-in 800ms var(--ease-out) 700ms forwards,
    hl-underline-shine 2.4s linear 1500ms infinite;
}
@keyframes hl-underline-in{
  to{ transform: scaleX(1); }
}
@keyframes hl-underline-shine{
  from{ background-position: 220% 0; }
  to  { background-position: -220% 0; }
}
@media (prefers-reduced-motion: reduce){
  .hero-cover-headline .hl::after{
    transform: scaleX(1);
    animation: none;
    background: var(--red);
  }
}

.hero-cover-sub{
  font-size: 1.18rem;
  color: rgba(255,255,255,.9) !important;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 0 42px;
  text-shadow: 0 1px 16px rgba(0,0,0,.4);
  opacity: 1;
  animation: hero-rise 650ms var(--ease-out) 360ms both;
}
@media (max-width: 767px){
  .hero-cover-sub{ margin-inline: auto; }
}

.hero-cover-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 1;
  animation: hero-rise 600ms var(--ease-out) 500ms both;
}
@media (max-width: 767px){
  .hero-cover-cta{ justify-content: center; }
}
.btn-cover-primary,
.btn-cover-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: var(--r-sm);
  transition: background var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
}
.btn-cover-primary{
  background: var(--red) !important;
  color: #fff !important;
  border: 1px solid var(--red) !important;
}
.btn-cover-primary:hover{
  background: var(--red-deep) !important;
  border-color: var(--red-deep) !important;
  color: #fff !important;
  transform: translateY(-2px);
}
.btn-cover-secondary{
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.7) !important;
}
.btn-cover-secondary:hover{
  background: #fff !important;
  color: var(--ink) !important;
  border-color: #fff !important;
  transform: translateY(-2px);
}

/* Scroll cue pinned to the bottom center */
.hero-cover-scroll{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 1;
  animation: hero-fade 600ms var(--ease-out) 700ms both;
}
.hero-cover-scroll .scroll-arrow{
  display: inline-flex;
  animation: cue-bounce 1.6s ease-in-out infinite;
}
.hero-cover-scroll:hover{ color: #fff !important; }

@media (max-width: 767px){
  .hero-cover{ min-height: 92vh; }
  .hero-cover-scroll{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  .hero-cover-bg img,
  .hero-cover-eyebrow, .hero-cover-headline, .hero-cover-sub,
  .hero-cover-cta, .hero-cover-scroll{
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}

/* Shared hero keyframes (used by the reveal-on-load animations above).
   Elements keep opacity:1 as their resting state, so if these ever fail to
   apply the hero content is still fully visible — the animation only adds a
   fade+rise on load. */
@keyframes hero-rise{
  from{ opacity: 0; transform: translateY(16px); }
  to  { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade{
  from{ opacity: 0; }
  to  { opacity: 1; }
}
@keyframes cue-bounce{
  0%, 100%{ transform: translateY(0); }
  50%     { transform: translateY(6px); }
}

/* ---------- 4c. PROJECT DETAIL HERO (sarai/tajcity/butterfly/talala pages) ---------- */
.hero-grid{ align-items: center; }
.hero-text-col{ position: relative; }
.hero-img-col{ position: relative; display: flex; justify-content: center; }

.hero.section.project-hero{
  background: var(--bg) !important;
  padding: 148px 0 64px !important;
  min-height: auto;
}
@media (max-width: 767px){
  .hero.section.project-hero{ padding: 116px 0 40px !important; text-align: center; }
}

.project-hero .hero-headline{
  font-size: clamp(2rem, 4.6vw, 3.4rem) !important;
  font-weight: 900 !important;
  color: var(--ink) !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.project-hero .hero-sub{
  font-size: 1.08rem;
  color: var(--ink-3) !important;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 0 32px;
}
@media (max-width: 767px){
  .project-hero .hero-sub{ margin-inline: auto; }
}

.project-hero .hero-cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 767px){
  .project-hero .hero-cta-row{ justify-content: center; }
}

.project-hero .btn-hero-primary,
.project-hero .btn-hero-secondary{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: var(--r-sm);
  transition: background var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.project-hero .btn-hero-primary{
  background: var(--ink) !important;
  color: #fff !important;
  border: 1px solid var(--ink) !important;
}
.project-hero .btn-hero-primary:hover{
  background: var(--red) !important;
  border-color: var(--red) !important;
}
.project-hero .btn-hero-secondary{
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--ink) !important;
}
.project-hero .btn-hero-secondary:hover{
  background: var(--ink) !important;
  color: #fff !important;
}

/* Flat, minimal image frame — no rotation, no heavy shadow */
.project-hero .hero-img-tilt{
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.project-hero .hero-img-tilt img{
  width: 100%;
  height: clamp(280px, 42vh, 460px);
  object-fit: cover;
  display: block;
}
@media (max-width: 767px){
  .project-hero .hero-img-tilt{ margin-top: 32px; }
}

/* ---------- 5. SECTION HEADING PATTERN ---------- */
.section-title{ position: relative; }
.section-title h2{
  font-size: clamp(1.6rem, 3vw, 2.5rem) !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
}
.section-title h2::before{
  content: "—";
  color: var(--red);
  margin-left: 10px;
  font-weight: 500;
}
.section-title p{
  color: var(--ink-3);
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.section-title::after{
  content:"";
  display:block;
  width: 56px;
  height: 3px;
  background: var(--red);
  margin: 22px auto 0;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right; /* RTL */
  transition: transform var(--dur-3) var(--ease-out);
}
.section-title.is-in::after{ transform: scaleX(1); }

/* ---------- 6. GALLERY ---------- */
.ure-gallery-section{
  background: var(--bg) !important;
  padding: 96px 0 !important;
}
.ure-gallery-title{
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 500;
  text-align: center;
  margin-bottom: 12px;
}
.ure-gallery-line{
  width: 56px; height: 3px;
  background: var(--red);
  margin: 0 auto 48px;
  border-radius: 2px;
}

.ure-gallery-carousel{
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--ink);
}
.ure-gallery-carousel .carousel-item img{
  height: clamp(320px, 60vh, 640px);
  object-fit: cover;
}
.ure-gallery-carousel .carousel-caption{
  inset: auto 0 32px 0;
  background: linear-gradient(180deg, transparent, rgba(14,17,22,.7));
  padding: 28px 16px 16px;
  text-align: center;
}
.ure-gallery-carousel .carousel-caption span{
  display: inline-block;
  background: rgba(255,255,255,.95);
  color: var(--ink) !important;
  font-weight: 500;
  padding: 8px 22px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

/* Indicators -> red active bar */
.ure-gallery-carousel .carousel-indicators{
  margin-bottom: 18px;
}
.ure-gallery-carousel .carousel-indicators [data-bs-target]{
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.55);
  border: 0;
  margin: 0 4px;
  transition: width var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out);
  opacity: 1;
}
.ure-gallery-carousel .carousel-indicators .active{
  width: 28px;
  background: var(--red);
}

/* Carousel arrows */
.ure-gallery-carousel .carousel-control-prev,
.ure-gallery-carousel .carousel-control-next{
  width: 6%;
  opacity: 0.85;
}
.ure-gallery-carousel .carousel-control-prev-icon,
.ure-gallery-carousel .carousel-control-next-icon{
  background-color: rgba(255,255,255,.95);
  border-radius: 50%;
  padding: 22px;
  background-size: 50% 50%;
  filter: invert(1);
}

/* ---------- 7. LOCATIONS STRIP ---------- */
.lavista-mini-locations{
  background: var(--bg-soft) !important;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 56px 0 !important;
}
.lavista-mini-locations h4{
  color: var(--ink) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}
.lavista-mini-locations h4::after{
  content:"";
  display:block;
  width: 36px; height: 3px;
  background: var(--red);
  margin: 12px auto 0;
}
.lavista-mini-locations p{ color: var(--ink-3); margin-top: 12px; }

.locations-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.locations-list a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.92rem;
  transition: border-color var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out);
}
.locations-list a:hover{
  border-color: var(--red);
  color: var(--red) !important;
  transform: translateY(-1px);
}
.locations-list a small{
  background: var(--red-tint);
  color: var(--red);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 500;
}
.locations-list a.location-new small{ background: var(--red); color:#fff; }

/* ---------- 8. PROJECT HIGHLIGHTS (alternating splits) ---------- */
.new-launch-section{
  background: var(--bg) !important;
  padding: 96px 0 !important;
  position: relative;
}
.new-launch-section:nth-of-type(even){ background: var(--bg-soft) !important; }

.new-launch-section .launch-tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-tint);
  color: var(--red) !important;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.new-launch-section .launch-tag::before{
  content:"";
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(200,16,46,.5); }
  70%   { box-shadow: 0 0 0 8px rgba(200,16,46,0); }
}

.new-launch-section h2{
  font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
  font-weight: 500 !important;
  margin-bottom: 6px;
  color: var(--ink) !important;
}
.new-launch-section h4{
  color: var(--blue) !important;
  font-weight: 500 !important;
  font-size: 1.05rem !important;
  margin-bottom: 22px !important;
}
.new-launch-section .launch-desc{
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.95;
  margin-bottom: 18px;
}
.new-launch-section .launch-desc strong{ color: var(--ink); }

.new-launch-section .launch-features{
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.new-launch-section .launch-features li{
  position: relative;
  padding-right: 22px; /* RTL inside */
  margin-bottom: 10px;
  color: var(--ink-2);
}
.new-launch-section .launch-features li::before{
  content:"";
  position: absolute;
  right: 0;
  top: 10px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 1px;
}

.new-launch-section .launch-units{
  background: var(--blue-tint);
  border-right: 4px solid var(--blue); /* RTL: right side */
  padding: 18px 22px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.new-launch-section .launch-units p{ margin: 4px 0; color: var(--ink-2); }
.new-launch-section .launch-units strong{ color: var(--blue); }

/* Image side reveal */
.new-launch-section .launch-image{
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.new-launch-section .launch-image img{
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 12s var(--ease-out);
}
.new-launch-section .launch-image::after{
  content:"";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1100ms var(--ease-out);
}
.new-launch-section[data-in="true"] .launch-image::after,
.new-launch-section.is-in .launch-image::after{
  transform: scaleX(0);
}
.new-launch-section.is-in .launch-image img{
  transform: scale(1.05);
}

/* Alternate sides */
.new-launch-section:nth-of-type(even) .row{ flex-direction: row-reverse; }

/* ---------- 9. PROJECT CARDS GRID ---------- */
.projects.section{
  background: var(--bg) !important;
  padding: 96px 0 !important;
}
.projects.section.light-background{ background: var(--bg-soft) !important; }

.project-card{
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card:hover{
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.project-card > img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out);
}
.project-card:hover > img{ transform: scale(1.04); }

.project-content{
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-content h3{
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink) !important;
}
.project-content .location{
  color: var(--ink-3);
  font-size: 0.92rem;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-content .location i{ color: var(--red); }

.project-content .project-desc{
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.85;
  margin-bottom: 16px;
}
.project-content .project-desc strong{ color: var(--ink); }

.project-content .features{
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 8px;
}
@media (max-width: 540px){
  .project-content .features{ grid-template-columns: 1fr; }
}
.project-content .features li{
  position: relative;
  padding-right: 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.project-content .features li::before{
  content:"";
  position: absolute;
  right: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 1px;
}

.project-content .launch-units{
  background: var(--blue-tint);
  border-right: 3px solid var(--blue);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  margin: 0 0 18px;
  font-size: 0.9rem;
}
.project-content .launch-units p{ margin: 0; color: var(--ink-2); }
.project-content .launch-units strong{ color: var(--blue); }

.project-content .btn-div{ margin-top: auto; }

/* Outlined variant of register button used inside cards */
.project-card .btn-register{
  width: 100%;
  justify-content: center;
}

/* ---------- 10. MODAL ---------- */
#staticBackdrop .modal-content{
  border-radius: var(--r-lg) !important;
  border: 0 !important;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 24px 80px -20px rgba(0,0,0,.35);
}
#staticBackdrop .modal-content::before{
  content:"";
  display:block;
  height: 4px;
  background: var(--red);
}
#staticBackdrop .modal-body{ padding: 36px !important; }
#staticBackdrop h3{
  color: var(--ink) !important;
  font-weight: 500 !important;
  font-size: 1.45rem !important;
}
#staticBackdrop p{ color: var(--ink-3); }

/* Inputs: bottom-border only */
#staticBackdrop .form-control{
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hairline) !important;
  border-radius: 0 !important;
  padding: 14px 4px !important;
  font-size: 1rem !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: border-color var(--dur-1) var(--ease-out);
}
#staticBackdrop .form-control:focus{
  border-bottom-color: var(--red) !important;
  outline: none !important;
}
#staticBackdrop .form-control::placeholder{ color: var(--ink-3); }

#staticBackdrop .btn-register{
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

#staticBackdrop .btn-close{
  background-color: transparent;
  opacity: 0.7;
  transition: opacity var(--dur-1) var(--ease-out);
}
#staticBackdrop .btn-close:hover{ opacity: 1; }

.modal-backdrop.show{
  background: rgba(0,0,0,.5) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1 !important;
}

.modal.fade .modal-dialog{
  transition: transform var(--dur-2) var(--ease-out),
              opacity var(--dur-2) var(--ease-out);
  transform: scale(.96);
  opacity: 0;
}
.modal.show .modal-dialog{ transform: scale(1); opacity: 1; }

/* ---------- 11. FOOTER (dark navy) ---------- */
.footer, footer.footer, .footer.dark-background{
  background: #0a0a0b !important;
  color: #e6eaf0 !important;
  border-top: 0 !important;
  padding-top: 80px !important;
  position: relative;
}

.footer .footer-top{
  padding-bottom: 40px;
}

/* Brand column */
.footer-about{ text-align: right; }
.footer-brand-logo{
  display: inline-block;
  margin-bottom: 22px;
}
.footer-brand-logo img{
  max-height: 84px;
  width: auto;
  filter: brightness(1.05);
}
.footer-brand-name{
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 1.7rem !important;
  margin: 0 0 14px;
  line-height: 1.3;
}
.footer-brand-tagline{
  color: rgba(255,255,255,.55) !important;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Column headers */
.footer h4{
  color: #fff !important;
  font-size: 1.25rem !important;
  font-weight: 500 !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
  text-align: right;
}
.footer h4::after{ display: none !important; }

/* Lists */
.footer ul{
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer ul li{
  padding: 8px 0 !important;
  color: rgba(255,255,255,.7) !important;
  display: block !important;
  text-align: right;
  font-size: 1rem;
  border: 0 !important;
}
.footer ul li i{ color: inherit; font-size: inherit; }
.footer ul li a{
  color: rgba(255,255,255,.7) !important;
  text-decoration: none !important;
  transition: color var(--dur-1) var(--ease-out),
              padding var(--dur-2) var(--ease-out);
  display: inline-block;
}
.footer ul li a:hover{
  color: #fff !important;
  padding-right: 6px;
}

/* Contact column */
.footer-contact-item{
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}
.footer-contact-item .contact-icon{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  transition: background var(--dur-1) var(--ease-out);
}
.footer-contact-item:hover .contact-icon{
  background: var(--red);
}
.footer-contact-item .contact-text{
  color: rgba(255,255,255,.85);
  direction: ltr;
}

/* Hide the legacy mark/rule decoration */
.footer-mark, .footer-mark-row{ display: none !important; }

/* Copyright */
.copyright p{ color: rgba(255,255,255,.5) !important; }
.copyright a{ color: rgba(255,255,255,.7) !important; }
.copyright a:hover{ color: #fff !important; }

/* URE bottom bar — dark variant */
.ure-bottom-bar{
  background: rgba(0,0,0,.25) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.7) !important;
  margin-top: 32px !important;
}
.ure-bottom-bar div, .ure-bottom-bar p{
  color: rgba(255,255,255,.7) !important;
  opacity: 1 !important;
}
.ure-bottom-bar a, .ure-bottom-bar nav a{
  color: rgba(255,255,255,.7) !important;
  opacity: 1 !important;
  text-decoration: none !important;
  transition: color var(--dur-1) var(--ease-out);
}
.ure-bottom-bar a:hover, .ure-bottom-bar nav a:hover{ color: #fff !important; }
.ure-bottom-bar i.bi-headset,
.ure-bottom-bar i.bi-patch-check-fill,
.ure-bottom-bar strong,
.ure-bottom-bar span[style]{
  color: #fff !important;
}

@media (max-width: 767px){
  .footer{ padding-top: 56px !important; }
  .footer-about{ text-align: center; }
  .footer-about h4, .footer-links h4, .footer-links ul li,
  .footer-links ul li a, .footer-contact-item{ text-align: center !important; justify-content: center; }
}

/* ---------- 12. SCROLL TO TOP (left side) ---------- */
.scroll-top{
  background: var(--blue) !important;
  color: #fff !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  box-shadow: 0 14px 32px -14px rgba(0,0,0,.55) !important;
  border: 0 !important;
  position: fixed !important;
  left: 22px !important;
  right: auto !important;
  bottom: 26px !important;
  z-index: 998;
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-1) var(--ease-out);
}
.scroll-top:hover{
  background: var(--blue-mid) !important;
  transform: translateY(-2px);
  color: #fff !important;
}
@media (max-width: 600px){
  .scroll-top{ left: 16px !important; bottom: 20px !important; width: 44px !important; height: 44px !important; }
}

/* ---------- 13. SCROLL REVEAL ---------- */
[data-reveal]{
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out),
              clip-path var(--dur-4) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="fade-up"]{ transform: translateY(28px); }
[data-reveal="fade-in"]{ }
[data-reveal="mask-x"]{ clip-path: inset(0 0 0 100%); } /* RTL: from right */

[data-reveal].is-in{
  opacity: 1;
  transform: none;
  clip-path: inset(0);
}

/* ---------- 14. FOCUS ---------- */
a:focus-visible, button:focus-visible, .form-control:focus-visible{
  outline: 2px solid var(--blue) !important;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 15. ALERTS (form feedback) ---------- */
.alerts{
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alerts > div{
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  font-weight: 500;
}
.alerts .success{ border-color: #1ea968; color: #0f6c41; }
.alerts .error  { border-color: var(--red); color: var(--red); }

/* ---------- 16. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #hero.hero h2{ clip-path: none; }
  .new-launch-section .launch-image::after{ display: none; }
  [data-reveal]{ opacity: 1; transform: none; clip-path: none; }
}

/* ---------- 17a-v2. ABOUT V2 (centered header + feature cards + quality badge) ---------- */
.about-v2{
  background: var(--bg-soft) !important;
  padding: 96px 0 !important;
}

.about-v2 .about-header{
  margin-bottom: 64px;
}
.about-v2 .about-eyebrow-pill{
  display: inline-block;
  background: transparent;
  color: var(--red);
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.about-v2 .about-main-title{
  font-size: clamp(1.9rem, 4.4vw, 3.4rem) !important;
  font-weight: 400 !important;
  color: var(--blue) !important;
  margin: 0 0 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.about-v2 .about-main-sub{
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.95;
}

/* Story title (right column) */
.about-v2 .about-story-title{
  font-size: clamp(1.4rem, 2.4vw, 2rem) !important;
  font-weight: 500 !important;
  color: var(--blue) !important;
  margin: 0 0 22px;
  position: relative;
  padding-right: 18px;
  line-height: 1.3;
}
.about-v2 .about-story-title::before{
  content:"";
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.about-v2 p{
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 2;
  margin-bottom: 18px;
}
.about-v2 p strong{ color: var(--ink); font-weight: 500; }

/* Feature cards (left column) */
.about-feature-card{
  background: #fff;
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 16px 40px -22px rgba(0,0,0,.22);
  border: 1px solid var(--hairline);
  transition: transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
  position: relative;
  /* Hidden until in view */
  opacity: 0;
  transform: translateX(28px) scale(.97);
}
.about-feature-card.is-in{
  animation: about-pulse-in 800ms var(--ease-out) forwards;
}
.about-feature-card.is-in:nth-of-type(1){ animation-delay: 0ms; }
.about-feature-card.is-in:nth-of-type(2){ animation-delay: 130ms; }
.about-feature-card.is-in:nth-of-type(3){ animation-delay: 260ms; }

@keyframes about-pulse-in{
  0%   { opacity: 0; transform: translateX(28px) scale(.97); }
  55%  { opacity: 1; transform: translateX(-6px) scale(1.03); box-shadow: 0 24px 50px -22px rgba(0,0,0,.32); }
  75%  { transform: translateX(2px) scale(.99); }
  100% { opacity: 1; transform: translateX(0) scale(1); box-shadow: 0 16px 40px -22px rgba(0,0,0,.22); }
}
.about-feature-card:last-child{ margin-bottom: 0; }
.about-feature-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -22px rgba(0,0,0,.28);
  border-color: rgba(217,152,32,.4);
}
.about-feature-card .card-content{
  flex: 1;
  text-align: right;
}
.about-feature-card h4{
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: var(--blue) !important;
  margin: 0 0 6px !important;
}
.about-feature-card p{
  font-size: 0.92rem;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.55;
}
.about-feature-card .card-icon{
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 10px 22px -8px rgba(217,152,32,.5);
  transition: transform var(--dur-2) var(--ease-out);
}
.about-feature-card:hover .card-icon{
  transform: scale(1.06) rotate(-3deg);
}

/* Quality badge */
.about-quality-badge{
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.4);
}
.about-quality-badge .badge-icon{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.about-quality-badge .badge-text{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.about-quality-badge strong{
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
}
.about-quality-badge span{
  font-size: 0.92rem;
  opacity: 0.85;
  color: #fff;
}

@media (max-width: 991px){
  .about-v2{ padding: 64px 0 !important; }
  .about-v2 .about-header{ margin-bottom: 40px; }
  .about-quality-badge{ flex-direction: column; text-align: center; }
  .about-quality-badge .badge-text{ justify-content: center; flex-direction: column; }
}

/* ---------- 17a. ABOUT SECTION ---------- */
.about-section{
  background: var(--bg) !important;
  padding: 96px 0 !important;
}
.about-section .section-eyebrow{
  display: inline-block;
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 8px;
  position: relative;
}
.about-section .section-eyebrow::after{
  content:"";
  position: absolute;
  right: 0; bottom: 0;
  width: 32px; height: 2px;
  background: var(--red);
}
.about-section .section-h2{
  font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
  font-weight: 500 !important;
  margin-bottom: 22px;
  color: var(--ink) !important;
  line-height: 1.2;
}
.about-section p{
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 2;
  margin-bottom: 16px;
}
.about-section p strong{ color: var(--ink); }

.about-image-wrap{
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-image-wrap img{
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}
.about-stat{
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 4px solid var(--red);
}
.about-stat-num{
  color: var(--red);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
.about-stat-label{
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 400;
}

/* ---------- PROJECT DETAIL PAGE ---------- */
.project-hero .project-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-tint);
  color: var(--blue);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.project-hero .project-eyebrow i{ color: var(--red); }

.project-stats{
  background: var(--bg-soft) !important;
  padding: 56px 0 !important;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.project-stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px){ .project-stats-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .project-stats-grid{ grid-template-columns: 1fr; } }

.stat-tile{
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.stat-tile:hover{
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.28);
}
.stat-icon{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.45);
}
.stat-value{
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-label{
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* ---------- PROJECT CONTENT SECTION ---------- */
.project-content{
  background: var(--bg) !important;
  padding: 96px 0 !important;
}
.project-content-header{
  margin-bottom: 56px;
}
.project-content-header .eyebrow-pill{
  display: inline-block;
  background: transparent;
  color: var(--red);
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.project-content-header h2{
  font-size: clamp(1.9rem, 4.4vw, 3rem) !important;
  font-weight: 600 !important;
  color: var(--blue) !important;
  margin: 0 0 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.project-content-intro{
  font-size: 1.08rem;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.95;
}

.project-content-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.project-content-block{
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  box-shadow: 0 14px 36px -22px rgba(0,0,0,.18);
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  position: relative;
}
.project-content-block:hover{
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.28);
}
.project-content-block .block-icon{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.5);
}
.project-content-block .block-body{ flex: 1; }
.project-content-block h3{
  color: var(--blue) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin: 0 0 10px !important;
  line-height: 1.4;
}
.project-content-block p{
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.95;
  margin: 0;
}

@media (max-width: 600px){
  .project-content{ padding: 64px 0 !important; }
  .project-content-block{
    flex-direction: column;
    padding: 26px;
    text-align: center;
    align-items: center;
  }
}

/* ---------- 17a-v3. PROJECTS SHOWCASE ---------- */
.projects-showcase{
  background: var(--bg) !important;
  padding: 96px 0 !important;
}
.projects-showcase-header{
  margin-bottom: 56px;
}
.projects-showcase-header .eyebrow-pill{
  display: inline-block;
  background: transparent;
  color: var(--red);
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.projects-showcase-header h2{
  font-size: clamp(1.9rem, 4.4vw, 3.2rem) !important;
  font-weight: 400 !important;
  color: var(--blue) !important;
  margin: 0 0 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.projects-showcase-header p{
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ---- Editorial variant: asymmetric header (title right, description left) ---- */
.projects-header-editorial{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  text-align: right;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  margin-bottom: 56px;
}
.projects-header-editorial .ph-lead{
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.projects-header-editorial .ph-index{
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--red);
  letter-spacing: -0.04em;
}
.projects-header-editorial .ph-eyebrow{
  display: inline-block;
  color: var(--ink-3);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.projects-header-editorial h2{
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 900 !important;
  color: var(--ink) !important;
  margin: 0 !important;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.projects-header-editorial .ph-aside{
  max-width: 340px;
  padding-bottom: 6px;
}
.projects-header-editorial .ph-aside p{
  margin: 0;
  font-size: 1rem;
  color: var(--ink-3);
  line-height: 1.8;
  text-align: right;
  max-width: none;
}
@media (max-width: 767px){
  .projects-header-editorial{
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .projects-header-editorial h2{ max-width: none; }
  .projects-header-editorial .ph-aside{ max-width: none; }
}

.projects-showcase-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1199px){
  .projects-showcase-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .projects-showcase-grid{ grid-template-columns: 1fr; gap: 22px; }
}

/* Bento variant: featured card spans 2 cols x 2 rows on desktop */
.projects-showcase-bento{
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
}
.projects-showcase-bento .project-show-card--featured{
  grid-column: span 2;
  grid-row: span 2;
}
.projects-showcase-bento .project-show-card--featured .img-wrap{
  aspect-ratio: 16 / 13;
}
@media (max-width: 1199px){
  .projects-showcase-bento{ grid-template-columns: repeat(2, 1fr); }
  .projects-showcase-bento .project-show-card--featured{ grid-column: span 2; grid-row: span 1; }
  .projects-showcase-bento .project-show-card--featured .img-wrap{ aspect-ratio: 16 / 9; }
}
@media (max-width: 600px){
  .projects-showcase-bento{ grid-template-columns: 1fr; }
  .projects-showcase-bento .project-show-card--featured{ grid-column: span 1; }
}

/* Featured ribbon */
.project-show-card--featured{ position: relative; }
.featured-ribbon{
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: var(--r-sm);
}

.project-show-card{
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: none;
  transition: transform 320ms var(--ease-out),
              border-color 320ms var(--ease-out);
  display: flex;
  flex-direction: column;
  position: relative;
  /* Hidden until scroll-into-view */
  opacity: 0;
  transform: translateY(20px);
}
/* When in view (added by reveal.js IntersectionObserver) — simple fade-rise */
.project-show-card.is-in{
  animation: card-fade-in 600ms var(--ease-out) forwards;
}
.project-show-card.is-in:nth-of-type(1){ animation-delay: 0ms; }
.project-show-card.is-in:nth-of-type(2){ animation-delay: 100ms; }
.project-show-card.is-in:nth-of-type(3){ animation-delay: 200ms; }
.project-show-card.is-in:nth-of-type(4){ animation-delay: 300ms; }

@keyframes card-fade-in{
  from{ opacity: 0; transform: translateY(20px); }
  to  { opacity: 1; transform: translateY(0); }
}

.project-show-card:hover{
  transform: translateY(-4px);
  border-color: var(--ink);
}

/* Title shifts on hover */
.project-show-card h3{
  transition: color var(--dur-1) var(--ease-out);
}
.project-show-card:hover h3{
  color: var(--red) !important;
}

/* Tags lift in sequence on hover */
.project-show-card .tag{
  transition: transform 320ms var(--ease-out),
              background var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out);
}
.project-show-card:hover .tag:nth-child(1){ transform: translateY(-2px); transition-delay: 0ms; }
.project-show-card:hover .tag:nth-child(2){ transform: translateY(-2px); transition-delay: 60ms; }

/* Action buttons gentle pop on card hover */
.project-show-card:hover .btn-whatsapp-card{
  box-shadow: 0 10px 22px -10px rgba(37,211,102,.55);
}
.project-show-card:hover .btn-details{
  border-color: var(--blue);
  background: var(--blue-tint);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .project-show-card{
    opacity: 1;
    transform: none;
    animation: none;
  }
  .project-show-card .img-wrap img{ animation: none; }
}

.project-show-card .img-wrap{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f6f9;
}
.project-show-card .img-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.project-show-card:hover .img-wrap img{ transform: scale(1.06); }

/* New launch badge (top-left in RTL = top-right visually... use start) */
.project-show-card .new-badge{
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: #25d366;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
  z-index: 2;
  box-shadow: 0 8px 18px -6px rgba(37,211,102,.5);
}

/* Top meta pills (location + size) */
.project-show-card .meta-top{
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.project-show-card:hover .meta-top{ opacity: 1; transform: translateY(0); }
.project-show-card .meta-pill{
  background: rgba(255,255,255,.96);
  color: var(--blue);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.25);
}
.project-show-card .meta-pill i{ color: var(--red); }

/* Hover overlay with explore button */
.project-show-card .img-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-2) var(--ease-out);
  z-index: 1;
}
.project-show-card:hover .img-overlay{ opacity: 1; }
.project-show-card .explore-btn{
  background: #fff;
  color: var(--blue) !important;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-weight: 500;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transform: translateY(10px) scale(.96);
  opacity: 0;
  transition: transform var(--dur-2) var(--ease-out),
              opacity var(--dur-2) var(--ease-out),
              background var(--dur-1) var(--ease-out);
  box-shadow: 0 14px 32px -10px rgba(0,0,0,.4);
}
.project-show-card:hover .explore-btn{
  transform: translateY(0) scale(1);
  opacity: 1;
}
.project-show-card .explore-btn:hover{
  background: var(--blue);
  color: #fff !important;
}

/* Card body */
.project-show-card .body{
  padding: 26px 26px 24px;
  text-align: right;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-show-card h3{
  color: var(--blue) !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  margin: 0 0 12px !important;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.project-show-card .desc{
  color: var(--ink-3);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-show-card .tags{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.project-show-card .tag{
  background: var(--bg-soft);
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--hairline);
}
.project-show-card .tag i{ color: var(--blue); font-size: 0.85rem; }

.project-show-card .actions{
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.project-show-card .btn-whatsapp-card,
.project-show-card .btn-details{
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out),
              border-color var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
}
.project-show-card .btn-whatsapp-card{
  background: #25d366;
  color: #fff !important;
  border: 1px solid #25d366;
}
.project-show-card .btn-whatsapp-card:hover{
  background: #1bb958;
  border-color: #1bb958;
  transform: translateY(-1px);
}
.project-show-card .btn-details{
  background: #fff;
  color: var(--blue) !important;
  border: 1px solid var(--hairline);
}
.project-show-card .btn-details:hover{
  border-color: var(--blue);
  background: var(--blue-tint);
  transform: translateY(-1px);
}

@media (max-width: 600px){
  .project-show-card .meta-top{ opacity: 1; transform: none; }
}

/* ---------- 17a-v4. GALLERY V2 ---------- */
.gallery-v2{
  background: var(--bg-soft) !important;
  padding: 96px 0 !important;
}
.gallery-v2 .gallery-header{
  margin-bottom: 56px;
}
.gallery-v2 .eyebrow-pill{
  display: inline-block;
  background: transparent;
  color: var(--red);
  padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.gallery-v2 h2{
  font-size: clamp(1.9rem, 4.4vw, 3.2rem) !important;
  font-weight: 400 !important;
  color: var(--blue) !important;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.gallery-v2 .gallery-header p{
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.85;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px){ .gallery-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .gallery-grid{ grid-template-columns: 1fr; } }

.gallery-item{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f3f7;
  box-shadow: 0 14px 36px -22px rgba(0,0,0,.18);
  transition: transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  cursor: pointer;
  display: block;
  text-decoration: none !important;
  /* Hidden until in view */
  opacity: 0;
  transform: translateY(24px) scale(.95);
}
.gallery-item.is-in{
  animation: gallery-pulse-in 800ms var(--ease-out) forwards;
}
/* Stagger by column position (3-col grid) */
.gallery-item.is-in:nth-child(3n+1){ animation-delay: 0ms; }
.gallery-item.is-in:nth-child(3n+2){ animation-delay: 100ms; }
.gallery-item.is-in:nth-child(3n+3){ animation-delay: 200ms; }

@keyframes gallery-pulse-in{
  0%   { opacity: 0; transform: translateY(24px) scale(.95); }
  55%  { opacity: 1; transform: translateY(-4px) scale(1.03); box-shadow: 0 24px 48px -22px rgba(0,0,0,.32); }
  75%  { transform: translateY(2px) scale(.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 14px 36px -22px rgba(0,0,0,.18); }
}

/* Resting pulse-glow on gallery items (subtle) */
.gallery-item.is-in::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  animation: gallery-resting-pulse 4s var(--ease-out) infinite;
  z-index: 0;
}
.gallery-item.is-in:nth-child(3n+1)::before{ animation-delay: 1.4s; }
.gallery-item.is-in:nth-child(3n+2)::before{ animation-delay: 1.7s; }
.gallery-item.is-in:nth-child(3n+3)::before{ animation-delay: 2.0s; }
.gallery-item:hover::before{ animation-play-state: paused; }

@keyframes gallery-resting-pulse{
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.14); }
  60%  { box-shadow: 0 0 0 10px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

@media (prefers-reduced-motion: reduce){
  .gallery-item{ opacity: 1; transform: none; }
  .gallery-item.is-in{ animation: none; }
  .gallery-item.is-in::before{ animation: none; }
}
.gallery-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -22px rgba(0,0,0,.32);
}
.gallery-item > img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 800ms var(--ease-out);
}
.gallery-item:hover > img{ transform: scale(1.06); }

.gallery-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,25,41,0.55), rgba(10,25,41,0.78));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.gallery-item:hover .gallery-overlay{ opacity: 1; }
.gallery-overlay-icon{
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  transform: translateY(8px) scale(.96);
  opacity: 0;
  transition: transform var(--dur-2) var(--ease-out),
              opacity var(--dur-2) var(--ease-out);
}
.gallery-item:hover .gallery-overlay-icon{
  transform: translateY(0) scale(1);
  opacity: 1;
}
.gallery-overlay-text{
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--dur-2) var(--ease-out) 60ms,
              opacity var(--dur-2) var(--ease-out) 60ms;
}
.gallery-item:hover .gallery-overlay-text{
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 991px){
  .gallery-v2{ padding: 64px 0 !important; }
  .gallery-v2 .gallery-header{ margin-bottom: 40px; }
}

/* ---------- 17b. WHY SECTION (v2) ---------- */
.why-section{
  background: var(--bg) !important;
  padding: 96px 0 !important;
}
.why-header{ margin-bottom: 56px; }
.why-v2 .why-main-title{
  font-size: clamp(1.9rem, 4.4vw, 3rem) !important;
  font-weight: 400 !important;
  color: var(--blue) !important;
  margin: 0 0 18px;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.why-v2 .why-main-sub{
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.9;
}

.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
}
@media (max-width: 991px){ .why-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .why-grid{ grid-template-columns: 1fr; } }

.why-v2 .why-card{
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 40px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 14px 36px -22px rgba(0,0,0,.18);
  transition: transform var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
  position: relative;
  /* Hidden until in view */
  opacity: 0;
  transform: translateY(28px) scale(.94);
}
.why-v2 .why-card.is-in{
  animation: why-pulse-in 850ms var(--ease-out) forwards;
}
.why-v2 .why-card.is-in:nth-child(3n+1){ animation-delay: 0ms; }
.why-v2 .why-card.is-in:nth-child(3n+2){ animation-delay: 130ms; }
.why-v2 .why-card.is-in:nth-child(3n+3){ animation-delay: 260ms; }

@keyframes why-pulse-in{
  0%   { opacity: 0; transform: translateY(28px) scale(.94); }
  55%  { opacity: 1; transform: translateY(-6px) scale(1.04); box-shadow: 0 26px 52px -22px rgba(0,0,0,.32); }
  75%  { transform: translateY(2px) scale(.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 14px 36px -22px rgba(0,0,0,.18); }
}

/* Resting pulse ring */
.why-v2 .why-card.is-in::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  animation: why-resting-pulse 4s var(--ease-out) infinite;
  z-index: 0;
}
.why-v2 .why-card.is-in:nth-child(3n+1)::before{ animation-delay: 1.4s; }
.why-v2 .why-card.is-in:nth-child(3n+2)::before{ animation-delay: 1.7s; }
.why-v2 .why-card.is-in:nth-child(3n+3)::before{ animation-delay: 2.0s; }
.why-v2 .why-card:hover::before{ animation-play-state: paused; }

@keyframes why-resting-pulse{
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.16); }
  60%  { box-shadow: 0 0 0 12px rgba(0,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

@media (prefers-reduced-motion: reduce){
  .why-v2 .why-card{ opacity: 1; transform: none; }
  .why-v2 .why-card.is-in, .why-v2 .why-card.is-in::before{ animation: none; }
}
.why-v2 .why-card:hover{
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 24px 54px -22px rgba(0,0,0,.32);
}
.why-v2 .why-icon{
  display: inline-flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 1.85rem;
  margin: 0 auto 22px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  transition: transform var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out);
}
.why-v2 .why-card:hover .why-icon{
  transform: scale(1.08) rotate(-4deg);
}
.why-v2 .why-card h3{
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  margin: 0 0 14px !important;
  color: var(--blue) !important;
}
.why-v2 .why-card p{
  color: var(--ink-3);
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0;
  max-width: 280px;
}

@media (max-width: 991px){
  .why-section{ padding: 64px 0 !important; }
  .why-v2 .why-main-title{ margin-bottom: 40px; }
}

/* ---------- 17c. CTA BANNER ---------- */
.cta-banner{
  background: var(--blue) !important;
  color: #fff !important;
  padding: 80px 0 !important;
  position: relative;
  overflow: hidden;
}
.cta-banner::before{
  content:"";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(200,16,46,.25), transparent 55%);
  pointer-events: none;
}
.cta-banner .container{ position: relative; z-index: 1; }
.cta-banner h2{
  color: #fff !important;
  font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
  font-weight: 500 !important;
  margin-bottom: 12px;
}
.cta-banner p{
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.cta-banner-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-banner .btn-cta-primary{
  background: #25d366;
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  font-weight: 500;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  box-shadow: 0 14px 32px -14px rgba(37,211,102,.6);
}
.cta-banner .btn-cta-primary:hover{ background: #1bb958; transform: translateY(-1px); }
.cta-banner .btn-cta-secondary{
  background: transparent;
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--r-pill);
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.cta-banner .btn-cta-secondary:hover{
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* ---------- 17d. FLOATING CONTACT BUTTONS (halo ring style) ---------- */
.floating-contact{
  position: fixed;
  right: 22px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 998;
}
.fc-btn{
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.55rem;
  text-decoration: none !important;
  border: 0;
  transition: transform var(--dur-1) var(--ease-out);
}
.fc-btn::before{
  /* Outer halo ring (static) */
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.07);
  z-index: -1;
}
.fc-btn::after{
  /* Animated pulse ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  z-index: -1;
  animation: fc-pulse 2.2s var(--ease-out) infinite;
}
.fc-btn.fc-whatsapp::after{ color: #25d366; }
.fc-btn.fc-call::after    { color: #1c1c1f; }

@keyframes fc-pulse{
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Gentle breathing bounce on the icon */
.fc-btn i{
  animation: fc-breathe 2.4s var(--ease-out) infinite;
}
.fc-btn.fc-call i{
  animation-delay: 0.3s;
}

@keyframes fc-breathe{
  0%, 100% { transform: scale(1) rotate(0); }
  50%      { transform: scale(1.12) rotate(-6deg); }
}

/* Pause animations on hover so the button feels responsive */
.fc-btn:hover::after,
.fc-btn:hover i{
  animation-play-state: paused;
}
.fc-btn.fc-whatsapp{
  background: #25d366;
  box-shadow: 0 8px 18px -6px rgba(37,211,102,.45);
}
.fc-btn.fc-call{
  background: linear-gradient(160deg, #1c1c1f, #0a0a0b);
  box-shadow: 0 8px 18px -6px rgba(10,25,41,.55);
}
.fc-btn:hover{
  transform: translateY(-3px) scale(1.04);
  color: #fff !important;
}
.fc-btn:hover::before{
  background: rgba(0, 0, 0, 0.1);
}
.fc-btn i{
  position: relative;
  z-index: 1;
  line-height: 1;
}

@media (max-width: 600px){
  .floating-contact{ right: 16px; bottom: 20px; gap: 14px; }
  .fc-btn{ width: 52px; height: 52px; font-size: 1.4rem; }
  .fc-btn::before, .fc-btn::after{ inset: -8px; }
}

/* ---------- 17e. HEADER WHATSAPP CTA ---------- */
.btn-getstarted.btn-whatsapp{
  background: #25d366 !important;
  border-color: #25d366 !important;
  box-shadow: 0 8px 24px -14px rgba(37,211,102,.55) !important;
}
.btn-getstarted.btn-whatsapp:hover{
  background: #1bb958 !important;
  border-color: #1bb958 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.btn-getstarted.btn-whatsapp i,
.btn-getstarted.btn-whatsapp:hover i{
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  display: inline-block !important;
}

/* ---------- 17f. HEADER LAYOUT (3-col flex with proper RTL) ---------- */
.header-inner{
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  position: relative;
}
.header-side{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px; /* WCAG touch target */
}
.header-side-start{ justify-content: flex-start; }
.header-side-end  { justify-content: flex-end; }

/* Desktop: 3-column grid layout (right logo / center nav / left CTA) */
@media (min-width: 992px){
  .header, #header.header{
    padding: 10px 0 !important;
    background: #fff !important;
  }
  .header-inner{
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    min-height: 88px;
    padding-inline: 32px;
    gap: 24px;
    position: relative;
  }
  .header-inner > .header-side-start{
    grid-column: 1;
    justify-self: start;
  }
  .header-inner > .ure-navmenu{
    grid-column: 2;
    justify-self: center;
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    gap: 40px !important;
  }
  .header-inner > .header-side-end{
    grid-column: 3;
    justify-self: end;
  }
  .ure-navmenu a{
    padding: 26px 0 !important;
    font-size: 1.02rem !important;
    font-weight: 500 !important;
    color: #000 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000 !important;
  }
  .ure-navmenu a:hover{ color: var(--red) !important; -webkit-text-fill-color: var(--red) !important; }
  .ure-navmenu a.active{
    color: #000 !important;
    font-weight: 500 !important;
  }
  .ure-navmenu a::after{
    bottom: 8px !important; /* lower the underline to add space between it and the text */
  }
  .header-brand img{ height: 64px; }
  .header .btn-getstarted.btn-whatsapp{
    padding: 14px 28px !important;
    font-size: 1rem !important;
    height: auto !important;
    border-radius: var(--r-pill) !important;
  }
}

@media (min-width: 1280px){
  .ure-navmenu{ gap: 48px !important; }
}

/* Brand logo (right side, all viewports) */
.header-brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}
.header-brand img{
  height: 56px;
  width: auto;
  display: block;
  transition: transform var(--dur-1) var(--ease-out);
}
.header-brand:hover img{ transform: scale(1.04); }
@media (max-width: 991px){
  .header-brand img{ height: 40px; }
}
@media (max-width: 480px){
  .header-brand img{ height: 34px; }
}

/* Nav item badge */
.ure-navmenu a.nav-with-badge{
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding-left: 4px !important;
}
.nav-badge{
  background: #25d366;
  color: #fff !important;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 10px -4px rgba(37,211,102,.5);
  display: inline-block;
}
.ure-navmenu a.nav-with-badge::after{
  display: none !important;
}

/* ---------- MOBILE HEADER (≤991px) ---------- */
@media (max-width: 991px){
  .header, #header.header{
    padding: 8px 0 !important;
    height: 64px;
  }
  .header-inner{
    padding-inline: 14px;
    gap: 10px;
    position: relative;
  }
  .header-mobile-logo img{
    height: 36px;
  }
}
@media (max-width: 480px){
  .header-mobile-logo img{ height: 30px; }
}
@media (min-width: 992px){
  .header-mobile-logo{ display: none !important; }
}
@media (max-width: 991px){

  /* Compact WhatsApp CTA — never wraps, fixed height */
  .header .btn-getstarted.btn-whatsapp{
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    gap: 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    box-shadow: 0 6px 16px -8px rgba(37,211,102,.55) !important;
  }
  .header .btn-getstarted.btn-whatsapp i{
    font-size: 1.05rem;
    line-height: 1;
  }
  .header .btn-getstarted.btn-whatsapp .btn-label{
    line-height: 1;
  }

  /* Hamburger — clean 3-line black icon, no box */
  .ure-mobile-toggle{
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer;
    position: relative;
  }
  .ure-mobile-toggle span{
    width: 26px !important;
    height: 2.5px !important;
    margin: 3px 0 !important;
    background: #0e1116 !important;
    border-radius: 2px !important;
    transition: transform 360ms var(--ease-out),
                opacity 200ms var(--ease-out),
                width 240ms var(--ease-out),
                background 200ms var(--ease-out) !important;
  }
  /* All bars equal length, clean look */
  .ure-mobile-toggle span:nth-child(1){ width: 24px !important; }
  .ure-mobile-toggle span:nth-child(2){ width: 24px !important; }
  .ure-mobile-toggle span:nth-child(3){ width: 24px !important; }

  .ure-mobile-toggle:hover span{
    background: var(--red) !important;
  }

  /* Open → X morph */
  .ure-mobile-toggle.open span{
    width: 26px !important;
    background: #fff !important;
    align-self: center !important;
  }
  .ure-mobile-toggle.open span:nth-child(1){ transform: translateY(8.5px) rotate(45deg); }
  .ure-mobile-toggle.open span:nth-child(2){ opacity: 0; transform: scaleX(0); }
  .ure-mobile-toggle.open span:nth-child(3){ transform: translateY(-8.5px) rotate(-45deg); }
}

/* ---------- ULTRA-COMPACT (≤420px): keep label + icon ---------- */
@media (max-width: 420px){
  .header .btn-getstarted.btn-whatsapp{
    padding: 0 12px !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }
  .header .btn-getstarted.btn-whatsapp i{
    font-size: 1rem;
  }
}

/* Drawer close (X) button */
.ure-drawer-close{
  position: absolute;
  top: 18px;
  left: 18px; /* RTL: visually on left */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  border: 0;
  color: #000;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
  transition: background var(--dur-1) var(--ease-out),
              transform var(--dur-1) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.ure-drawer-close:hover{
  background: var(--red);
  color: #fff;
  transform: rotate(90deg);
}
.ure-drawer-close i{ line-height: 1; }

/* Mobile drawer — white panel, off-screen by default, hidden on desktop */
.ure-mobile-menu{
  background: #ffffff !important;
  color: var(--ink) !important;
  padding: 92px 28px 32px !important;
  flex-direction: column;
  gap: 28px;
  position: fixed !important;
  top: 0;
  right: 0;
  width: min(82vw, 380px);
  height: 100vh;
  display: flex;
  transform: translateX(100%); /* off-screen to the right (RTL drawer) */
  transition: transform 360ms var(--ease-out);
  z-index: 1050;
  overflow-y: auto;
}
.ure-mobile-menu.open{
  transform: translateX(0);
  box-shadow: -24px 0 60px -10px rgba(0,0,0,.18);
}
@media (min-width: 992px){
  .ure-mobile-menu{ display: none !important; }
}

.ure-drawer-eyebrow{
  color: var(--red) !important;
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin: 0 0 6px;
  padding-right: 14px;
  position: relative;
}
.ure-drawer-eyebrow::before{
  content:"";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(200,16,46,.6);
}
.ure-drawer-nav{
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ure-drawer-nav a{
  position: relative;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
  border-bottom: 1px solid var(--hairline) !important;
  padding: 20px 0 20px 14px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem !important;
  font-weight: 500;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: color var(--dur-1) var(--ease-out),
              padding var(--dur-2) var(--ease-out);
}
.ure-drawer-nav a::after{
  content: "\F285"; /* bi-chevron-left */
  font-family: "bootstrap-icons";
  color: #000 !important;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform var(--dur-2) var(--ease-out),
              color var(--dur-1) var(--ease-out);
}
.ure-drawer-nav a:hover,
.ure-drawer-nav a:active{
  color: var(--red) !important;
  -webkit-text-fill-color: var(--red) !important;
  padding-right: 10px !important;
}
.ure-drawer-nav a:hover::after{
  color: var(--red) !important;
  transform: translateX(-4px);
}

.ure-mobile-cta{
  background: #25d366 !important;
  color: #fff !important;
  text-align: center;
  border-radius: var(--r-pill);
  padding: 16px 22px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 14px 32px -10px rgba(37,211,102,.55);
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.ure-mobile-cta:hover{
  background: #1bb958 !important;
  transform: translateY(-2px);
}

.ure-drawer-foot{
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}
.ure-drawer-brand{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--ink);
}
.ure-drawer-brand em{
  font-style: normal;
  font-weight: 500;
  color: var(--blue);
  display: block;
  font-size: 1rem;
}
.ure-drawer-brand small{
  display: block;
  font-size: 0.7rem;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ure-drawer-divider{
  width: 1px;
  height: 24px;
  background: var(--hairline);
}
.ure-drawer-disclaimer{
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

/* Open → X morph keeps black (X visible on white drawer) */
.ure-mobile-toggle.open span{
  background: #0e1116 !important;
}

/* Backdrop scrim when drawer open */
.ure-mobile-menu.open::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(10,25,41,.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
}

/* Expanded nav (clean underline style) */
.ure-navmenu{ gap: 22px; }
.ure-navmenu a{
  color: var(--blue) !important;
  font-weight: 400;
  padding: 22px 6px !important;
  font-size: 1rem;
  border-radius: 0 !important;
  background: transparent !important;
  letter-spacing: 0.01em;
  position: relative;
}
.ure-navmenu a::after{
  content: "" !important;
  position: absolute !important;
  inset: auto !important;
  bottom: 4px !important; /* lowered to add space between the underline and the text */
  left: 50% !important;
  right: auto !important;
  width: 28px !important;
  height: 3px !important;
  background: var(--red) !important;
  border-radius: 2px !important;
  transform: translateX(-50%) scaleX(0) !important;
  transform-origin: center !important;
  transition: transform var(--dur-2) var(--ease-out) !important;
}
.ure-navmenu a:hover{ color: var(--red) !important; }
.ure-navmenu a:hover::after,
.ure-navmenu a.active::after{
  transform: translateX(-50%) scaleX(1) !important;
}
.ure-navmenu a.active{
  color: var(--blue) !important;
  background: transparent !important;
}

/* ---------- 17. RTL POLISH ---------- */
[dir="rtl"] .ure-navmenu a::after{ transform-origin: left; }
[dir="rtl"] .section-title::after{ transform-origin: left; }

/* ---------- 18. LIGHT-WEIGHT POLISH ---------- */
.btn-div{ display: flex; }
.margin-mob-5{ }
@media (max-width: 991px){
  .margin-mob-5{ margin-bottom: 32px; }
  .new-launch-section{ padding: 64px 0 !important; }
  .projects.section{ padding: 64px 0 !important; }
  .ure-gallery-section{ padding: 64px 0 !important; }
}

/* =========================================================
   18. LATEST TWEAKS — clean projects section, footer bottom,
   and removal of stray template branding (Studio / IL CAZAR)
   ========================================================= */

/* ---- Remove leftover template branding in the footer ---- */
.footer-about::before{ content: none !important; display: none !important; }
.footer.dark-background::before{ content: none !important; display: none !important; }

/* ---- Footer bottom (clean copyright + disclaimer) ---- */
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 28px;
  padding: 24px 0;
}
.footer-bottom-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy{
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,.72);
}
.footer-legal{ display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a{
  color: rgba(255,255,255,.72) !important;
  font-size: 0.86rem;
  text-decoration: none !important;
  transition: color var(--dur-1) var(--ease-out);
}
.footer-legal a:hover{ color: #fff !important; }
.footer-disclaimer{
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}
@media (max-width: 600px){
  .footer-bottom-inner{ flex-direction: column; align-items: flex-start; }
}

/* ---- Projects section: clean centered header ---- */
.projects-header-clean{
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
  border-top: 0;
  display: block;
}
.projects-header-clean .ph-eyebrow{
  display: inline-block;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.projects-header-clean h2{
  font-size: clamp(1.9rem, 4vw, 3rem) !important;
  font-weight: 900 !important;
  color: var(--ink) !important;
  margin: 0 0 16px !important;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.projects-header-clean p{
  font-size: 1.05rem;
  color: var(--ink-3);
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Projects section: uniform equal-card grid ---- */
.projects-grid-clean{
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 26px;
}
@media (max-width: 1199px){
  .projects-grid-clean{ grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px){
  .projects-grid-clean{ grid-template-columns: 1fr !important; }
}

/* Always-visible location label on the card image */
.project-show-card .card-loc{
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10,10,11,.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}
.project-show-card .card-loc i{ color: var(--red); font-size: 0.85rem; }

/* Tidy the card actions so both buttons fit in a narrower column */
.projects-grid-clean .project-show-card .actions{ flex-wrap: wrap; gap: 8px; }
.projects-grid-clean .project-show-card .btn-whatsapp-card,
.projects-grid-clean .project-show-card .btn-details{
  flex: 1 1 auto;
  font-size: 0.86rem;
  padding: 11px 12px;
}

/* ---- Remove the scroll-to-top up-arrow button ---- */
.scroll-top{ display: none !important; }

/* ---- Project detail pages: cover hero height + centered about body ---- */
.hero-cover.hero-cover--project{ min-height: 84vh; }
@media (max-width: 767px){ .hero-cover.hero-cover--project{ min-height: 78vh; } }

.about-section.project-about{ background: var(--bg) !important; }
.project-about .about-header{ margin-bottom: 36px; }
.project-about-body{
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.project-about-body .about-story-title{
  padding-right: 0 !important;
  margin: 0 0 20px !important;
}
.project-about-body .about-story-title::before{ display: none !important; }
.project-about-body p{
  font-size: 1.08rem;
  color: var(--ink-2);
  line-height: 2;
  margin-bottom: 18px;
}

/* =========================================================
   19. MOBILE SPACING ENHANCEMENTS (hero + site-wide sections)
   ========================================================= */
@media (max-width: 767px){
  /* More comfortable horizontal breathing room across the site */
  .container, .container-xl, .container-fluid{
    padding-inline: 22px !important;
  }

  /* Consistent, generous vertical rhythm between sections */
  .about-v2, .about-section, .projects-showcase, .gallery-v2, .why-section,
  .project-about, .project-content, .cta-banner, .new-launch-section,
  .projects.section, .ure-gallery-section{
    padding: 60px 0 !important;
  }

  /* ---- Hero (home + project cover): text + button spacing ----
     Use a flex column with gap so eyebrow/headline/sub/buttons are spaced
     evenly and reliably (independent of each element's own margins). */
  .hero-cover-inner{
    padding-top: 112px !important;
    padding-bottom: 76px !important;
    padding-inline: 6px;
  }
  .hero-cover-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .hero-cover-eyebrow{
    margin: 0 !important;
    font-size: 0.96rem;
  }
  .hero-cover-headline{
    font-size: clamp(2rem, 8.4vw, 2.9rem) !important;
    line-height: 1.2;
    margin: 0 !important;
  }
  .hero-cover-sub{
    font-size: 1.04rem;
    line-height: 1.95;
    margin: 0 auto !important;
    max-width: 440px;
  }
  .hero-cover-cta{
    gap: 14px;
    width: 100%;
    margin: 6px 0 0 !important;
  }
}

@media (max-width: 600px){
  .hero-cover-cta{
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin-inline: auto;
  }
  .hero-cover-cta .btn-cover-primary,
  .hero-cover-cta .btn-cover-secondary{
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
  }
}

/* =========================================================
   20. INLINE LEAD FORM (above the gallery)
   ========================================================= */
.lead-form-section{
  background: var(--bg) !important;
  padding: 20px 0 72px !important;
}
.lead-form-card{
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 44px clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lead-form-card::before{
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--red);
}
.lead-form-text .lead-form-eyebrow{
  display: inline-block;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--red);
}
.lead-form-text h2{
  color: #fff !important;
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
  font-weight: 900 !important;
  line-height: 1.25;
  margin: 0 0 12px !important;
}
.lead-form-text p{
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}
.lead-form-fields{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.lead-field{ display: flex; flex-direction: column; gap: 8px; }
.lead-field label{
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.lead-field input{
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.lead-field input::placeholder{ color: var(--ink-3); }
.lead-field input:focus{
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(209,24,47,.25);
}
.lead-form-submit{
  width: 100%;
  background: var(--red) !important;
  color: #fff !important;
  border: 1px solid var(--red) !important;
  border-radius: var(--r-sm);
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.lead-form-submit:hover{ background: var(--red-deep) !important; border-color: var(--red-deep) !important; transform: translateY(-1px); }

@media (max-width: 900px){
  .lead-form-card{ grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px){
  .lead-form-section{ padding: 8px 0 56px !important; }
  .lead-form-card{ padding: 32px 22px; }
  .lead-form-fields{ grid-template-columns: 1fr; }
}

/* =========================================================
   21. NO LETTER-SPACING (Arabic letterforms must stay joined)
   The site is Arabic-primary; letter-spacing breaks the connected
   script, so it is neutralised everywhere.
   ========================================================= */
body, body *, .hero-cover-eyebrow, h1, h2, h3, h4, h5, h6{
  letter-spacing: normal !important;
}

/* =========================================================
   22. MOBILE CARD CTA FIX — the image "explore" overlay needs
   hover to appear, which never happens on touch devices. Reveal
   it on small screens and stop the invisible overlay from
   swallowing taps.
   ========================================================= */
.project-show-card .img-overlay{ pointer-events: none; }
.project-show-card .explore-btn{ pointer-events: auto; }

@media (max-width: 767px){
  .project-show-card .img-overlay{
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(10,10,11,.10), rgba(10,10,11,.52)) !important;
    align-items: flex-end;
    padding-bottom: 16px;
  }
  .project-show-card .explore-btn{
    opacity: 1 !important;
    transform: none !important;
  }
}
/* Touch devices of any width (real phones/tablets) */
@media (hover: none){
  .project-show-card .img-overlay{
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(10,10,11,.10), rgba(10,10,11,.52)) !important;
    align-items: flex-end;
    padding-bottom: 16px;
  }
  .project-show-card .explore-btn{ opacity: 1 !important; transform: none !important; }
}
