:root {
  --bg: #f4eee6;
  --paper: #fffaf2;
  --text: #1d1814;
  --muted: #6f6258;
  --line: rgba(29, 24, 20, 0.14);
  --dark: #17130f;
  --dark-soft: #221c17;
  --accent: #c56f2d;
  --accent-dark: #8b431f;
  --cream: #fff4e5;
  --shadow: 0 24px 70px rgba(29, 24, 20, 0.18);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(197, 111, 45, 0.2), transparent 34rem),
    linear-gradient(180deg, #fbf6ef 0%, var(--bg) 48%, #eadfD3 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(29, 24, 20, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 220px;
  text-decoration: none;
}

.brand img {
  width: 300px;
  max-width: 42vw;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  background: rgba(29, 24, 20, 0.055);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.main-nav a {
  color: #45392f;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 250, 242, 0.9);
}

.main-nav .nav-button {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(139, 67, 31, 0.24);
}

main {
  overflow: hidden;
}

.hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 28px 50px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(26px, 5vw, 58px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -4.5px;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -2.5px;
}

h3 {
  margin-bottom: 8px;
}

.lead,
.section-head p,
.photo-estimate p,
.auto-reply p,
.contact p,
.before-after-note p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 16px 36px rgba(139, 67, 31, 0.28);
}

.secondary {
  color: var(--text);
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-row span {
  color: #51463d;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  border-radius: 32px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.hero-card img {
  height: 570px;
  object-fit: cover;
}

.hero-card-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  color: white;
  background: rgba(23, 19, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
}

.hero-card-caption strong,
.hero-card-caption span {
  display: block;
}

.hero-card-caption span {
  color: rgba(255, 255, 255, 0.72);
}

.service-band,
.work-section,
.photo-estimate,
.auto-reply,
.before-after-note {
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 28px;
}

.section-head {
  max-width: 800px;
  margin-bottom: 24px;
}

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

.service-grid article {
  min-height: 210px;
  padding: 22px;
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 15px 42px rgba(29, 24, 20, 0.08);
}

.service-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: white;
  background: var(--dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.service-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.photo-estimate {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.photo-estimate > div:first-child {
  padding: 30px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 19, 15, 0.92), rgba(139, 67, 31, 0.9)),
    url("public/work/basement-after-gray-walls.jpg") center/cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.photo-estimate > div:first-child p,
.photo-estimate > div:first-child .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.estimate-steps {
  display: grid;
  gap: 12px;
}

.estimate-steps div {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.estimate-steps strong,
.estimate-steps span {
  display: block;
}

.estimate-steps strong {
  font-size: 19px;
  margin-bottom: 5px;
}

.estimate-steps span {
  color: var(--muted);
}

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

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border-radius: 26px;
  background: var(--dark);
  box-shadow: 0 18px 48px rgba(29, 24, 20, 0.14);
}

.gallery-card.large {
  grid-column: span 2;
}

.gallery-card img {
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.gallery-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.76));
}

.gallery-card div {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
  color: white;
}

.gallery-card span,
.gallery-card strong {
  display: block;
}

.gallery-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.gallery-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.before-after-note {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: center;
}

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

.mini-gallery img {
  height: 310px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(29, 24, 20, 0.11);
}

.auto-reply {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
}

