/* CWM Remodeling & Repair — mobile-first styles */

/* Self-hosted Source Sans 3 variable font (weight 200–900). SIL Open Font License. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #222222;
  --ink-soft: #333333;
  --paper: #f4f5f7;
  --paper-2: #e7e9ee;
  --white: #ffffff;
  --line: #d5d8de;
  /* Accent follows the logo blue (#0250F8) and black */
  --copper: #0250f8;
  --copper-dark: #0b3ac9;
  --copper-hover: #0146dc;
  --copper-light: #e7eeff;
  --moss: #2f4a39;
  --star: #b8860b;
  --focus: #0250f8;
  --error: #8f1d1d;
  --ok: #1c5c38;
  --shadow: 0 8px 28px rgba(20, 20, 20, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --space: 1.25rem;
  --header-h: 4.5rem;
  --sticky-bar-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--copper);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand img {
  width: auto;
  height: 3rem;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: normal;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-bars {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1.25rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.7rem 0.4rem;
  font-weight: 600;
}

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

.header-actions {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  max-width: 100%;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-hover);
  border-color: var(--copper-hover);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-dark:hover {
  background: #0a0a0a;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Hero */
.hero {
  padding: 2.25rem 0 2.5rem;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 0.7rem;
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.85rem, 6.2vw, 2.85rem);
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.hero-copy {
  max-width: 44rem;
}

.hero-copy h1 {
  margin-bottom: 0.55rem;
}

.hero-sub {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.2rem, 3.8vw, 1.5rem);
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--ink);
  margin: 0 0 1.5rem;
}


