
:root{
  --maroon:#8f182b;--maroon-dark:#5d0c18;--maroon-deep:#2f0b11;
  --ink:#111827;--muted:#68717c;--line:#e9ebee;--soft:#f7f8fa;--white:#fff;
  --shadow:0 14px 34px rgba(17,24,39,.08);--radius:8px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,"Noto Sans Arabic",sans-serif;color:var(--ink);background:#fff;line-height:1.65}
a{text-decoration:none;color:inherit}img{display:block;max-width:100%}
.wrap{width:min(1180px,calc(100% - 44px));margin:auto}
.topbar{height:32px;background:linear-gradient(90deg,#67101c,#97182d);color:#fff;font-size:12px}
.topbar-inner{height:100%;display:flex;align-items:center;justify-content:space-between}
.topbar-primary,.topbar-langs{display:flex;align-items:center;gap:19px}
.top-item{opacity:.96}.topbar-langs{font-weight:700}
.site-header{background:#fff;border-bottom:1px solid #e7e7e7;position:relative;z-index:40}
.nav-wrap{height:64px;display:flex;align-items:center;gap:30px}
.site-logo{width:210px;margin-inline-start:auto}.site-logo img{width:100%;height:auto}
.main-nav{display:flex;align-items:center;gap:30px;font-weight:700;font-size:14px}
.main-nav a{padding:22px 0;position:relative}
.main-nav a:first-child{color:var(--maroon)}
.main-nav a:first-child:after{content:"";position:absolute;inset-inline:0;bottom:0;height:2px;background:var(--maroon)}
.nav-search{font-size:23px;font-weight:400}
.header-wa{margin-inline-end:auto;background:var(--maroon);color:#fff;border-radius:9px;padding:10px 19px;font-weight:800;font-size:14px}
.menu-toggle{display:none;border:0;background:none;font-size:26px}

.reference-hero{height:330px;position:relative;overflow:hidden;background:#1b2026;color:#fff}
.hero-photo{position:absolute;inset:0 39% 0 0;background-image:var(--hero);background-size:cover;background-position:center center}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,14,19,0) 0%,rgba(10,14,19,.06) 43%,rgba(12,15,20,.84) 65%,rgba(12,15,20,.97) 100%)}
.hero-content{position:relative;height:100%;display:flex;justify-content:flex-start;align-items:center}
.hero-copy{width:49%;margin-inline-start:auto;text-align:right;padding-inline-end:2px}
.hero-kicker{display:block;font-size:13px;font-weight:800;margin-bottom:9px}
.hero-copy h1{font-size:44px;line-height:1.25;margin:0 0 12px;color:#fff;letter-spacing:-.02em}
.hero-copy p{font-size:15px;line-height:1.9;margin:0 0 17px;color:rgba(255,255,255,.9)}
.hero-actions{display:flex;gap:12px;justify-content:flex-start;flex-direction:row-reverse}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;padding:11px 22px;font-weight:800;border:1px solid transparent}
.hero-primary{background:var(--maroon);color:#fff;border-color:#b7364a}
.hero-secondary{background:#fff;color:var(--maroon);border-color:#fff}
.hero-checks{display:flex;gap:24px;margin-top:15px;font-size:12px;color:rgba(255,255,255,.9);justify-content:flex-start}
.trust-strip{background:#fff;border-bottom:1px solid var(--line)}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);height:72px}
.trust-item{display:flex;align-items:center;justify-content:center;gap:13px;border-inline-end:1px solid #eeeeee}
.trust-item:last-child{border-inline-end:0}
.trust-icon{font-size:31px;color:var(--maroon);line-height:1}
.trust-item strong{display:block;font-size:14px}.trust-item small{display:block;color:#777;font-size:12px;margin-top:1px}

.ref-section{padding:46px 0}.services-section{background:#fff}
.section-title{margin-bottom:24px;text-align:right}
.section-title span,.section-kicker{color:var(--maroon);font-weight:900;font-size:13px}
.section-title h2,.about-reference-copy h2{font-size:30px;line-height:1.25;margin:5px 0 6px}
.section-title p{margin:0;color:var(--muted);font-size:14px}
.reference-service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.reference-service-card{border:1px solid #e4e7ea;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 6px 20px rgba(25,30,36,.045)}
.service-photo{height:125px;position:relative;overflow:hidden;display:block;background:#ddd}
.service-photo img{width:100%;height:100%;object-fit:cover}
.service-badge{position:absolute;inset-inline-end:10px;bottom:-14px;width:34px;height:34px;background:var(--maroon);color:#fff;border-radius:5px;display:grid;place-items:center;font-size:21px;font-weight:900;box-shadow:0 5px 14px rgba(143,24,43,.2)}
.service-card-body{padding:27px 18px 18px;text-align:right}
.service-card-body h3{font-size:20px;margin:0 0 6px}
.service-card-body p{font-size:13px;color:var(--muted);margin:0 0 14px;min-height:43px}
.service-more{color:var(--maroon);font-weight:900;font-size:13px}

.about-reference{background:#fff;border-top:1px solid #f0f1f2}
.about-reference-grid{display:grid;grid-template-columns:1fr 1.12fr;gap:54px;align-items:center}
.about-reference-copy{text-align:right}
.about-reference-copy h2{font-size:30px;margin-top:5px}
.about-reference-copy p{font-size:15px;color:#48515b;line-height:1.85;margin:0 0 20px}
.outline-link{display:inline-flex;color:var(--maroon);border:1px solid var(--maroon);border-radius:7px;padding:9px 17px;font-weight:800;font-size:13px}
.about-reference-image{position:relative}
.about-reference-image:before{content:"";position:absolute;top:-8px;right:-8px;width:88px;height:9px;background:var(--maroon);border-radius:9px 9px 0 0}
.about-reference-image:after{content:"";position:absolute;right:-8px;bottom:-8px;width:9px;height:82px;background:var(--maroon);border-radius:0 0 9px 9px}
.about-reference-image img{width:100%;height:225px;object-fit:cover;border-radius:6px}

.why-reference{background:#f8fafb;padding-top:40px;padding-bottom:48px}
.why-title{margin-bottom:22px}.why-reference-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}
.why-reference-grid article{background:#fff;border:1px solid #e7e9ec;border-radius:7px;padding:19px 18px;position:relative;text-align:right;min-height:125px}
.why-icon{position:absolute;inset-inline-end:14px;top:14px;width:35px;height:35px;background:var(--maroon);color:#fff;border-radius:5px;display:grid;place-items:center;font-size:17px}
.why-reference-grid h3{font-size:16px;margin:4px 45px 8px 0}
.why-reference-grid p{font-size:12px;color:#68717c;margin:0;line-height:1.7}

.reference-cta{height:105px;position:relative;background:linear-gradient(90deg,#5e0c18,#9a1730);color:#fff;overflow:hidden}
.cta-image{position:absolute;left:0;top:0;bottom:0;width:35%;background:url('/assets/images/reference/cta.webp') center/cover no-repeat;opacity:.55}
.cta-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(69,6,16,.12),rgba(100,10,25,.14))}
.reference-cta-inner{position:relative;height:100%;display:flex;align-items:center;justify-content:space-between;gap:30px}
.cta-copy{text-align:right;margin-inline-start:auto}.cta-copy span{font-size:12px}.cta-copy h2{font-size:26px;margin:2px 0}.cta-copy p{font-size:12px;margin:0;color:rgba(255,255,255,.86)}
.cta-buttons{display:flex;gap:11px}.cta-call{color:#fff;border:1px solid rgba(255,255,255,.75);background:transparent}.cta-wa{background:#fff;color:var(--maroon)}

.reference-footer{background:#320c12;color:#fff;padding:34px 0 14px}
.footer-grid{display:grid;grid-template-columns:.8fr .85fr 1fr 1.25fr;gap:52px}
.footer-grid>div{display:flex;flex-direction:column;gap:6px}
.footer-grid h3{font-size:15px;margin:0 0 8px}.footer-grid a,.footer-grid p{font-size:12px;color:rgba(255,255,255,.84);margin:0}
.footer-brand{align-items:flex-start}.footer-logo{width:220px;background:#fff;padding:10px;border-radius:5px;margin-bottom:8px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:28px;padding-top:13px;display:flex;justify-content:space-between;color:rgba(255,255,255,.67);font-size:11px}
.footer-bottom a{color:#fff}

.floating-wa{position:fixed;right:20px;bottom:17px;z-index:80;width:54px;height:54px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;box-shadow:0 10px 25px rgba(0,0,0,.22);font-weight:900}
main{min-height:1px}

/* Keep inner pages from Phase 4 readable */
.page-hero{background:linear-gradient(135deg,#f6eef0,#fff);padding:72px 0;border-bottom:1px solid var(--line)}
.page-hero h1{font-size:48px;line-height:1.2;margin:0 0 12px}.page-hero p{color:var(--muted);font-size:18px;max-width:760px}
.featured-image{width:100%;max-height:520px;object-fit:cover;border-radius:16px;margin-bottom:28px}
.richtext{color:#3d4752}.detail-grid{display:grid;grid-template-columns:1fr 320px;gap:48px}.detail-aside{border:1px solid var(--line);border-radius:12px;padding:20px}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}

@media(max-width:980px){
  .nav-wrap{height:70px}.site-logo{width:180px}.menu-toggle{display:block;margin-inline-start:auto}.header-wa{display:none}
  .main-nav{display:none;position:absolute;top:70px;left:20px;right:20px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:12px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:0}.main-nav.open{display:flex}.main-nav a{padding:11px 12px}
  .reference-hero{height:auto;min-height:540px}.hero-photo{inset:0;background-position:35% center}.hero-shade{background:linear-gradient(180deg,rgba(10,14,19,.18) 0%,rgba(10,14,19,.88) 62%,rgba(10,14,19,.96) 100%)}.hero-content{min-height:540px;align-items:flex-end;padding-bottom:42px}.hero-copy{width:100%;margin:0;text-align:right}.hero-copy h1{font-size:39px}.hero-copy p{max-width:680px}
  .trust-grid{grid-template-columns:repeat(2,1fr);height:auto}.trust-item{min-height:72px;border-bottom:1px solid #eee}
  .reference-service-grid,.why-reference-grid{grid-template-columns:repeat(2,1fr)}.about-reference-grid{grid-template-columns:1fr}.about-reference-image{order:-1}
  .footer-grid{grid-template-columns:repeat(2,1fr)}.reference-cta{height:auto;padding:28px 0}.reference-cta-inner{align-items:flex-start;flex-direction:column}.cta-copy{margin:0}.cta-image{width:55%}
}
@media(max-width:620px){
  .wrap{width:min(100% - 28px,1180px)}.topbar-primary .top-item:not(:first-child){display:none}.site-logo{width:155px}
  .reference-hero{min-height:510px}.hero-content{min-height:510px}.hero-copy h1{font-size:35px}.hero-copy p{font-size:14px}.hero-actions,.hero-checks{flex-wrap:wrap}.hero-checks{gap:11px}
  .trust-grid{grid-template-columns:1fr 1fr}.trust-item{padding:10px;justify-content:flex-start}.trust-icon{font-size:24px}
  .ref-section{padding:38px 0}.section-title h2,.about-reference-copy h2{font-size:26px}
  .reference-service-grid,.why-reference-grid{grid-template-columns:1fr}.service-photo{height:190px}
  .about-reference-grid{gap:28px}.about-reference-image img{height:220px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px}.footer-brand{grid-column:1/-1}.footer-bottom{flex-direction:column;gap:7px}
  .cta-buttons{flex-wrap:wrap}.reference-cta{padding:25px 0}.cta-image{width:100%;opacity:.22}
}


/* ===== Phase 4.2.1 — exact reference corrective pass ===== */

/* Scale the approved design correctly on modern desktop widths. */
.wrap{width:min(1480px,calc(100% - 64px))}
.topbar{height:38px;font-size:13px}
.nav-wrap{height:82px;gap:34px}
.site-logo{width:250px}
.main-nav{gap:34px;font-size:15px}
.main-nav a{padding:29px 0}
.header-wa{padding:12px 23px;font-size:15px}

/* The reference hero is a full-width photographic scene, not a split black block. */
.reference-hero{
  height:455px;
  background:#161a1f;
}
.hero-photo{
  inset:0;
  background-image:var(--hero);
  background-size:cover;
  background-position:center center;
  transform:scale(1.002);
}
.hero-shade{
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(8,11,15,.02) 0%,
      rgba(8,11,15,.04) 35%,
      rgba(8,11,15,.30) 57%,
      rgba(8,11,15,.73) 72%,
      rgba(8,11,15,.91) 100%);
}
.hero-content{height:100%}
.hero-copy{
  width:48%;
  max-width:690px;
  margin-inline-start:auto;
  padding-inline-end:24px;
}
.hero-kicker{font-size:15px;margin-bottom:10px}
.hero-copy h1{
  font-size:56px;
  line-height:1.18;
  margin-bottom:16px;
}
.hero-copy p{
  font-size:17px;
  line-height:1.85;
  max-width:660px;
}
.hero-actions{gap:14px;margin-top:18px}
.hero-actions .btn{padding:13px 25px;font-size:15px}
.hero-checks{font-size:13px;gap:26px;margin-top:19px}

/* Match the stronger trust strip proportions in the approved mockup. */
.trust-grid{height:88px}
.trust-item{gap:16px}
.trust-icon{font-size:36px}
.trust-item strong{font-size:16px}
.trust-item small{font-size:13px}

/* Content width and vertical rhythm. */
.ref-section{padding:62px 0}
.section-title{margin-bottom:30px}
.section-title span,.section-kicker{font-size:14px}
.section-title h2,.about-reference-copy h2{font-size:36px}
.section-title p{font-size:15px}

/* Service cards visually match the reference at large desktop size. */
.reference-service-grid{gap:22px}
.reference-service-card{border-radius:10px}
.service-photo{height:170px}
.service-card-body{padding:31px 22px 23px}
.service-card-body h3{font-size:23px}
.service-card-body p{font-size:14px;line-height:1.75;min-height:50px}
.service-more{font-size:14px}
.service-badge{width:39px;height:39px;font-size:22px;bottom:-17px}

/* About: in the approved Arabic layout, image is on the right and text on the left. */
.about-reference-grid{
  grid-template-columns:1fr 1.08fr;
  gap:72px;
  min-height:330px;
}
html[dir="rtl"] .about-reference-copy{grid-column:1;grid-row:1}
html[dir="rtl"] .about-reference-image{grid-column:2;grid-row:1}
html[dir="ltr"] .about-reference-copy{grid-column:2;grid-row:1}
html[dir="ltr"] .about-reference-image{grid-column:1;grid-row:1}
.about-reference-copy p{font-size:16px;line-height:1.9}
.about-reference-image img{height:310px}
.about-reference-image:before{width:105px;height:10px}
.about-reference-image:after{height:100px;width:10px}

/* Why Al Wafa */
.why-reference{padding-top:54px;padding-bottom:60px}
.why-reference-grid{gap:21px}
.why-reference-grid article{padding:24px 22px;min-height:145px}
.why-reference-grid h3{font-size:18px;margin-top:5px}
.why-reference-grid p{font-size:13px;line-height:1.75}
.why-icon{width:40px;height:40px;font-size:19px}

/* CTA/reference footer proportions */
.reference-cta{height:132px}
.cta-copy h2{font-size:31px}
.cta-copy p,.cta-copy span{font-size:13px}
.cta-buttons .btn{padding:12px 22px;font-size:14px}
.reference-footer{padding-top:44px}
.footer-grid{gap:65px}
.footer-grid h3{font-size:16px}
.footer-grid a,.footer-grid p{font-size:13px}
.footer-logo{width:250px}
.footer-bottom{font-size:12px}

/* Keep WhatsApp visually identical to the reference. */
.floating-wa{width:58px;height:58px;right:25px;bottom:21px}

/* The old split effect from previous phases must never reappear. */
.reference-hero .hero-photo{width:auto!important;right:0!important;left:0!important}

/* Desktop responsiveness */
@media(min-width:1500px){
  .hero-copy{padding-inline-end:38px}
  .reference-service-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:1200px){
  .wrap{width:min(1120px,calc(100% - 44px))}
  .main-nav{gap:22px;font-size:14px}
  .site-logo{width:215px}
  .reference-hero{height:410px}
  .hero-copy h1{font-size:47px}
  .service-photo{height:145px}
}

/* Tablet/mobile retains the same visual direction instead of forcing desktop geometry. */
@media(max-width:980px){
  .wrap{width:min(100% - 36px,900px)}
  .reference-hero{height:auto;min-height:570px}
  .hero-photo{inset:0;background-position:35% center}
  .hero-shade{
    background:linear-gradient(180deg,
      rgba(8,11,15,.05) 0%,
      rgba(8,11,15,.30) 42%,
      rgba(8,11,15,.90) 70%,
      rgba(8,11,15,.97) 100%);
  }
  .hero-content{min-height:570px;padding-bottom:45px;align-items:flex-end}
  .hero-copy{width:100%;max-width:760px;padding:0}
  .hero-copy h1{font-size:43px}
  .about-reference-grid{grid-template-columns:1fr;gap:34px}
  html[dir="rtl"] .about-reference-copy,
  html[dir="rtl"] .about-reference-image,
  html[dir="ltr"] .about-reference-copy,
  html[dir="ltr"] .about-reference-image{grid-column:1;grid-row:auto}
  .about-reference-image{order:-1}
  .about-reference-image img{height:300px}
}

@media(max-width:620px){
  .wrap{width:min(100% - 26px,600px)}
  .reference-hero{min-height:530px}
  .hero-content{min-height:530px}
  .hero-copy h1{font-size:36px}
  .hero-copy p{font-size:15px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .hero-actions .btn{width:100%}
  .trust-grid{grid-template-columns:1fr 1fr}
  .reference-service-grid{grid-template-columns:1fr}
  .service-photo{height:215px}
  .section-title h2,.about-reference-copy h2{font-size:29px}
  .about-reference-image img{height:235px}
  .why-reference-grid{grid-template-columns:1fr}
}


/* ===== Phase 4.2.2 — Final Visual Alignment ===== */

/* 1) Header scale/alignment closer to approved reference */
.topbar{height:40px;font-size:13px}
.nav-wrap{height:90px;gap:38px}
.site-logo{width:270px}
.main-nav{gap:36px;font-size:15.5px}
.main-nav a{padding:31px 0}
.header-wa{padding:13px 24px;font-size:15px;border-radius:9px}

/* 2) Hero image framing — show more skyline/car, reduce over-zoom */
.reference-hero{height:470px}
.hero-photo{
  background-size:cover;
  background-position:36% 52%;
  transform:none;
}
.hero-shade{
  background:
    linear-gradient(90deg,
      rgba(8,11,15,0) 0%,
      rgba(8,11,15,.03) 34%,
      rgba(8,11,15,.18) 52%,
      rgba(8,11,15,.62) 70%,
      rgba(8,11,15,.90) 100%);
}
.hero-copy{
  width:47%;
  max-width:680px;
  padding-inline-end:30px;
}
.hero-copy h1{font-size:54px;line-height:1.16}
.hero-copy p{font-size:17px;line-height:1.85}
.hero-kicker{font-size:14px}
.hero-actions .btn{padding:13px 25px}
.hero-checks{margin-top:20px}

/* 3) Trust strip */
.trust-grid{height:92px}
.trust-item{gap:17px}
.trust-icon{font-size:37px}
.trust-item strong{font-size:16px}
.trust-item small{font-size:13px}

/* 4) Services — slightly larger cards/photos like reference */
.services-section{padding-top:64px;padding-bottom:66px}
.reference-service-grid{gap:24px}
.reference-service-card{min-height:355px}
.service-photo{height:185px}
.service-card-body{padding:32px 23px 24px}
.service-card-body h3{font-size:22px}
.service-card-body p{font-size:14px;min-height:50px}
.service-more{font-size:14px}
.service-badge{width:40px;height:40px;bottom:-17px}

/* 5) About — reduce empty center gap and tighten proportions */
.about-reference{padding-top:56px;padding-bottom:58px}
.about-reference-grid{
  grid-template-columns:1fr 1.04fr;
  gap:42px;
  align-items:center;
}
.about-reference-copy{
  max-width:590px;
  justify-self:end;
}
.about-reference-image{
  max-width:680px;
}
.about-reference-image img{
  height:320px;
  object-fit:cover;
}

/* 6) Why Al Wafa */
.why-reference{padding-top:52px;padding-bottom:56px}
.why-reference-grid{gap:22px}
.why-reference-grid article{padding:25px 22px;min-height:150px}
.why-reference-grid h3{font-size:18px}
.why-reference-grid p{font-size:13px}
.why-icon{width:42px;height:42px}

/* 7) CTA — fix overlap completely */
.reference-cta{
  min-height:150px;
  height:auto;
  padding:0;
}
.reference-cta-inner{
  min-height:150px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:40px;
}
.cta-copy{
  margin:0;
  max-width:650px;
  justify-self:end;
}
.cta-copy span{display:block;font-size:13px;margin-bottom:4px}
.cta-copy h2{font-size:32px;line-height:1.2;margin:0 0 6px}
.cta-copy p{font-size:13px;line-height:1.7;margin:0}
.cta-buttons{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
  justify-self:start;
}
.cta-buttons .btn{
  white-space:nowrap;
  min-width:135px;
  padding:12px 22px;
}
.cta-image{
  width:38%;
  opacity:.5;
}
.cta-overlay{
  background:linear-gradient(90deg,rgba(69,6,16,.18),rgba(100,10,25,.08));
}

/* 8) Footer */
.reference-footer{padding-top:48px;padding-bottom:16px}
.footer-grid{
  grid-template-columns:.9fr .9fr 1fr 1.3fr;
  gap:70px;
}
.footer-grid h3{font-size:17px}
.footer-grid a,.footer-grid p{font-size:13.5px;line-height:1.75}
.footer-logo{width:270px;padding:12px}
.footer-bottom{font-size:12px;margin-top:30px;padding-top:15px}

/* Desktop widths */
@media(min-width:1700px){
  .wrap{width:min(1520px,calc(100% - 80px))}
  .hero-copy{max-width:700px}
  .about-reference-copy{max-width:610px}
}

/* Keep reference geometry on standard desktop */
@media(max-width:1400px){
  .wrap{width:min(1240px,calc(100% - 48px))}
  .nav-wrap{gap:28px}
  .site-logo{width:235px}
  .main-nav{gap:25px;font-size:14.5px}
  .reference-hero{height:430px}
  .hero-copy h1{font-size:48px}
  .service-photo{height:160px}
  .reference-service-card{min-height:330px}
  .about-reference-grid{gap:34px}
}

/* Tablet CTA should stack cleanly */
@media(max-width:980px){
  .reference-cta-inner{
    grid-template-columns:1fr;
    gap:18px;
    padding-top:28px;
    padding-bottom:28px;
  }
  .cta-copy{justify-self:stretch;max-width:none}
  .cta-buttons{justify-self:stretch;flex-wrap:wrap}
  .reference-cta{min-height:0}
}

/* Mobile */
@media(max-width:620px){
  .topbar{height:auto;min-height:36px}
  .nav-wrap{height:78px}
  .site-logo{width:165px}
  .reference-hero{min-height:540px}
  .hero-photo{background-position:30% center}
  .hero-copy{width:100%;padding:0}
  .hero-copy h1{font-size:36px}
  .hero-actions .btn{width:100%}
  .trust-grid{height:auto}
  .service-photo{height:220px}
  .reference-service-card{min-height:0}
  .about-reference-copy{max-width:none}
  .about-reference-image{max-width:none}
  .about-reference-image img{height:240px}
  .cta-buttons{width:100%}
  .cta-buttons .btn{flex:1 1 100%}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}
  .footer-brand{grid-column:1/-1}
  .footer-logo{width:230px}
}


/* ===== Phase 4.2.3 — CTA RTL final fix ===== */

/*
  Force physical layout independent of page RTL:
  left  = action buttons
  right = CTA copy
*/
.reference-cta{
  position:relative;
  min-height:150px;
  overflow:hidden;
}
.reference-cta-inner{
  position:relative;
  z-index:3;
  min-height:150px;
  display:grid !important;
  grid-template-columns:minmax(300px,.9fr) minmax(430px,1.35fr);
  grid-template-areas:"actions copy";
  align-items:center;
  column-gap:64px;
  direction:ltr;
}

.reference-cta .cta-copy{
  grid-area:copy;
  direction:rtl;
  text-align:right;
  width:100%;
  max-width:680px;
  margin:0;
  justify-self:end;
  align-self:center;
}

.reference-cta .cta-buttons{
  grid-area:actions;
  direction:rtl;
  width:auto;
  display:flex !important;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  justify-self:start;
  gap:12px;
  flex-wrap:nowrap;
  margin:0;
}

.reference-cta .cta-buttons .btn{
  position:relative;
  z-index:4;
  display:inline-flex;
  width:auto;
  min-width:145px;
  min-height:46px;
  padding:11px 22px;
  white-space:nowrap;
  line-height:1.2;
}

.reference-cta .cta-copy span,
.reference-cta .cta-copy h2,
.reference-cta .cta-copy p{
  position:relative;
  z-index:4;
}

.reference-cta .cta-copy span{
  display:block;
  margin:0 0 3px;
  font-size:13px;
}
.reference-cta .cta-copy h2{
  margin:0 0 5px;
  font-size:31px;
  line-height:1.25;
}
.reference-cta .cta-copy p{
  margin:0;
  font-size:13px;
  line-height:1.65;
}

/* Keep the decorative image confined to the physical left side. */
.reference-cta .cta-image{
  left:0;
  right:auto;
  width:37%;
  opacity:.42;
  z-index:1;
}
.reference-cta .cta-overlay{
  z-index:2;
  background:linear-gradient(
    90deg,
    rgba(66,5,15,.20) 0%,
    rgba(108,12,28,.26) 34%,
    rgba(126,17,38,.10) 55%,
    rgba(126,17,38,0) 100%
  );
}

/* Standard laptops */
@media(max-width:1200px){
  .reference-cta-inner{
    grid-template-columns:minmax(270px,.85fr) minmax(390px,1.2fr);
    column-gap:36px;
  }
  .reference-cta .cta-copy h2{font-size:28px}
}

/* Tablet: stack deliberately, not through inherited RTL grid behavior */
@media(max-width:900px){
  .reference-cta{
    min-height:0;
    padding:28px 0;
  }
  .reference-cta-inner{
    min-height:0;
    grid-template-columns:1fr;
    grid-template-areas:
      "copy"
      "actions";
    row-gap:20px;
    direction:ltr;
  }
  .reference-cta .cta-copy{
    justify-self:stretch;
    max-width:none;
  }
  .reference-cta .cta-buttons{
    justify-self:stretch;
    justify-content:flex-end;
    flex-wrap:wrap;
  }
  .reference-cta .cta-image{width:55%}
}

/* Mobile */
@media(max-width:620px){
  .reference-cta{padding:26px 0}
  .reference-cta .cta-copy h2{font-size:26px}
  .reference-cta .cta-buttons{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }
  .reference-cta .cta-buttons .btn{
    width:100%;
    min-width:0;
  }
  .reference-cta .cta-image{
    width:100%;
    opacity:.20;
  }
}


/* ===== Phase 4.2.4 — CTA button clipping fix ===== */

.reference-cta{
  overflow:hidden;
}

.reference-cta-inner{
  display:flex !important;
  flex-direction:row !important;
  direction:ltr !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:48px !important;
  min-height:150px;
}

/* physical left */
.reference-cta .cta-buttons{
  order:1;
  direction:rtl;
  flex:0 0 42%;
  width:42%;
  max-width:520px;
  min-width:360px;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:14px !important;
  flex-wrap:nowrap !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  z-index:5;
}

.reference-cta .cta-buttons .btn{
  flex:0 0 auto !important;
  width:auto !important;
  min-width:155px !important;
  max-width:none !important;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:nowrap !important;
  padding:12px 23px !important;
  line-height:1.2 !important;
}

/* physical right */
.reference-cta .cta-copy{
  order:2;
  direction:rtl;
  text-align:right;
  flex:1 1 auto;
  width:auto;
  max-width:680px;
  min-width:0;
  margin:0 !important;
  justify-self:auto !important;
  z-index:5;
}

.reference-cta .cta-image{
  z-index:1;
  pointer-events:none;
}

.reference-cta .cta-overlay{
  z-index:2;
  pointer-events:none;
}

/* Laptop */
@media(max-width:1200px){
  .reference-cta-inner{gap:30px !important}
  .reference-cta .cta-buttons{
    flex-basis:45%;
    width:45%;
    min-width:330px;
  }
  .reference-cta .cta-buttons .btn{
    min-width:145px !important;
    padding:11px 18px !important;
  }
}

/* Tablet */
@media(max-width:900px){
  .reference-cta-inner{
    flex-direction:column !important;
    align-items:stretch !important;
    gap:18px !important;
    padding-top:28px;
    padding-bottom:28px;
  }
  .reference-cta .cta-copy{
    order:1;
    max-width:none;
  }
  .reference-cta .cta-buttons{
    order:2;
    width:100%;
    max-width:none;
    min-width:0;
    flex-basis:auto;
    justify-content:flex-end !important;
  }
}

/* Mobile */
@media(max-width:620px){
  .reference-cta .cta-buttons{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .reference-cta .cta-buttons .btn{
    width:100% !important;
    min-width:0 !important;
  }
}
