/* styles.css — CNZA Renovations (full file)
   Includes:
   - Base theme + layout
   - Hero / sections / services / gallery / modal
   - Fix for svc-img “bottom lift” (image fills perfectly)
   - Email fallback overlay styles
*/

:root {
  /* Accent (overridden by inline <style id="theme-vars"> from Admin settings) */
  --accent: #ff6a00;
  --accent-2: #ff7f24;
  --accent-rgb: 255 106 0;

  /* Theme tokens (Dark defaults) */
  --page-bg: #001e1d;
  --builder-section-bg: #001e1df9;
  --text: #eaf0ff;
  --muted: #a7b4cc;
  --line: rgba(255, 255, 255, .12);
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .35);

  --topbar-bg: rgba(255, 255, 255, .06);
  --header-bg: rgba(11, 15, 20, .8);
  --card-bg: rgba(0, 30, 30, .50);
  --card2-bg: rgba(255, 255, 255, .04);
  --chip-bg: rgba(255, 255, 255, .06);
  --hover-bg: rgba(255, 255, 255, .06);
  --input-bg: rgba(0, 0, 0, .28);

  --lead: rgba(234, 240, 255, .88);

  /* Footer (10% transparency) */
  --footer-bg: #001010e0;
  --footer-text: rgba(234, 240, 255, .90);

  --hero-overlay:
    radial-gradient(800px 500px at 20% 30%, rgb(var(--accent-rgb) / .32), transparent 55%),
    radial-gradient(700px 520px at 70% 60%, rgba(124, 247, 199, .18), transparent 55%),
    linear-gradient(180deg, rgba(11, 15, 20, .35), rgba(11, 15, 20, .92));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background-color: var(--page-bg);
  color: var(--text);
}

.container {
  width: min(80vw, calc(100% - 40px));
  margin: 0 auto;
}

/* Floating back-to-top button */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: none;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  backdrop-filter: blur(10px);
}

.to-top.show {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.to-top:hover {
  background: rgba(255, 255, 255, .14);
}

/* Topbar */
.topbar {
  background: #001e1d;
  border-bottom: 1px solid #efff00;
  color: rgba(255, 255, 255, .92);
}

.topbar a {
  color: rgba(255, 255, 255, .92);
}

.topbar a:hover {
  color: #fff;
}

.topbar-inner {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.toplink {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  opacity: .9;
}

.toplink:hover {
  opacity: 1;
  text-decoration: underline;
}

.dot {
  opacity: .5;
  padding: 0 6px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 1px 3px 5px #000;
  margin-bottom: 5px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

/* Ensure logo is exactly 100px tall */
.brand-logo {
  height: 100px;
  width: auto;
  display: block;
}

/* Stack name + sub neatly */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

/* Make the name visually the same “height” as the logo area */
.brand-name {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;

  /* Key part: big type + tight line-height */
  font-size: 44px;
  /* adjust 40–52 depending on your logo proportions */
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Sub line smaller and readable */
.brand-sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.2;
  opacity: .85;
}

/* Alias: slogan text in header */
.brand-slogan {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.2;
  opacity: .85;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
}

.nav a:hover {
  opacity: 1;
}

/* ----- Services mega menu (hover) ----- */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  padding: 18px 0 22px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(0, 0, 0, .10);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

html[data-theme="dark"] .mega,
html[data-theme="auto"] .mega {
  /* Default dark mega styling (requested) */
  color: #ddd;
  background: #002321e6;
  border-bottom-color: rgba(255, 255, 255, .10);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

/* Open mega menu (JS or pure CSS hover/focus) */
.header.mega-open .mega,
.nav-services-trigger:hover+.mega,
.nav-services-trigger:focus+.mega,
.mega:hover {
  display: block;
}

.mega-inner {
  padding-top: 10px;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 320px;
  gap: 0;
  border-left: 1px solid rgba(0, 0, 0, .12);
}

html[data-theme="dark"] .mega-grid,
html[data-theme="auto"] .mega-grid {
  border-left-color: rgba(255, 255, 255, .10);
}

.mega-col {
  padding: 2vh 2vh;
  border-right: 1px solid rgba(0, 0, 0, .12);
}

html[data-theme="dark"] .mega-col,
html[data-theme="auto"] .mega-col {
  border-right-color: rgba(255, 255, 255, .10);
}

.mega-title {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: rgba(0, 0, 0, .82);
}

html[data-theme="dark"] .mega-title,
html[data-theme="auto"] .mega-title {
  color: #ff6a00fb;
}

.mega-link {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, .10);
  text-decoration: none;
  color: rgba(0, 0, 0, .82);
  font-weight: 600;
}

.mega-link:first-of-type {
  border-top: none;
}

.mega-link:hover {
  color: var(--accent);
}

html[data-theme="dark"] .mega-link,
html[data-theme="auto"] .mega-link {
  border-top-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .86);
}

.mega-empty,
.mega-placeholder {
  color: rgba(0, 0, 0, .55);
  font-size: 13px;
  line-height: 1.45;
}

html[data-theme="dark"] .mega-empty,
html[data-theme="dark"] .mega-placeholder,
html[data-theme="auto"] .mega-empty,
html[data-theme="auto"] .mega-placeholder {
  color: rgba(255, 255, 255, .55);
}

.mega-col--image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

.mega-img {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .10);
}

html[data-theme="dark"] .mega-img,
html[data-theme="auto"] .mega-img {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
}

.mega-imglink {
  display: block;
  width: 100%;
}

@media (max-width: 980px) {
  .mega {
    display: none !important;
  }
}

.burger {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 7px 11px;
  background: rgba(255, 255, 255, .85);
  border-radius: 2px;
}

/* Mobile menu */
.mobile {
  display: none;
  padding: 0 0 14px 0;
}

.mobile.is-open {
  display: block;
}

.mobile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  padding: 10px;
  box-shadow: var(--shadow);
}

