/* ==========================================================================
   Shoreline Drywall — Design System
   Palette + type mirror the reference build: cool navy/plum accents on warm
   neutral canvas, Outfit display / Inter body, generous editorial spacing.
   ========================================================================== */

:root {
  --ink: #1f1f1f;
  --ink-soft: #56585e;
  --navy: #4a6a89;
  --navy-deep: #2f4661;
  --plum: #8f11a8;
  --cream: #f4f4f2;
  --mist: #f4f8fc;
  --paper: #ffffff;
  --char: #1f1f1f;
  --shell: #e8e8e7;
  --bone: #f4f4f2;

  --line: rgba(31, 31, 31, 0.12);
  --line-strong: rgba(31, 31, 31, 0.22);
  --line-invert: rgba(244, 244, 242, 0.18);

  --font-display: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;

  --shell-max: 1240px;
  --pad-x: 24px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --radius-card: 14px;

  --shadow-soft: 0 18px 48px -28px rgba(31, 31, 31, 0.45);
  --shadow-lift: 0 26px 60px -30px rgba(31, 31, 31, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */

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

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

/* The site header is sticky at 118px, so an anchor target would otherwise
   land underneath it. Keeps #quote-form and #remodeling fully visible. */
:target {
  scroll-margin-top: 140px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: 104px;
}

.section--cream {
  background: var(--cream);
}

.section--mist {
  background: var(--mist);
}

.section--char {
  background: var(--char);
  color: var(--bone);
}

.section--flush {
  padding-block: 0;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.eyebrow--plum {
  color: var(--plum);
}

.eyebrow--bone {
  color: rgba(244, 244, 242, 0.72);
}

.section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  margin-bottom: 20px;
}

.section-lede {
  max-width: 62ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.center {
  text-align: center;
}

.center .section-lede {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 38px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

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

.btn--primary {
  background: var(--ink);
  color: var(--bone);
}

.btn--primary:hover {
  background: var(--navy);
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  border-color: rgba(244, 244, 242, 0.55);
  color: var(--bone);
  backdrop-filter: blur(2px);
}

.btn--ghost:hover {
  border-color: var(--bone);
  background: rgba(244, 244, 242, 0.1);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bone);
  border-bottom: 1px solid rgba(244, 244, 242, 0.4);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow:hover {
  gap: 16px;
  border-color: var(--bone);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
}

.link-arrow--ink {
  color: var(--ink);
  border-color: var(--line-strong);
}

.link-arrow--ink:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(232, 232, 231, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 118px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* The crest is a portrait lockup (452x520), so its height is what governs
   the header. 92px wide is about the largest that fits a 118px bar. */
.brand img {
  width: 92px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(88vh, 760px);
  padding: 120px 0;
  text-align: center;
  color: var(--bone);
  overflow: hidden;
  background: #22303c;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgba(74, 106, 137, 0.72) 0%,
    rgba(47, 70, 97, 0.5) 45%,
    rgba(31, 31, 31, 0.72) 100%
  );
}

.hero__inner {
  max-width: 860px;
}

.hero__mark {
  width: auto;
  max-width: 100%;
  margin: 0 auto 26px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  /* White, not the faint 30% wash it used to be. It sits over a photo, and
     the washed-out version disappeared into the picture. */
  color: #fff;
}

.hero h1 {
  font-size: clamp(34px, 6.4vw, 74px);
  font-weight: 600;
  line-height: 1.04;
  text-wrap: balance;
}

.hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(244, 244, 242, 0.86);
  max-width: 46ch;
  margin: 22px auto 0;
}

.hero .btn-row {
  margin-top: 44px;
}

/* ---------- Marquee / accent bar ---------- */

.accent-bar {
  height: 64px;
  background: var(--char);
  color: var(--bone);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.accent-bar__track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  padding-inline: 24px;
  animation: drift 34s linear infinite;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.accent-bar__track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}

.accent-bar__track span::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--plum);
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.stat__label {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Service cards ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card__index {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--plum);
}

.card h3 {
  font-size: 22px;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.card .link-arrow--ink {
  margin-top: auto;
  padding-top: 8px;
  align-self: flex-start;
}

/* ---------- Feature list ---------- */

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink-soft);
}

.feature-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--navy);
}

