:root {
  --bg: #f6fbf5;
  --surface: #ffffff;
  --ink: #12302b;
  --muted: #52625c;
  --line: #d9e7de;
  --accent: #ffcf35;
  --accent-dark: #0d7a6d;
  --green: #0f6b5f;
  --green-soft: #ddf4e7;
  --coral: #ef7355;
  --teal: #20a7a5;
  --shadow: 0 18px 60px rgba(18, 65, 52, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

p,
h1,
h2,
h3,
span,
a,
strong {
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 42px);
  background: rgba(244, 246, 245, 0.94);
  border-bottom: 1px solid rgba(32, 32, 29, 0.1);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 2px solid var(--green);
  background: linear-gradient(135deg, var(--accent), #80d35b 45%, var(--teal));
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-name {
  display: block;
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}

.site-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, 78svh);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 42, 36, 0.9), rgba(8, 42, 36, 0.58) 44%, rgba(8, 42, 36, 0.06)),
    url("assets/marmoleum-hero.png") center / cover;
  color: #ffffff;
}

.hero-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 12vw, 128px) 0;
}

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

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.8rem, 6.5vw, 6.15rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 700;
  overflow-wrap: normal;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #9ee66d);
  color: var(--ink);
}

.button.primary:hover {
  background: linear-gradient(135deg, #ffe17b, #b7f08d);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 36px));
  margin: -40px auto 0;
  position: relative;
  z-index: 5;
  background: var(--line);
  box-shadow: var(--shadow);
}

.intro-band div {
  min-width: 0;
  min-height: 118px;
  padding: 24px;
  background: var(--surface);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.intro-band span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section,
.work-section,
.contact-section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: start;
}

.section h2,
.work-section h2,
.contact-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.work-item p,
.contact-copy address,
.service-item p,
.proof-list p {
  color: var(--muted);
}

.section-copy p:not(.eyebrow) {
  max-width: 640px;
  font-size: 1.06rem;
}

.proof-list {
  display: grid;
  gap: 16px;
}

.proof-list div {
  padding: 22px 0 22px 24px;
  border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, var(--green-soft), rgba(221, 244, 231, 0));
}

.proof-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.proof-list strong {
  font-size: 1.1rem;
}

.proof-list p {
  margin: 8px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

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

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

.service-item {
  min-height: 176px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-item.featured {
  border-color: rgba(15, 107, 95, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 207, 53, 0.38), transparent 30%),
    linear-gradient(135deg, #ffffff, #e9f9ee);
}

.service-item h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.service-item p {
  margin: 0;
}

.work-section {
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 207, 53, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(32, 167, 165, 0.28), transparent 38%),
    #12302b;
  color: #ffffff;
}

.work-section > .section-heading,
.work-grid {
  width: min(var(--max), calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.work-grid {
  display: grid;
  gap: 28px;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #173d36;
}

.work-item.reverse {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.work-item.reverse img {
  grid-column: 2;
}

.work-item.reverse div {
  grid-column: 1;
  grid-row: 1;
}

.work-item img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.work-item div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.work-item h3 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.05;
}

.work-item p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.03rem;
}

.work-item a {
  align-self: flex-start;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.work-item a:hover {
  text-decoration: underline;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

.contact-copy address {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-style: normal;
  font-size: 1.08rem;
}

.contact-copy a {
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #bfc6be;
  border-radius: 4px;
  padding: 13px 12px;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(242, 183, 5, 0.36);
  border-color: var(--accent-dark);
}

.contact-form .button {
  width: fit-content;
  border: 0;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 42px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.assistant-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  font-family: Arial, Helvetica, sans-serif;
}

.assistant-launcher {
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #95df65 48%, var(--teal));
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(18, 65, 52, 0.28);
  font-weight: 900;
  cursor: pointer;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(15, 107, 95, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(18, 65, 52, 0.3);
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 207, 53, 0.34), transparent 38%),
    #12302b;
  color: #ffffff;
}

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

.assistant-header span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.86rem;
}

.assistant-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.assistant-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 16px;
  background: #f6fbf5;
}

.assistant-message {
  max-width: 92%;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.94rem;
}

.assistant-message.bot {
  justify-self: start;
  background: #ffffff;
  border: 1px solid var(--line);
}

.assistant-message.user {
  justify-self: end;
  background: var(--green-soft);
  border: 1px solid rgba(15, 107, 95, 0.16);
}

.assistant-actions {
  display: grid;
  gap: 9px;
  padding: 14px 16px 16px;
  background: #ffffff;
}

.assistant-actions button,
.assistant-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.assistant-actions button:hover,
.assistant-actions a:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.assistant-actions .assistant-primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), #9ee66d);
}

.assistant-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfc6be;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.assistant-input:focus {
  outline: 3px solid rgba(255, 207, 53, 0.38);
  border-color: var(--green);
}

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex: 1 0 100%;
    flex-wrap: wrap;
    gap: 8px 18px;
    overflow-x: visible;
    padding: 0 0 2px;
    background: transparent;
    border: 0;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 4px 0;
    border: 0;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 74svh;
    background:
      linear-gradient(180deg, rgba(8, 42, 36, 0.78), rgba(8, 42, 36, 0.58)),
      url("assets/marmoleum-hero.png") 68% center / cover;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.4vw, 2.55rem);
    line-height: 1;
  }

  .hero-subtitle {
    max-width: 320px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero .eyebrow {
    max-width: 320px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .intro-band,
  .split,
  .service-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-band {
    margin-top: 0;
    width: 100%;
    box-shadow: none;
  }

  .section-heading {
    display: block;
  }

  .work-item,
  .work-item.reverse {
    grid-template-columns: 1fr;
  }

  .work-item.reverse img,
  .work-item.reverse div {
    grid-column: auto;
    grid-row: auto;
  }

  .work-item img {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .brand-name {
    max-width: 190px;
    line-height: 1.1;
  }

  .brand {
    flex: 1 1 auto;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .contact-form .button {
    width: 100%;
  }

  .service-item {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }

  .assistant-widget {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .assistant-launcher {
    width: 100%;
  }

  .assistant-panel {
    right: 0;
    left: 0;
    width: auto;
  }
}
