/* =========================================================================
   Zill V2 — Homepage design system
   Visual parity with masaa.com.sa layout; identity = تعمير الظل (brown/gold);
   Typography = Cairo. Colors derived from the Zill logo.
   ========================================================================= */
:root{
  --c-primary:#56361D; --c-primary-600:#6A462A; --c-primary-700:#3D2716;
  --c-secondary:#B58D5B; --c-accent:#C39A5E; --c-accent-600:#AE8446; --c-accent-700:#8E6A38;
  --c-accent-ink:#2A1B10; --c-tan:#D1B48F;
  /* NOTE: --c-accent (#C39A5E) is a DERIVED ACCENT — interpolated between the two
     colors extracted DIRECTLY from the logo (bronze #B58D5B and tan #D1B48F).
     It is NOT sampled directly from the logo. Extracted-direct: #56361D, #B58D5B, #D1B48F. */
  --c-dark:#2A1B10; --c-heading:#33230F; --c-body:#5A4E44; --c-muted:#8B7B6B; --c-on-dark:#F6EFE4;
  --c-bg:#FFFFFF; --c-bg-alt:#FAF6EF; --c-bg-warm:#F1E7D8; --c-border:#E8DECE; --c-cream:#F6F1E9;
  --c-wa:#25D366; --c-wa-600:#1FB457;
  --font-base:"Cairo",system-ui,"Segoe UI",Tahoma,sans-serif;
  --fs-hero:clamp(2.1rem,5.2vw,3.35rem); --fs-h2:clamp(1.6rem,3.4vw,2.2rem);
  --fs-h3:clamp(1.15rem,1.6vw,1.28rem); --fs-eyebrow:clamp(.85rem,1.1vw,.95rem);
  --fs-body:clamp(.98rem,1.15vw,1rem); --fs-small:.85rem; --fs-btn:.95rem;
  --lh-tight:1.18; --lh-heading:1.3; --lh-body:1.9; --ls-eyebrow:.3px;
  --radius-sm:8px; --radius:12px; --radius-lg:16px; --radius-pill:999px;
  --shadow-sm:0 4px 14px rgba(42,30,20,.06); --shadow:0 8px 24px rgba(42,30,20,.08);
  --shadow-lg:0 16px 40px rgba(42,30,20,.12);
  --container:1200px; --gutter:clamp(1rem,4vw,1.5rem);
  --sec-y:clamp(3.25rem,7vw,6rem); --grid-gap:clamp(1.1rem,2.2vw,1.75rem);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font-base);font-size:var(--fs-body);line-height:var(--lh-body);
  color:var(--c-body);background:var(--c-bg);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{color:var(--c-heading);line-height:var(--lh-heading);margin:0 0 .6em;font-weight:700}
p{margin:0 0 1em}
.container{max-width:var(--container);margin-inline:auto;padding-inline:var(--gutter);width:100%}
.section{padding-block:var(--sec-y)}
.section--alt{background:var(--c-bg-alt)}
.skip-link{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;width:auto;height:auto;clip:auto;top:1rem;inset-inline-start:1rem;
  background:#fff;color:var(--c-primary);padding:.6rem 1rem;border-radius:8px;z-index:200}

/* ----- Section head ----- */
.sec-head{max-width:56ch;margin-inline:auto;text-align:center;margin-bottom:clamp(2rem,4vw,3rem)}
.eyebrow{display:inline-block;color:var(--c-accent-700);font-weight:600;font-size:var(--fs-eyebrow);
  letter-spacing:var(--ls-eyebrow);margin-bottom:.5rem}
.sec-head h2{font-size:var(--fs-h2);font-weight:800}
.sec-head p{color:var(--c-body)}

/* ----- Buttons ----- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;
  font-family:inherit;font-weight:700;font-size:var(--fs-btn);line-height:1;border:1.5px solid transparent;
  padding:.85rem 1.6rem;border-radius:var(--radius-sm);transition:transform .15s,background .2s,box-shadow .2s;min-height:48px}
.btn:hover{transform:translateY(-1px)}
.btn--cta{background:var(--c-accent);color:var(--c-accent-ink);border-color:var(--c-accent)}
.btn--cta:hover{background:var(--c-accent-600)}
.btn--primary{background:var(--c-primary);color:#fff;border-color:var(--c-primary)}
.btn--primary:hover{background:var(--c-primary-600)}
.btn--ghost{background:transparent;color:var(--c-primary);border-color:var(--c-border)}
.btn--wa{background:var(--c-wa);color:#04310f;border-color:var(--c-wa)}
.btn--wa:hover{background:var(--c-wa-600)}
.btn--pill{border-radius:var(--radius-pill)}
.btn--sm{padding:.6rem 1rem;min-height:40px;font-size:.85rem}
.btn__ico{width:1.15em;height:1.15em;flex:none}

/* ----- Utility bar ----- */
.topbar{background:var(--c-dark);color:var(--c-on-dark);font-size:var(--fs-small)}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:40px;flex-wrap:wrap}
.topbar a{color:var(--c-on-dark);opacity:.9}
.topbar a:hover{opacity:1}
.topbar__meta{display:flex;gap:1.2rem;align-items:center;flex-wrap:wrap}
.topbar__social{display:flex;gap:.7rem;align-items:center}
.topbar__social svg{width:18px;height:18px}

