/* ===== Crestline Estimating — Homepage (reference-matched) ===== */

/* ---------- Reveal animation utility ---------- */
.reveal { opacity: 0; transition: opacity .5s ease; }
.reveal.is-visible { opacity: 1; }
.reveal-left { opacity: 0; transition: opacity .5s ease; }
.reveal-left.is-visible { opacity: 1; }
.reveal-right { opacity: 0; transition: opacity .5s ease; }
.reveal-right.is-visible { opacity: 1; }
.reveal-scale { opacity: 0; transition: opacity .5s ease; }
.reveal-scale.is-visible { opacity: 1; }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Pill / arrow buttons (reference style) ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.btn-pill span.txt { padding: 16px 26px; }
.btn-pill span.arrow {
  background: var(--navy);
  color: var(--white);
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  transition: transform .35s ease, background .3s ease;
}
.btn-pill:hover { box-shadow: 0 10px 26px rgba(240,165,0,0.35); transform: translateY(-2px); }
.btn-pill:hover span.arrow { transform: rotate(45deg); }

.btn-pill.dark { background: var(--navy); color: var(--white); }
.btn-pill.dark span.arrow { background: var(--accent); color: var(--navy); }

.btn-round-outline {
  display: inline-block;
  padding: 16px 30px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 40px;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: all .3s ease;
}
.btn-round-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-round-navy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: all .3s ease;
}
.btn-round-navy:hover { background: var(--accent); color: var(--navy); transform: translateY(-2px); }

.arrow-nav { display: flex; flex-direction: column; gap: 10px; }
.arrow-nav button {
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background .25s ease, transform .25s ease;
}
.arrow-nav button:hover { background: var(--accent); color: var(--navy); transform: scale(1.06); }

/* ---------- Eyebrow variants ---------- */
.eyebrow-line { display: flex; align-items: center; gap: 14px; color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 18px; }
.eyebrow-line::after { content: ""; flex: 0 0 60px; height: 1px; background: rgba(240,165,0,0.5); }
.eyebrow-square { display: inline-flex; align-items: center; gap: 10px; color: var(--gray); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 12.5px; margin-bottom: 16px; }
.eyebrow-square::before { content: ""; width: 9px; height: 9px; background: var(--accent); display: inline-block; }
.bg-navy .eyebrow-square { color: #B7C4D6; }

/* ---------- HERO (reference-matched) ---------- */
.hero-v2 {
  position: relative;
  min-height: min(78vh, 660px);
  color: var(--white);
  overflow: hidden;
}
.hero-v2.hero-slider { display: block; }
.hero-slides { position: relative; width: 100%; height: min(78vh, 660px); }
/* hero image path lives here (resolved relative to this CSS file, so it works from any folder) */
.hero-slide { --hero-img: url('../images/hero-bg.jpg'); }
/* Each slide (2-4) has its own background photo; slide 1 keeps hero-bg.jpg */
.hero-slides .hero-slide:nth-child(2) { --hero-img: url('../images/hero-slide-2.jpg'); }
.hero-slides .hero-slide:nth-child(3) { --hero-img: url('../images/hero-slide-3.jpg'); }
.hero-slides .hero-slide:nth-child(4) { --hero-img: url('../images/hero-slide-4.jpg'); }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(0,0,0,0.55) 10%, rgba(0,0,0,0.30) 70%), var(--hero-img) center/cover no-repeat;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 1.15s cubic-bezier(.45,0,.2,1), opacity 1.15s ease;
  z-index: 1;
}
.hero-slide.active { transform: translateX(0); opacity: 1; z-index: 2; }
.hero-slide.prev { transform: translateX(-100%); opacity: 0; }
.hero-v2 .container { position: relative; z-index: 3; padding-top: 40px; padding-bottom: 40px; }
.hero-tagline { font-weight: 700; font-size: clamp(15px, 1.7vw, 19px); color: var(--white) !important; margin-bottom: 14px !important; max-width: 600px; }

/* text appears one element at a time, only while its slide is active */
.hero-slide .badge-tag,
.hero-slide h1,
.hero-slide h2,
.hero-slide p,
.hero-slide .hero-tagline,
.hero-slide .hero-actions { opacity: 0; }
.hero-slide.active .badge-tag { animation: fadeSlideUp .7s ease forwards; animation-delay: .1s; }
.hero-slide.active h1,
.hero-slide.active h2 { animation: fadeSlideUp .7s ease forwards; animation-delay: .45s; }
.hero-slide.active .hero-tagline { animation: fadeSlideUp .7s ease forwards; animation-delay: .8s; }
.hero-slide.active p { animation: fadeSlideUp .7s ease forwards; animation-delay: .8s; }
.hero-slide.active .hero-tagline ~ p { animation-delay: 1.05s; }
.hero-slide.active .hero-actions { animation: fadeSlideUp .7s ease forwards; animation-delay: 1.35s; }

.hero-v2 .badge-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 12px 24px;
  margin-bottom: 26px;
}
.hero-v2 h1,
.hero-v2 h2 {
  color: var(--white);
  font-size: clamp(28px, 4.4vw, 50px);
  max-width: 760px;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero-v2 p { font-size: clamp(14.5px, 1.5vw, 17.5px); max-width: 600px; color: #D8E0EA; margin-bottom: 34px; }
.hero-bid-box {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: var(--navy);
  color: var(--white);
  padding: 34px 60px 34px 34px;
  max-width: 360px;
  animation: fadeSlideUp .9s ease .4s both;
}
.hero-bid-box p { color: var(--white); font-size: 19px; font-weight: 700; line-height: 1.4; margin-bottom: 20px; max-width: none; }
.hero-bid-box a.circle-arrow {
  width: 50px; height: 50px;
  background: var(--white);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border-radius: 4px;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.hero-bid-box a.circle-arrow:hover { background: var(--accent); transform: rotate(45deg); }

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Trust / partner logos ---------- */
.trust-logos-section { padding: 60px 0 50px; text-align: center; }
.trust-logos-section h2 { font-size: 26px; margin-bottom: 46px; }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; }
.logo-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 60px;
  color: #9AA5B4;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  filter: grayscale(1);
  opacity: .75;
  transition: opacity .3s ease, filter .3s ease, transform .3s ease;
}
.logo-badge:hover { opacity: 1; filter: grayscale(0.4); transform: translateY(-3px); }
.logo-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }

/* ---------- Bid-ready guesswork section ---------- */
.guesswork-section { background: var(--navy); color: var(--white); padding: 100px 0; position: relative; overflow: hidden; }
.guesswork-section h2 { color: var(--white); font-size: 46px; text-transform: uppercase; line-height: 1.15; margin-bottom: 26px; }
.guesswork-section h2 .accent-word { color: var(--accent); }
.guesswork-section p { color: #B7C4D6; font-size: 16.5px; max-width: 640px; margin-bottom: 18px; }
.guesswork-section .btn-round-outline { margin-top: 20px; }

/* ---------- What we offer (dark split w/ carousel) ---------- */
.offer-section { background: var(--navy); color: var(--white); }
.offer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 90px 40px 50px; align-items: start; }
.offer-top .offer-copy h2 { color: var(--white); font-size: 44px; margin-bottom: 18px; }
.offer-top .offer-copy p { color: #C7D2E0; font-size: 16px; max-width: 520px; }
.offer-buttons { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.offer-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: var(--accent); color: var(--navy);
  font-weight: 700; font-size: 13.5px; letter-spacing: .8px; text-transform: uppercase;
  padding: 18px 10px 18px 26px;
  width: 260px;
  transition: transform .3s ease;
}
.offer-btn .arrow { background: var(--navy); color: var(--white); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: transform .35s ease; }
.offer-btn:hover { transform: translateY(-3px); }
.offer-btn:hover .arrow { transform: rotate(45deg); }

.offer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.offer-card { background: var(--white); color: var(--text-dark); padding: 36px 30px 0; position: relative; min-height: 300px; display: flex; flex-direction: column; }
.offer-card:nth-child(2n) { background: #FBFBFB; }
.offer-card h3 { font-size: 20px; margin-bottom: 14px; position: relative; padding-bottom: 16px; }
.offer-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: var(--accent); }
.offer-card p { color: var(--gray); font-size: 14px; margin-bottom: 18px; flex: 1; }
.offer-card .view-more { color: var(--navy); font-weight: 700; font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.offer-card .thumb { position: relative; margin: 0 -30px; height: 150px; }
.offer-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.offer-card .thumb .icon-tag { position: absolute; top: -20px; right: 20px; width: 46px; height: 46px; background: rgba(34,39,43,0.85); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* ---------- What we deliver (numbered list rows) ---------- */
.deliver-section { padding: 100px 0; }
.deliver-row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--gray-light); align-items: start; }
.deliver-row:first-of-type { border-top: 1px solid var(--gray-light); }
.deliver-num { color: var(--accent); font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.deliver-row h3 { font-size: 22px; margin-bottom: 12px; text-transform: uppercase; }
.deliver-row .left-col p { color: var(--gray); font-size: 15px; }
.deliver-row .right-col p { color: var(--gray); font-size: 15px; }

/* ---------- Estimates/Takeoffs/Team navy section ---------- */
.team-section { background: var(--navy); color: var(--white); padding: 100px 0; }
.team-section h2 { color: var(--white); font-size: 38px; text-transform: uppercase; margin-bottom: 16px; }
.team-section > .container > p { color: #B7C4D6; max-width: 620px; margin-bottom: 50px; }
.mini-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; background: rgba(255,255,255,0.12); margin-bottom: 60px; }
.mini-card { background: var(--navy-2); padding: 30px 26px; }
.mini-card .arrow-ico { color: var(--accent); font-size: 18px; margin-bottom: 20px; display: block; }
.mini-card h4 { color: var(--white); font-size: 15.5px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.mini-card p { color: #B7C4D6; font-size: 14px; }

.team-block { margin-bottom: 50px; }
.team-block h4 { color: var(--white); text-transform: uppercase; font-size: 15px; letter-spacing: 1px; margin-bottom: 14px; }
.team-block p { color: #B7C4D6; font-size: 15px; max-width: 900px; margin-bottom: 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-pill { border: 1px solid rgba(255,255,255,0.25); padding: 10px 20px; font-size: 13.5px; color: #DCE4EE; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid rgba(255,255,255,0.15); margin-bottom: 40px; }
.area-grid div { padding: 22px 24px; border-right: 1px solid rgba(255,255,255,0.15); font-size: 15px; color: #DCE4EE; }
.area-grid div:last-child { border-right: none; }

.team-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.team-cta p { color: #DCE4EE; font-size: 15.5px; }

/* ---------- Get a free quote split ---------- */
.quote-section { padding: 100px 0; }
.quote-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.quote-grid h2 { font-size: 38px; text-transform: uppercase; margin-bottom: 18px; }
.quote-grid > div:first-child p { color: var(--gray); font-size: 16px; margin-bottom: 34px; max-width: 480px; }
.quote-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.quote-info-card { border: 1px solid var(--gray-light); padding: 10px 40px; }
.quote-info-row { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--gray-light); flex-wrap: wrap; gap: 8px; }
.quote-info-row:last-child { border-bottom: none; }
.quote-info-row .label { color: var(--gray); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.quote-info-row .value { color: var(--navy); font-weight: 700; font-size: 16px; text-align: right; }

/* ---------- Why contractors choose us (tabs) ---------- */
.why-tabs-section { padding: 100px 0 0; }
.why-tabs-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; margin-bottom: 70px; }
.why-tabs-grid img { width: 100%; height: clamp(300px, 38vw, 560px); object-fit: cover; }
.why-tabs-grid h2 { font-size: clamp(24px, 3.2vw, 38px); margin-bottom: 18px; }
.why-tabs-grid > div:last-child > p { color: var(--gray); font-size: 16px; margin-bottom: 30px; max-width: 560px; }
.tab-nav { display: flex; gap: 40px; border-bottom: 1px solid var(--gray-light); margin-bottom: 26px; }
.tab-nav button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--gray); padding-bottom: 16px; position: relative;
}
.tab-nav button.active { color: var(--navy); }
.tab-nav button.active::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeSlideUp .5s ease both; }
.tab-panel p { color: var(--gray); font-size: 15.5px; margin-bottom: 24px; max-width: 560px; }
.check-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; margin-bottom: 30px; }
.check-cols li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 600; color: var(--text-dark); }
.check-cols li .tick { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 11px; margin-top: 2px; }

.section-divider {
  width: 100%;
  max-width: 760px;
  height: 3px;
  background: var(--navy);
  margin: 22px 0 26px;
  border-radius: 2px;
}
.check-cols-wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 30px;
  margin-top: 8px;
}
.check-cols-wide li {
  font-size: 15.5px;
  padding: 14px 0;
  justify-content: center;
  flex: 0 1 calc(25% - 22.5px);
}
.check-cols-wide li .tick {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #2B6CA2;
  color: #fff;
  font-size: 13px;
}