.m-link {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  opacity: .95;
}

.m-link:hover {
  background: var(--hover-bg);
}

.m-cta {
  border: 1px solid rgba(255, 255, 255, .18);
}

.m-sep {
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 10px 0;
}

.m-sub {
  font-weight: 800;
  color: rgba(255, 255, 255, .80);
  padding: 6px 12px 4px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  height: 95vh;
  background: transparent;
  display: flex;
  align-items: center;
  /* vertically center hero content */
}

/* Hero content fade */
.hero--anim .hero-copy,
.hero--anim .hero-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.hero.is-visible.hero--anim .hero-copy,
.hero.is-visible.hero--anim .hero-card {
  opacity: 1;
  transform: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 22px;
  padding: 46px 0;
}

.hero h1 {
  background: linear-gradient(to right, #fffa59 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.8em;
  letter-spacing: -.6px;
  margin: 0 0 10px 0;
  text-shadow: 0em 0.09em 0.06em rgba(0, 0, 0, 0.7);
}

.lead {
  margin: 0 0 22px 0;
  color: var(--lead);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
}

.hero-copy {
  padding: 10vh 0;
  font-family: 'Source Sans Pro', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 500;
  color: #ffc107;
  line-height: 2.8em;
  text-align: left;
  text-shadow: 0em 0.05em 0.05em rgba(0, 0, 0, 0.9);
}

.hero.hero--no-card .hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.hero.hero--no-card .hero-copy {
  width: min(70%, 860px);
  margin-left: 5%;
}


.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

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

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* UPDATED CARD BACKGROUND */
.card,
.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* Requested darker card surface for dark/auto themes */
html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-card,
html[data-theme="auto"] .card,
html[data-theme="auto"] .hero-card {
  background: rgb(0 30 30 / 80%);
}

.card h3,
.hero-card h3 {
  margin: 0 0 8px 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* Forms */
.form {
  margin-top: 12px;
}

/* Shared contact form layout */
.contact-form {
  margin-top: 0;
}

.contact-form .contact-title {
  margin: 0 0 12px 0;
  max-width: 80%;
  font-size: clamp(18px, 1.5vw, 22px);
  text-align: left;
  font-weight: 800;
  color: var(--text);
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form .form-grid .full {
  grid-column: 1 / -1;
}

.contact-form .fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}

.contact-form .check input {
  width: auto;
  margin-top: 3px;
}

.contact-form .form-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.contact-form .form-actions>.btn {
  flex: 0 0 45%;
}

.contact-form .form-response {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* Hero form density */
.contact-form--hero .input,
.contact-form--hero input,
.contact-form--hero textarea,
.contact-form--hero select {
  padding: 10px 12px;
  border-radius: 14px;
}

.contact-form--hero .contact-title {
  display: none;
}

@media (max-width: 900px) {
  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .form-actions {
    flex-direction: column;
  }

  .contact-form .form-actions>.btn {
    flex: 0 0 auto;
    width: 100%;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgb(var(--accent-rgb) / .70);
  box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .18);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;

  /* Dark glassy pill — matches the "Guest Login" button style */
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(160deg, rgba(0, 40, 35, .92) 0%, rgba(0, 20, 18, .98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(0, 0, 0, .4),
    0 4px 14px rgba(0, 0, 0, .45);

  color: #e8f5e9;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(0, 60, 50, .95) 0%, rgba(0, 30, 25, .99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(0, 0, 0, .4),
    0 8px 24px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .08);
  color: #fff;
}

.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5);
}

/* Primary — accent colour tint on top of the dark base */
.btn-primary {
  background: linear-gradient(160deg, rgba(0, 80, 60, .95) 0%, rgba(0, 40, 30, .99) 100%);
  border-color: rgb(var(--accent-rgb) / .35);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 -1px 0 rgba(0, 0, 0, .35),
    0 4px 16px rgb(var(--accent-rgb) / .25);
}

.btn-primary:hover {
  background: linear-gradient(160deg, rgba(0, 100, 70, .98) 0%, rgba(0, 55, 40, .99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(0, 0, 0, .35),
    0 8px 28px rgb(var(--accent-rgb) / .35),
    0 0 0 1px rgb(var(--accent-rgb) / .25);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 8px rgba(0, 0, 0, .3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 12px rgba(0, 0, 0, .4);
}

.btn-small {
  padding: 9px 18px;
  font-size: .82rem;
}

.btn-full {
  width: 100%;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}


/* Premium CTA section */
.cta-premium {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f5f5f0;
  padding: 72px 0;
}

.cta-premium__container {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
}

.cta-premium__tagline {
  display: inline-block;
  margin-bottom: 2.5rem;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, .30);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.cta-premium__heading {
  margin: 0 0 3.5rem;
  color: #f5f5f0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cta-premium__heading i,
.cta-premium__heading em {
  font-style: italic;
}

.cta-premium__actions {
  display: flex;
  justify-content: center;
}

.cta-premium__button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 28px;
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, .40);
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  transition: all .5s cubic-bezier(.19, 1, .22, 1);
}

.cta-premium__button:hover {
  background: #fff;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .30);
}

.cta-premium__button:hover .cta-premium__arrow {
  background: #1a1a1a;
  color: #fff;
}

.cta-premium__arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 1.2rem;
  transition: all .4s ease;
}

@media (max-width: 600px) {
  .cta-premium {
    min-height: 78vh;
    padding: 56px 0;
  }

  .cta-premium__heading {
    margin-bottom: 2.5rem;
    font-size: 2.3rem;
  }
}

/* Services */
.services-showcase-title {
  display: block;
  margin-bottom: 22px;
}

.services-showcase-title p {
  max-width: 72ch;
}

.services-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (min-width: 1280px) {
  .services-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(17, 23, 31, .98) 0%, rgba(11, 15, 21, .96) 100%);
  box-shadow: 0 24px 52px rgba(0, 0, 0, .40);
  transition: transform .5s ease, box-shadow .5s ease, border-color .5s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), .20);
  box-shadow: 0 28px 56px rgba(0, 0, 0, .44);
  transition-delay: 300ms;
}