.reply-card {
  color: white;
  background: var(--dark);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.reply-label {
  margin: 0 0 10px;
  color: #d8955b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
}

.reply-box {
  padding: 18px;
  color: #fff4e8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  font-size: 16px;
}

.reply-button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  color: white;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.reply-note {
  margin: 12px 0 0;
  color: #d8c9bb;
  font-size: 14px;
}

.contact {
  max-width: 1164px;
  margin: 36px auto 54px;
  padding: 46px 28px;
  color: white;
  background: linear-gradient(135deg, var(--dark), var(--dark-soft));
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.contact .eyebrow {
  color: #d8955b;
}

.contact p {
  color: #e4d6c8;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    width: 260px;
    max-width: 80vw;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero,
  .photo-estimate,
  .auto-reply,
  .before-after-note {
    grid-template-columns: 1fr;
  }

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

  .gallery-card.large {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 10px 14px;
  }

  .brand img {
    width: 225px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 9px 10px;
  }

  .hero,
  .service-band,
  .work-section,
  .photo-estimate,
  .auto-reply,
  .before-after-note {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 45px;
    letter-spacing: -2.5px;
  }

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

  .hero-card,
  .hero-card img {
    min-height: 430px;
    height: 430px;
  }

  .gallery-card,
  .gallery-card img {
    min-height: 310px;
  }

  footer {
    flex-direction: column;
  }
}

/* AI chat upgrade start */
.ai-chat-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 28px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
}

.ai-chat-copy {
  padding: 30px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 19, 15, 0.94), rgba(139, 67, 31, 0.88)),
    url("public/work/kitchen-cabinets-after.jpg") center/cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.ai-chat-copy .eyebrow,
.ai-chat-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.ai-chat-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.ai-chat-points span {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
}

.ai-preview-card {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(29, 24, 20, 0.12);
}

.ai-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ai-preview-top strong,
.ai-preview-top span {
  display: block;
}

.ai-preview-top span {
  color: var(--accent-dark);
  font-weight: 900;
}

.ai-preview-message {
  max-width: 82%;
  margin: 10px 0;
  padding: 13px 15px;
  border-radius: 18px;
  font-size: 15px;
}

.ai-preview-message.bot {
  color: var(--text);
  background: #f2e7db;
}

.ai-preview-message.user {
  color: white;
  background: var(--accent);
  margin-left: auto;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 100;
  font-family: Arial, Helvetica, sans-serif;
}

.chat-launcher {
  display: grid;
  gap: 2px;
  min-width: 245px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 18px 48px rgba(29, 24, 20, 0.25);
  cursor: pointer;
  text-align: left;
}

.chat-launcher span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  opacity: 0.82;
}

.chat-launcher strong {
  font-size: 15px;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  display: none;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(29, 24, 20, 0.3);
}

.chat-panel.open {
  display: block;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: white;
  background: var(--dark);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  color: #d8c9bb;
  font-size: 12px;
}

.chat-header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.chat-messages {
  max-height: 310px;
  overflow-y: auto;
  padding: 14px;
  background: #f7eee5;
}

.chat-message {
  max-width: 86%;
  margin: 8px 0;
  padding: 12px 13px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.42;
}

.chat-message.bot {
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
}

.chat-message.user {
  color: white;
  background: var(--accent);
  margin-left: auto;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 14px 0;
}

.chat-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--text);
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
}

.chat-input-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 13px;
  font-size: 14px;
}

.chat-input-row button,
.chat-copy-lead {
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  color: white;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.chat-copy-lead {
  width: calc(100% - 28px);
  margin: 0 14px 10px;
}

.chat-small {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .ai-chat-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .ai-chat-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chat-widget {
    right: 10px;
    bottom: 82px;
  }

  .chat-launcher {
    min-width: 220px;
    padding: 12px 15px;
  }

  .chat-panel {
    bottom: 68px;
  }
}
/* AI chat upgrade end */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact .contact-secondary {
  color: var(--text);
  background: #fffaf2;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@media (max-width: 620px) {
  .contact-actions .button {
    width: 100%;
  }
}
.audience-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 28px;
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.audience-grid article {
  min-height: 245px;
  padding: 26px;
  color: white;
  background:
    linear-gradient(135deg, rgba(23, 19, 15, 0.94), rgba(139, 67, 31, 0.86)),
    url("public/work/kitchen-cabinets-after.jpg") center/cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.audience-grid article:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(23, 19, 15, 0.94), rgba(139, 67, 31, 0.86)),
    url("public/work/basement-after-gray-walls.jpg") center/cover;
}

.audience-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.audience-grid h3 {
  max-width: 520px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -1.6px;
}

.audience-grid p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .audience-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}