/* =========================================================
   EDR General Contracting — Improved Styles
   Dark teal theme · Pure static · Refined & interactive
   ========================================================= */

:root {
  --ink: #11191b;
  --deep: #0c2f33;
  --deep2: #071f22;
  --teal: #129a9a;
  --teal2: #2ec5c0;
  --teal-soft: #71e2dc;
  --paper: #f7f5ef;
  --paper2: #f0f4f3;
  --white: #ffffff;
  --muted: #697476;
  --line: #dbe2df;
  --max: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 20px 50px rgba(7, 31, 34, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(7, 31, 34, 0.06);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 54px;
  height: 46px;
  object-fit: cover;
  border-radius: 5px;
}

.brand-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-words b {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-words small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 4px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s var(--ease);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta).active::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--deep);
  color: #fff !important;
  padding: 11px 18px !important;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--ink);
}

.menu-icon {
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  display: block;
  transition: background 0.2s;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

.menu-btn[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-btn[aria-expanded="true"] .menu-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------- Hero -------------------- */
.hero {
  min-height: min(92vh, 860px);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--deep);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 23, 25, 0.92) 0%, rgba(5, 23, 25, 0.68) 42%, rgba(5, 23, 25, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 23, 25, 0.65) 0%, transparent 50%);
}

.hero-inner {
  position: relative;
  color: #fff;
  padding: 140px 0 60px;
  z-index: 2;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin: 0 0 16px;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--teal-soft);
}

.hero h1 {
  font-size: clamp(42px, 6.8vw, 78px);
  line-height: 0.98;
  max-width: 920px;
  margin: 0 0 22px;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.hero h1 span {
  color: #8fe4df;
}

.hero-copy {
  font-size: clamp(17px, 2vw, 20px);
  max-width: 640px;
  color: #e4eceb;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 48px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--teal2);
  color: #062225;
  box-shadow: 0 8px 24px rgba(46, 197, 192, 0.25);
}

.btn-primary:hover {
  background: #3ad4cf;
  box-shadow: 0 12px 28px rgba(46, 197, 192, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn.full {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  max-width: 880px;
  gap: 12px;
}

.trust-row span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust-row b {
  font-size: 15px;
  font-weight: 800;
}

.trust-row small {
  color: #b5c7c5;
  font-size: 12px;
  font-weight: 500;
}

/* -------------------- Sections -------------------- */
.section {
  padding: 100px 0;
}

.split-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: start;
}

.split-intro h2,
.section-heading h2,
.about h2,
.project-story h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 900;
}

.copy-stack {
  font-size: 18px;
  color: #4a5658;
}

.copy-stack p:first-child {
  margin-top: 0;
}

.copy-stack p {
  margin-bottom: 1.1em;
}

/* Services */
.services {
  background: var(--paper);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 42px;
}

.section-heading > p {
  max-width: 480px;
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  min-height: 440px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.primary-card {
  background: var(--deep);
  color: #fff;
  border-color: transparent;
}

.service-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--teal);
  display: block;
  margin-bottom: 26px;
}

.primary-card .service-kicker {
  color: var(--teal-soft);
}

.service-card h3 {
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 15.5px;
}

.primary-card p {
  color: #c5d1d0;
}

.service-card ul {
  padding-left: 18px;
  margin: 26px 0 0;
  color: inherit;
}

.service-card li {
  margin: 9px 0;
  font-size: 15px;
}

.primary-card li {
  color: #d0dbda;
}

/* Featured Project */
.featured-project {
  background: var(--white);
}

.project-banner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--deep);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  min-height: 580px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.project-story {
  color: #fff;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-story h2 {
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.05;
  margin: 0 0 20px;
}

.project-story > p {
  color: #cfdada;
  font-size: 16.5px;
  margin: 0 0 8px;
  line-height: 1.55;
}

.project-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 32px 0 28px;
}

.project-stats div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-stats b {
  font-size: 19px;
  font-weight: 800;
}

.project-stats span {
  font-size: 12px;
  color: #b0c0bf;
  font-weight: 500;
}