/* ---------- Why Crestline Estimating: left text / right image layout ---------- */
.why-choose-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.why-choose-text { text-align: left; }
.why-choose-text .eyebrow-square { justify-content: flex-start; }
.why-choose-text .section-sub { margin-left: 0; margin-right: 0; max-width: 560px; }

/* two-photo overlap treatment, matching reference: corner frame + soft circle behind the shots */
.why-choose-media {
  --logo-blue: #0B6CB6;
  position: relative;
  padding: 14px 30px 60px 16px;
}
.wcm-corner {
  position: absolute; top: 0; left: 0; width: 120px; height: 120px;
  border-top: 2px solid var(--logo-blue); border-left: 2px solid var(--logo-blue);
  border-top-left-radius: 44px; z-index: 0;
}
.wcm-blob {
  position: absolute; top: 66px; right: 10px; width: 210px; height: 210px;
  border-radius: 50%; background: rgba(11,108,182,0.14); z-index: 0;
}
.wcm-img-main {
  position: relative; z-index: 1; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.wcm-img-main img { width: 100%; height: clamp(300px, 32vw, 420px); object-fit: cover; display: block; }
.wcm-img-overlap {
  position: absolute; right: -6px; bottom: -20px; width: 56%; z-index: 2;
  border-radius: 12px; overflow: hidden; border: 6px solid var(--white);
  box-shadow: 0 20px 40px rgba(10,26,47,.22);
}
.wcm-img-overlap img { width: 100%; height: clamp(150px, 14vw, 200px); object-fit: cover; display: block; }

@media (max-width: 640px) {
  .why-choose-media { padding: 10px 16px 50px 10px; }
  .wcm-blob { width: 150px; height: 150px; top: 40px; }
}

.check-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 30px;
  margin-top: 8px;
}
.check-cols-2 li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.check-cols-2 li .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #2B6CA2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
@media (max-width: 860px) {
  .why-choose-grid { grid-template-columns: 1fr; gap: 30px; }
  .why-choose-media { order: -1; }
  .check-cols-2 { grid-template-columns: 1fr; }
}

/* ---------- Why feature list (stacked checklist style) ---------- */
.why-feature-list { margin: 8px 0 34px; }
.why-feature-item {
  padding: 20px 0;
  border-top: 1px solid var(--gray-light);
}
.why-feature-item:first-child { border-top: none; padding-top: 6px; }
.why-feature-item .wf-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.why-feature-item .wf-tick {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.why-feature-item h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin: 0;
}
.why-feature-item p { color: var(--gray); font-size: 14.5px; margin: 0 0 0 48px; max-width: 540px; }

.why-feature-list-wide { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 50px; margin-top: 20px; }
.why-feature-list-wide .why-feature-item { border-top: 1px solid var(--gray-light); }
.why-feature-list-wide .why-feature-item:nth-child(1),
.why-feature-list-wide .why-feature-item:nth-child(2) { border-top: none; padding-top: 6px; }
.why-feature-list-wide .why-feature-item p { max-width: none; }