.section--char .feature-list li,
.section--char .section-lede {
  color: rgba(244, 244, 242, 0.78);
}

.section--char .feature-list svg {
  color: var(--plum);
}

/* ---------- Gallery ---------- */

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

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--cream);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 22px 18px;
  background: linear-gradient(to top, rgba(31, 31, 31, 0.82), transparent);
  color: var(--bone);
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-grid figure:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-grid--wide {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--plum);
}

.step h3 {
  /* Five steps across a 1192px shell leaves ~216px a column, so the title
     sits at 19px rather than the 21px the old four-step row used. At 21px
     "Walkthrough if it helps" was within a few pixels of wrapping. */
  font-size: 19px;
  margin-bottom: 10px;
  /* The titles are different lengths, and a webfont that fails to load
     falls back to a wider face. Reserving two lines for every title keeps
     all five paragraphs on the same baseline whether a title wraps or
     not. 2.3em is two lines at line-height 1.15. */
  min-height: 2.3em;
}

.step p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 0;
  max-width: 860px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  transition: color 0.3s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--navy);
}

.faq-item__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.faq-item__icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
  transform: rotate(0deg);
}

.faq-item__answer {
  padding: 0 0 28px;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(74, 106, 137, 0.16);
}

.form-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 16px;
  font-size: 15px;
  color: var(--navy);
  min-height: 24px;
}

/* ---------- Contact cards ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}

.info-card__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.info-card a,
.info-card p {
  font-size: 17px;
  color: var(--ink);
}

.info-card a {
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.info-card a:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 110px;
  text-align: center;
  color: var(--bone);
  background: var(--navy-deep);
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.32;
}

.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(47, 70, 97, 0.9), rgba(31, 31, 31, 0.85));
}

.cta-band .section-lede {
  color: rgba(244, 244, 242, 0.82);
  margin-inline: auto;
}

.cta-band .btn-row {
  margin-top: 38px;
}

/* ---------- Page banner ---------- */

.page-head {
  position: relative;
  isolation: isolate;
  padding: 120px 0 96px;
  text-align: center;
  color: var(--bone);
  background: var(--navy-deep);
  overflow: hidden;
}

.page-head__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.3;
}

.page-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(74, 106, 137, 0.82), rgba(31, 31, 31, 0.82));
}

.page-head h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  text-wrap: balance;
}

.page-head .section-lede {
  margin: 20px auto 0;
  color: rgba(244, 244, 242, 0.84);
}

.crumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.66);
}

.crumbs a:hover {
  color: var(--bone);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--char);
  color: var(--bone);
  /* Extra bottom room so the fixed call button never covers the base row. */
  padding: 84px 0 104px;
}

.site-footer a {
  color: var(--bone);
}

.site-footer__grid {
  display: grid;
  /* Five columns: the brand, the three link columns, and "Find us" with the
     Angi, Thumbtack, and HomeAdvisor listings. */
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}

.site-footer h4 {
  font-size: 22px;
  margin-bottom: 18px;
}

.site-footer__blurb {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 15px;
  color: rgba(244, 244, 242, 0.68);
}

.site-footer__col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 244, 242, 0.55);
  margin-bottom: 18px;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer li a {
  font-size: 15px;
  color: rgba(244, 244, 242, 0.82);
  transition: color 0.3s var(--ease);
}

.site-footer li a:hover {
  color: var(--bone);
}

/* The footer uses the white cut of the crest (logo-inverse.png) rather than a
   filter — a brightness/invert filter would flatten the background too and
   leave a solid white block. */
.site-footer .brand img {
  width: 110px;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-invert);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.socials a:hover {
  transform: translateY(-3px);
  background: rgba(244, 244, 242, 0.1);
  border-color: var(--bone);
}

.socials svg {
  width: 18px;
  height: 18px;
}

/* The three directory marks sit in the same chips as the social glyphs, but
   they are brand marks rather than generic icons, so they carry their own
   colours and the Angi one is a wordmark rather than a square glyph. The
   colours live here so the SVG paths stay plain. */
.socials__mark--angi svg {
  width: auto;
  height: 15px;
}

.socials__mark--thumbtack svg {
  color: #009fd9;
}

