/*
Theme Name: Lone Star Ready Mix
Author: AB Digital
Author URI: https://www.abdigitaltx.com
Description: Custom homepage theme for Lone Star Ready Mix.
Version: 1.6.0
License: GNU General Public License v2 or later
Text Domain: lonestar-readymix
*/

/* ===========================================================
   LONE STAR READY MIX — homepage design system
   Brand: Lone Star Blue #225BA7 · Construction Red #ED3237 · Industrial Black
   Type:  Saira (display) · Archivo (body)
   =========================================================== */

:root {
  --blue:      #225BA7;
  --blue-700:  #1a4881;
  --blue-900:  #12305a;
  --red:       #ED3237;
  --red-600:   #d11e23;
  --ink:       #14171b;   /* industrial black */
  --ink-2:     #1c2127;
  --ink-3:     #262c34;
  --paper:     #ffffff;
  --c-50:      #f5f6f8;   /* concrete light */
  --c-100:     #ecedf1;
  --c-200:     #dfe2e8;
  --c-300:     #c9cdd5;
  --steel:     #5c6571;   /* muted body text */
  --steel-400: #8b94a0;
  --line:      rgba(0,0,0,.10);

  /* accent = the "action" color; tweakable */
  --accent:      var(--red);
  --accent-600:  var(--red-600);
  --accent-ink:  #ffffff;

  --display: "Saira", system-ui, sans-serif;
  --body:    "Archivo", system-ui, sans-serif;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.65;
}
h1,h2,h3,h4 { font-family: var(--display); margin: 0; line-height: 1.04; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ---- shared bits ---------------------------------------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--accent); display: inline-block; }
.eyebrow.center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--display); font-weight: 700;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 28px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: var(--blue-700); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--c-300);
  clip-path: none;
}
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--c-100); }
.btn--lg { padding: 18px 34px; font-size: 15px; }

/* =========================================================
   TOP UTILITY BAR
   ========================================================= */