.service-card__hit {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.service-card__media {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  filter: brightness(.78) saturate(.98);
}

.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 14, .06) 0%, rgba(7, 10, 14, .24) 45%, rgba(7, 10, 14, .56) 100%),
    radial-gradient(520px 240px at 100% 0%, rgba(var(--accent-rgb), .14), transparent 62%);
}

.service-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 28px 30px;
}

.service-card__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.service-card p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, .78);
  font-size: .98rem;
  line-height: 1.72;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-card__tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
}

.service-card__footer {
  margin-top: auto;
  padding-top: 2px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.service-card--large {
  grid-column: span 2;
  min-height: 520px;
}

.service-card--large .service-card__media {
  min-height: 300px;
}

.service-card--wide .service-card__media {
  min-height: 280px;
}

/* Projects */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.g {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  min-height: 220px;
  box-shadow: var(--shadow);
}

.g img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.g span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
}

.g:focus {
  outline: 3px solid rgb(var(--accent-rgb) / .55);
  outline-offset: 2px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Footer */
.footer {
  padding: 0;
  border-top: 3px solid #FFEB3B;
  background: #001010e0;
  color: var(--footer-text);
  backdrop-filter: blur(5px);
}

.footer a {
  color: rgb(var(--accent-rgb) / .85);
}

.footer a:hover {
  color: rgb(var(--accent-rgb) / 1);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(30 30 30 / 80%);
  backdrop-filter: blur(6px);
  z-index: 0;
}

/* Generic dialog modals (quote + message) */
.modal-dialog {
  position: relative;
  width: min(760px, calc(100% - 26px));
  margin: 0;
  z-index: 1;
}

.modal-content {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(15, 23, 34, .96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  overflow: hidden;
  padding: 18px;
  max-height: 88vh;
  overflow: auto;
}

/* Message modal: darker overlay + tighter dialog */
.modal--message .modal-backdrop {
  background: rgba(0, 0, 0, .95);
  backdrop-filter: none;
}

.modal-dialog--message {
  width: min(560px, calc(100% - 26px));
}

.modal-dialog--message .modal-content {
  padding: 0;
}

.msg-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
}

.msg-title {
  font-weight: 900;
  letter-spacing: .02em;
}

.msg-body {
  padding: 16px;
  color: var(--text);
}

.msg-line {
  margin: 6px 0;
  color: rgba(255, 255, 255, .86);
  line-height: 1.5;
}

.msg-actions {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

.modal-panel {
  position: relative;
  width: min(980px, calc(100% - 26px));
  margin: 0;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(15, 23, 34, .95);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  overflow: hidden;
  max-height: 90vh;
}

.modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 34, .92);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 100000;
  box-shadow: 0 0px 10px rgb(255 113 68);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 0;
  max-height: 92vh;
}

