/*
  Seaforth architectural variant
  Style-only layer over the official Walter starter.
  Section order, copy, interactions and brand palette remain unchanged.
*/

:root {
  --sf-cyan: rgb(var(--brand-rgb));
  --sf-cyan-deep: var(--brand-deep);
  --sf-navy: rgb(var(--dark-rgb));
  --sf-line: rgb(var(--brand-rgb) / 0.28);
}

/* Sharper, architectural rhythm without changing the base palette. */
body {
  background: #fff;
}

#top {
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.38);
}

header {
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.22) !important;
}

header nav {
  min-height: 88px;
}

header img[src^="photos/logo.png"] {
  height: 60px !important;
}

/* Square off the template's generic soft shapes. */
.bg-custom,
a.bg-custom,
button.bg-custom {
  border-radius: 3px !important;
  box-shadow: 4px 4px 0 rgb(1 26 60 / 0.6);
  letter-spacing: 0.01em;
}

.bg-custom:hover,
a.bg-custom:hover,
button.bg-custom:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgb(1 26 60 / 0.55);
}

/* Hero: same two-column starter, more deliberate architectural frame. */
#hero {
  min-height: 650px;
  border-bottom: 5px solid var(--sf-cyan);
  background-position: center 58% !important;
}

#hero > .absolute.inset-0 {
  background: linear-gradient(
    90deg,
    rgb(1 26 60 / 0.84) 0%,
    rgb(1 26 60 / 0.70) 43%,
    rgb(1 26 60 / 0.38) 72%,
    rgb(1 26 60 / 0.20) 100%
  ) !important;
}

#hero h1 {
  max-width: 680px;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

#hero .rounded-3xl {
  border-radius: 2px !important;
  border-left: 3px solid var(--sf-cyan);
}

#hero .max-w-md.mx-auto.border {
  border-radius: 2px !important;
  border: 1px solid rgb(var(--brand-rgb) / 0.6) !important;
  border-left: 5px solid var(--sf-cyan) !important;
  background: rgb(1 26 60 / 0.78) !important;
  box-shadow: 18px 18px 0 rgb(1 26 60 / 0.32);
  backdrop-filter: blur(8px);
}

#hero input,
#hero select {
  border-radius: 2px !important;
}

/* Verified trust data presented as a measured specification strip. */
#trust-strip {
  padding-top: 2.4rem !important;
  padding-bottom: 2.7rem;
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.34);
  position: relative;
}

#trust-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--sf-cyan), transparent);
}

#trust-strip .grid > div {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgb(var(--brand-rgb) / 0.24);
}

#trust-strip .grid > div:last-child {
  border-right: 1px solid rgb(var(--brand-rgb) / 0.24);
}

/* Reusable section labels become left-notched technical labels. */
p.w-fit.rounded-xl {
  border-radius: 0 !important;
  border-color: rgb(var(--brand-rgb) / 0.58) !important;
  border-left-width: 4px !important;
  letter-spacing: 0.08em;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
}

/* About keeps the same two-column structure but gets an offset cyan frame. */
#about {
  position: relative;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(var(--brand-rgb) / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--brand-rgb) / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

#about img[src="photos/team.webp"] {
  border-radius: 2px !important;
  border: 1px solid rgb(var(--brand-rgb) / 0.7);
  box-shadow: 16px 16px 0 rgb(var(--brand-rgb) / 0.2);
}

/* Service cards remain six cards, with a more structural stagger and frame. */
#services {
  border-top: 1px solid rgb(var(--brand-rgb) / 0.18);
}

#services .max-w-sm.border.rounded-lg {
  border-radius: 2px !important;
  border-color: rgb(var(--brand-rgb) / 0.72) !important;
  box-shadow: 10px 10px 0 rgb(1 26 60 / 0.72) !important;
  overflow: hidden;
}

#services .max-w-sm.border.rounded-lg:nth-child(3n + 2) {
  transform: translateY(18px);
}

#services .max-w-sm.border.rounded-lg:hover {
  transform: translate(-2px, -2px);
  box-shadow: 14px 14px 0 rgb(var(--brand-rgb) / 0.23) !important;
}

#services .max-w-sm.border.rounded-lg:nth-child(3n + 2):hover {
  transform: translate(-2px, 14px);
}

#services img.rounded-t-lg,
#services .rounded-b-md,
#services a.rounded-lg {
  border-radius: 0 !important;
}

#services h3 {
  letter-spacing: -0.025em;
}

/* Why section: retain cards and image, sharpen hierarchy. */
#why-seaforth {
  background-image:
    linear-gradient(rgb(var(--brand-rgb) / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--brand-rgb) / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}

#why-seaforth .rounded-xl {
  border-radius: 2px !important;
  border-left: 4px solid var(--sf-cyan);
}

#why-seaforth img[src="photos/van.png"] {
  border-radius: 0 !important;
}

/* Verified-detail cards keep the three-card template slot, minus review styling. */
#testimonials blockquote {
  border-radius: 2px !important;
  border: 1px solid rgb(var(--brand-rgb) / 0.55) !important;
  border-top: 5px solid var(--sf-cyan) !important;
  box-shadow: 8px 8px 0 rgb(var(--brand-rgb) / 0.12) !important;
  text-align: left;
}

#testimonials blockquote > img {
  opacity: 0.82;
}

/* Project proof and gallery keep their sections, with editorial image framing. */
#project-proof {
  border-top: 1px solid rgb(var(--brand-rgb) / 0.18);
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.18);
}

#project-proof img,
#gallery img {
  border-radius: 2px !important;
}

#gallery .grid > div {
  overflow: hidden;
  border: 1px solid rgb(var(--brand-rgb) / 0.35);
  box-shadow: 7px 7px 0 rgb(var(--brand-rgb) / 0.1);
}

