:root {
  color-scheme: light;
  --ink: #172821;
  --muted: #546359;
  --dark: #132720;
  --dark-raised: #1e362b;
  --gold: #eec97d;
  --gold-hover: #ffdb92;
  --paper: #f8f6ef;
  --white: #fffdf8;
  --line: #dcded3;
  --soft: #edf0e6;
  --shadow: 0 18px 45px rgba(22, 43, 34, .09);
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 0; margin: 0; }
[hidden] { display: none !important; }
img { display: block; height: auto; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
:focus-visible { outline: 3px solid #ac6322; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.shell { width: min(100% - 48px, 1192px); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 12px auto auto 12px;
  transform: translateY(-180%);
  background: var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 8px;
}

.skip-link:focus { transform: translateY(0); }

.showroom-header {
  background: #faf9f4;
  border-bottom: 1px solid #e4e5db;
}

.showroom-bar {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  gap: 22px;
  align-items: center;
  min-height: 81px;
}

.showroom-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.2;
}

.showroom-brand strong { display: block; font-size: .98rem; letter-spacing: -.025em; }
.showroom-brand div > span { color: var(--muted); font-size: .74rem; }
.codee-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 12px;
  font: 700 1.32rem/1 var(--sans);
  color: #f9e4b5;
  background: linear-gradient(145deg, #476051 0, #253d32 64%, #172821 100%);
  border: 1px solid #293f34;
  box-shadow: inset 0 1px 0 #76897d, 0 2px 6px #273f3530;
}

.view-picker {
  display: flex;
  padding: 4px;
  border: 1px solid #dfe3d9;
  border-radius: 999px;
  background: #ecede4;
}

.view-picker button {
  padding: 9px 15px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #435248;
  font-size: .86rem;
  font-weight: 680;
}

.view-picker button[aria-pressed="true"] {
  border-color: #e0e2d8;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 5px #1d352313;
}