.modal-media {
  position: relative;
  background: rgba(0, 0, 0, .25);
  min-height: 520px;
}

.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav.prev {
  left: 12px;
}

.modal-nav.next {
  right: 12px;
}

.modal-info {
  padding: 18px;
  border-left: 1px solid var(--line);
  overflow: auto;
}

.modal-info h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.modal-thumb {
  width: 84px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  padding: 0;
  cursor: pointer;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-thumb.is-active {
  outline: 3px solid rgb(var(--accent-rgb) / .55);
  border-color: rgb(var(--accent-rgb) / .55);
}

.modal-actions {
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    height: auto;
    min-height: 100svh;
    align-items: stretch;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 22px 0 30px;
  }

  .hero-copy {
    padding: clamp(88px, 16vw, 132px) 0 28px;
    line-height: 1.55;
  }

  .hero h1 {
    line-height: .94em;
  }

  .hero-card {
    margin-bottom: 10px;
  }

  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

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

  .services-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card,
  .service-card--wide,
  .service-card--large {
    grid-column: span 1;
    min-height: 0;
  }

  .service-card__media,
  .service-card--wide .service-card__media,
  .service-card--large .service-card__media {
    min-height: 220px;
  }

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

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

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

  /* Stack section titles sooner */
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-title p {
    max-width: 70ch;
  }
}

@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-info {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .modal-media,
  .modal-media img {
    min-height: 320px;
  }

  .modal-media img {
    max-height: 46vh;
    min-height: 320px;
  }

  .modal-info {
    max-height: 46vh;
  }
}

@media (max-width: 480px) {
  .services-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .service-card__body {
    padding: 22px 18px 24px;
  }

  .service-card h3 {
    font-size: 1.22rem;
  }

  .service-card p {
    font-size: .92rem;
  }

  .brand-logo {
    height: 72px;
  }

  .brand-name {
    font-size: 30px;
  }

  .brand-sub {
    font-size: 12px;
  }
}


/* Mobile Section Title Fix + hide topbar */
@media (max-width: 768px) {
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-title h2 {
    width: 100%;
  }

  .section-title p {
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }

  .topbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100svh;
    align-items: stretch;
  }

  .hero-inner {
    padding: 20px 0 26px;
  }

  .hero-copy {
    padding: clamp(88px, 22vw, 126px) 0 30px;
    line-height: 1.5;
  }

  .hero h1 {
    line-height: .94em;
  }

  .hero-card {
    margin-bottom: 10px;
  }
}

/* Desktop hero spacing */
@media (min-width: 981px) {
  .hero-copy {
    padding: 24px 0;
  }

  .hero.hero--no-card .hero-copy {
    width: 100%;
    margin-left: 0;
  }
}

/* =========================
   Email fallback overlay
   ========================= */
#emailFallback {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 999999;
  padding: 18px;
}

#emailFallback.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-fallback-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: rgba(15, 23, 34, .96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  padding: 16px;
}