#gallery img {
  transition: transform 240ms ease;
}

#gallery .grid > div:hover img {
  transform: scale(1.035);
}

/* Contact and FAQ retain the starter logic, with less generic rounding. */
#contact {
  border-top: 5px solid var(--sf-cyan);
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.22);
}

#contact input,
#contact select,
#contact textarea,
#faqs .faq-item {
  border-radius: 2px !important;
}

#faqs .faq-item {
  border-left: 3px solid transparent;
  padding-left: 1rem;
  transition: border-color 160ms ease;
}

#faqs .faq-item:has(.faq-answer:not(.hidden)) {
  border-left-color: var(--sf-cyan);
}

footer {
  border-top: 5px solid var(--sf-cyan);
}

/* Preserve the starter mobile flow; remove desktop stagger and heavy offsets. */
@media (max-width: 900px) {
  #hero {
    min-height: 0;
  }

  #hero .max-w-md.mx-auto.border {
    box-shadow: 10px 10px 0 rgb(1 26 60 / 0.26);
  }

  #services .max-w-sm.border.rounded-lg,
  #services .max-w-sm.border.rounded-lg:nth-child(3n + 2) {
    transform: none;
    box-shadow: 6px 6px 0 rgb(1 26 60 / 0.65) !important;
  }

  #services .max-w-sm.border.rounded-lg:hover,
  #services .max-w-sm.border.rounded-lg:nth-child(3n + 2):hover {
    transform: none;
  }

  #about img[src="photos/team.webp"] {
    box-shadow: 9px 9px 0 rgb(var(--brand-rgb) / 0.2);
  }
}

@media (max-width: 600px) {
  #hero {
    background-position: 68% center !important;
  }

  header nav {
    min-height: 74px;
  }

  header img[src^="photos/logo.png"] {
    height: 48px !important;
  }

  #hero h1 {
    letter-spacing: -0.035em;
  }

  #trust-strip .grid > div,
  #trust-strip .grid > div:last-child {
    min-height: 66px;
    border-right: 0;
  }

  #trust-strip .grid > div:nth-child(odd) {
    border-left: 0;
  }

  #testimonials blockquote {
    padding: 2.25rem !important;
  }
}

/* ========================================================================
   Seaforth middle-section composition
   Same sections, text and palette; deliberately different from Walter cards.
   ======================================================================== */

/* WHY SEAFORTH — technical checklist + clipped editorial project image. */
#why-seaforth > div > .max-w-2xl:first-child {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(340px, 1.28fr);
  align-items: end;
  gap: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.3);
}

#why-seaforth > div > .max-w-2xl:first-child p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

#why-seaforth > div > .max-w-2xl:first-child h2 {
  margin: 0 !important;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em;
}

#why-seaforth > div > .max-w-2xl:nth-child(2) {
  max-width: 1180px !important;
  margin-top: 2.5rem !important;
}

#why-seaforth dl {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) !important;
  gap: 0 !important;
  align-items: stretch;
}

#why-seaforth dl > div:first-child {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0 !important;
  border-top: 1px solid rgb(1 26 60 / 0.22);
  border-bottom: 1px solid rgb(1 26 60 / 0.22);
}

#why-seaforth dl > div:first-child > div {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center !important;
  gap: 1.5rem !important;
  padding: 1.75rem 2rem !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-bottom: 1px solid rgb(1 26 60 / 0.16) !important;
}

#why-seaforth dl > div:first-child > div:last-child {
  border-bottom: 0 !important;
}

#why-seaforth dl > div:first-child > div > div:first-child {
  width: 58px;
  height: 58px;
  padding: 13px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--sf-cyan);
}

#why-seaforth dl > div:first-child svg {
  width: 34px !important;
  color: var(--sf-navy) !important;
  fill: var(--sf-navy) !important;
}

#why-seaforth dl > div:first-child h3 {
  margin: 0 0 0.45rem !important;
  color: var(--sf-navy) !important;
  font-size: 1.1rem !important;
  letter-spacing: -0.02em;
}

#why-seaforth dl > div:first-child p {
  color: #5b6472 !important;
  line-height: 1.55;
}

#why-seaforth dl > div:last-child {
  min-height: 560px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
  background: var(--sf-navy);
}

#why-seaforth dl > div:last-child img {
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
}

#why-seaforth > div > .max-w-2xl:nth-child(3) {
  max-width: 1180px !important;
  text-align: left !important;
  margin-top: 2rem !important;
  padding: 0 0 0 2rem;
  border-left: 4px solid var(--sf-cyan);
}

#why-seaforth > div > .flex.flex-col.items-center {
  align-items: flex-start !important;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

#why-seaforth > div > .flex.flex-col.items-center > a {
  margin-top: 2.5rem !important;
}

/* VERIFIED DETAILS — one continuous verification ledger, not three cards. */
#testimonials > div > div:first-child {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.3fr);
  gap: 4rem;
  align-items: end;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(1 26 60 / 0.2);
}

#testimonials > div > div:first-child p:first-child {
  margin: 0 !important;
  align-self: start;
}

#testimonials > div > div:first-child h2,
#testimonials > div > div:first-child p:last-child {
  grid-column: 2;
  text-align: left;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#testimonials > div > div:first-child h2 {
  font-size: clamp(2rem, 4vw, 3.7rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.05em;
}

#testimonials > div > .grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
  margin-top: 2.5rem !important;
  border-top: 1px solid rgb(1 26 60 / 0.24);
  border-bottom: 1px solid rgb(1 26 60 / 0.24);
}