/* ---------- Feature cards + stats ---------- */
.feature-cards-section { padding: 0 0 90px; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 70px; }
.feature-cards .fc {
  border: 1px solid var(--gray-light);
  padding: 40px 26px;
  text-align: center;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.feature-cards .fc:hover { box-shadow: var(--shadow); transform: translateY(-6px); border-color: transparent; }
.feature-cards .fc .fc-icon {
  width: 66px; height: 66px; margin: 0 auto 22px;
  border: 2px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 26px;
}
.feature-cards .fc h4 { font-size: 18px; margin-bottom: 12px; }
.feature-cards .fc p { color: var(--gray); font-size: 14px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats-row .stat strong { display: block; font-family: var(--font-heading); font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: var(--accent-dark); }
.stats-row .stat span { color: var(--text-dark); font-weight: 600; font-size: 15px; }

/* ---------- Services mega-grid ---------- */
.services-grid-section { background: var(--off-white); padding: 100px 0; }
.services-mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.mega-card {
  background: var(--white); padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  border-bottom: 3px solid transparent;
}
.mega-card:hover { transform: translateY(-6px); border-bottom-color: var(--accent); }
.mega-card .num { color: var(--accent); font-family: var(--font-heading); font-weight: 800; font-size: 13px; margin-bottom: 14px; }
.mega-card h4 { font-size: 17px; margin-bottom: 10px; }
.mega-card p { color: var(--gray); font-size: 13.5px; margin-bottom: 14px; }
.mega-card a { color: var(--accent-dark); font-weight: 700; font-size: 12.5px; text-transform: uppercase; }

/* ---------- Software strip ---------- */
.software-strip { padding: 70px 0; text-align: center; }
.software-strip h3 { font-size: 24px; margin-bottom: 44px; }
.software-logos { display: flex; justify-content: center; align-items: center; gap: 60px; flex-wrap: wrap; }
.software-logos span { font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: #A8AFB9; letter-spacing: .5px; transition: color .3s ease; }
.software-logos span:hover { color: var(--navy); }

/* ---------- Featured projects ---------- */
.projects-section { background: var(--navy); color: var(--white); padding: 100px 0; }
.projects-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.projects-grid h2 { color: var(--white); font-size: clamp(24px, 3.4vw, 40px); margin-bottom: 20px; }
.projects-grid > div:first-child p { color: #C7D2E0; margin-bottom: 30px; }
.project-photo-wrap { position: relative; }
.project-photo-wrap img { width: 100%; height: clamp(240px, 26vw, 380px); object-fit: cover; }
.project-info-card { background: var(--white); color: var(--text-dark); position: absolute; left: -40px; bottom: -40px; padding: 30px; max-width: 340px; box-shadow: var(--shadow); }
.project-info-card .cat { color: var(--gray); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.project-info-card h4 { font-size: 19px; margin-bottom: 14px; }
.project-info-card ul li { font-size: 13.5px; color: var(--gray); margin-bottom: 6px; }
.project-info-card ul li strong { color: var(--text-dark); }

/* ---------- 4-step process (light card) ---------- */
.process-section-v2 { background: var(--off-white); padding: 90px 0; }
.process-card-v2 {
  background: var(--white); padding: 40px 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.process-card-v2:hover { transform: translateY(-8px); }
.process-card-v2 .big-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); color: var(--accent); margin-bottom: 18px; }
.process-card-v2 h4 { font-size: 17px; margin-bottom: 12px; }
.process-card-v2 p { color: var(--gray); font-size: 14px; }
.process-banner { background: var(--navy); color: var(--white); text-align: center; padding: 26px; margin-top: 40px; font-size: 15.5px; }

/* ---------- Testimonials v2 with slider ---------- */
.testimonials-v2 { padding: 100px 0; }
.testi-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.testi-grid img { width: 100%; height: clamp(280px, 32vw, 460px); object-fit: cover; filter: grayscale(1); }
.testi-content .quote-mark { color: var(--accent); font-size: 50px; font-family: Georgia, serif; line-height: 1; margin-bottom: 10px; }
.testi-content h2 { font-size: clamp(22px, 2.8vw, 34px); margin-bottom: 26px; }
.testi-text { font-size: 17px; color: var(--text-dark); margin-bottom: 26px; min-height: 110px; transition: opacity .3s ease; }
.testi-author { font-weight: 700; color: var(--navy); font-size: 16px; }
.testi-role { color: var(--gray); font-size: 14px; margin-bottom: 26px; }
.testi-controls { display: flex; gap: 12px; }

/* ---------- Final CTA + form ---------- */
.final-cta-section { position: relative; padding: 0; }
.final-cta-photo { position: relative; }
.final-cta-photo img { width: 100%; height: clamp(340px, 40vw, 640px); object-fit: cover; filter: grayscale(0.15); }
.final-cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.97) 30%, rgba(255,255,255,0.55) 70%, rgba(255,255,255,0.1)); }
.final-cta-inner { position: absolute; inset: 0; display: flex; align-items: center; }
.final-cta-inner .container { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 40px; align-items: start; width: 100%; }
.final-cta-inner h2 { font-size: clamp(20px, 2.4vw, 30px); margin-bottom: 6px; }
.final-cta-inner .form-box { padding: 30px; box-shadow: none; border: 1px solid var(--gray-light); background: rgba(255,255,255,0.95); }
.final-contact-card { background: var(--navy-2); color: var(--white); padding: 30px; }
.final-contact-card p { color: #DCE4EE; font-size: 14.5px; margin-bottom: 10px; }
.final-contact-card .addr { margin-bottom: 20px; }


/* ===== Intermediate laptop breakpoint (fixes cramped/oversized look on 1200-1440px laptop screens) ===== */
@media (max-width: 1440px) {
  .hero-v2 .container { padding-top: 50px; padding-bottom: 60px; }
  .hero-bid-box { padding: 26px 44px 26px 26px; max-width: 300px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .check-cols-wide li { flex-basis: calc(50% - 15px); }
  .projects-grid, .testi-grid, .why-tabs-grid, .quote-grid { grid-template-columns: 1fr; }
  .why-tabs-grid img, .testi-grid img { height: 320px; }
  .project-info-card { position: static; margin-top: -60px; margin-left: 20px; margin-right: 20px; }
  .final-cta-inner { position: static; }
  .final-cta-photo::after { display: none; }
  .final-cta-inner .container { grid-template-columns: 1fr; padding: 60px 24px; }
  .final-cta-photo img { height: 280px; }
}

@media (max-width: 768px) {
  .hero-v2 { min-height: auto; }
  .hero-slides { height: 680px; }
  .hero-v2 h1, .hero-v2 h2 { font-size: 32px; }
  .hero-bid-box { position: static; max-width: 100%; margin-top: 30px; }
  .guesswork-section h2 { font-size: 30px; }
  .offer-top { grid-template-columns: 1fr; padding: 60px 20px 30px; }
  .offer-buttons { align-items: flex-start; }
  .offer-btn { width: 100%; }
  .deliver-row { grid-template-columns: 1fr; gap: 10px; }
  .team-cta { flex-direction: column; align-items: flex-start; }
  .software-logos { gap: 30px; }
  .check-cols { grid-template-columns: 1fr; }
  .check-cols-wide li { flex-basis: 100%; }
  .why-feature-list-wide { grid-template-columns: 1fr; }
  .why-feature-list-wide .why-feature-item:nth-child(2) { border-top: 1px solid var(--gray-light); padding-top: 20px; }
}

@media (max-width: 480px) {
  .hero-v2 .badge-tag { font-size: 11px; padding: 9px 16px; }
  .hero-bid-box { padding: 22px; }
  .testi-controls button, .arrow-nav button { width: 42px; height: 42px; }
  .btn-pill span.txt { padding: 13px 18px; }
  .header-inner { padding: 12px 16px; }
  .logo { font-size: 19px; }
}
/* ===== OUR SERVICES (quick preview cards) ===== */
.services-quick-section {
  position: relative;
  padding: clamp(60px, 7vw, 100px) 0;
  background: var(--off-white);
  overflow: hidden;
}
.services-quick-bg {
  position: absolute;
  top: -40px;
  right: -40px;
  width: clamp(260px, 30vw, 420px);
  pointer-events: none;
  z-index: 0;
}
.services-quick-bg img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.07;
  filter: grayscale(100%);
  transform: rotate(8deg);
}
.services-quick-section .container { position: relative; z-index: 1; }
.services-quick-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}
.services-quick-head .eyebrow-square::before { margin-right: 2px; }
.services-quick-head .section-sub { margin: 0 auto; }
.services-quick-head .section-sub strong { color: var(--navy); }
.services-quick-grid { gap: 30px; }
.services-quick-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.services-quick-viewport {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.services-quick-viewport::-webkit-scrollbar { display: none; }
.services-quick-grid {
  display: flex;
  gap: 26px;
}
.services-quick-grid .services-quick-card {
  flex: 0 0 clamp(230px, 23%, 280px);
  scroll-snap-align: start;
}
.sq-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.sq-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); transform: scale(1.06); }
.services-quick-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.services-quick-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(10,26,47,0.16); }
.services-quick-card .sq-img { height: 170px; overflow: hidden; }
.services-quick-card .sq-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.services-quick-card:hover .sq-img img { transform: scale(1.06); }
.services-quick-card h4 { font-size: 17px; margin: 20px 24px 10px; color: var(--navy); }
.services-quick-card p { color: var(--gray); font-size: 13.5px; margin: 0 24px 18px; min-height: 60px; }
.sq-btn { margin: 0 24px; padding: 11px 22px; font-size: 12px; }
.services-quick-cta { text-align: center; margin-top: 46px; }