.view-picker button:hover { color: #1a3126; }

.button {
  display: inline-flex;
  min-height: 46px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 730;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button--header {
  justify-self: end;
  color: var(--ink);
  border-color: #d5ddcf;
  background: linear-gradient(155deg, #fffdf7, #f0f0e6);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px #2838310d;
}

.button--header:hover, .button--secondary:hover { background: #e5eadc; }
.button--gold { background: var(--gold); color: #212b20; }
.button--gold:hover { background: var(--gold-hover); }
.button--hero-link { color: #fbf6e8; border-color: #819888; }
.button--hero-link:hover { background: #ffffff17; }
.button--primary { background: #244435; color: white; }
.button--primary:hover { background: #315945; }
.button--secondary { color: #243f31; background: #f1f3e9; border-color: #ccd6c7; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.sample-ribbon { background: #e8ede0; border-bottom: 1px solid #dfe5d8; }
.sample-ribbon .shell {
  display: flex;
  min-height: 38px;
  gap: 8px;
  align-items: center;
  color: #3e5447;
  font-size: .75rem;
  font-weight: 700;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #477555; }
.ribbon-divider { height: 13px; width: 1px; background: #afbaad; margin-inline: 3px; }
.site-nav { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 16px; }
.contractor-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.15rem; line-height: 1.12; font-weight: 760; letter-spacing: -.04em; }
.contractor-brand small { display: block; margin-top: 4px; text-transform: uppercase; font-size: .6rem; letter-spacing: .15em; font-weight: 760; color: var(--muted); }
.ridge-mark { position: relative; width: 34px; height: 28px; }
.ridge-mark::before, .ridge-mark::after {
  position: absolute;
  inset: 9px auto auto 5px;
  width: 19px;
  height: 19px;
  border: solid #365d47;
  border-width: 3px 0 0 3px;
  content: "";
  transform: rotate(45deg);
}
.ridge-mark::after { left: 15px; border-color: #a36b30; width: 13px; height: 13px; inset-block-start: 13px; }
.site-nav nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.site-nav nav a { padding-block: 10px; text-decoration: none; font-size: .88rem; font-weight: 670; }
.site-nav nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-nav nav a:last-child { color: #264d37; }

.hero {
  color: #faf7ea;
  background: radial-gradient(ellipse at top left, #2b4436 0%, var(--dark) 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(40px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #4b6756;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .11em;
  font-weight: 800;
}

.eyebrow-line { flex: 0 0 17px; height: 2px; background: #90612c; }
.hero .eyebrow, .setup-section .eyebrow { color: #eace93; }
.hero .eyebrow-line, .setup-section .eyebrow-line { background: #eace93; }

.hero h1 {
  font-size: clamp(2.9rem, 5.9vw, 5.8rem);
  letter-spacing: -.081em;
  line-height: .98;
  font-weight: 720;
}

.hero h1 em {
  display: block;
  color: #f1d199;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.065em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 31ch;
  margin-block: 22px 25px;
  color: #e2ebdf;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-image {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #ffffff36;
  border-radius: 18px;
  background: #395344;
  box-shadow: 0 22px 62px #1020176b;
}

.hero-image img { aspect-ratio: 1.34; width: 100%; height: auto; object-fit: cover; }
.hero-image figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 27px 17px 14px;
  color: #fffdf5;
  background: linear-gradient(transparent, #10201de8 78%);
}

.hero-image figcaption strong { font-size: .95rem; }
.hero-image figcaption span { font-size: .77rem; color: #f1eee2; }
.section { padding-block: clamp(46px, 6vw, 84px); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.section-heading > p { max-width: 37ch; color: var(--muted); }
h2 { font-weight: 750; font-size: clamp(1.75rem, 3.5vw, 3.3rem); letter-spacing: -.065em; line-height: 1.08; }
h3 { font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
.service-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(17px, 2vw, 25px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.service-card--main { background: #eff1e7; border-color: #d6dece; }
.card-label {
  margin-bottom: 8px;
  color: #496654;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .085em;
}
.service-card h3 { overflow-wrap: anywhere; font-size: 1.29rem; }
.service-card p:not(.card-label) { color: var(--muted); margin-block: 9px 12px; overflow-wrap: anywhere; }
.service-card a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  margin-top: auto;
  color: #2c513a;
  font-size: .86rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.service-card a:hover { color: #784319; }
.service-detail { margin-top: 14px; padding-inline: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.service-detail summary { min-height: 46px; padding-block: 11px; cursor: pointer; color: #2c513a; font-weight: 750; }
.service-detail-body { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-block: 14px 17px; }
.service-detail-body h3 { font-size: 1.42rem; overflow-wrap: anywhere; }
.service-detail-body p { margin-top: 7px; color: var(--muted); overflow-wrap: anywhere; }
.service-detail-body ol { margin-block: 8px 0; padding-left: 1.35rem; color: var(--muted); }

.project-section { background: #eeeee5; border-block: 1px solid #e3e5da; }
.gallery-grid figure { overflow: hidden; border-radius: 14px; background: var(--white); border: 1px solid #dfe3d8; }
.gallery-grid img { width: 100%; aspect-ratio: 1.55; object-fit: cover; background: #94a193; }
.gallery-grid figcaption { display: grid; padding: 11px 14px 14px; gap: 2px; }
.gallery-grid span { color: var(--muted); font-size: .87rem; }

.quote-section, .setup-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: start; gap: clamp(20px, 5vw, 68px); }
.quote-section h2 + p, .setup-inner h2 + p { max-width: 52ch; margin-top: 12px; color: var(--muted); }
.panel {
  padding: clamp(17px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: var(--shadow);
}

form { display: grid; gap: 9px; }
form button[type="submit"] { justify-self: start; margin-top: 5px; }
form .actions button[type="submit"] { margin-top: 0; }
form label, .role-picker label { font-size: .86rem; font-weight: 740; }
input, textarea, select {
  min-width: 0;
  max-width: 100%;
  padding: 9px 11px;
  border: 1px solid #acb9aa;
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  background: #fffcf7;
}
textarea { resize: vertical; }
form label:not(:first-child) { margin-top: 2px; }
form p, .small-note { color: var(--muted); }

.result {
  padding: 10px 13px;
  color: #284936;
  background: #edf1e5;
  border: 1px solid #d8e4d4;
  border-radius: 8px;
  font-size: .89rem;
  font-weight: 640;
}

.staff-result { margin-bottom: 11px; }
#quote-result, #open-inbox { margin-top: 11px; }
.staff-view { min-height: 63vh; background: #f1f2e9; }
.staff-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-block: 36px 24px;
}

.staff-intro h1 { font-size: clamp(2.18rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.077em; }
.staff-intro h1 + p { margin-top: 7px; color: var(--muted); }
.role-picker { display: grid; gap: 5px; min-width: 132px; }
.staff-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding-bottom: 48px; }
.staff-sidebar {
  align-self: start;
  padding: 11px;
  background: #e6eadf;
  border: 1px solid #dce1d5;
  border-radius: 14px;
}
.staff-sidebar nav { display: grid; gap: 3px; }
.staff-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  min-height: 45px;
  padding: 8px 11px;
  background: transparent;
  color: #33483b;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  font-weight: 680;
  font-size: .9rem;
}
.staff-sidebar nav button[aria-current="true"] { color: var(--ink); border-color: #d6dfd3; background: #fffdf8; box-shadow: 0 2px 5px #2435290a; }
.staff-sidebar nav button:hover { background: #f1f4eb; }
.staff-sidebar > p { margin: 9px 8px 2px; color: #415747; font-size: .84rem; }
.text-button {
  background: transparent;
  border: none;
  color: #415747;
  padding: 8px;
  min-height: 42px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .84rem;
}
.count { padding-inline: 6px; border-radius: 999px; color: #34553d; background: #e4eee1; font-size: .76rem; }
.workspace-panel h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
.workspace-panel h2 + p { margin-top: 11px; color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 17px; }
.content-preview { min-width: 0; padding: 13px; border: 1px solid #dfe4d8; border-radius: 10px; background: #f3f4eb; overflow-wrap: anywhere; }
.content-preview p:not(.card-label) { color: var(--muted); margin-top: 6px; }
#draft-form, #publish-review { border-top: 1px solid var(--line); padding-top: 15px; }
#publish-review > p { color: var(--muted); margin-block: 6px 11px; }
.record-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.record-list li { min-width: 0; border: 1px solid #dfe4da; border-radius: 10px; background: #f4f5ee; padding: 11px 14px; }
.record-list strong { display: block; }
.record-list p { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.record-list li > div { display: grid; gap: 3px; }
.record-list .inquiry-record { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 10px; }
.inquiry-record label { font-size: .8rem; font-weight: 750; color: #3c5745; }
.inquiry-record select { display: block; margin-top: 3px; }
#inbox-quote { margin-top: 11px; }
#training-lessons { margin-top: 12px; display: grid; gap: 8px; }
.training-lesson { border: 1px solid #dfe4da; border-radius: 10px; background: #f4f5ee; padding: 0 12px; }
.training-lesson summary { min-height: 44px; padding-block: 11px; color: #294b36; font-weight: 760; cursor: pointer; }
.training-lesson p { color: var(--muted); margin-bottom: 10px; }
.training-lesson button { margin-bottom: 11px; }
.training-lesson .lesson-result { color: #345b40; font-size: .85rem; font-weight: 700; }

.setup-section { background: var(--dark); color: #fbf7e9; }
.setup-inner { align-items: center; padding-block: clamp(35px, 6vw, 69px); }
.setup-inner h2 + p { color: #dfe9dc; }
.setup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.showroom-footer { background: #0f2119; color: #dce7db; border-top: 1px solid #31473b; padding-block: 17px; }
.showroom-footer .shell { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; font-size: .82rem; }

@media (max-width: 800px) {
  .showroom-bar { gap: 11px; }
  .hero-inner { gap: 23px; }
  .staff-layout { grid-template-columns: 177px minmax(0, 1fr); }
  .content-preview { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .showroom-bar { grid-template-columns: minmax(0, 1fr) max-content; gap: 8px; padding-block: 10px; }
  .view-picker { grid-row: 2; grid-column: 1 / -1; }
  .view-picker button { flex: 1 1 0; padding-inline: 8px; }
  .button--header { padding-inline: 11px; font-size: .82rem; min-height: 42px; }
  .site-nav { align-items: flex-start; flex-direction: column; justify-content: start; gap: 3px; padding-block: 13px 5px; }
  .site-nav nav { gap: 12px; flex-wrap: wrap; }
  .site-nav nav a { padding-block: 8px; min-height: 38px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 30px; }
  .hero h1 { font-size: clamp(2.75rem, 10vw, 4.8rem); }
  .hero-copy > p:not(.eyebrow) { margin-block: 14px 17px; }
  .hero-image img { aspect-ratio: 1.64; }
  .section-heading { display: block; margin-bottom: 16px; }
  .section-heading > p { margin-top: 8px; }
  .service-grid, .gallery-grid, .quote-section, .setup-inner { grid-template-columns: 1fr; }
  .service-card { padding: 17px; }
  .gallery-grid img { aspect-ratio: 1.72; }
  .staff-intro { align-items: start; flex-direction: column; padding-block: 23px 15px; gap: 12px; }
  .role-picker { width: 100%; }
  .staff-layout { display: block; }
  .staff-sidebar { margin-bottom: 13px; }
  .staff-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-actions { align-items: stretch; }
}

@media (max-width: 370px) {
  .showroom-brand { gap: 7px; }
  .codee-mark { width: 33px; flex-basis: 33px; height: 33px; }
  .showroom-brand strong { font-size: .88rem; }
  .showroom-brand div > span { font-size: .68rem; }
  .record-list .inquiry-record { grid-template-columns: minmax(0, 1fr); }
}

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