/* ----- Header ----- */
.site-header{position:sticky;top:0;z-index:100;background:#fff;box-shadow:0 2px 14px rgba(42,30,20,.06)}
.header-inner{display:flex;align-items:center;gap:1.2rem;min-height:108px}
.brand{display:flex;align-items:center;gap:.6rem;flex:none}
.brand__logo{height:94px;width:auto;object-fit:contain;display:block}
/* Mobile: larger logo (readable name + number) + taller header row to fit it */
@media(max-width:600px){
  .brand__logo{height:100px}
  .header-inner{min-height:112px}
}
.footer-logo{display:inline-block;background:var(--c-cream);border-radius:12px;padding:10px 14px}
.footer-logo img{height:66px;width:auto;display:block}
.brand__text{display:flex;flex-direction:column;line-height:1.05}
.brand__text b{font-size:1.28rem;font-weight:800;color:var(--c-primary)}
.brand__text small{font-size:.72rem;color:var(--c-secondary);font-weight:600}
.main-nav{margin-inline-start:auto}
.main-nav ul{display:flex;gap:.3rem;list-style:none;margin:0;padding:0}
.main-nav a{display:block;padding:.6rem .9rem;font-weight:600;color:var(--c-heading);border-radius:8px}
.main-nav a:hover{color:var(--c-accent-700)}
.main-nav a[aria-current="page"]{color:var(--c-accent-700)}
.header-actions{display:flex;align-items:center;gap:.8rem;flex:none}
.header-phone{display:inline-flex;align-items:center;gap:.4rem;font-weight:800;color:var(--c-primary)}
.header-phone svg{width:20px;height:20px}
.nav-toggle{display:none;width:46px;height:46px;border:0;background:transparent;cursor:pointer;
  flex-direction:column;justify-content:center;align-items:center;gap:5px}
.nav-toggle span,.nav-toggle::before,.nav-toggle::after{content:"";display:block;width:24px;height:2.5px;background:currentColor;border-radius:2px;transition:.25s}
.nav-toggle{color:var(--c-primary)}

/* ----- Hero (separate layers) ----- */
.hero{position:relative;color:#fff;isolation:isolate;overflow:hidden;background:var(--c-primary-700)}
.hero__bg{position:absolute;inset:0;z-index:0}
.hero__bg img{width:100%;height:100%;object-fit:cover;object-position:center 35%}
/* Overlay matched to masaa's balance: a near-UNIFORM veil (masaa = flat ~0.37 over
   a cover photo on a coloured base). We use a dark-brown base on .hero + a mostly
   flat brown veil (.58→.44) so the project photo stays clearly present but muted,
   with just enough lift on the text (left) side for white-text legibility. */
.hero__overlay{position:absolute;inset:0;z-index:1;
  background:linear-gradient(to left,rgba(42,27,16,.58) 0%,rgba(42,27,16,.50) 55%,rgba(42,27,16,.46) 100%)}
/* min-height raised so the hero renders ~936px at 1440 to match masaa (was ~887) */
.hero__inner{position:relative;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);align-items:center;
  gap:2rem;min-height:clamp(640px,82vh,840px);padding-block:clamp(2.5rem,5vw,3.5rem) clamp(4.5rem,8vw,7rem)}
.hero__content{max-width:38rem}
.hero__eyebrow{color:#F3E6CC;font-weight:600;font-size:clamp(.9rem,1.4vw,1.05rem);margin-bottom:.4rem;line-height:1.7}
.hero__eyebrow b{color:#fff;font-weight:800}
.hero h1{color:#fff;font-size:var(--fs-hero);font-weight:800;line-height:var(--lh-tight);margin-bottom:.25rem;text-shadow:0 2px 18px rgba(4,3,2,.4)}
/* Animated gold typewriter line (no box) */
.hero__typed{margin:0 0 1rem;min-height:1.35em;display:flex;align-items:center;gap:3px}
.hero__type-text{color:var(--c-accent);font-weight:800;font-size:clamp(1.55rem,4vw,2.6rem);line-height:1.2;text-shadow:0 1px 12px rgba(4,3,2,.4)}
.hero__cursor{color:var(--c-accent);font-weight:600;font-size:clamp(1.55rem,4vw,2.6rem);line-height:1;animation:heroBlink 1s step-end infinite}
@keyframes heroBlink{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.hero__cursor{animation:none}}
.hero__lead{color:#EFE7DA;max-width:34rem;text-shadow:0 1px 10px rgba(4,3,2,.35);margin-bottom:.55rem}
.hero__actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.4rem}
.hero__figure{position:relative;z-index:2;align-self:end;justify-self:center;pointer-events:none}
/* larger contractor (like masaa) drives the hero to ~936px without empty filler */
.hero__contractor{width:clamp(300px,42vw,556px);height:auto;filter:drop-shadow(0 22px 34px rgba(4,3,2,.55))}
.hero__wave{position:absolute;left:0;right:0;bottom:-1px;z-index:2;width:100%;height:clamp(70px,9vw,140px);display:block}
.hero__wave path{fill:var(--c-bg-alt)}

/* ----- Features — matched to masaa live forensic -----
   masaa: white card, radius 15px, padding 15px, gap 20px, card ~430x120,
   shadow = rgb(218,230,241) 0 0 20px 0 (0 offset / 20 blur / 0 spread).
   Icon is a PLAIN line-icon (~88px, no filled square) on the LEFT, title+body
   right-aligned. Zill keeps its cream bg + brown line-icon (identity only). */
.features{background:var(--c-bg-alt);position:relative;padding-bottom:clamp(4.5rem,8vw,7rem)}
.features__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.feature{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:1rem;align-items:center;
  background:#fff;border:0;border-radius:15px;padding:15px;min-height:132px;
  box-shadow:0 0 20px 0 rgb(224,210,190)}
.feature__ico{flex:none;width:84px;height:84px;display:grid;place-items:center;color:var(--c-accent-700)}
.feature__ico svg{width:52px;height:52px}
.feature>div{text-align:right}
.feature h3{font-size:var(--fs-h3);margin-bottom:.3rem;color:var(--c-heading)}
.feature p{margin:0;font-size:.9rem;line-height:1.55;color:var(--c-body)}
/* bottom shape divider (masaa uses a 95px bottom divider) into the next (white) section */
.features__curve{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:clamp(48px,6vw,95px);display:block}
.features__curve path{fill:var(--c-bg)}

/* ----- About ----- */
.about__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:center}
.about__body h2{font-size:var(--fs-h2);font-weight:800}
.about__list{list-style:none;margin:1.2rem 0;padding:0;display:grid;gap:.7rem}
.about__list li{display:flex;gap:.6rem;align-items:flex-start;font-weight:600;color:var(--c-heading)}
.about__list svg{flex:none;width:22px;height:22px;color:var(--c-accent)}
.about__media{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:1rem}
.about__media .a-main{grid-column:1 / -1;border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}
.about__media .a-sub{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm)}
.about__media img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/10}
/* Collage cell: official brown logo needs a LIGHT panel to stay legible */
.about__badge{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;
  background:rgba(255,255,255,.96);border:1px solid var(--c-border);
  border-radius:var(--radius);padding:1rem 1.2rem;text-align:center;box-shadow:0 6px 18px rgba(42,27,16,.12)}
.about__badge .brandbadge__logo{display:block;width:clamp(120px,60%,180px)}
.about__badge .brandbadge__logo img{width:100%;height:auto;object-fit:contain;display:block}
.about__badge .brandbadge__phone{font-weight:800;font-size:clamp(1rem,1.5vw,1.2rem);color:var(--c-primary);
  letter-spacing:.5px;text-decoration:none;line-height:1}

/* (Image watermark/badge system removed — images are shown clean.) */

/* ----- Services ----- */
.services__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--grid-gap)}
.scard{background:#fff;border:0;border-radius:16px;overflow:hidden;
  box-shadow:0 10px 28px rgba(42,27,16,.10);display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.scard:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(42,27,16,.16)}