#testimonials blockquote {
  min-height: 250px;
  padding: 3.5rem 2rem 2.25rem !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  border-left: 1px solid rgb(var(--brand-rgb) / 0.4) !important;
  box-shadow: none !important;
}

#testimonials blockquote:last-child {
  border-right: 1px solid rgb(var(--brand-rgb) / 0.4) !important;
}

#testimonials blockquote > img {
  position: static !important;
  width: 34px !important;
  height: 34px !important;
  margin-bottom: 1rem;
  opacity: 1;
}

#testimonials blockquote .mt-4 {
  margin-top: 0 !important;
}

#testimonials > div > .flex.flex-col.items-center {
  align-items: flex-start !important;
}

#testimonials > div > .flex.flex-col.items-center > a {
  margin-top: 2.5rem !important;
}

/* LICENSED BUILDER PROOF — editorial overlap rather than equal photo cards. */
#project-proof > div > div:first-child {
  max-width: 1180px !important;
  text-align: left !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 3rem;
  align-items: end;
}

#project-proof > div > div:first-child h2,
#project-proof > div > div:first-child p {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#project-proof > div > div:first-child p {
  border-left: 4px solid var(--sf-cyan);
  padding-left: 1.5rem;
}

#project-proof dl {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) !important;
  gap: 0 !important;
  align-items: end;
  max-width: 1180px !important;
}

#project-proof dl > div {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

#project-proof dl > div:first-child {
  min-height: 470px;
  border-left: 6px solid var(--sf-cyan) !important;
}

#project-proof dl > div:last-child {
  min-height: 350px;
  margin-left: -3rem;
  margin-bottom: -2rem;
  border: 10px solid #f3f4f6 !important;
  box-shadow: 18px 18px 0 rgb(1 26 60 / 0.13);
  position: relative;
  z-index: 2;
}

#project-proof dl img {
  height: 100% !important;
  min-height: inherit;
  object-fit: cover;
}

/* OUR WORK — asymmetrical editorial grid replacing Walter masonry columns. */
#gallery > div > div:first-child {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(360px, 1.35fr);
  gap: 4rem;
  align-items: end;
}

#gallery > div > div:first-child p:first-child {
  margin: 0 !important;
  align-self: start;
}

#gallery > div > div:first-child h2,
#gallery > div > div:first-child p:last-child {
  grid-column: 2;
  text-align: left;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#gallery > div > div:first-child h2 {
  font-size: clamp(2rem, 4vw, 3.7rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.05em;
}

#gallery .wco-gallery {
  column-count: initial !important;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 90px;
  gap: 16px;
}

#gallery .wco-gallery a {
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 1px solid rgb(var(--brand-rgb) / 0.34);
  overflow: hidden;
}

#gallery .wco-gallery a:nth-child(1) { grid-column: span 7; grid-row: span 5; }
#gallery .wco-gallery a:nth-child(2) { grid-column: span 5; grid-row: span 3; }
#gallery .wco-gallery a:nth-child(3) { grid-column: span 5; grid-row: span 2; }
#gallery .wco-gallery a:nth-child(4) { grid-column: span 4; grid-row: span 3; }
#gallery .wco-gallery a:nth-child(5) { grid-column: span 4; grid-row: span 3; }
#gallery .wco-gallery a:nth-child(6) { grid-column: span 4; grid-row: span 3; }

#gallery .wco-gallery img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

@media (max-width: 900px) {
  #why-seaforth > div > .max-w-2xl:first-child,
  #testimonials > div > div:first-child,
  #project-proof > div > div:first-child,
  #gallery > div > div:first-child {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #testimonials > div > div:first-child h2,
  #testimonials > div > div:first-child p:last-child,
  #gallery > div > div:first-child h2,
  #gallery > div > div:first-child p:last-child {
    grid-column: 1;
  }

  #why-seaforth dl {
    grid-template-columns: 1fr !important;
  }

  #why-seaforth dl > div:last-child {
    min-height: 400px;
    clip-path: none;
  }

  #testimonials > div > .grid {
    grid-template-columns: 1fr !important;
  }

  #testimonials blockquote,
  #testimonials blockquote:last-child {
    border-right: 0 !important;
    border-left: 4px solid var(--sf-cyan) !important;
    border-bottom: 1px solid rgb(1 26 60 / 0.18) !important;
    min-height: 0;
  }

  #project-proof dl {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #project-proof dl > div:first-child,
  #project-proof dl > div:last-child {
    min-height: 330px;
    margin: 0;
    border: 0 !important;
    box-shadow: none;
  }

  #project-proof dl > div:first-child {
    border-left: 5px solid var(--sf-cyan) !important;
  }
}

@media (max-width: 600px) {
  #why-seaforth > div > .max-w-2xl:first-child h2,
  #testimonials > div > div:first-child h2,
  #gallery > div > div:first-child h2 {
    font-size: 2.25rem !important;
  }

  #why-seaforth dl > div:first-child > div {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem !important;
    padding: 1.35rem 0 !important;
  }

  #why-seaforth dl > div:first-child > div > div:first-child {
    width: 46px;
    height: 46px;
    padding: 10px !important;
  }

  #why-seaforth dl > div:last-child {
    min-height: 300px;
  }

  #why-seaforth > div > .max-w-2xl:nth-child(3) {
    padding-left: 1rem;
  }

  #gallery .wco-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  #gallery .wco-gallery a:nth-child(n) {
    grid-column: 1;
    grid-row: span 1;
  }
}

/* ========================================================================
   Contact — horizontal project-enquiry desk + editorial form
   ======================================================================== */

section:has(> #contact) {
  border: 0 !important;
  border-radius: 0 !important;
  background-image:
    linear-gradient(rgb(var(--brand-rgb) / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--brand-rgb) / 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
}

#contact {
  border-top: 0;
  border-bottom: 0;
}