.email-fallback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-fallback-x {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.email-fallback-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-open {
  overflow: hidden;
}

/* Utility */
.mobile-card {
  margin: 10px;
}

/* Features section refresh */
.features-section {
  position: relative;
  overflow: clip;
}

.features-shell {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  border-radius: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(600px 260px at 0% 0%, rgb(var(--accent-rgb) / .12), transparent 60%),
    radial-gradient(500px 240px at 100% 100%, rgba(124, 247, 199, .09), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
}

.features-title {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.features-title h2 {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding-bottom: 18px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #eef3ff;
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, .24),
    2px 2px 0 rgba(170, 184, 214, .22),
    3px 3px 0 rgba(118, 132, 160, .18),
    4px 4px 0 rgba(56, 68, 92, .16),
    0 0 18px rgb(var(--accent-rgb) / .18);
}

.features-title h2::after {
  content: none;
}

.features-title h2::before {
  content: none;
}

/* ── Full-width animated bar — escapes 10vw padding with negative margins ── */
.features-title {
  position: relative;
}

.features-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: -10vw;
  right: -10vw;
  height: 2px;
  background: rgba(255, 255, 255, .07);
}

.features-title::before {
  content: "";
  position: absolute;
  bottom: -12px;
  left: -10vw;
  right: -10vw;
  height: 2px;
  background: linear-gradient(90deg,
      #d96570,
      #e85555,
      #f44,
      #d96570,
      #9b72cb,
      #f4af54,
      #e85555,
      #f44,
      #d96570,
      #9b72cb,
      #d96570);
  background-size: 400% 100%;
  box-shadow:
    0 0 10px rgba(221, 68, 68, .6),
    0 0 20px rgba(217, 101, 112, .35),
    0 0 30px rgba(244, 175, 84, .15);
  animation: features-neon-flow 15s infinite linear;
  z-index: 1;
}

.features-title p {
  max-width: 62ch;
  font-size: clamp(15px, 1.2vw, 18px);
}

.features-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.features-grid--single .feature-panel {
  grid-column: span 12;
}

.feature-panel {
  position: relative;
  grid-column: span 4;
  min-height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(220px, 260px) 1fr;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  box-shadow: 0 18px 40px rgb(0 0 0 / 90%);
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.feature-panel::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -50px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / .20), transparent 68%);
  opacity: .85;
  transition: transform .35s ease, opacity .35s ease;
}

.feature-panel:hover {
  transform: translateY(-9px);
  border-color: rgb(var(--accent-rgb) / .30);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  box-shadow: 0 26px 60px rgb(0 0 0 / 92%);
}

.feature-panel:hover::before {
  transform: scale(1.08);
  opacity: 1;
}

.feature-panel:nth-child(2n) {
  margin-top: 20px;
}

.feature-panel--no-image {
  grid-template-rows: 1fr;
}

.feature-panel__media {
  position: relative;
  min-height: 220px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}

.feature-panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-panel__body {
  position: relative;
  z-index: 1;
  padding: 30px;
}

.feature-panel__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.feature-panel__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(0, 0, 0, .16);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.feature-panel__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / .55), rgba(255, 255, 255, .08));
}

.feature-panel h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 1.8vw, 29px);
  line-height: 1.12;
}

.feature-panel p {
  margin: 0;
  color: rgba(234, 240, 255, .84);
  line-height: 1.72;
  font-size: 15px;
  max-width: 32ch;
}

@keyframes features-neon-flow {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: -400% 0%;
  }
}

@media (max-width: 980px) {
  .feature-panel {
    grid-column: span 6;
  }

  .feature-panel:nth-child(2n) {
    margin-top: 0;
  }
}

@media (max-width: 720px) {
  .features-shell {
    padding: 22px;
    border-radius: 24px;
  }

  .features-title h2 {
    max-width: none;
    letter-spacing: .03em;
    padding-bottom: 16px;
  }

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

  .feature-panel,
  .features-grid--single .feature-panel {
    grid-column: span 1;
    grid-template-rows: minmax(190px, 220px) 1fr;
  }

  .feature-panel__body {
    padding: 22px;
  }
}


/* Mobile overflow safety */
img {
  max-width: 100%;
}

