:root {
  --ink: #161819;
  --charcoal: #2d3235;
  --muted: #677174;
  --line: #dfe9ea;
  --pale: #f8fcfc;
  --wash: #eefafa;
  --accent: #b9ecef;
  --accent-strong: #6fc8ce;
  --accent-dark: #2e868b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(22, 24, 25, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 227, 228, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  gap: 24px;
}

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

.brand-logo {
  width: clamp(245px, 24vw, 340px);
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-menu a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  border-color: var(--accent-strong);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.nav-toggle .nav-toggle-icon {
  width: auto;
  height: auto;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.nav-toggle::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.hero-copy {
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 7vw, 5.35rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--charcoal);
  font-size: 1.04rem;
  line-height: 1.25;
}

.hero-copy > p:not(.eyebrow),
.contact-copy p,
.about-copy p,
.about-card p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(22, 24, 25, 0.12);
}

.button.primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 0;
  margin: 0;
  color: var(--charcoal);
  list-style: none;
  font-size: 0.93rem;
  font-weight: 700;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
  box-shadow: var(--shadow);
}

.hero-media img {
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.hero-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  width: min(310px, calc(100% - 36px));
  padding: 16px;
  border-left: 4px solid var(--accent-strong);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(22, 24, 25, 0.14);
}

.hero-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 30px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 24px;
}

.about-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pale);
}

.about-card img {
  height: 260px;
  object-fit: cover;
}

.about-card div {
  padding: 24px;
}

.script {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.9rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 214px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-icon {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--accent-strong);
  border-radius: 50%;
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-dark);
}

.service-icon::before {
  left: 13px;
  top: 22px;
  width: 20px;
  height: 2px;
}

.service-icon::after {
  left: 22px;
  top: 13px;
  width: 2px;
  height: 20px;
}

.service-icon.trim::before,
.service-icon.kitchen::before,
.service-icon.floor::before {
  top: 14px;
  box-shadow: 0 8px 0 var(--accent-dark), 0 16px 0 var(--accent-dark);
}

.service-icon.bath::after {
  height: 12px;
  box-shadow: -8px 12px 0 var(--accent-dark), 8px 12px 0 var(--accent-dark);
}

.service-icon.paint::before {
  width: 24px;
  transform: rotate(-28deg);
}

.service-icon.deck::before {
  width: 26px;
  box-shadow: 0 8px 0 var(--accent-dark);
}

.service-icon.repair::after {
  transform: rotate(45deg);
}

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

.why-content {
  display: grid;
  gap: 30px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
}

.why-band .eyebrow {
  color: #9de0e2;
}

.why-band h2 {
  margin-bottom: 0;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.why-list li {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--accent-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
}

.gallery-item img {
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 350ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--charcoal);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(22, 24, 25, 0.13);
}

.testimonials {
  padding: 76px 16px;
  background: var(--pale);
}

.testimonial-grid {
  display: grid;
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

figure {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

blockquote {
  margin: 0 0 18px;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.45;
}

figcaption {
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-section {
  display: grid;
  gap: 32px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.estimate-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.estimate-form label,
.estimate-form fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 800;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  border: 1px solid #cbd8da;
  border-radius: var(--radius);
  padding: 12px 13px;
  background: var(--white);
  color: var(--ink);
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  border-color: var(--accent-dark);
  outline: 3px solid rgba(94, 188, 194, 0.22);
}

.estimate-form textarea {
  resize: vertical;
}

.estimate-form fieldset {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.estimate-form legend {
  padding: 0 6px;
}

.radio {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 8px !important;
  font-weight: 700 !important;
}

.radio input {
  width: auto;
  accent-color: var(--accent-dark);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer > * {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-meta {
  display: grid;
  gap: 4px;
}

.powered-by {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 759px) {
  .nav {
    width: calc(100vw - 32px);
  }

  .hero,
  .section,
  .contact-section,
  .why-content {
    width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
  }

  .brand-logo {
    width: 150px;
  }

  .hero-copy {
    max-width: 320px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.03;
  }

  .hero-copy > p:not(.eyebrow),
  .contact-copy p,
  .about-copy p,
  .about-card p {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .nav-toggle {
    display: flex !important;
    position: absolute;
    top: 17px;
    right: 16px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 0 0 42px;
    z-index: 40;
    border-color: var(--ink);
    background: var(--wash);
  }

  .nav-toggle span:not(.nav-toggle-icon) {
    display: none;
  }

  .nav-toggle .nav-toggle-icon {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 640px) {
  .hero {
    padding-top: 42px;
  }

  .service-grid,
  .gallery-grid,
  .testimonial-grid,
  .why-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estimate-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 30px;
  }

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

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.8fr);
    align-items: center;
    padding: 42px 0 72px;
  }

  .about-grid,
  .contact-section,
  .why-content {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.65fr);
    align-items: start;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-right: calc((100% - min(1120px, calc(100% - 32px))) / 2);
    padding-left: calc((100% - min(1120px, calc(100% - 32px))) / 2);
  }

  .footer > * {
    width: auto;
    margin: 0;
  }
}

/* Keep mobile navigation resilient in embedded CMS/browser contexts. */
.nav-toggle {
  display: flex !important;
  position: absolute;
  top: 17px;
  right: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 42px;
  z-index: 40;
  border-color: var(--ink);
  background: var(--wash);
}

.nav-toggle span:not(.nav-toggle-icon) {
  display: none;
}

.nav-menu {
  position: absolute;
  top: 76px;
  right: 16px;
  left: 16px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.nav-menu.is-open {
  display: flex;
}

@media (min-width: 1400px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}