.scard__media{position:relative;aspect-ratio:16/11;overflow:hidden}
.scard__media img{width:100%;height:100%;object-fit:cover}
.scard__body{padding:1.2rem 1.3rem 1.4rem;display:flex;flex-direction:column;flex:1}
.scard__body h3{font-size:var(--fs-h3);margin-bottom:.4rem}
.scard__body p{font-size:.93rem;color:var(--c-body);margin-bottom:1rem;flex:1}
.scard__actions{display:flex;gap:.6rem}
.scard__actions .btn{flex:1}

/* ----- Mid CTA — matched to masaa 59e3560: BACKGROUND IMAGE + flat overlay +
   centred content, height 508px, no entrance animation. masaa uses a white 0.4
   veil (dark text); Zill uses a brown veil + white text for identity+legibility
   over a real project photo (colour diff = identity, structure preserved). ----- */
.cta-band{position:relative;isolation:isolate;overflow:hidden;color:#fff;
  min-height:508px;display:grid;align-items:center}
.cta-band__bg{position:absolute;inset:0;z-index:0}
.cta-band__bg img{width:100%;height:100%;object-fit:cover;object-position:center 60%}
.cta-band__overlay{position:absolute;inset:0;z-index:1;
  background:linear-gradient(to bottom,rgba(42,27,16,.62),rgba(42,27,16,.58))}