.hero-actions {
  margin-bottom: 1.75rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.hero-grid .hero-actions {
  margin-bottom: 0;
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* Trust */
.trust {
  display: grid;
  gap: 0.75rem;
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}

.trust-item strong {
  display: block;
  font-size: 1.02rem;
}

.trust-item span,
.trust-item p {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.trust-lines {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.trust-lines p {
  margin: 0;
}

.credentials .trust-item {
  max-width: 40rem;
}

.stars {
  color: var(--star);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section.credentials {
  padding: 1.25rem 0 1.5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.section-header h2,
.prose h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  margin: 0;
}

.section-header p,
.intro {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.band {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.band-ink {
  background: var(--ink);
  color: var(--white);
  border: 0;
}

.band-ink .section-header p,
.band-ink .intro {
  color: #d7deea;
}

.band-ink a {
  color: #c5d4ff;
}

/* Service cards */
.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 800 / 520;
  object-fit: cover;
  background: var(--paper-2);
}

.card-body {
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: normal;
}

.card-body p {
  margin: 0;
  color: var(--ink-soft);
  flex: 1;
}

.card-link {
  margin-top: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* Areas */
.area-grid {
  display: grid;
  gap: 1rem;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
}

.area-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: normal;
}

.area-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.area-card li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.92rem;
}

/* Quote / rating callout */
.rating-banner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.4rem;
  background: var(--copper-light);
  border-radius: var(--radius);
}

.rating-banner p {
  margin: 0;
  font-size: 1.05rem;
}

/* Keep phone numbers and email addresses intact on one line */
.nowrap {
  white-space: nowrap;
}

.contact-cta h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.25;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.contact-cta p {
  margin: 0;
  line-height: 1.6;
}

/* About / prose */
.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 1.5rem;
}

.placeholder-frame,
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.media-frame img,
.placeholder-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-panel,
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-methods {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.contact-methods .btn {
  width: 100%;
}

.meta-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.meta-list li {
  margin: 0 0 0.7rem;
}

.meta-list strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Form */
label {
  display: block;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.field {
  margin-bottom: 1rem;
}

.field-row {
  display: grid;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c9c0ad;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.hint {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0.3rem 0 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.form-status.is-visible { display: block; }
.form-status.is-ok {
  background: #e5f4ea;
  color: var(--ok);
}
.form-status.is-error {
  background: #f8e8e8;
  color: var(--error);
}

.form-actions .btn {
  width: 100%;
  border-style: solid;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d7deea;
  padding: 2.4rem 0 6.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer a {
  color: #c5d4ff;
}

.site-footer h2,
.site-footer .footer-brand {
  font-family: var(--font-sans);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: normal;
  margin: 0 0 0.5rem;
}

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

.site-footer li {
  margin: 0 0 0.35rem;
}

.site-footer .legal {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid #2a3140;
  font-size: 0.88rem;
  color: #9aa6b8;
}

/* Mobile sticky action bar */
.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.sticky-actions .btn {
  padding: 0.85rem 0.4rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Page hero */
.page-hero {
  padding: 2rem 0 1.5rem;
}

.page-hero .lede {
  margin-bottom: 0;
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Recent work / before-after */
.work-list {
  display: grid;
  gap: 2rem;
}

.work-project h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: normal;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.85rem;
}

.work-project h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: normal;
}

.work-project .ba-grid > .ba-figure:only-child {
  max-width: 32rem;
}

.ba-grid {
  display: grid;
  gap: 0.75rem;
}

.ba-figure,
.work-shot {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.ba-figure img,
.work-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--paper-2);
}

.photo-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.photo-badge.after {
  background: var(--copper);
}

.photo-badge.progress {
  background: #5c4a16;
}

.ba-figure figcaption,
.work-shot figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.work-highlights {
  margin-top: 2rem;
}

.work-highlights .work-shot img {
  aspect-ratio: 800 / 520;
}

.work-page-intro {
  margin-bottom: 0.5rem;
}

/* Desktop */
@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 5rem;
  }

  .brand img {
    height: 4rem;
  }

  .site-nav {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    justify-content: center;
    gap: 0.2rem 1.1rem;
  }

  .site-nav a {
    padding: 0.4rem 0;
  }

  .header-actions {
    display: flex;
    gap: 0.45rem;
  }

  .header-actions .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.92rem;
  }

  .hero {
    padding: 3.5rem 0 3.25rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }

  .ba-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

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

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

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

  .split {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

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

  .form-actions .btn {
    width: auto;
  }

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

  .site-footer {
    padding-bottom: 2.4rem;
  }

  .sticky-actions {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section.credentials {
    padding: 1.5rem 0 1.75rem;
  }

  .rating-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .rating-banner.contact-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1040px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid.services-preview,
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }

  .area-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.band-ink .btn-outline {
  border-color: #d7deea;
  color: #fff;
}

.band-ink .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.band-ink .btn-accent {
  border-color: #c5d4ff;
  color: #c5d4ff;
}

.band-ink .btn-accent:hover {
  background: #c5d4ff;
  color: var(--ink);
  border-color: #c5d4ff;
}

.work-category {
  display: grid;
  gap: 1.5rem;
}

.work-category > h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: normal;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  margin: 0;
}

.work-category > .category-intro {
  margin: 0;
  max-width: 40rem;
}

#basement-remodeling,
#bathroom-remodeling,
#kitchen-remodeling,
#home-repair,
#commercial-remodeling {
  scroll-margin-top: 5.5rem;
}

.service-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.service-block {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2.75rem;
  align-items: start;
}

.service-block:last-of-type {
  margin-bottom: 0;
}

.service-block h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: normal;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  margin: 0 0 0.65rem;
}

@media (min-width: 800px) {
  .service-block {
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    align-items: center;
  }
}


@media (min-width: 800px) {
  .card-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.cols-5 > :nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc((100% - 1rem) / 2);
    justify-self: center;
    width: 100%;
  }
}

@media (min-width: 1040px) {
  .card-grid.cols-5 {
    grid-template-columns: repeat(6, 1fr);
  }

  .card-grid.cols-5 > * {
    grid-column: span 2;
    max-width: none;
    width: auto;
    justify-self: stretch;
  }

  .card-grid.cols-5 > :nth-child(4) {
    grid-column: 2 / span 2;
  }

  .card-grid.cols-5 > :nth-child(5) {
    grid-column: 4 / span 2;
  }
}