#contact > .relative {
  border-radius: 0 !important;
  box-shadow: 18px 18px 0 rgb(1 26 60 / 0.1) !important;
}

#contact > .relative > .grid {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
}

#contact > .relative > .grid > div:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(500px, 1.28fr);
  grid-template-rows: auto auto;
  column-gap: 4.5rem;
  align-items: end;
  border-radius: 0 !important;
  border-left: 7px solid var(--sf-cyan);
  padding: 3rem 3.5rem !important;
  background: var(--sf-navy) !important;
}

#contact > .relative > .grid > div:first-child > .absolute {
  display: none !important;
}

#contact > .relative > .grid > div:first-child h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 1rem;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sf-cyan) !important;
}

#contact > .relative > .grid > div:first-child > p {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
  max-width: 500px;
  color: #fff !important;
  font-size: 1.35rem !important;
  line-height: 1.45;
  font-weight: 600;
}

#contact > .relative > .grid > div:first-child dl {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-self: stretch;
  border-top: 1px solid rgb(var(--brand-rgb) / 0.35);
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.35);
}

#contact > .relative > .grid > div:first-child dd {
  margin: 0 !important;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem !important;
  border-left: 1px solid rgb(var(--brand-rgb) / 0.35);
  font-size: 0.92rem !important;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#contact > .relative > .grid > div:first-child dd:last-child {
  border-right: 1px solid rgb(var(--brand-rgb) / 0.35);
}

#contact > .relative > .grid > div:first-child dd img {
  width: 24px !important;
  height: 24px !important;
}

#contact > .relative > .grid > div:last-child {
  grid-column: 1 / -1;
  position: relative;
  padding: 4rem 4.5rem !important;
  background: var(--sf-navy);
  border: 1px solid rgb(var(--brand-rgb) / 0.34);
  border-top: 0;
}

#contact > .relative > .grid > div:last-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4.5rem;
  width: 120px;
  height: 5px;
  background: var(--sf-cyan);
}

#contact > .relative > .grid > div:last-child > h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  font-weight: 800 !important;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #fff !important;
}

#contact > .relative > .grid > div:last-child > p {
  color: rgb(255 255 255 / 0.7) !important;
}

#contact form {
  margin-top: 3rem !important;
  gap: 2rem 2.5rem !important;
}

#contact form label {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-navy) !important;
}

#contact form input:not([type="hidden"]):not([type="checkbox"]),
#contact form textarea {
  border: 0 !important;
  border-bottom: 2px solid rgb(1 26 60 / 0.24) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.9rem 0 !important;
}

#contact form input:focus,
#contact form textarea:focus {
  outline: none !important;
  border-bottom-color: var(--sf-cyan) !important;
  box-shadow: none !important;
}

#contact form textarea {
  min-height: 120px;
}

#contact form button[type="submit"] {
  min-width: 180px;
}

#contact form .sm\:col-span-2:last-of-type {
  align-items: flex-end;
}

#contact form .sm\:col-span-2:last-of-type > span {
  max-width: 760px;
  text-align: left !important;
}

@media (max-width: 900px) {
  #contact > .relative {
    box-shadow: 10px 10px 0 rgb(1 26 60 / 0.1) !important;
  }

  #contact > .relative > .grid > div:first-child {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.25rem;
    padding: 2.5rem !important;
  }

  #contact > .relative > .grid > div:first-child h3,
  #contact > .relative > .grid > div:first-child > p,
  #contact > .relative > .grid > div:first-child dl {
    grid-column: 1;
    grid-row: auto;
  }

  #contact > .relative > .grid > div:first-child dl {
    grid-template-columns: 1fr;
  }

  #contact > .relative > .grid > div:first-child dd,
  #contact > .relative > .grid > div:first-child dd:last-child {
    flex-direction: row;
    align-items: center;
    padding: 1rem 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--brand-rgb) / 0.22);
  }

  #contact > .relative > .grid > div:first-child dd:last-child {
    border-bottom: 0;
  }

  #contact > .relative > .grid > div:last-child {
    padding: 3rem 2.5rem !important;
  }

  #contact > .relative > .grid > div:last-child::before {
    left: 2.5rem;
  }
}

@media (max-width: 600px) {
  #contact {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #contact > .relative > .grid > div:first-child {
    padding: 2rem 1.5rem !important;
  }

  #contact > .relative > .grid > div:first-child > p {
    font-size: 1.1rem !important;
  }

  #contact > .relative > .grid > div:last-child {
    padding: 2.75rem 1.5rem 2rem !important;
  }

  #contact > .relative > .grid > div:last-child::before {
    left: 1.5rem;
    width: 88px;
  }

  #contact form {
    gap: 1.35rem !important;
  }

  #contact form button[type="submit"] {
    width: 100% !important;
  }

  #contact form .sm\:col-span-2:last-of-type {
    align-items: stretch;
  }
}

/* ========================================================================
   About + Services — same technical/editorial language as Why Seaforth
   ======================================================================== */

/* ABOUT — specification copy rows and a clipped site image. */
#about > div > div:first-child {
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  border-top: 1px solid rgb(var(--brand-rgb) / 0.28);
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.28);
}

#about > div > div:first-child > div:first-child {
  padding: 3.5rem 4rem 3.5rem 0;
  display: flex;
  align-items: center;
}

#about > div > div:first-child > div:first-child > div {
  max-width: none !important;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 !important;
  counter-reset: about-row;
}

#about > div > div:first-child > div:first-child p:first-child {
  margin: 0 0 2rem !important;
  justify-self: start;
}

#about > div > div:first-child h2 {
  margin: 0 0 2rem !important;
  max-width: 620px;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
}