.cta-band__inner{position:relative;z-index:2;text-align:center;max-width:48rem;margin-inline:auto;
  padding-block:clamp(3rem,6vw,4.5rem)}
.cta-band .eyebrow{color:#F0D9A6}
.cta-band h2{color:#fff;font-size:var(--fs-h2);font-weight:800}
.cta-band p{color:#EFE7DA;margin-bottom:1.4rem}

/* ----- Projects (masonry) ----- */
.masonry{columns:3;column-gap:var(--grid-gap)}
.masonry figure{break-inside:avoid;margin:0 0 var(--grid-gap);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow-sm);position:relative}
.masonry img{width:100%;height:auto;display:block;transition:transform .3s}
.masonry figure:hover img{transform:scale(1.04)}
.projects__more{text-align:center;margin-top:2rem}

/* ----- Contact ----- */
.contact{background:linear-gradient(120deg,var(--c-primary-700),var(--c-dark));color:#fff}
.contact__grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.contact__intro h2{color:#fff;font-size:var(--fs-h2);font-weight:800}
.contact__intro p{color:#EFE7DA}
.contact__form{display:grid;gap:.9rem;background:rgba(255,255,255,.06);padding:1.6rem;border-radius:var(--radius-lg);border:1px solid rgba(255,255,255,.14)}
.field label{display:block;font-size:.85rem;color:#EFE7DA;margin-bottom:.3rem;font-weight:600}
.field input,.field textarea{width:100%;font-family:inherit;font-size:.95rem;padding:.8rem 1rem;
  border-radius:var(--radius-sm);border:1px solid var(--c-border);background:#fff;color:var(--c-heading)}
.field textarea{min-height:130px;resize:vertical}

/* ----- Latest posts ----- */
.posts__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--grid-gap)}
.pcard{background:#fff;border:1px solid var(--c-border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .2s,box-shadow .2s}
.pcard:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.pcard__media{aspect-ratio:16/9;overflow:hidden;position:relative}
.pcard__media img{width:100%;height:100%;object-fit:cover}
.pcard__tag{position:absolute;inset-block-start:.7rem;inset-inline-start:.7rem;background:var(--c-primary);color:#fff;
  font-size:.75rem;font-weight:700;padding:.25rem .7rem;border-radius:var(--radius-pill)}
.pcard__body{padding:1.1rem 1.2rem 1.3rem}
.pcard__body h3{font-size:1.02rem;margin-bottom:.4rem}
.pcard__link{color:var(--c-accent-700);font-weight:700;font-size:.9rem}

/* ----- Bottom CTA — matched to masaa's designed CTA (saturated colour band +
   diagonal stripes + gold corner triangles + contractor + zoomIn entrance).
   Zill keeps brown/gold identity instead of masaa's blue/gold. ----- */
.bottom-cta{position:relative;overflow:hidden;color:#fff;
  background:linear-gradient(115deg,var(--c-primary) 0%,var(--c-primary-700) 55%,var(--c-secondary) 130%)}
/* diagonal stripe pattern (masaa uses bold diagonals on this band) */
.bottom-cta::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:repeating-linear-gradient(45deg,rgba(255,255,255,.055) 0 34px,rgba(0,0,0,.045) 34px 68px)}
/* gold corner triangles (top-right + bottom-left, matching masaa's gold wedges) */
.bottom-cta::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(to bottom left,var(--c-accent) 0 48%,transparent 48%) top right / 150px 150px no-repeat,
    linear-gradient(to top right,var(--c-accent) 0 48%,transparent 48%) bottom left / 150px 150px no-repeat}
/* masaa places the contractor on the LEFT with text on the right — match that.
   Height tuned to ~402px (masaa): single WhatsApp button, short paragraph, the
   contractor overflows the band bottom (align-end) rather than inflating height. */
.bottom-cta__inner{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;align-items:end;gap:2rem;min-height:300px}
.bottom-cta__body{order:1;padding-block:clamp(2rem,4vw,2.6rem)}
.bottom-cta__figure{order:2;align-self:end;max-height:402px;overflow:hidden}
.bottom-cta__figure img{width:clamp(200px,22vw,300px);height:auto;filter:drop-shadow(0 16px 26px rgba(4,3,2,.45))}
.bottom-cta .eyebrow{color:#F0D9A6}
.bottom-cta h2{color:#fff;font-size:var(--fs-h2);font-weight:800}
.bottom-cta p{color:#EFE7DA}

/* ----- Scroll-entrance animations (match masaa: mid band=slideInUp, bottom CTA=zoomIn)
   Elementor default: ~1.25s, ease, fires once when the element enters the viewport.
   Progressive enhancement: JS adds .anim-prep (hidden) only when it can observe;
   without JS the content stays visible. ----- */
.anim-prep{opacity:0}
.anim-in[data-anim="slideup"]{animation:zillSlideInUp 1.25s ease both}
.anim-in[data-anim="zoom"]{animation:zillZoomIn 1.25s ease both}
@keyframes zillSlideInUp{from{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes zillZoomIn{from{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .anim-prep{opacity:1}
  .anim-in[data-anim="slideup"],.anim-in[data-anim="zoom"]{animation:none;transform:none;opacity:1}
}

/* ----- Footer ----- */
.site-footer{background:var(--c-dark);color:#D9CBB9;padding-top:clamp(2.5rem,5vw,4rem)}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2rem}
.site-footer h3{color:#fff;font-size:1.05rem;margin-bottom:1rem}
.site-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.site-footer a:hover{color:var(--c-accent)}
.footer-brand p{color:#C6B7A4}
.footer-brand .brand__text b{color:#fff}
.footer-hours{margin-top:.8rem;font-size:.9rem;color:#C6B7A4}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:2.5rem;padding-block:1.3rem;
  display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.85rem;color:#B7A791}
.footer-bottom a{color:var(--c-accent);font-weight:700}

/* ----- FAB ----- */
.fab-stack{position:fixed;inset-block-end:1.1rem;inset-inline-start:1.1rem;z-index:120;display:flex;flex-direction:column;gap:.7rem}
.fab{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;color:#fff;box-shadow:var(--shadow-lg)}
.fab svg{width:26px;height:26px}
.fab--wa{background:var(--c-wa)} .fab--call{background:var(--c-primary)}

/* ============ Responsive ============ */
@media(max-width:1024px){
  .services__grid,.posts__grid,.features__grid{grid-template-columns:repeat(2,1fr)}
  .masonry{columns:2}
}
@media(max-width:900px){
  .main-nav{position:fixed;inset:76px 0 auto 0;background:var(--c-dark);margin:0;
    transform:translateY(-120%);transition:transform .3s;box-shadow:var(--shadow-lg);max-height:calc(100vh - 76px);overflow:auto}
  .main-nav.open{transform:translateY(0)}
  .main-nav ul{flex-direction:column;padding:.5rem}
  .main-nav a{color:#fff;padding:.9rem 1rem;font-size:1.05rem}
  .nav-toggle{display:flex}
  .header-phone span{display:none}
  .hero__inner{grid-template-columns:1fr;text-align:center;min-height:0;padding-bottom:clamp(3rem,6vw,4.5rem)}
  .hero__content{max-width:100%;margin-inline:auto}
  .hero__lead{margin-inline:auto}
  .hero__actions{justify-content:center}
  .hero__figure{order:2;margin-top:1rem}
  .about__grid,.contact__grid,.bottom-cta__inner{grid-template-columns:1fr}
  .bottom-cta__figure{justify-self:center}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .features__grid,.services__grid,.posts__grid{grid-template-columns:1fr}
  .masonry{columns:1}
  .footer-grid{grid-template-columns:1fr}
  .hero__actions .btn{width:100%}
  .scard__actions{flex-direction:column}
}

/* ---- Overflow guards: prevent grid/flex items forcing page width ---- */
html,body{max-width:100%;overflow-x:clip}
.hero__inner>*,.about__grid>*,.contact__grid>*,.bottom-cta__inner>*,
.services__grid>*,.posts__grid>*,.features__grid>*,.footer-grid>*,
.masonry,.scard,.pcard,.feature{min-width:0}


/* ===== Phase 4: service-card collage + latest-posts ticker + logo tweaks ===== */
/* Service card image = ONE pre-merged collage file (villa-building-collage.webp …),
   shown FULLY (no crop): aspect-ratio:auto overrides the old 16/11 media rule so the
   whole collage is visible; object-fit not needed since height is intrinsic. */
.scard__media{aspect-ratio:auto;position:static;overflow:visible;border-radius:12px;
  margin:12px 12px 0;box-shadow:0 3px 10px rgba(42,27,16,.10);line-height:0}
.scard__media img{width:100%;height:auto;object-fit:fill;display:block;border-radius:12px}

/* ===== Project videos grid ===== */
.video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--grid-gap)}
@media(max-width:820px){.video-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.video-grid{grid-template-columns:1fr}}
.video-card{margin:0;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column}
.video-card video{width:100%;aspect-ratio:9/16;object-fit:cover;display:block;background:#000}
.video-card figcaption{padding:.7rem 1rem;font-size:.9rem;color:var(--c-heading);font-weight:600}
.scard__badge{position:absolute;inset-block-end:6px;inset-inline-start:6px;width:34px;height:34px;border-radius:8px;
  background:rgba(42,27,16,.82);display:grid;place-items:center;padding:5px}
.scard__badge img{width:100%;height:100%;object-fit:contain}

.ticker{position:relative}
.ticker__track{display:flex;gap:var(--grid-gap);overflow-x:auto;scroll-snap-type:x mandatory;
  padding-block:.25rem .75rem;scrollbar-width:thin;scrollbar-color:var(--c-secondary) transparent}
.ticker__track::-webkit-scrollbar{height:8px}
.ticker__track::-webkit-scrollbar-thumb{background:var(--c-border);border-radius:4px}
.ticker__track .pcard{flex:0 0 320px;scroll-snap-align:start}
.ticker__nav{display:flex;gap:.5rem;justify-content:center;margin-top:1.2rem}
.ticker__btn{width:46px;height:46px;border-radius:50%;border:1px solid var(--c-border);background:#fff;
  color:var(--c-primary);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:.2s}
.ticker__btn:hover,.ticker__btn:focus-visible{background:var(--c-primary);color:#fff;outline:none}
.ticker__btn svg{width:22px;height:22px}
@media(max-width:560px){ .ticker__track .pcard{flex:0 0 84%} }

/* Very narrow (≤360): trim header so the CTA isn't clipped (fits 320) */
@media(max-width:360px){
  .header-phone{display:none}
  .header-actions .btn--cta{padding:.5rem .85rem;font-size:.8rem}
  .header-inner{gap:.6rem}
}

/* ===================================================================
   MULTI-PAGE TEMPLATES (services / articles / core pages)
   =================================================================== */
/* disabled social (real handles unknown) */
.topbar__social a.is-disabled{opacity:.45;cursor:not-allowed;pointer-events:none}

/* Breadcrumbs */
.breadcrumb{background:var(--c-bg-alt);border-bottom:1px solid var(--c-border)}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;
  margin:0;padding:.7rem 0;font-size:.85rem;color:var(--c-body)}
.breadcrumb a{color:var(--c-accent-700);font-weight:700}
.breadcrumb li+li::before{content:"›";margin-inline-end:.4rem;color:var(--c-tan)}
.breadcrumb [aria-current="page"]{color:var(--c-heading);font-weight:700}

/* Inner-page hero */
.page-hero{position:relative;isolation:isolate;overflow:hidden;color:#fff;background:var(--c-primary-700)}
.page-hero__bg{position:absolute;inset:0;z-index:0}
.page-hero__bg img{width:100%;height:100%;object-fit:cover;object-position:center 45%}
.page-hero__overlay{position:absolute;inset:0;z-index:1;
  background:linear-gradient(to left,rgba(42,27,16,.72),rgba(42,27,16,.55))}
.page-hero__inner{position:relative;z-index:2;padding-block:clamp(2.4rem,5vw,3.6rem)}
.page-hero .eyebrow{color:#F0D9A6}
.page-hero h1{color:#fff;font-size:clamp(1.7rem,4vw,2.6rem);font-weight:800;line-height:1.25;margin:.2rem 0 .6rem}
.page-hero__lead{color:#EFE7DA;max-width:44rem;margin-bottom:1.1rem}
.page-hero__cta{display:flex;gap:.7rem;flex-wrap:wrap}

/* Readable content column (articles + service bodies) */
.prose{max-width:820px;margin-inline:auto}
.prose h2{font-size:clamp(1.35rem,2.6vw,1.8rem);font-weight:800;color:var(--c-heading);
  margin:2.2rem 0 .8rem;scroll-margin-top:90px}
.prose h3{font-size:clamp(1.1rem,2vw,1.3rem);font-weight:700;color:var(--c-heading);margin:1.4rem 0 .5rem;scroll-margin-top:90px}
.prose p{margin:0 0 1rem;line-height:1.9;color:var(--c-body)}
.prose ul,.prose ol{margin:0 0 1.1rem;padding-inline-start:1.3rem;line-height:1.9;color:var(--c-body)}
.prose li{margin-bottom:.4rem}
.prose figure{margin:1.4rem 0}
.prose figure img{width:100%;height:auto;display:block;border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.prose figcaption{font-size:.82rem;color:var(--c-muted,#8a7a63);margin-top:.4rem;text-align:center}
.prose a{color:var(--c-accent-700);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.prose .two-figs{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1.4rem 0}
.prose .two-figs figure{margin:0}
@media(max-width:560px){.prose .two-figs{grid-template-columns:1fr}}

/* Collapsed Table of Contents */
.article-toc{max-width:820px;margin:1.4rem auto;border:1px solid var(--c-border);border-radius:var(--radius);
  background:var(--c-bg-alt);overflow:hidden}
.article-toc>summary{cursor:pointer;padding:.9rem 1.1rem;font-weight:800;color:var(--c-heading);
  list-style:none;display:flex;align-items:center;gap:.5rem}
.article-toc>summary::-webkit-details-marker{display:none}
.article-toc>summary::before{content:"☰";color:var(--c-accent-700)}
.article-toc[open]>summary::before{content:"✕"}
.article-toc ol{margin:0;padding:.2rem 1.4rem 1rem;line-height:1.9}
.article-toc a{color:var(--c-accent-700);font-weight:600;text-decoration:none}
.article-toc a:hover{text-decoration:underline}

/* Article meta */
.article-meta{max-width:820px;margin:0 auto 1rem;display:flex;flex-wrap:wrap;gap:1rem;
  font-size:.85rem;color:var(--c-body)}
.article-meta b{color:var(--c-heading)}

/* Callout box */
.callout{max-width:820px;margin:1.5rem auto;background:var(--c-bg-warm,#F3ECE0);border-inline-start:4px solid var(--c-accent);
  border-radius:var(--radius-sm);padding:1rem 1.2rem;color:var(--c-heading)}
.callout strong{color:var(--c-primary)}

/* FAQ (details) */
.faq{max-width:820px;margin-inline:auto}
.faq details{border:1px solid var(--c-border);border-radius:var(--radius-sm);margin-bottom:.7rem;background:#fff}
.faq summary{cursor:pointer;padding:.9rem 1.1rem;font-weight:700;color:var(--c-heading);list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:inline-start;color:var(--c-accent-700);font-weight:800}
.faq details[open] summary::after{content:"–"}
.faq details>p{padding:0 1.1rem 1rem;margin:0;line-height:1.85;color:var(--c-body)}

/* Related content grid */
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--grid-gap)}
@media(max-width:820px){.related-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.related-grid{grid-template-columns:1fr}}
.related-card{background:#fff;border:0;border-radius:14px;overflow:hidden;box-shadow:0 8px 22px rgba(42,27,16,.10);display:flex;flex-direction:column}
.related-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.related-card .rc-body{padding:1rem 1.1rem}
.related-card h3{font-size:1rem;margin:0 0 .4rem;color:var(--c-heading)}
.related-card a.rc-link{color:var(--c-accent-700);font-weight:700;font-size:.88rem}

/* Service page bits */
.svc-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem}
.svc-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius);display:block;box-shadow:var(--shadow-sm)}
@media(max-width:640px){.svc-gallery{grid-template-columns:1fr 1fr}}
.svc-steps{counter-reset:step;list-style:none;padding:0;max-width:820px;margin-inline:auto}
.svc-steps li{counter-increment:step;position:relative;padding:.2rem 3rem .9rem 0;line-height:1.85;color:var(--c-body)}
.svc-steps li::before{content:counter(step);position:absolute;inset-inline-start:0;top:0;
  width:2rem;height:2rem;background:var(--c-primary);color:#fff;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.9rem}
.svc-steps li b{color:var(--c-heading)}

/* generic inner section spacing already via .section */
.inner-narrow{max-width:820px;margin-inline:auto}

/* ===== Image gallery grid (article galleries + rich project sections) ===== */
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem}
.gallery-grid.g-3{grid-template-columns:repeat(3,1fr)}
.gallery-grid figure{margin:0;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);background:#eee}
.gallery-grid img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;display:block;transition:transform .3s}
.gallery-grid figure:hover img{transform:scale(1.05)}
@media(max-width:820px){.gallery-grid,.gallery-grid.g-3{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.gallery-grid,.gallery-grid.g-3{grid-template-columns:repeat(2,1fr)}}
.gallery-block{max-width:1000px;margin-inline:auto}
/* ===== ZILL SAWATER MEDIA (scoped to article body; homepage unaffected) ===== */
.zill-article-body-sec .prose .wp-block-image{margin:1.6rem 0}
.zill-article-body-sec .prose .wp-block-image img{width:100%;height:auto;display:block;border-radius:12px}
.zill-article-body-sec .prose figure{max-width:100%}
.gallery-block .wp-block-gallery.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin:1.2rem 0}
.gallery-block .wp-block-gallery.gallery-grid figure.wp-block-image{margin:0}
.gallery-block .wp-block-gallery.gallery-grid figure.wp-block-image img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;display:block}
@media(max-width:640px){.gallery-block .wp-block-gallery.gallery-grid{grid-template-columns:repeat(2,1fr)}}
.zill-video-vertical{max-width:360px;margin:1.8rem auto}
.zill-video-vertical video{width:100%;height:auto;display:block;border-radius:14px;aspect-ratio:9/16;object-fit:cover;background:#000}
.zill-video-vertical .wp-element-caption{text-align:center;font-size:.9rem;color:#6b5d50;margin-top:.5rem}

/* ── Gutenberg native tables inside the article body (scoped to .prose) ───────
   Added so core/table blocks match the approved article design. Article scope only. */
.prose .wp-block-table{margin:1.6rem 0;overflow-x:auto}
.prose .wp-block-table table{width:100%;border-collapse:collapse;font-size:.95rem;background:#fff;
  border-radius:12px;overflow:hidden;box-shadow:var(--shadow-sm)}
.prose .wp-block-table th,.prose .wp-block-table td{border:1px solid var(--c-border);
  padding:.75rem .95rem;text-align:start;line-height:1.8;color:var(--c-body);vertical-align:top}
.prose .wp-block-table thead th{background:var(--c-bg-alt);color:var(--c-heading);font-weight:800}
.prose .wp-block-table tbody tr:nth-child(even){background:var(--c-bg-warm,#F8F4EE)}
.prose .wp-block-table figcaption{font-size:.82rem;color:var(--c-muted,#8a7a63);margin-top:.5rem;text-align:center}
@media(max-width:560px){.prose .wp-block-table table{font-size:.88rem}
  .prose .wp-block-table th,.prose .wp-block-table td{padding:.6rem .5rem}}