@media (max-width: 480px) {

  html,
  body {
    overflow-x: hidden;
  }

  .container,
  .cta-premium__container {
    width: min(92vw, calc(100% - 24px));
    margin-left: auto;
    margin-right: auto;
  }

  .section,
  .features-section,
  .features-shell,
  .services-bento,
  .features-grid,
  .gallery,
  .svc-bento,
  .feature-panel,
  .g {
    min-width: 0;
    max-width: 100%;
  }

  .feature-panel:nth-child(2n) {
    margin-top: 0;
  }

  .svc-bento__media,
  .feature-panel__media {
    min-height: auto;
  }

  .svc-bento__media img,
  .feature-panel__media img,
  .g img,
  .modal-media img,
  .modal-thumb img {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .services-bento,
  .features-grid,
  .gallery {
    gap: 14px;
  }
}


/* ===== Requested hero/mobile form fixes ===== */
.hero {
  min-height: 95vh;
  height: auto;
}

@supports (min-height: 100svh) {
  .hero {
    min-height: 95svh;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: unset;
    height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

@media (max-width: 768px) {

  .input,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px !important;
  }
}


/* Contractors in Area */
.contractors-showcase .contractors-head {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}

.contractors-showcase .contractors-head h2 {
  margin: 0;
}

.contractors-showcase .contractors-head p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
  font-size: .95rem;
}

/* ── Contractor Cards — 4-column aligned grid ── */
.contractors-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Each card uses a 5-row subgrid so every row aligns across all cards */
.contractor-row {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  /* logo | name | location/chips | spacer | actions */
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color .15s ease, background .15s ease;
  position: relative;
}

.contractor-row:hover {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
}

.contractor-row-marketed {
  border-color: rgba(255, 61, 61, .55);
  background: rgba(255, 30, 30, .04);
}

.contractor-row-marketed:hover {
  border-color: rgba(255, 61, 61, .85);
}

/* Red left strip for featured */
.contractor-row-marketed::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 61, 61, .85);
  border-radius: 16px 0 0 16px;
}

/* ── Logo row ── */
.contractor-row__logo {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, rgb(var(--accent-rgb) / .15), rgba(255, 255, 255, .03));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.contractor-row__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contractor-row__logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: .4;
}

/* ── Name row ── */
.contractor-row__name {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px 4px;
}

.contractor-row__name h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}

.contractor-row__featured-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 61, 61, .9);
  box-shadow: 0 0 6px rgba(255, 61, 61, .6);
  flex-shrink: 0;
}

/* ── Meta row (location + chips) ── */
.contractor-row__info {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contractor-row__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contractor-row__location {
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.contractor-row__location svg {
  opacity: .55;
  flex-shrink: 0;
}

.contractor-row__chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.contractor-row__chip {
  font-size: .68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}

/* ── Spacer (pushes actions to bottom) ── */
.contractor-row__spacer {
  flex: 1;
}

/* ── Actions row ── */
.contractor-row__actions {
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.contractor-row__actions .btn {
  font-size: .78rem;
  padding: 8px 14px;
  width: 100%;
  justify-content: center;
}

/* Responsive — 2 col tablet, 1 col mobile */
@media (max-width:980px) {
  .contractors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:730px) {
  .contractors-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width:560px) {
  .contractors-list {
    grid-template-columns: 1fr;
  }

  .contractor-row__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contractor-row__actions .btn {
    width: auto;
    flex: 1;
  }
}

/* ── Empty state ── */
.contractors-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-bg);
  gap: 12px;
}

.contractors-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / .10);
  color: rgb(var(--accent-rgb));
  margin-bottom: 4px;
}

.contractors-empty-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.contractors-empty-msg {
  margin: 0;
  color: var(--lead);
  font-size: .95rem;
  max-width: 440px;
}

.contractors-empty-sub {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  max-width: 400px;
}

.contractors-empty-cta {
  margin-top: 6px;
}

/* Keep old grid class as alias */
.contractors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contractor-card {
  display: none;
}



/* ── Contractors head with area selector ─────────────────────────────────── */
.contractors-head--with-area {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
}

@media(max-width:640px) {
  .contractors-head--with-area {
    grid-template-columns: 1fr;
  }
}

/* Area selector dropdown */
.contractors-area-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.contractors-area-select__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contractors-area-select__dropdown {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .12s;
}

.contractors-area-select__dropdown:focus {
  border-color: rgba(var(--accent-rgb), .5);
  outline: none;
}

/* ── Service filter chips (restored) ──────────────────────────────────────── */
.svc-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}

.svc-filter__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.svc-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.svc-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  transition: background .12s ease, border-color .12s ease, opacity .12s ease, transform .1s ease;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}

.svc-filter__chip:hover {
  transform: translateY(-1px);
}

.svc-filter__chip--on {
  background: rgba(var(--accent-rgb), .15);
  border-color: rgba(var(--accent-rgb), .45);
  color: var(--text);
}

.svc-filter__chip--on .svc-filter__check {
  color: rgb(var(--accent-rgb));
  font-size: .7rem;
}

.svc-filter__chip--off {
  background: rgba(255, 255, 255, .02);
  border-color: rgba(255, 255, 255, .07);
  color: var(--muted);
  opacity: .55;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, .2);
}

.svc-filter__chip--off .svc-filter__check {
  display: none;
}

.svc-filter__reset {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .12s, border-color .12s;
}

.svc-filter__reset:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .25);
}

.svc-filter__status {
  font-size: .82rem;
  color: var(--muted);
  margin: -8px 0 12px;
  padding: 0 2px;
}