#about > div > div:first-child > div:first-child p:not(:first-child) {
  counter-increment: about-row;
  position: relative;
  margin: 0 !important;
  padding: 1.35rem 1rem 1.35rem 4rem;
  border-top: 1px solid rgb(var(--brand-rgb) / 0.2);
  color: #c7ccd4 !important;
  line-height: 1.6;
}

#about > div > div:first-child > div:first-child p:not(:first-child)::before {
  content: "0" counter(about-row);
  position: absolute;
  left: 0;
  top: 1.35rem;
  color: var(--sf-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#about > div > div:first-child > div:last-child {
  position: relative;
  margin: 0 !important;
  height: auto !important;
  min-height: 650px;
  max-width: none !important;
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
  border-left: 5px solid var(--sf-cyan);
}

#about > div > div:first-child > div:last-child img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

#about > div > .flex.flex-col.items-center {
  align-items: flex-start !important;
  margin-top: 2.5rem;
}

#about > div > .flex.flex-col.items-center > a {
  margin-top: 0 !important;
}

/* SERVICES — two-column specification list rather than six Walter cards. */
#services > div > div:first-child {
  text-align: left !important;
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(420px, 1.3fr);
  gap: 4rem;
  align-items: end;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.28);
}

#services > div > div:first-child p:first-child {
  margin: 0 !important;
  align-self: start;
  justify-self: start;
}

#services > div > div:first-child h2,
#services > div > div:first-child p:last-child {
  grid-column: 2;
  text-align: left;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#services > div > div:first-child h2 {
  margin-top: 0 !important;
  font-size: clamp(2.4rem, 4.5vw, 4.5rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em;
}

#services > div > .flex.justify-center {
  display: block !important;
}

#services > div > .flex.justify-center > div {
  width: 100%;
  max-width: none !important;
  margin-top: 2.75rem !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  counter-reset: service-row;
  border-top: 1px solid rgb(var(--brand-rgb) / 0.3);
}

#services .max-w-sm.border.rounded-lg {
  counter-increment: service-row;
  max-width: none !important;
  min-height: 230px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: stretch;
  border: 0 !important;
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.3) !important;
  border-right: 1px solid rgb(var(--brand-rgb) / 0.3) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  background: transparent;
  overflow: hidden;
}

#services .max-w-sm.border.rounded-lg:nth-child(odd) {
  border-left: 1px solid rgb(var(--brand-rgb) / 0.3) !important;
}

#services .max-w-sm.border.rounded-lg:hover,
#services .max-w-sm.border.rounded-lg:nth-child(3n + 2):hover {
  transform: none !important;
  box-shadow: inset 5px 0 0 var(--sf-cyan) !important;
}

#services .max-w-sm.border.rounded-lg > a:first-child {
  display: block;
  height: 100%;
  min-height: 230px;
  overflow: hidden;
}

#services .max-w-sm.border.rounded-lg > a:first-child img {
  width: 100%;
  height: 100% !important;
  min-height: 230px;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: transform 220ms ease, filter 220ms ease;
}

#services .max-w-sm.border.rounded-lg:hover > a:first-child img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}

#services .max-w-sm.border.rounded-lg > div {
  position: relative;
  padding: 2.5rem 2rem 2rem !important;
  background: transparent !important;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#services .max-w-sm.border.rounded-lg > div::before {
  content: "0" counter(service-row);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--sf-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#services .max-w-sm.border.rounded-lg h3 {
  max-width: calc(100% - 38px);
  margin: 0 0 0.65rem !important;
  color: #fff !important;
  font-size: 1.2rem !important;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

#services .max-w-sm.border.rounded-lg p {
  margin: 0 0 1.1rem !important;
  color: #c7ccd4 !important;
  line-height: 1.55;
  font-size: 0.9rem;
}

#services .max-w-sm.border.rounded-lg > div > a:last-child {
  margin-top: auto;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--sf-cyan) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem !important;
}

#services > div > .flex.flex-col.items-center {
  align-items: flex-start !important;
  margin-top: 2.75rem;
}

#services > div > .flex.flex-col.items-center > a {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  #about > div > div:first-child {
    grid-template-columns: 1fr !important;
  }

  #about > div > div:first-child > div:first-child {
    padding: 3rem 0 !important;
  }

  #about > div > div:first-child > div:last-child {
    min-height: 430px;
    clip-path: none;
  }

  #services > div > div:first-child {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #services > div > div:first-child h2,
  #services > div > div:first-child p:last-child {
    grid-column: 1;
  }

  #services > div > .flex.justify-center > div {
    grid-template-columns: 1fr !important;
  }

  #services .max-w-sm.border.rounded-lg,
  #services .max-w-sm.border.rounded-lg:nth-child(odd) {
    border-left: 1px solid rgb(var(--brand-rgb) / 0.3) !important;
  }
}

@media (max-width: 600px) {
  #about > div > div:first-child h2,
  #services > div > div:first-child h2 {
    font-size: 2.35rem !important;
  }

  #about > div > div:first-child > div:first-child p:not(:first-child) {
    padding-left: 2.75rem;
  }

  #about > div > div:first-child > div:last-child {
    min-height: 330px;
  }

  #services .max-w-sm.border.rounded-lg {
    grid-template-columns: 110px minmax(0, 1fr);
    min-height: 210px;
  }

  #services .max-w-sm.border.rounded-lg > a:first-child,
  #services .max-w-sm.border.rounded-lg > a:first-child img {
    min-height: 210px;
  }

  #services .max-w-sm.border.rounded-lg > div {
    padding: 2.25rem 1.1rem 1.5rem !important;
  }

  #services .max-w-sm.border.rounded-lg h3 {
    font-size: 1rem !important;
  }

  #services .max-w-sm.border.rounded-lg p {
    font-size: 0.82rem;
  }
}