.socials__mark--homeadvisor svg {
  color: #f68315;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line-invert);
  font-size: 14px;
  color: rgba(244, 244, 242, 0.6);
}

/* ---------- Floating contact ---------- */

.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: var(--char);
  color: var(--bone);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 36px -16px rgba(31, 31, 31, 0.7);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.fab:hover {
  transform: translateY(-3px);
  background: var(--navy);
}

.fab svg {
  width: 18px;
  height: 18px;
}

.fab__label {
  display: none;
}

@media (min-width: 560px) {
  .fab__label {
    display: inline;
  }
}

/* ---------- Quote form: file upload ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Honeypot: off-screen, not display:none, so bots still see the field. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field__opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(31, 31, 31, 0.42);
}

.field__error {
  min-height: 0;
  font-size: 13px;
  color: #c0392b;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
}

.field.has-error .field__error {
  min-height: 18px;
}

.upload {
  margin-top: 30px;
}

.upload__label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.upload__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 24px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--mist);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.upload__drop:hover,
.upload__drop:focus-visible {
  border-color: var(--navy);
  background: #eaf1f8;
  outline: none;
}

.upload__drop.is-dragging {
  border-color: var(--plum);
  background: #f6ecf8;
}

.upload__icon {
  width: 30px;
  height: 30px;
  color: var(--navy);
}

.upload__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.upload__title span {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upload__hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.upload__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.upload__list:empty {
  display: none;
}

.upload__item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
}

.upload__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--shell);
  display: block;
}

.upload__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload__name {
  padding: 7px 8px 2px;
  font-size: 11.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload__size {
  padding: 0 8px 8px;
  font-size: 11px;
  color: var(--ink-soft);
}

.upload__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 31, 31, 0.72);
  color: var(--bone);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.upload__remove:hover {
  background: #c0392b;
}

.upload__meter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

.upload__error {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #c0392b;
}

.upload__error:empty {
  display: none;
}

.upload__progress {
  margin-top: 16px;
}

.upload__progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.upload__progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--navy);
  transition: width 0.25s var(--ease);
}

.upload__progress-text {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Cloudflare Turnstile widget sits below the uploader, above the button.
   The widget injects its own iframe; only the mount needs sizing. */
.turnstile-mount {
  margin-top: 22px;
  min-height: 0;
}

.turnstile-mount:empty {
  margin-top: 0;
}

.form-status[data-state="success"] {
  color: #1c7a4d;
  font-weight: 500;
}

.form-status[data-state="error"] {
  color: #c0392b;
  font-weight: 500;
}

.form-status[data-state="pending"] {
  color: var(--navy);
}

.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 680px) {
  .upload__list {
    grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .accent-bar__track {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Five columns into two leaves the last one alone on the bottom row, so
     it spans the full width instead and reads as a deliberate last column. */
  .site-footer__grid > div:last-child {
    grid-column: span 2;
  }

  .card-grid,
  .gallery-grid,
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Two columns, five steps: the last one would sit alone on the final
     row. Letting it span the full width reads as a deliberate last step
     instead of a leftover. */
  .steps .step:last-child {
    grid-column: span 2;
  }

  /* The columns are wide again, so every title fits on one line and the
     reserved second line is no longer needed. The old four-step row used
     21px here, so the tablet and phone sizes keep the bigger title. */
  .step h3 {
    min-height: 0;
    font-size: 21px;
  }
}

@media (max-width: 900px) {
  .section {
    padding-block: 76px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 118px 0 auto;
    background: var(--shell);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad-x) 26px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 17px;
  }

  .hero {
    min-height: 70vh;
    padding: 88px 0;
  }
}

@media (max-width: 680px) {
  :root {
    --pad-x: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .card-grid,
  .gallery-grid,
  .info-grid,
  .steps,
  .form-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  /* One column, so the full-width last column has to give its span back —
     span 2 here would force a second, empty column into the grid. */
  .site-footer__grid > div:last-child {
    grid-column: auto;
  }

  /* One column, so the full-width last step has to give its span back —
     span 2 here would force a second, empty column into the grid. */
  .steps .step:last-child {
    grid-column: auto;
  }

  .field--full {
    grid-column: auto;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
  }
}