/* Fix: dark background for native select dropdown */
.contractors-area-select__dropdown {
  background: #0b1220;
  color: var(--text);
}

.contractors-area-select__dropdown option,
.contractors-area-select__dropdown optgroup {
  background: #0b1220;
  color: var(--text);
}

/* ── Geo prompt banner ───────────────────────────────────────────────────── */
/* Shows on root service pages when user area is unknown                     */
.geo-prompt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 106, 0, .07);
  border: 1px solid rgba(255, 106, 0, .22);
  margin-bottom: 20px;
  font-size: .85rem;
  color: var(--text);
}

.geo-prompt[hidden] {
  display: none;
}

.geo-prompt__icon {
  flex-shrink: 0;
  color: rgba(255, 106, 0, .8);
  margin-top: 1px;
}

.geo-prompt__text {
  flex: 1;
  line-height: 1.5;
  color: var(--muted);
}

.geo-prompt__text strong {
  color: var(--text);
}

.geo-prompt__trigger {
  color: rgba(255, 106, 0, .9);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.geo-prompt__dismiss {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  padding: 0 2px;
  line-height: 1;
  opacity: .6;
}

.geo-prompt__dismiss:hover {
  opacity: 1;
}

/* ── Area-required prompt (shown when area unknown on root service page) ─── */
.area-required-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .02);
  gap: 16px;
  margin-top: 8px;
}

.area-required-prompt__icon {
  color: rgba(var(--accent-rgb), .5);
  opacity: .7;
}

.area-required-prompt__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.area-required-prompt__text {
  margin: 0;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.6;
  font-size: .9rem;
}

/* ── Fix: [hidden] must always win over display:flex/block rules ─────────── */
[hidden] {
  display: none !important;
}

/* ── Exact-area contractor card: accent border ───────────────────────────── */
.contractor-row--exact-area {
  border: 2px solid rgb(var(--accent-rgb) / .55);
  box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / .15), 0 4px 16px rgb(var(--accent-rgb) / .10);
}

/* ── Province-only card: no special border, slightly muted ───────────────── */
.contractor-row--province {
  opacity: .88;
}

/* ── Province badge chip ─────────────────────────────────────────────────── */
.contractor-row__chip--province {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .10);
  color: var(--muted);
  font-style: italic;
}

/* ── Service count chip ──────────────────────────────────────────────────── */
.contractor-row__chip--svc-count {
  background: rgba(var(--accent-rgb) / .08);
  border-color: rgba(var(--accent-rgb) / .22);
  color: var(--muted);
  font-size: .72rem;
}

.contractor-row__chip--svc-count strong {
  color: var(--text);
  font-weight: 700;
}

.contractor-row__chip--svc-count .js-svc-of {
  color: var(--muted);
  opacity: .7;
}

/* Contractors in Area refresh */
.contractors-showcase .contractors-head {
  gap: 10px;
  margin-bottom: 32px;
}

.contractors-showcase .contractors-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contractors-showcase .contractors-head p {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.65;
}

.contractors-head__text {
  display: grid;
  gap: 8px;
}

.contractors-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.contractor-row {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)),
    rgba(5, 18, 22, .92);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contractor-row:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
    rgba(7, 22, 27, .96);
  box-shadow:
    0 28px 55px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

.contractor-row--exact-area {
  border: 1px solid rgba(var(--accent-rgb), .42);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, .24),
    0 0 0 1px rgba(var(--accent-rgb), .12),
    inset 0 1px 0 rgba(255, 255, 255, .05);
}

.contractor-row--province {
  border-color: rgba(255, 255, 255, .08);
}

.contractor-row__logo {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), .22), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}

.contractor-row__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.contractor-row__logo-fallback {
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), .24), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.contractor-row__media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 14, .12) 0%, rgba(4, 10, 14, .2) 35%, rgba(4, 10, 14, .82) 100%);
  pointer-events: none;
}

.contractor-row__media-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  z-index: 1;
}

.contractor-row__status,
.contractor-row__featured-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.contractor-row__status {
  background: rgba(10, 18, 24, .62);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #f4fbff;
}

.contractor-row__status--province {
  background: rgba(13, 21, 28, .58);
  color: #d6e6ef;
}

.contractor-row__featured-pill {
  background: rgba(var(--accent-rgb), .92);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #081115;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), .22);
}

.contractor-row__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 18px 18px 18px;
}

.contractor-row__eyebrow {
  display: none;
}

.contractor-row__name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
  min-height: 58px;
}