/* Compact About: complete section fits inside a desktop viewport. */
#about {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
  scroll-margin-top: 48px;
}

#about > div > div:first-child {
  height: 550px !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

#about > div > div:first-child > div:first-child {
  padding: 2rem 3rem 2rem 0 !important;
}

#about > div > div:first-child > div:first-child p:first-child {
  margin-bottom: 1.2rem !important;
}

#about > div > div:first-child h2 {
  margin-bottom: 1.2rem !important;
  font-size: clamp(2rem, 3.5vw, 3.3rem) !important;
  line-height: 1 !important;
}

#about > div > div:first-child > div:first-child p:not(:first-child) {
  padding: 0.85rem 0.75rem 0.85rem 3.25rem !important;
  line-height: 1.45 !important;
  font-size: 0.9rem !important;
}

#about > div > div:first-child > div:first-child p:not(:first-child)::before {
  top: 0.95rem !important;
}

#about > div > div:first-child > div:last-child {
  height: 100% !important;
  min-height: 0 !important;
  align-self: stretch;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

#about img.about-logo {
  width: min(94%, 640px) !important;
  height: auto !important;
  max-height: 82% !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  box-shadow: none !important;
}

#about > div > .flex.flex-col.items-center {
  width: 100%;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 1.5rem !important;
}

#about > div > .flex.flex-col.items-center > a {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  #about > div > div:first-child {
    height: auto !important;
  }

  #about > div > div:first-child > div:first-child {
    padding: 2.5rem 0 !important;
  }

  #about > div > div:first-child > div:last-child {
    height: 380px !important;
    min-height: 380px !important;
  }

  #about > div > .flex.flex-col.items-center {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 600px) {
  #about > div > div:first-child h2 {
    font-size: 2.15rem !important;
  }

  #about > div > div:first-child > div:last-child {
    height: 300px !important;
    min-height: 300px !important;
  }
}

/* Compact Services spacing: preserve composition without oversized gaps. */
#services {
  padding-top: 3rem !important;
  padding-bottom: 4rem !important;
  border-top: 0 !important;
  background-color: var(--sf-navy) !important;
  background-image:
    linear-gradient(rgb(var(--brand-rgb) / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--brand-rgb) / 0.04) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  background-position: 0 0 !important;
}

#services > div > div:first-child {
  column-gap: 4rem !important;
  row-gap: 1rem !important;
  padding-bottom: 2rem !important;
}

#services > div > div:first-child p:last-child {
  margin-top: 0.5rem !important;
}

#services > div > .flex.justify-center > div {
  margin-top: 1.5rem !important;
}

#services > div > .flex.flex-col.items-center {
  margin-top: 2rem !important;
}

@media (max-width: 600px) {
  #services {
    padding-top: 2.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* About copy is one unnumbered editorial paragraph. */
#about > div > div:first-child > div:first-child p:not(:first-child) {
  padding: 1.25rem 0 1.25rem 1.5rem !important;
  border-top: 0 !important;
  border-left: 4px solid var(--sf-cyan) !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
}

#about > div > div:first-child > div:first-child p:not(:first-child)::before {
  display: none !important;
}

#about > div > div:first-child > div:last-child {
  border-left: 0 !important;
}

/* Separate About and Services with space rather than duplicate proof or a line. */
#about {
  padding-bottom: 4rem !important;
}

#services {
  padding-top: 5rem !important;
}

@media (max-width: 600px) {
  #about {
    padding-bottom: 3rem !important;
  }

  #services {
    padding-top: 3.5rem !important;
  }
}

/* Consistent vertical rhythm for every main content section. */
#about,
#services,
#why-seaforth,
#testimonials,
#project-proof,
#gallery,
#contact,
#faqs {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

@media (max-width: 600px) {
  #about,
  #services,
  #why-seaforth,
  #testimonials,
  #project-proof,
  #gallery,
  #contact,
  #faqs {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

/* ========================================================================
   Compact section system — remove empty template columns and repetition.
   ======================================================================== */

#about,
#services,
#why-seaforth,
#testimonials,
#project-proof,
#gallery,
#contact,
#faqs {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

#services > div > div:first-child,
#why-seaforth > div > .max-w-2xl:first-child,
#testimonials > div > div:first-child,
#gallery > div > div:first-child {
  display: block !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-bottom: 1.5rem !important;
  text-align: left !important;
  border-bottom: 1px solid rgb(var(--brand-rgb) / 0.24) !important;
}

#services > div > div:first-child p:first-child,
#why-seaforth > div > .max-w-2xl:first-child p:first-child,
#testimonials > div > div:first-child p:first-child,
#gallery > div > div:first-child p:first-child {
  display: block !important;
  width: fit-content !important;
  margin: 0 0 1rem !important;
}

#services > div > div:first-child h2,
#why-seaforth > div > .max-w-2xl:first-child h2,
#testimonials > div > div:first-child h2,
#gallery > div > div:first-child h2 {
  grid-column: auto !important;
  max-width: 900px !important;
  margin: 0 !important;
  text-align: left !important;
  font-size: clamp(2.15rem, 4vw, 3.75rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.05em !important;
}

#services > div > div:first-child p:last-child,
#testimonials > div > div:first-child p:last-child,
#gallery > div > div:first-child p:last-child {
  grid-column: auto !important;
  max-width: 850px !important;
  margin: 1rem 0 0 !important;
  padding-bottom: 0 !important;
  text-align: left !important;
}

#project-proof > div > div:first-child {
  display: block !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(1 26 60 / 0.18);
}

#project-proof > div > div:first-child h2 {
  max-width: 900px;
  margin: 0 !important;
  font-size: clamp(2.15rem, 4vw, 3.75rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.05em;
}