.util {
  background: var(--ink);
  color: #aeb6c0;
  font-size: 13.5px;
}
.util .wrap { display: flex; align-items: center; gap: 26px; min-height: 44px; }
.util a { color: #aeb6c0; }
.util a:hover { color: #fff; }
.util .u-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.util .u-right a { white-space: nowrap; }
.util .u-item svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.util .u-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.util .u-sep { width: 1px; height: 18px; background: rgba(255,255,255,.14); }
.util .u-social { display: flex; gap: 14px; }
.util .u-social a svg { width: 15px; height: 15px; color: #aeb6c0; }
.util .u-social a:hover svg { color: #fff; }

/* =========================================================
   HEADER (white) + trust badges
   ========================================================= */
.head { background: #fff; border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 28px; min-height: 96px; }
.brand img { height: 62px; width: auto; }
.trust { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.trust .badge { display: flex; align-items: center; gap: 11px; }
.trust .badge svg { width: 26px; height: 26px; color: var(--blue); flex: none; }
.trust .badge .t-txt { display: flex; flex-direction: column; line-height: 1.25; }
.trust .badge .t-k { font-family: var(--display); font-weight: 700; font-size: 14.5px; letter-spacing: .02em; white-space: nowrap; }
.trust .badge .t-s { font-size: 12px; color: var(--steel); letter-spacing: .02em; white-space: nowrap; }
.head .head-cta { margin-left: 8px; }
.burger { display: none; }

/* =========================================================
   NAV (dark)
   ========================================================= */
.nav { background: var(--ink-2); position: sticky; top: 0; z-index: 60; }
.nav .wrap { display: flex; align-items: center; min-height: 56px; }
.nav-links { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: flex; align-items: center; height: 56px; padding: 0 22px;
  color: #cdd3db; font-family: var(--display); font-weight: 600;
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after, .nav-links a:hover::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--accent);
}
.nav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; color: #cdd3db; }
.nav .nav-right .nv-phone { font-family: var(--display); font-weight: 700; letter-spacing: .04em; color:#fff; display:inline-flex; gap:8px; align-items:center; white-space: nowrap; }
.nav .nav-right .nv-phone svg { width: 16px; height: 16px; color: var(--accent); }

/* =========================================================
   PLACEHOLDER IMAGE SYSTEM
   ========================================================= */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(34,91,167,.06) 0 14px, rgba(34,91,167,0) 14px 28px),
    var(--c-100);
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Saira", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel-400); text-align: center; padding: 14px;
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 14px, rgba(255,255,255,0) 14px 28px),
    #2a313b;
}
.ph.dark::after { color: rgba(255,255,255,.45); }
body.nophoto .ph { /* keep placeholders even when photos toggled off (they ARE the photos) */ }

/* image-slot sizing (user-fillable photos) */
.hero-bg image-slot { width: 100%; height: 100%; display: block; }
.s-photo image-slot { width: 100%; aspect-ratio: 4/4.9; height: auto; display: block; }
.svc-img image-slot,
.proj-card image-slot { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* plain <img> photos (production / WordPress export) — cover their container */
.slot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg .slot-img { width: 100%; height: 100%; }
.s-photo .slot-img { width: 100%; aspect-ratio: 4/4.9; height: auto; }
.svc-img .slot-img,
.proj-card .slot-img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero .hero-bg { position: absolute; inset: 0; }
.hero .hero-bg .ph { width: 100%; height: 100%; }
.hero .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,18,22,.94) 0%, rgba(15,18,22,.86) 42%, rgba(15,18,22,.45) 100%);
}
.hero.light-hero .hero-bg::after {
  background: linear-gradient(90deg, rgba(18,48,90,.92) 0%, rgba(18,48,90,.78) 45%, rgba(34,91,167,.30) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(70px,9vw,120px); padding-bottom: 190px; }
.hero .h-eyebrow { color: #fff; }
.hero .h-eyebrow::before { background: var(--accent); }
.hero h1 {
  font-weight: 800; font-size: clamp(46px, 7vw, 94px); line-height: .96;
  text-transform: uppercase; margin: 22px 0 0; max-width: 16ch; letter-spacing: -.015em;
}
.hero h1 .hl { color: var(--accent); }
.hero .h-sub { margin-top: 22px; font-size: clamp(17px,1.5vw,20px); max-width: 50ch; color: #d3d8df; }
.hero .h-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* stat tiles overlapping hero bottom */
.stats { position: relative; z-index: 5; margin-top: -118px; }
.stats .wrap { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.stat { padding: 38px 36px; color: #fff; position: relative; }
.stat:nth-child(1) { background: var(--accent); }
.stat:nth-child(2) { background: var(--ink-2); }
.stat:nth-child(3) { background: var(--blue); }
.stat .s-num { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .04em; display:flex; align-items:center; gap:12px; }
.stat .s-num svg { width: 30px; height: 30px; }
.stat h3 { font-size: 23px; font-weight: 700; margin-top: 14px; text-transform: uppercase; letter-spacing: .01em; }
.stat p { margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,.82); line-height: 1.5; }

/* =========================================================
   STORY
   ========================================================= */
.story { background: var(--c-50); padding: clamp(70px,8vw,110px) 0; position: relative; }
.story .grid { display: grid; grid-template-columns: 1.32fr 1fr; gap: clamp(40px,6vw,90px); align-items: center; }
.story .s-photo { position: relative; }
.story .s-photo .ph { aspect-ratio: 4/4.4; }
.story .s-photo .badge-yrs {
  position: absolute; right: -22px; bottom: -22px; background: var(--blue); color: #fff;
  padding: 26px 30px; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.story .s-photo .badge-yrs .b-n { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; }
.story .s-photo .badge-yrs .b-l { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.story h2 { font-size: clamp(34px,3.6vw,50px); font-weight: 800; text-transform: uppercase; margin-top: 18px; }
.story .s-lead { margin-top: 20px; font-size: 18px; color: var(--ink); font-weight: 500; }
.story .s-body { margin-top: 16px; color: var(--steel); }
.story .icons { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.story .icons .ic { display: flex; flex-direction: column; gap: 10px; max-width: 150px; }
.story .icons .ic svg { width: 40px; height: 40px; color: var(--blue); }
.story .icons .ic b { font-family: var(--display); font-size: 15px; letter-spacing: .02em; }
.story .icons .ic span { font-size: 13px; color: var(--steel); }
.story .s-cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   CTA BAND
   ========================================================= */
.band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.band .ph.dark { position: absolute; inset: 0; }
.band .wrap { position: relative; z-index: 2; display: flex; align-items: center; gap: 30px; min-height: 130px; padding-block: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.band h3 { font-size: clamp(22px,2.4vw,32px); font-weight: 700; text-transform: uppercase; max-width: 26ch; }
.band h3 .hl { color: var(--accent); }
.band .band-cta { margin-left: auto; }

/* =========================================================
   SERVICES GRID
   ========================================================= */
.sec { padding: clamp(70px,8vw,110px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(34px,3.8vw,52px); font-weight: 800; text-transform: uppercase; margin-top: 14px; }
.sec-head .sh-desc { max-width: 42ch; color: var(--steel); }

.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.svc {
  background: #fff; border: 1px solid var(--c-200); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(20,23,27,.4); border-color: transparent; }
.svc .svc-img { aspect-ratio: 16/10.5; position: relative; }
.svc .svc-img .ph { position: absolute; inset: 0; }
.svc .svc-tag {
  position: absolute; top: 0; left: 0; z-index: 2; background: var(--blue); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px;
}
.svc.is-res .svc-tag { background: var(--accent); }
.svc .svc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.svc h3 { font-size: 22px; font-weight: 700; text-transform: uppercase; }
.svc p { margin-top: 12px; color: var(--steel); font-size: 15px; flex: 1; }
.svc .svc-more {
  margin-top: 20px; font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: 9px;
}
.svc:hover .svc-more { color: var(--accent); }
.svc .svc-more svg { width: 15px; height: 15px; transition: transform .2s; }
.svc:hover .svc-more svg { transform: translateX(5px); }

/* =========================================================
   FEATURED PROJECTS STRIP
   ========================================================= */
.proj { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.proj .ph.dark.proj-bg { position: absolute; inset: 0; opacity: .35; }
.proj-inner { position: relative; z-index: 2; padding: clamp(60px,7vw,96px) 0; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.proj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.proj-head h2 { font-size: clamp(34px,3.8vw,52px); font-weight: 800; text-transform: uppercase; margin-top: 14px; }
.proj-head p { max-width: 42ch; color: #c2c8d0; font-size: 15px; }
.proj-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 220px); gap: 16px; }
.proj-card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.proj-card.big { grid-column: span 2; grid-row: span 2; }
.proj-card.wide { grid-column: span 2; }
.proj-card .ph { position: absolute; inset: 0; }
.proj-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(15,18,22,.55)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.proj-card:hover::after { opacity: 1; }
.proj-card image-slot { transition: transform .4s ease; }
.proj-card:hover image-slot { transform: scale(1.05); }
.proj-foot { margin-top: 36px; display: flex; justify-content: center; }
.proj-video { position: relative; margin-top: 16px; background: #0c0e11; border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.proj-video video { display: block; width: 100%; max-height: 560px; object-fit: contain; background: #0c0e11; }
.proj-video .pv-tag {
  position: absolute; top: 0; left: 0; z-index: 2; background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; pointer-events: none;
}

/* =========================================================
   WHY CHOOSE US + quote callout
   ========================================================= */
.why { background: var(--c-50); }
.why-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px,4vw,60px); align-items: stretch; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-content: start; }
.why-item { background: #fff; border: 1px solid var(--c-200); padding: 28px 26px; position: relative; }
.why-item .wi-ic { width: 52px; height: 52px; display: grid; place-items: center; background: var(--blue); color: #fff; margin-bottom: 18px;
  clip-path: polygon(0 0,100% 0,100% 100%,12px 100%,0 calc(100% - 12px)); }
.why-item:nth-child(2) .wi-ic, .why-item:nth-child(3) .wi-ic { background: var(--accent); }
.why-item .wi-ic svg { width: 26px; height: 26px; }
.why-item h4 { font-size: 19px; font-weight: 700; text-transform: uppercase; }
.why-item p { margin-top: 10px; font-size: 14.5px; color: var(--steel); }
.quote-card { background: var(--ink); color: #fff; padding: clamp(32px,3.5vw,46px); position: relative; overflow: hidden; }
.quote-card .ph.dark { position: absolute; inset: 0; opacity: .4; }
.quote-card > * { position: relative; z-index: 2; }
.quote-card h3 { font-size: clamp(24px,2.6vw,32px); font-weight: 800; text-transform: uppercase; margin-top: 14px; line-height: 1.08; }
.quote-card p { margin-top: 14px; color: #c2c8d0; font-size: 15px; }
.quote-card .qc-phone { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.quote-card .qc-phone .qp-l { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-400); }
.quote-card .qc-phone .qp-n { font-family: var(--display); font-weight: 800; font-size: 30px; color: #fff; margin-top: 4px; }
.quote-card .btn { margin-top: 24px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.tst { background: var(--ink-2); color: #fff; text-align: center; position: relative; overflow: hidden; }
.tst .ph.dark { position: absolute; inset: 0; opacity: .25; }
.tst .wrap { position: relative; z-index: 2; max-width: 920px; }
.tst .t-slides { position: relative; }
.tst .t-slide { display: none; }
.tst .t-slide.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }
.tst blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(22px,2.6vw,32px); line-height: 1.35; margin: 24px 0 0; }
.tst .t-who { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.tst .t-who .av { width: 54px; height: 54px; border-radius: 50%; background: var(--blue); display:grid; place-items:center; font-family:var(--display); font-weight:800; }
.tst .t-who .tn { text-align: left; }
.tst .t-who .tn b { font-family: var(--display); font-size: 16px; letter-spacing: .04em; display:block; }
.tst .t-who .tn span { font-size: 13px; color: var(--steel-400); }
.tst .t-dots { margin-top: 30px; display: flex; gap: 10px; justify-content: center; }
.tst .t-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); cursor: pointer; padding: 0; }
.tst .t-dots button.active { background: var(--accent); }

/* =========================================================
   LOCATIONS
   ========================================================= */
.loc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.loc { border: 1px solid var(--c-200); padding: 30px 28px; background: #fff; }
.loc .l-tag { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.loc h3 { font-size: 24px; font-weight: 700; text-transform: uppercase; margin-top: 8px; }
.loc .l-row { display: flex; gap: 12px; margin-top: 16px; font-size: 15px; color: var(--steel); }
.loc .l-row svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 3px; }
.loc .l-row a:hover { color: var(--blue); }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--ink); color: #9aa3ae; padding-top: 70px; font-size: 14.5px; }
.foot .f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 54px; }
.foot img.f-logo { height: 64px; margin-bottom: 20px; }
.foot p { line-height: 1.7; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot ul a:hover { color: #fff; }
.foot .f-contact .fc-row { display: flex; gap: 12px; margin-bottom: 16px; }
.foot .f-contact .fc-row svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }
.foot .f-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* =========================================================
   QUOTE MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal .m-bg { position: absolute; inset: 0; background: rgba(15,18,22,.72); backdrop-filter: blur(3px); }
.modal .m-card { position: relative; z-index: 2; max-width: 560px; margin: 6vh auto 0; background: #fff;
  max-height: 88vh; overflow: auto; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.modal .m-top { background: var(--ink); color: #fff; padding: 30px 36px; position: relative; }
.modal .m-top .eyebrow { color: var(--accent); }
.modal .m-top h3 { font-size: 28px; font-weight: 800; text-transform: uppercase; margin-top: 12px; }
.modal .m-top p { color: #c2c8d0; margin-top: 8px; font-size: 14.5px; }
.modal .m-close { position: absolute; top: 20px; right: 22px; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 38px; height: 38px; cursor: pointer; font-size: 20px; }
.modal .m-close:hover { background: var(--accent); }
.modal form { padding: 30px 36px 36px; display: grid; gap: 16px; }
.modal .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal label { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); display: block; margin-bottom: 7px; }
.modal input, .modal select, .modal textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--c-300); font-family: var(--body); font-size: 15px; background: #fff; color: var(--ink);
}
.modal input:focus, .modal select:focus, .modal textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.modal .m-success { padding: 50px 36px; text-align: center; display: none; }
.modal .m-success.show { display: block; }
.modal .m-success .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.modal .m-success h3 { font-family: var(--display); font-size: 26px; font-weight: 800; text-transform: uppercase; }
.modal .m-success p { color: var(--steel); margin-top: 10px; }

/* ---- Contact Form 7 compatibility (keeps the custom design) ---- */
.modal .wpcf7 { padding: 30px 36px 36px; }
.modal .wpcf7 form { padding: 0; display: grid; gap: 16px; }
.modal .wpcf7 .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* CF7 wraps each control in a span — make it a normal full-width block */
.modal .wpcf7-form-control-wrap { display: block; width: 100%; }
.modal .wpcf7 input[type="text"],
.modal .wpcf7 input[type="tel"],
.modal .wpcf7 input[type="email"],
.modal .wpcf7 select,
.modal .wpcf7 textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--c-300);
  font-family: var(--body); font-size: 15px; background: #fff; color: var(--ink);
}
.modal .wpcf7 input:focus, .modal .wpcf7 select:focus, .modal .wpcf7 textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
/* style the CF7 submit button like .btn (with arrow appended) */
.modal .wpcf7 input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  padding: 18px 34px; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px)); transition: background .18s;
}
.modal .wpcf7 input[type="submit"]:hover { background: var(--accent-600); }
.modal .wpcf7-spinner { margin: 14px auto 0; display: block; }
/* validation + response messages */
.modal .wpcf7 .wpcf7-not-valid-tip { color: var(--red); font-size: 12.5px; margin-top: 6px; }
.modal .wpcf7 .wpcf7-response-output { margin: 14px 0 0 !important; border-width: 1px; padding: 12px 14px; font-size: 14px; }

/* =========================================================
   MOBILE DRAWER
   ========================================================= */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.open { display: block; }
.drawer .d-bg { position: absolute; inset: 0; background: rgba(15,18,22,.6); }
.drawer .d-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 340px); background: var(--ink); padding: 26px; overflow:auto; }
.drawer .d-panel a { display: block; color: #cdd3db; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer .d-panel a:hover { color: #fff; }
.drawer .d-close { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 40px; height: 40px; font-size: 20px; cursor: pointer; margin-bottom: 18px; }

/* ---- tweak: square corners (removes angled clips) ---- */
body.square .btn,
body.square .why-item .wi-ic,
body.square .story .s-photo .badge-yrs { clip-path: none !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .trust { gap: 20px; }
  .trust .badge .t-s { display: none; }
  .proj-mosaic { grid-template-columns: repeat(2, 1fr); }
  .proj-card.big { grid-column: span 2; grid-row: span 2; }
  .proj-card.wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .util .u-item.u-hide { display: none; }
  .trust { display: none; }
  .nav-links { display: none; }
  .burger { display: inline-grid; place-items: center; margin-left: auto; width: 46px; height: 46px; background: var(--ink); color: #fff; border: 0; cursor: pointer; }
  .burger svg { width: 22px; height: 22px; }
  .head .head-cta { display: none; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stats { margin-top: -80px; }
  .story .grid, .why-grid { grid-template-columns: 1fr; }
  .story .s-photo .badge-yrs { right: 16px; bottom: -18px; }
  .svc-grid, .loc-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .foot .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .foot .f-grid { grid-template-columns: 1fr; }
  .modal .f-row { grid-template-columns: 1fr; }
  .band .band-cta { margin-left: 0; }
}