@media (max-width: 480px) {
  .services-quick-head { text-align: left; }
  .services-quick-head .eyebrow-square { justify-content: flex-start !important; }
}

/* ===== HOW IT WORKS ===== */
.how-it-works-section { padding: clamp(60px, 7vw, 100px) 0; background: var(--white); }
.hiw-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.hiw-head .section-sub { margin: 0 auto; }

/* ---------- HOW IT WORKS v2 (image + accordion timeline) ---------- */
.hiw2-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start; }
.hiw2-media { position: relative; padding: 14px 34px 64px 16px; }
.hiw2-corner {
  position: absolute; top: 0; left: 0; width: 120px; height: 120px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
  border-top-left-radius: 44px; z-index: 0;
}
.hiw2-blob {
  position: absolute; top: 76px; right: 20px; width: 230px; height: 230px;
  border-radius: 50%; background: var(--off-white); z-index: 0;
}
.hiw2-img-main {
  position: relative; z-index: 1; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow);
}
.hiw2-img-main img { width: 100%; height: clamp(340px, 34vw, 460px); object-fit: cover; display: block; transition: transform .6s ease; }
.hiw2-img-overlap {
  position: absolute; right: -14px; bottom: -40px; width: 60%; z-index: 2;
  border-radius: 14px; overflow: hidden; border: 6px solid var(--white);
  box-shadow: 0 20px 40px rgba(10,26,47,.25);
}
.hiw2-img-overlap img { width: 100%; height: clamp(170px, 15vw, 230px); object-fit: cover; display: block; transition: transform .6s ease; }
.hiw2-media:hover .hiw2-img-main img,
.hiw2-media:hover .hiw2-img-overlap img { transform: scale(1.05); }

.hiw2-steps { display: flex; flex-direction: column; }
.hiw2-step { position: relative; padding-left: 58px; }
.hiw2-step + .hiw2-step { border-top: 1px solid var(--gray-light); margin-top: 22px; padding-top: 22px; }
.hiw2-step:not(.hiw2-step-last)::before {
  content: ""; position: absolute; left: 19px; top: 48px; bottom: -22px;
  border-left: 2px dashed var(--gray-light);
}
.hiw2-num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  background: var(--white); border: 2px solid var(--gray-light); color: var(--navy);
  transition: background .3s ease, border-color .3s ease, color .3s ease; z-index: 1;
}
.hiw2-step-head {
  display: flex; align-items: center; gap: 18px; width: 100%;
  background: none; border: none; cursor: pointer; text-align: left; padding: 4px 0;
}
.hiw2-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(16px, 1.6vw, 19px); color: var(--navy); }
.hiw2-body { max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.hiw2-body-inner { padding: 14px 0 4px; }
.hiw2-body-inner p { color: var(--gray); font-size: 14.5px; max-width: 560px; margin-bottom: 18px; }
.hiw2-btn {
  display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--accent);
  color: var(--accent-dark); font-weight: 700; font-size: 12.5px; letter-spacing: .6px;
  text-transform: uppercase; padding: 13px 22px; border-radius: 30px;
  transition: background .3s ease, color .3s ease;
}
.hiw2-btn:hover { background: var(--accent); color: var(--navy); }
.hiw2-arrow { transition: transform .3s ease; }
.hiw2-btn:hover .hiw2-arrow { transform: rotate(45deg); }