.contractor-row__name h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.contractor-row__featured-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  background: rgb(var(--accent-rgb));
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16), 0 0 18px rgba(var(--accent-rgb), .45);
}

.contractor-row__info {
  padding: 0;
  gap: 10px;
  min-height: 86px;
}

.contractor-row__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contractor-row__location {
  display: inline-flex;
  align-items: center;
  font-size: .84rem;
  color: rgba(226, 242, 247, .74);
  gap: 6px;
}

.contractor-row__location svg {
  opacity: .8;
  flex-shrink: 0;
}

.contractor-row__chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-height: 64px;
}

.contractor-row__chip {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .01em;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(226, 242, 247, .78);
}

.contractor-row__chip--province {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .12);
  color: #edf6fa;
  font-style: normal;
}

.contractor-row__chip--service {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .12);
  color: #edf6fa;
  font-style: normal;
}

.contractor-row__chip--more {
  background: rgba(255, 255, 255, .03);
  color: rgba(226, 242, 247, .72);
}

.contractor-row__reason {
  margin: 0;
  color: rgba(226, 242, 247, .78);
  font-size: .93rem;
  line-height: 1.55;
  min-height: 46px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.contractor-row__actions {
  margin-top: auto;
  padding: 8px 0 0;
  border-top: 0;
  gap: 10px;
}

.contractor-row__actions .btn {
  min-height: 44px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 11px 16px;
  box-shadow: none;
}

.svc-filter {
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .08);
}

.svc-filter__label {
  color: rgba(226, 242, 247, .62);
}

.svc-filter__chip {
  min-height: 36px;
  padding: 7px 14px;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .045);
}

.svc-filter__chip--on {
  background: rgba(var(--accent-rgb), .14);
  border-color: rgba(var(--accent-rgb), .34);
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), .08);
}

.svc-filter__reset {
  min-height: 36px;
  padding: 7px 14px;
}

.contractors-empty-card {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)),
    rgba(5, 18, 22, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
}

@media (max-width:1180px) {
  .contractors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px) {
  .contractors-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contractor-row {
    border-radius: 20px;
  }

  .contractor-row__body {
    padding: 16px;
  }

  .contractor-row__actions {
    flex-direction: column;
  }

  .contractor-row__actions .btn {
    width: 100%;
  }
}

/* Contractor card refinements */
.contractors-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contractor-row--exact-area {
  border: 1px solid rgba(var(--accent-rgb), .42);
  box-shadow: 1px 3px 5px #000;
}

.contractor-row__media {
  position: relative;
  width: 100%;
  height: 236px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), .22), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}

.contractor-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.contractor-row__media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: .4;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), .24), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.contractor-row__media-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  z-index: 1;
}

.contractor-row__brand-mark {
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 227, 221, .88);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.contractor-row__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.contractor-row__base-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  max-width: calc(100% - 84px);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #f4fbff;
  background: rgba(8, 17, 21, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contractor-row__base-pill svg {
  opacity: .82;
  flex-shrink: 0;
}

@media (max-width:1280px) {
  .contractors-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:980px) {
  .contractors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contractor-row__media {
    height: 224px;
  }
}

@media (max-width:730px) {
  .contractors-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {
  .contractor-row__media {
    height: 208px;
  }

  .contractor-row__media-bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: center;
  }

  .contractor-row__brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    padding: 4px;
  }

  .contractor-row__base-pill {
    font-size: .68rem;
    padding: 6px 10px;
    max-width: calc(100% - 72px);
  }

  .contractor-row__name {
    min-height: 0;
  }

  .contractor-row__info {
    min-height: 0;
  }

  .contractor-row__chips {
    min-height: 0;
  }

  .contractor-row__reason {
    min-height: 0;
  }
}
/* ── geo_coverage section ──────────────────────────────────────────────────── */
.geo-coverage-section { padding: 4rem 0; }

.geo-coverage-provinces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.geo-coverage-province__name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: var(--accent, #efff00);
}

.geo-coverage-areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.geo-coverage-area {
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
}

.geo-coverage-area__name {
  font-weight: 600;
  color: #fff;
}

a.geo-coverage-area__name {
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.25);
  transition: color .15s, border-color .15s;
}

a.geo-coverage-area__name:hover {
  color: var(--accent, #efff00);
  border-bottom-color: var(--accent, #efff00);
}

.geo-coverage-area__intro {
  color: rgba(255,255,255,.5);
  font-style: italic;
}

.geo-coverage-area__aliases {
  color: rgba(255,255,255,.75);
}

@media (max-width: 600px) {
  .geo-coverage-provinces {
    grid-template-columns: 1fr;
  }
}