#project-proof > div > div:first-child p {
  max-width: 850px;
  margin: 1rem 0 0 !important;
  padding-left: 1.25rem;
}

#services > div > .flex.justify-center > div,
#why-seaforth > div > .max-w-2xl:nth-child(2),
#testimonials > div > .grid,
#project-proof dl,
#gallery .wco-gallery {
  margin-top: 1.5rem !important;
}

#why-seaforth > div > .max-w-2xl:nth-child(3) {
  margin-top: 1.5rem !important;
}

#services > div > .flex.flex-col.items-center > .flex.gap-5,
#why-seaforth > div > .flex.flex-col.items-center > .flex.gap-5,
#testimonials > div > .flex.flex-col.items-center > .flex.gap-5 {
  display: none !important;
}

#services > div > .flex.flex-col.items-center,
#why-seaforth > div > .flex.flex-col.items-center,
#testimonials > div > .flex.flex-col.items-center {
  margin-top: 1.75rem !important;
  gap: 0 !important;
}

#services > div > .flex.flex-col.items-center > a,
#why-seaforth > div > .flex.flex-col.items-center > a,
#testimonials > div > .flex.flex-col.items-center > a {
  margin-top: 0 !important;
}

#faqs > div > div > div:first-child p:last-child {
  padding-bottom: 1.5rem !important;
}

@media (max-width: 600px) {
  #about,
  #services,
  #why-seaforth,
  #testimonials,
  #project-proof,
  #gallery,
  #contact,
  #faqs {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  #services > div > div:first-child h2,
  #why-seaforth > div > .max-w-2xl:first-child h2,
  #testimonials > div > div:first-child h2,
  #project-proof > div > div:first-child h2,
  #gallery > div > div:first-child h2 {
    font-size: 2.15rem !important;
  }
}

/* Final content-density corrections from the full section audit. */
@media (min-width: 901px) {
  #why-seaforth dl {
    height: 560px !important;
  }

  #why-seaforth dl > div:first-child,
  #why-seaforth dl > div:last-child {
    height: 560px !important;
    min-height: 0 !important;
  }
}

#testimonials blockquote {
  min-height: 190px !important;
  padding: 2.25rem 2rem 2rem !important;
}

#project-proof > div > .max-w-2xl:nth-child(2) {
  margin-top: 1.5rem !important;
}

@media (max-width: 600px) {
  #testimonials blockquote {
    min-height: 0 !important;
    padding: 1.75rem 1.5rem !important;
  }
}

/* Compact factual footer: no blank map cell or unsupported ratings row. */
footer > div {
  padding-top: 3rem !important;
  padding-bottom: 2rem !important;
}

footer > div > .grid {
  margin-top: 0 !important;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) !important;
  gap: 3rem !important;
}

footer > div > .grid > div:last-child {
  display: block !important;
}

footer ul {
  margin-top: 1rem !important;
}

footer ul > * + * {
  margin-top: 0.6rem !important;
}

footer > div > .border-t:last-child {
  margin-top: 2rem !important;
  padding-top: 1.5rem !important;
}

@media (max-width: 900px) {
  footer > div > .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 600px) {
  footer > div {
    padding-top: 2.5rem !important;
  }
}

/* Centre the About CTA beneath the complete text/logo composition. */
#about > div > .flex.flex-col.items-center {
  justify-content: center !important;
  align-items: center !important;
}

@media (max-width: 900px) {
  #about > div > .flex.flex-col.items-center {
    align-items: center !important;
  }
}

/* One consistent, centred treatment for every quote CTA. */
.quote-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  width: 260px !important;
  max-width: 100% !important;
  min-height: 56px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0 !important;
  padding: 0.9rem 1.5rem !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: var(--sf-cyan) !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  box-shadow: 5px 5px 0 rgb(1 26 60 / 0.55) !important;
}

.quote-cta svg,
.quote-cta span[aria-hidden="true"] {
  display: none !important;
}

.quote-cta::after {
  content: "→";
  font-size: 1.15rem;
  line-height: 1;
}

.quote-cta:hover {
  opacity: 1 !important;
  transform: translate(-1px, -1px);
  box-shadow: 7px 7px 0 rgb(1 26 60 / 0.5) !important;
}

#services > div > .flex.flex-col.items-center,
#why-seaforth > div > .flex.flex-col.items-center,
#testimonials > div > .flex.flex-col.items-center {
  display: flex !important;
  width: 100%;
  align-items: center !important;
}

/* Compact contact desk so the complete desktop form fits in one viewport. */
#contact {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}

#contact > .relative > .grid > div:first-child {
  padding: 1.75rem 2.5rem !important;
  column-gap: 3rem !important;
}

#contact > .relative > .grid > div:first-child h3 {
  margin-bottom: 0.6rem !important;
}

#contact > .relative > .grid > div:first-child > p {
  font-size: 1.05rem !important;
  line-height: 1.4 !important;
}

#contact > .relative > .grid > div:first-child dd {
  padding: 0.9rem 1rem !important;
  gap: 0.5rem !important;
  font-size: 0.85rem !important;
}

#contact > .relative > .grid > div:first-child dd img {
  width: 20px !important;
  height: 20px !important;
}

#contact > .relative > .grid > div:last-child {
  padding: 2.25rem 3rem 2rem !important;
}

#contact > .relative > .grid > div:last-child::before {
  left: 3rem !important;
}

#contact > .relative > .grid > div:last-child > h3 {
  font-size: clamp(2rem, 3vw, 2.7rem) !important;
}

#contact form {
  margin-top: 1.5rem !important;
  gap: 1rem 2rem !important;
}