.hiw2-step.is-open .hiw2-num { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.hiw2-step.is-open .hiw2-body { max-height: 320px; }

@media (max-width: 900px) {
  .hiw2-grid { grid-template-columns: 1fr; gap: 50px; }
  .hiw2-media { max-width: 420px; margin: 0 auto; }
}
.hiw-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.hiw-card {
  flex: 1 1 0;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hiw-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.hiw-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.hiw-card h4 { font-size: 17px; color: var(--navy); margin-bottom: 10px; }
.hiw-card p { color: var(--gray); font-size: 14px; margin: 0; }
.hiw-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--gray-light);
  font-size: 22px;
  margin-top: -40px;
}

@media (max-width: 1000px) {
  .hiw-row { flex-direction: column; align-items: stretch; }
  .hiw-arrow { display: none; }
  .hiw-card { width: 100%; }
}

/* ===== REQUEST FOR QUOTE ===== */
.quote-form-section { padding: clamp(60px, 7vw, 100px) 0; }
.qf-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 100px; align-items: stretch; }
.qf-left { display: flex; flex-direction: column; align-self: center; }
.qf-badge {
  display: inline-block;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.qf-left h2 { font-size: clamp(26px, 3vw, 34px); color: var(--navy); margin-bottom: 16px; line-height: 1.25; }
.qf-left p { color: var(--gray); margin-bottom: 26px; }
.qf-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.qf-image img { width: 100%; height: 280px; object-fit: cover; display: block; }
.qf-contact-row { display: flex; gap: 40px; flex-wrap: wrap; }
.qf-contact-item { display: flex; align-items: center; gap: 14px; }
.qf-contact-ico {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent-dark); flex-shrink: 0;
}
.qf-contact-item div { display: flex; flex-direction: column; }
.qf-contact-item strong { color: var(--navy); font-size: 14.5px; }
.qf-contact-item span { color: var(--gray); font-size: 13.5px; }

.qf-dark-card {
  background: var(--navy);
  color: var(--white);
  padding: 65px 30px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  flex: 1 1 auto;
  height: auto;
}
.qf-dark-card .fcc-block { display: flex; flex-direction: column; gap: 8px; }
.qf-dark-card .fcc-label { color: #9BA5B4; font-size: 13px; letter-spacing: .3px; }
.qf-dark-card .fcc-value { color: var(--white); font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.qf-dark-card .fcc-note { color: #DCE4EE; font-size: 14px; line-height: 1.6; margin: 0; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.12); }

.qf-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.qf-badge-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.qf-form { display: flex; flex-direction: column; gap: 18px; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qf-field { display: flex; flex-direction: column; gap: 7px; }
.qf-field span { font-size: 13px; font-weight: 600; color: var(--navy); }
.qf-field span em { color: var(--accent-dark); font-style: normal; font-weight: 500; }
.qf-field input, .qf-field textarea {
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--off-white);
  resize: vertical;
}
.qf-field input:focus, .qf-field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.qf-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.qf-upload:hover { background: var(--navy-2); }
.qf-upload-ico { font-size: 17px; }
.qf-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 8px;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  border: none;
  padding: 11px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.qf-submit-btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.qf-submit-btn span {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}

@media (min-width: 1001px) {
  .qf-left { margin-top: 58px; }
}

@media (max-width: 1000px) {
  .qf-grid { grid-template-columns: 1fr; }
  .qf-row { grid-template-columns: 1fr; }
}

/* ===== OUR SERVICES ===== */
.our-services-section {
  padding: clamp(60px, 7vw, 100px) 0;
  background: linear-gradient(180deg, rgba(217,137,132,0.32) 0%, rgba(217,137,132,0.12) 35%, var(--off-white) 65%, #FFFFFF 100%);
}
.our-services-head { text-align: center; max-width: 1150px; margin: 0 auto 50px; }
.our-services-head .section-title { font-size: clamp(28px, 3.4vw, 41px); white-space: nowrap; }
.our-services-head .section-sub { margin: 0 auto; }
@media (max-width: 900px) {
  .our-services-head .section-title { white-space: normal; }
}
.our-services-grid { gap: 30px; }
.os-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding-bottom: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.os-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(10,26,47,0.16); }
.os-card .os-img { height: 170px; overflow: hidden; }
.os-card .os-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.os-card:hover .os-img img { transform: scale(1.06); }
.os-card h4 { font-size: 17px; margin: 20px 24px 0; color: var(--navy); }
.our-services-cta { text-align: center; margin-top: 46px; }

@media (max-width: 1000px) {
  .our-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .our-services-grid { grid-template-columns: 1fr; }
  .os-card p { min-height: 0; }
}


/* ===== HOW IT WORKS - CIRCULAR RING FLOW DESIGN ===== */
.hiw-pinwheel-wrap { display: flex; justify-content: center; margin: 10px auto 55px; }
.hiw-ring { position: relative; width: 340px; height: 340px; }
.hiw-ring-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 26px rgba(10,26,47,0.16)); }
.hiw-ring-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  fill: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hiw-ring-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 148px; text-align: center; z-index: 5;
}
.hiw-ring-center span { display: block; font-family: var(--font-heading); font-weight: 800; color: var(--navy); line-height: 1.3; font-size: 15px; text-transform: uppercase; letter-spacing: 0.3px; }
.hiw-ring-center span.accent { color: var(--accent-dark); font-size: 17px; }

.hiw-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 10px; }
.hiw-legend-item h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 8px; color: var(--text-dark); }
.hiw-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.hiw-legend-item p { color: var(--gray); font-size: 14px; line-height: 1.65; }

@media (max-width: 900px) {
  .hiw-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hiw-ring { width: 260px; height: 260px; }
  .hiw-ring-label { font-size: 16px; }
  .hiw-ring-center { width: 112px; }
  .hiw-ring-center span { font-size: 11.5px; }
  .hiw-ring-center span.accent { font-size: 13px; }
  .hiw-legend { grid-template-columns: 1fr; }
}

/* =====================================================================
   TYPOGRAPHY (homepage) - matched to constructestimates.com
   ===================================================================== */