.text-link {
  font-weight: 800;
  color: var(--teal-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease, color 0.2s;
  width: fit-content;
}

.text-link:hover {
  color: #fff;
  gap: 10px;
}

/* Portfolio */
.work {
  background: var(--paper2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.portfolio-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #d8dedd;
  cursor: pointer;
}

.portfolio-card.large {
  grid-row: span 2;
}

.portfolio-card.wide {
  grid-column: span 2;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover img {
  transform: scale(1.04);
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-card figcaption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.portfolio-card figcaption b {
  font-size: 17px;
  font-weight: 800;
}

.portfolio-card figcaption span {
  font-size: 12px;
  color: #d4dedd;
  font-weight: 500;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-grid article {
  border-top: 3px solid var(--teal);
  padding-top: 22px;
  transition: transform 0.3s var(--ease);
}

.process-grid article:hover {
  transform: translateY(-3px);
}

.process-grid span {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.process-grid h3 {
  font-size: 21px;
  margin: 10px 0 8px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.process-grid p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* About */
.about {
  background: var(--deep2);
  color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.about-copy p {
  color: #c5d1d0;
  font-size: 17px;
  margin-bottom: 1.1em;
}

.about-photo img {
  height: 520px;
  width: 100%;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badge-row span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Testimonials */
.testimonials {
  background: var(--white);
}

.testimonial-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
}

.testimonial-shell p {
  color: var(--muted);
  margin: 0;
  font-size: 17px;
}

/* Estimate / Contact */
.estimate {
  background: var(--deep);
  color: #fff;
  padding: 100px 0;
}

.estimate-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.estimate h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.04;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.estimate-grid > div > p {
  color: #c3d0cf;
  font-size: 17px;
  margin: 0 0 8px;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.contact-details a,
.contact-details div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-details span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-soft);
  font-weight: 700;
}

.contact-details b {
  font-size: 18px;
  font-weight: 800;
}

.contact-details a:hover b {
  color: var(--teal2);
}

.estimate-form {
  background: var(--white);
  color: var(--ink);
  padding: 32px;
  border-radius: 22px;
  display: grid;
  gap: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.estimate-form label {
  font-weight: 700;
  font-size: 13px;
  display: grid;
  gap: 7px;
  color: var(--ink);
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid #cfd8d5;
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 154, 154, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note {
  color: #73807e;
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: -4px;
}

/* Footer */
footer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer-grid {
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 36px 0;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-grid b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.footer-grid span,
.footer-grid a {
  font-size: 13px;
  color: #64706f;
}

.footer-grid a:hover {
  color: var(--teal);
}

/* -------------------- Lightbox -------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 20, 22, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  color: #c5d1d0;
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 8px;
}

.lightbox-close:hover {
  opacity: 1;
}

/* -------------------- Mobile sticky CTA -------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  gap: 10px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}

.mobile-cta .btn {
  flex: 1;
  min-height: 46px;
  font-size: 14px;
}

.mobile-cta .btn-secondary {
  border: 1px solid var(--deep);
  color: var(--deep);
  background: transparent;
}

/* -------------------- Reveal animations -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children slightly via JS or sequential delays */
.service-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.service-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.service-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.process-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.process-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.process-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.process-grid .reveal:nth-child(4) { transition-delay: 0.26s; }

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px 28px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 8px;
    font-size: 16px;
    border-radius: 10px;
  }

  .main-nav a:hover {
    background: var(--paper);
  }

  .main-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    min-height: 720px;
  }

  .hero-inner {
    padding-top: 110px;
  }

  .trust-row {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .split-intro,
  .about-grid,
  .estimate-grid,
  .testimonial-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .project-banner {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 340px;
  }

  .project-story {
    padding: 36px 28px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 240px;
  }

  .portfolio-card.wide {
    grid-column: span 2;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-words small {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 16.5px;
  }

  .trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .estimate {
    padding: 72px 0 100px;
  }

  .portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .portfolio-card,
  .portfolio-card.large,
  .portfolio-card.wide {
    height: 300px;
    grid-column: auto;
    grid-row: auto;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 0;
  }

  .mobile-cta {
    display: flex;
  }

  /* Add bottom padding so content isn't hidden behind sticky CTA */
  body {
    padding-bottom: 72px;
  }

  .about-photo img {
    height: 360px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .portfolio-card img,
  .btn,
  .service-card {
    transition: none;
  }
}

/* Accessibility / production refinements */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .portfolio-card:focus-visible {
  outline: 3px solid #42c8c3;
  outline-offset: 3px;
}

/* =========================================================
   V4 — Contractor partner + project proof enhancements
   ========================================================= */
.partner-section {
  background: linear-gradient(180deg, #f4f8f7 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner-heading { align-items: end; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 32px rgba(7,31,34,.06);
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
}
.partner-card > span,
.proof-tag {
  display: inline-block;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.35;
}
.partner-card h3 { margin: 10px 0 10px; font-size: 1.35rem; line-height: 1.2; }
.partner-card p { margin: 0; color: var(--muted); }
.partner-cta {
  margin-top: 20px;
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.partner-cta div { display: grid; gap: 3px; }
.partner-cta b { font-size: 1.05rem; }
.partner-cta span { color: rgba(255,255,255,.72); font-size: .92rem; }

.project-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}
.proof-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(7,31,34,.07);
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 300px;
}
.proof-card-feature {
  grid-column: 1 / -1;
  grid-template-columns: 54% 46%;
  min-height: 390px;
  background: var(--deep);
  color: var(--white);
}
.proof-card .portfolio-card {
  height: 100%;
  min-height: 280px;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.proof-card .portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proof-copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.proof-copy h3 {
  margin: 10px 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
}
.proof-copy p { margin: 0; color: var(--muted); }
.proof-card-feature .proof-copy p { color: rgba(255,255,255,.75); }
.proof-before {
  margin-top: 16px;
  width: fit-content;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 3px;
  background: transparent;
  color: var(--teal);
  font-weight: 800;
  cursor: pointer;
}
.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.portfolio-strip .portfolio-card { min-height: 220px; }
.portfolio-strip .portfolio-card img { height: 220px; object-fit: cover; width: 100%; }

@media (max-width: 900px) {
  .partner-grid { grid-template-columns: 1fr; }
  .partner-cta { align-items: flex-start; flex-direction: column; }
  .project-proof-grid { grid-template-columns: 1fr; }
  .proof-card,
  .proof-card-feature { grid-column: auto; grid-template-columns: 1fr; min-height: 0; }
  .proof-card .portfolio-card { min-height: 260px; height: 300px; }
  .portfolio-strip { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .partner-card { padding: 22px; }
  .proof-copy { padding: 22px; }
  .proof-card .portfolio-card { height: 240px; min-height: 240px; }
  .portfolio-strip { grid-template-columns: 1fr; }
}

/* V4.1 — corrected brand mark + multi-photo project galleries */
.brand > img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
  padding: 2px;
}
.portfolio-card { position: relative; cursor: zoom-in; }
.photo-count {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(7,31,34,.88);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4,13,15,.94);
  display: grid;
  grid-template-columns: minmax(52px, 90px) minmax(0, 1fr) minmax(52px, 90px);
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; }
.lightbox-stage {
  width: min(1100px, 100%);
  height: min(82vh, 900px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: calc(82vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
}
.lightbox-meta {
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  font-size: .9rem;
}
.lightbox-caption { margin: 0; }
#lightbox-count { color: rgba(255,255,255,.7); white-space: nowrap; }
.lightbox-close {
  position: absolute;
  right: 18px;
  top: 12px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  width: 52px;
  height: 64px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  justify-self: center;
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(66,200,195,.28); }
@media (max-width: 700px) {
  .brand > img { width: 46px; height: 46px; }
  .lightbox { grid-template-columns: 44px minmax(0,1fr) 44px; padding: 54px 4px 18px; }
  .lightbox-nav { width: 40px; height: 54px; font-size: 1.55rem; }
  .lightbox-stage { height: 78vh; }
  .lightbox-stage img { max-height: calc(78vh - 72px); }
  .lightbox-meta { padding: 0 8px; font-size: .8rem; }
}


.form-status { margin-top: 12px; min-height: 1.25em; font-weight: 700; }
.form-status.is-success { color: #1f6b43; }
.form-status.is-error { color: #9b2c2c; }
.estimate-form button[disabled] { opacity: .7; cursor: wait; }