#contact form input:not([type="hidden"]):not([type="checkbox"]) {
  padding: 0.55rem 0 !important;
}

#contact form textarea {
  height: 82px !important;
  min-height: 82px !important;
  padding: 0.55rem 0 !important;
}

#contact form .sm\:col-span-2:last-of-type {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
}

#contact form .sm\:col-span-2:last-of-type > span {
  margin-top: 0 !important;
  max-width: 700px !important;
}

@media (max-width: 900px) {
  #contact > .relative > .grid > div:first-child {
    padding: 2rem !important;
  }

  #contact > .relative > .grid > div:last-child {
    padding: 2.5rem 2rem !important;
  }

  #contact > .relative > .grid > div:last-child::before {
    left: 2rem !important;
  }

  #contact form .sm\:col-span-2:last-of-type {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  #contact form .sm\:col-span-2:last-of-type > span {
    margin-top: 0 !important;
  }
}

@media (max-width: 600px) {
  #contact {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Local preview chatbot. No network calls or AI claims. */
.sf-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.sf-chatbot__toggle {
  min-width: 118px;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--sf-cyan);
  color: var(--sf-navy);
  font-weight: 800;
  box-shadow: 5px 5px 0 rgb(1 26 60 / 0.45);
  cursor: pointer;
}

.sf-chatbot__toggle svg { width: 22px; height: 22px; }

.sf-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(370px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 110px));
  overflow: auto;
  border: 1px solid rgb(var(--brand-rgb) / 0.65);
  border-radius: 3px;
  background: #fff;
  color: var(--sf-navy);
  box-shadow: 16px 16px 0 rgb(1 26 60 / 0.22), 0 18px 60px rgb(1 26 60 / 0.24);
}

.sf-chatbot__panel[hidden],
.sf-chatbot__response[hidden] { display: none !important; }

.sf-chatbot__header {
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sf-navy);
  color: #fff;
  border-left: 5px solid var(--sf-cyan);
}

.sf-chatbot__header div { display: flex; flex-direction: column; gap: 0.2rem; }
.sf-chatbot__header strong { font-size: 0.95rem; }
.sf-chatbot__header span { color: #b9c9d7; font-size: 0.72rem; }
.sf-chatbot__header button { border: 0; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }

.sf-chatbot__body { padding: 1.1rem; }
.sf-chatbot__message { padding: 0.85rem 1rem; background: #eef5f7; border-left: 4px solid var(--sf-cyan); line-height: 1.45; }
.sf-chatbot__choices { display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.sf-chatbot__choices button {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgb(1 26 60 / 0.2);
  border-radius: 2px;
  background: #fff;
  color: var(--sf-navy);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.sf-chatbot__choices button:hover { border-color: var(--sf-cyan); background: #f2fbfd; }
.sf-chatbot__response { margin-top: 0.9rem; padding: 0.85rem 1rem; background: var(--sf-navy); color: #fff; line-height: 1.45; font-size: 0.86rem; }
.sf-chatbot__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.sf-chatbot__actions a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0.6rem; border: 1px solid var(--sf-cyan); color: var(--sf-navy); text-align: center; text-decoration: none; font-size: 0.78rem; font-weight: 800; }
.sf-chatbot__actions a:last-child { background: var(--sf-cyan); }
.sf-chatbot__body small { display: block; margin-top: 0.85rem; color: #667584; font-size: 0.68rem; line-height: 1.4; }

@media (max-width: 600px) {
  .sf-chatbot { right: 12px; bottom: 14px; }
  .sf-chatbot__toggle { min-width: 104px; min-height: 48px; }
  .sf-chatbot__panel { right: 0; bottom: 62px; width: calc(100vw - 24px); }
}

/* ========================================================================
   Contact — side-by-side: details left, GoHighLevel form right (2026-09-02)
   ======================================================================== */

@media (min-width: 901px) {
  #contact > .relative > .grid > div:first-child {
    grid-column: 1 / span 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 3rem 2.75rem !important;
    border-right: 1px solid rgb(var(--brand-rgb) / 0.35);
  }

  #contact > .relative > .grid > div:first-child h3 {
    margin: 0;
  }

  #contact > .relative > .grid > div:first-child > p {
    max-width: none;
    font-size: 1.25rem !important;
  }

  #contact > .relative > .grid > div:first-child dl {
    grid-template-columns: 1fr;
    margin-top: 0.5rem !important;
    border-top: 1px solid rgb(var(--brand-rgb) / 0.35);
    border-bottom: 0;
  }

  #contact > .relative > .grid > div:first-child dd,
  #contact > .relative > .grid > div:first-child dd:last-child {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem !important;
    padding: 1.1rem 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--brand-rgb) / 0.35);
    font-size: 1rem !important;
  }

  #contact > .relative > .grid > div:last-child {
    grid-column: 6 / -1;
    padding: 3rem 3rem 2.5rem !important;
    border-top: 1px solid rgb(var(--brand-rgb) / 0.34);
    border-left: 0;
  }

  #contact > .relative > .grid > div:last-child::before {
    left: 3rem;
  }

  #contact > .relative > .grid > div:last-child > h3 {
    font-size: clamp(1.9rem, 2.6vw, 2.6rem) !important;
  }

  #contact > .relative > .grid > div:last-child > p {
    margin-top: 0.75rem !important;
  }

  #contact > .relative > .grid > div:last-child > div[style*="min-height"] {
    margin-top: 1.25rem !important;
  }
}

@media (min-width: 901px) {
  #contact > .relative > .grid > div:first-child h3 {
    text-align: left;
    align-self: flex-start;
  }
  #contact > .relative > .grid > div:first-child dd,
  #contact > .relative > .grid > div:first-child dd:last-child {
    justify-content: flex-start;
  }
}