.hero-v2 h1, .hero-v2 h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.25; text-transform: none; max-width: 780px; }
.hero-v2 h2.hero-h2-fit2 { font-size: clamp(26px, 3.3vw, 38px); max-width: 900px; }
.hero-v2 p { font-size: clamp(14.5px, 1.3vw, 16px); }
.hero-v2 .badge-tag { font-size: 13px; }
.btn-pill { font-size: 14px; }
.eyebrow-square { font-size: 14px; }
.stats-row .stat strong { font-family: var(--font-serif); font-size: clamp(30px, 3vw, 38px); font-weight: 700; font-variant-numeric: lining-nums; }
.os-card h4 { font-size: 22px; line-height: 1.3; text-align: center; }
.check-cols li, .check-cols-wide li { font-size: 16px; }
.hiw2-title { font-size: clamp(17px, 1.6vw, 20px); }
.hiw2-body-inner p { font-size: 16px; }
.hiw2-btn { font-size: 13.5px; }
.qf-left h2 { font-size: clamp(26px, 3.2vw, 38px); }
.qf-left p { font-size: 16px; }
.qf-dark-card .fcc-label { font-size: 14px; }
.qf-dark-card .fcc-note { font-size: 15px; }
.qf-field span { font-size: 14px; }
.qf-field input, .qf-field textarea { font-size: 15px; }
.qf-upload { font-size: 15px; }

@media (max-width: 768px) {
  .hero-v2 h1, .hero-v2 h2 { font-size: 32px; }
}
/* ---------- Welcome section: one-line heading + aligned grid + 3 equal stats ---------- */
.welcome-section .welcome-grid > .reveal-right { container-type: inline-size; min-width: 0; text-align: left; }
.welcome-section .section-title { white-space: nowrap; font-size: clamp(18px, 4.6cqw, 40px); line-height: 1.2; margin-bottom: 20px; }
.welcome-section .section-sub { max-width: none; width: 100%; margin-bottom: 36px; text-align: justify; text-justify: inter-word; }
.welcome-section .stats-row { grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; justify-items: center; align-items: start; text-align: center; }
.welcome-section .stats-row .stat { width: 100%; }
@media (max-width: 600px) {
  .welcome-section .section-title { white-space: normal; font-size: 26px; }
  .welcome-section .stats-row { gap: 8px; }
  .welcome-section .stats-row .stat span { font-size: 13px; }
}
/* Two-line brand heading: "Crestline Estimating" (accent color) + subtitle line below — matched to other section-title sizes */
.welcome-section .section-title.welcome-title-2line { white-space: normal; display: flex; flex-direction: column; gap: 8px; }
.welcome-title-2line .wt-line1 { color: var(--accent-dark); font-size: clamp(14px, 1.9cqw, 24px); white-space: nowrap; }
.welcome-title-2line .wt-line2 { color: #000000; font-size: clamp(20px, 3.6cqw, 46px); white-space: nowrap; }
@media (max-width: 600px) {
  .welcome-title-2line .wt-line1, .welcome-title-2line .wt-line2 { white-space: normal; }
  .welcome-title-2line .wt-line1 { font-size: 18px; }
  .welcome-title-2line .wt-line2 { font-size: 30px; }
}
/* Welcome section grid: image column narrower (40%), text column wider (60%) */
.welcome-section .welcome-grid { grid-template-columns: 2fr 3fr; align-items: center; }
@media (max-width: 900px) {
  .welcome-section .welcome-grid { grid-template-columns: 1fr; }
}
/* Welcome section: single feature image, sized to fill its (now narrower) column */
.welcome-section .welcome-collage { display: block; max-width: 100%; margin: 0 auto; }
.welcome-section .collage-main img { width: 100%; height: auto; object-fit: cover; }
@media (max-width: 900px) {
  .welcome-section .welcome-collage { max-width: 420px; }
}

/* ===================== Fluid / responsive layer (homepage) ===================== */
.os-card .os-img { height: auto; aspect-ratio: 16 / 10; }
.hiw2-img-main img { height: auto; aspect-ratio: 4 / 3; }
.hiw2-corner { width: clamp(56px, 8.3vw, 120px); height: clamp(56px, 8.3vw, 120px); border-top-left-radius: clamp(22px, 3vw, 44px); }
.hiw2-blob { width: clamp(110px, 16vw, 230px); height: clamp(110px, 16vw, 230px); top: clamp(40px, 5.3vw, 76px); }
.hiw2-num { width: clamp(34px, 2.8vw, 40px); height: clamp(34px, 2.8vw, 40px); }
.qf-contact-ico { width: clamp(38px, 3.1vw, 44px); height: clamp(38px, 3.1vw, 44px); }
.check-cols-wide li .tick { width: clamp(22px, 1.8vw, 26px); height: clamp(22px, 1.8vw, 26px); }
.welcome-section .stats-row .stat strong { font-size: clamp(26px, 3vw, 38px); }
@media (max-width: 768px) {
  .hero-v2 h1, .hero-v2 h2 { font-size: clamp(22px, 6.4vw, 32px); }
  .hero-slides { height: clamp(560px, 150vw, 680px); }
}
@media (min-width: 992px) {
  .hero-slides > .hero-slide:nth-child(3) h2 { max-width: 640px; }
  .hero-slides > .hero-slide:nth-child(3) p { max-width: 470px; }
}
/* ===== Our Core Values (About Us) ===== */
.core-values-section {
  position: relative;
  padding: clamp(60px, 7vw, 100px) 0;
  background-color: var(--off-white);
  background-image:
    radial-gradient(circle, rgba(185, 104, 99, 0.16) 1.4px, transparent 1.6px),
    linear-gradient(rgba(185, 104, 99, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 104, 99, 0.08) 1px, transparent 1px);
  background-size: 34px 34px, 68px 68px, 68px 68px;
  background-position: 0 0, 0 0, 0 0;
  overflow: hidden;
}
.core-values-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(246,247,249,0) 0%, var(--off-white) 78%);
  pointer-events: none;
}
.core-values-section .container { position: relative; z-index: 1; }
.core-values-section .hiw-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }

.cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(292px, 100%), 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  justify-items: center;
}
.cv-item { display: flex; justify-content: center; align-items: flex-start; width: 100%; }
.cv-circle {
  width: 100%;
  max-width: 292px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  box-shadow: 0 14px 34px rgba(34, 39, 43, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 38px 35px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cv-circle:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(34, 39, 43, 0.14);
  border-color: var(--accent-dark);
}
.cv-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.cv-title { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.cv-desc { color: var(--gray); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 1000px) {
  .cv-grid { row-gap: 40px; }
}

/* ===== Our Mission / Our Vision (About Us) ===== */
.mv-section { padding: clamp(50px, 6vw, 80px) 0; background: var(--off-white); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mv-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 44px 42px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mv-card h3 { font-size: 22px; margin-bottom: 16px; }
.mv-card p { font-size: 15.5px; line-height: 1.75; position: relative; z-index: 1; }
.mv-card h3 { position: relative; z-index: 1; }

.mv-light { background: var(--white); box-shadow: 0 10px 30px rgba(34,39,43,0.06); }
.mv-light h3 { color: var(--navy); }
.mv-light p { color: var(--gray); }
.mv-light .mv-blob {
  position: absolute; top: 0; right: 0; width: 46%; height: 60%;
  background: rgba(217, 137, 132, 0.16);
  border-bottom-left-radius: 100%;
}

.mv-dark { background: var(--navy); box-shadow: 0 10px 30px rgba(34,39,43,0.18); }
.mv-dark h3 { color: var(--white); }
.mv-dark p { color: #B7C0C9; }
.mv-dark .mv-blob {
  position: absolute; top: 0; right: 0; width: 46%; height: 60%;
  background: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 100%;
}

@media (max-width: 768px) {
  .mv-grid { grid-template-columns: 1fr; }
  .mv-card { padding: 36px 30px; min-height: 0; }
}

/* ===== About v2 (About page — reference-style split) ===== */
.about-v2-section { padding: clamp(60px, 8vw, 100px) 0; overflow: hidden; }
.about-v2-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 0;
}
.about-v2-media { position: relative; height: 100%; min-height: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.about-v2-media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.about-v2-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.about-v2-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 26px);
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.about-v2-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.about-v2-text { color: var(--gray); font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.7; margin-bottom: 18px; }
.about-v2-text:last-of-type { margin-bottom: 30px; }
.about-v2-text strong { color: var(--navy); font-weight: 700; }
.about-v2-text em { color: var(--navy); font-style: italic; }
.about-v2-goal-title { font-family: var(--font-serif); font-weight: 800; color: var(--navy); font-size: clamp(17px, 1.8vw, 21px); margin-bottom: 14px; }
.about-v2-goal-box { background: #D5D8DE; border-radius: 12px; padding: 22px 24px; margin-bottom: 30px; }
.about-v2-goal-box p { color: var(--gray); font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.7; margin: 0; }
.about-v2-hr { border: none; height: 1px; background: var(--gray-light); margin-bottom: 30px; }
.about-v2-btn {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.about-v2-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.about-v2-btn-label {
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  transition: background 0.25s ease;
}
.about-v2-btn-icon {
  background: var(--navy);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  transition: background 0.25s ease;
}
.about-v2-btn:hover .about-v2-btn-label { background: var(--accent-dark); }
.about-v2-btn:hover .about-v2-btn-icon { background: var(--navy-3); }

@media (max-width: 860px) {
  .about-v2-grid { grid-template-columns: 1fr; min-height: 0; padding: 0 20px; gap: 28px; }
  .about-v2-media { min-height: 0; }
  .about-v2-media img { aspect-ratio: 16 / 11; }
  .about-v2-content { padding: 0; }
}

/* ===== About page: 3-image collage with entrance + motion ===== */
.about-v3-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.about-v3-tile { margin: 0; position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 14px 34px rgba(10, 26, 47, 0.16); background: var(--off-white, #f4f6f9); }
.about-v3-t1, .about-v3-t2 { aspect-ratio: 1 / 1; }
.about-v3-t3 { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.about-v3-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.about-v3-tile::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--accent); transition: width .5s ease; }
.about-v3-tile:hover::after { width: 100%; }

/* entrance: each tile comes from a different direction, one after another */
.about-v3-tile { opacity: 0; transition: opacity .8s ease, transform .95s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.about-v3-t1 { transform: translateX(-60px) scale(.92); }
.about-v3-t2 { transform: translateY(-60px) scale(.92); }
.about-v3-t3 { transform: translateY(60px) scale(.92); }
.about-v3-media.is-visible .about-v3-tile { opacity: 1; transform: none; }
.about-v3-media.is-visible .about-v3-t1 { transition-delay: .15s; }
.about-v3-media.is-visible .about-v3-t2 { transition-delay: .4s; }
.about-v3-media.is-visible .about-v3-t3 { transition-delay: .65s; }

/* after entrance: slow zoom on every image + gentle float, lift on hover */
.about-v3-media.is-visible .about-v3-tile img { animation: aboutKen 10s ease-in-out 1.2s infinite alternate; }
.about-v3-media.is-visible .about-v3-t2 img { animation-duration: 12s; animation-delay: 1.5s; }
.about-v3-media.is-visible .about-v3-t3 img { animation-duration: 14s; animation-delay: 1.8s; }
@keyframes aboutKen { from { transform: scale(1); } to { transform: scale(1.09); } }
.about-v3-media.is-visible .about-v3-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(10, 26, 47, 0.24); transition-delay: 0s; }

@media (max-width: 560px) { .about-v3-media { gap: 10px; } .about-v3-tile { border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .about-v3-tile { opacity: 1; transform: none; transition: none; }
  .about-v3-media.is-visible .about-v3-tile img { animation: none; }
}
