@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/manrope-400.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/manrope-500.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/manrope-600.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/manrope-700.ttf") format("truetype"); }

:root {
  --green: #064d36;
  --green-dark: #043225;
  --green-soft: #e7f1ec;
  --red: #e51d2a;
  --ink: #15241f;
  --muted: #617069;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d9e0dc;
  --shadow: 0 24px 64px rgba(5, 47, 34, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 8px clamp(20px, 4vw, 68px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(6,77,54,.12);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; width: 156px; height: 64px; overflow: hidden; align-items: center; }
.brand img { display: block; width: 100%; height: auto; }
.site-nav { display: flex; justify-content: center; gap: clamp(14px, 2vw, 28px); }
.site-nav a, .header-phone { white-space: nowrap; }
.site-nav a, .header-phone { text-decoration: none; font-weight: 600; font-size: .93rem; }
.site-nav a:hover, .header-phone:hover { color: var(--red); }
.menu-button { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  gap: clamp(32px, 6vw, 88px);
  min-height: calc(100vh - 82px);
  padding: clamp(58px, 8vw, 120px) clamp(20px, 6vw, 96px);
  overflow: hidden;
  background: linear-gradient(135deg, #f5f8f4 0%, #edf4f0 70%, #e7efeb 100%);
}
.hero::before {
  pointer-events: none;
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -180px;
  bottom: -220px;
  border: 80px solid rgba(6,77,54,.055);
  border-radius: 50%;
}
.hero-copy { align-self: center; max-width: 760px; position: relative; }
.eyebrow { margin: 0 0 16px; color: var(--green); font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h2, h3 { font-weight: 600; }
h1 { margin-bottom: 24px; max-width: 760px; font-size: clamp(3rem, 5.3vw, 5.25rem); line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; font-weight: 700; color: var(--green-dark); }
h1::after { content: "."; color: var(--red); }
.hero-lead { max-width: 650px; margin-bottom: 34px; color: #405048; font-size: clamp(1.08rem, 1.6vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--red); }
.button-primary:hover { background: #c81722; }
.button-secondary { color: var(--green); background: transparent; border-color: var(--green); }
.button-secondary:hover { color: white; background: var(--green); }
.button-wide { width: 100%; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; color: var(--green); font-weight: 700; }
.hero-facts li::before { content: "•"; margin-right: 9px; color: var(--red); }

.estimate-card { position: relative; z-index: 1; align-self: center; padding: clamp(24px, 3vw, 42px); background: white; box-shadow: var(--shadow); border-top: 5px solid var(--green); }
.form-heading { display: flex; gap: 18px; margin-bottom: 24px; }
.form-index { color: var(--red); font-size: .8rem; font-weight: 700; }
.form-heading h2 { margin-bottom: 4px; font-size: clamp(1.6rem, 2.3vw, 2rem); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.form-heading p, .form-note { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.estimate-card > label, .form-row label { display: grid; gap: 7px; margin-bottom: 14px; font-size: .875rem; font-weight: 600; }
input, select, textarea { font-size: 1rem; font-weight: 400; width: 100%; color: var(--ink); background: #fbfcfa; border: 1px solid #cad4cf; border-radius: 2px; outline: none; }
input, select { min-height: 48px; padding: 0 13px; }
textarea { resize: vertical; padding: 11px 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(6,77,54,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0 0 15px; padding: 0; border: 0; }
legend { margin-bottom: 7px; font-size: .875rem; font-weight: 600; }
.choice { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; }
.choice input { width: 17px; min-height: 17px; accent-color: var(--green); }
.form-note { margin-top: 11px; text-align: center; }
.form-note a { color: var(--green); }
.form-error { margin: 0 0 10px; color: #a4131c; font-size: .9rem; }
.artwork-upload { margin-bottom: 18px; padding: 16px; border: 1px dashed #9cb9aa; background: #f5f9f6; min-width: 0; }
.artwork-upload > label, #upload-status { display: block; margin-bottom: 9px; font-size: .875rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input[type="file"] { padding: 8px 0; border: 0; background: none; min-height: 44px; font-size: .875rem; }
input[type="file"]::file-selector-button { min-height: 40px; margin-right: 10px; padding: 8px 12px; background: white; color: var(--green); border: 1px solid var(--green); border-radius: 3px; font: inherit; cursor: pointer; }
.upload-help { margin: 6px 0 0; font-size: .875rem; line-height: 1.5; color: var(--muted); font-weight: 400; }
.artwork-list { margin: 8px 0 0; padding: 0; list-style: none; }
.artwork-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.artwork-list span { min-width: 0; overflow-wrap: anywhere; }
.text-button { flex-shrink: 0; min-height: 44px; padding: 6px; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: .875rem; text-decoration: underline; }
#upload-progress { margin-top: 12px; }
#upload-meter { width: 100%; height: 14px; accent-color: var(--green); }
.button:disabled, .text-button:disabled { cursor: wait; opacity: .65; transform: none; }
.estimate-card, input, select, textarea { min-width: 0; }

.section { padding: clamp(72px, 9vw, 130px) clamp(20px, 6vw, 96px); }
.section-heading { display: grid; grid-template-columns: minmax(260px, .95fr) minmax(280px, 1.05fr); gap: 20px 70px; margin-bottom: 48px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -5px; }
.section-heading h2, .contact-section h2, .requirements h2 { margin-bottom: 0; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.section-heading > p:last-child { align-self: end; max-width: 580px; margin-bottom: 3px; color: var(--muted); font-size: 1.05rem; }

.products { background: white; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.product-card { position: relative; display: grid; min-height: 230px; padding: 28px; text-align: left; color: var(--ink); background: var(--paper); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; }
.product-card:nth-child(3n) { border-right: 0; }
.product-card:nth-child(n+4) { border-bottom: 0; }
.product-card:hover { z-index: 2; outline: 3px solid var(--red); outline-offset: -3px; }
.product-card span { align-self: start; color: var(--muted); font-size: .78rem; font-weight: 700; }
.product-card strong { align-self: end; max-width: 280px; font-size: clamp(1.3rem, 2.1vw, 1.8rem); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.product-card small { color: var(--muted); font-size: .9rem; }
.product-card.accent { color: white; background: var(--red); }
.product-card.dark { color: white; background: var(--green); }
.product-card.accent span, .product-card.accent small, .product-card.dark span, .product-card.dark small { color: rgba(255,255,255,.78); }

.textile { background: var(--green-soft); scroll-margin-top: 82px; }
.textile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.textile-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3.5vw, 48px); color: white; background: var(--green); border-top: 4px solid var(--red); }
.textile-label { margin-bottom: 28px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.textile-card h3 { margin-bottom: 20px; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; }
.textile-card > p:not(.textile-label), .textile-card li { color: rgba(255,255,255,.85); }
.textile-card ul { margin: 0 0 32px; padding-left: 20px; }
.textile-card li + li { margin-top: 10px; }
.textile-card .button { margin-top: auto; }
.textile-card-dtf { color: var(--ink); background: white; }
.textile-card-dtf .textile-label { color: var(--green); }
.textile-card-dtf > p:not(.textile-label), .textile-card-dtf li { color: var(--muted); }
.textile-note { max-width: 920px; margin: 24px 0 0; color: var(--muted); font-size: .95rem; }
.textile-card .button:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.process { background: var(--paper); }
.section-heading.compact { grid-template-columns: 1fr; max-width: 900px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; min-height: 250px; padding: 24px 24px 24px 0; grid-template-rows: 1fr auto; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 24px; }
.steps li:last-child { border-right: 0; }
.steps span { color: var(--red); font-size: .78rem; font-weight: 700; }
.steps h3 { margin-bottom: 8px; font-size: 1.45rem; }
.steps p { margin-bottom: 0; color: var(--muted); }

.requirements { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; color: white; background: var(--green-dark); }
.requirements h2 { margin-bottom: 24px; }
.requirements-intro { max-width: 560px; color: rgba(255,255,255,.72); }
.requirements-list { margin: 0; }
.requirements-list div { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.18); }
.requirements-list div:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.requirements-list dt { color: rgba(255,255,255,.6); }
.requirements-list dd { margin: 0; font-weight: 700; }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: clamp(72px, 9vw, 130px) clamp(20px, 6vw, 96px); color: white; background: var(--red); }
.contact-section > div:first-child p:last-child { max-width: 650px; margin-top: 24px; color: rgba(255,255,255,.82); }
.eyebrow.light { color: white; }
.contact-links { display: grid; align-content: center; }
.contact-links a { display: grid; gap: 5px; padding: 22px 0; text-decoration: none; border-top: 1px solid rgba(255,255,255,.35); }
.contact-links a:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
.contact-links span { color: rgba(255,255,255,.7); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-links strong { font-size: clamp(1.25rem, 2.5vw, 2.1rem); overflow-wrap: anywhere; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 24px clamp(20px, 6vw, 96px); background: white; }
footer img { width: 130px; height: 60px; object-fit: cover; }
footer p { margin: 0; color: var(--muted); font-size: .88rem; }

dialog { width: min(680px, calc(100% - 28px)); padding: 34px; color: var(--ink); background: white; border: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(3,35,25,.72); backdrop-filter: blur(4px); }
dialog h2 { margin-bottom: 20px; font-size: 2rem; }
.dialog-close { position: absolute; top: 12px; right: 16px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 1.8rem; }
dialog pre { max-height: 42vh; margin: 0 0 20px; padding: 18px; overflow: auto; white-space: pre-wrap; color: #24342e; background: var(--paper); border: 1px solid var(--line); font-family: inherit; font-size: .94rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-status { min-height: 24px; margin: 10px 0 0; color: var(--green); font-weight: 700; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .header-phone { display: none; }
  .menu-button { display: inline-flex; justify-self: end; padding: 9px 12px; color: var(--green); background: transparent; border: 1px solid var(--green); }
  .site-nav { position: absolute; top: 81px; left: 0; right: 0; display: none; padding: 20px; flex-direction: column; gap: 14px; background: white; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-top: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .product-card:nth-child(2n) { border-right: 0; }
  .product-card:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .product-card:nth-child(n+5) { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2) { border-right: 0; }
  .requirements, .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { min-height: 72px; }
  .brand { width: 124px; height: 55px; }
  .site-nav { top: 71px; }
  .hero { padding-top: 44px; }
  h1 { font-size: clamp(2.6rem, 10.5vw, 3.5rem); }
  .form-row, .section-heading, .product-grid, .textile-grid, .steps, .requirements-list div { grid-template-columns: 1fr; }
  .textile { scroll-margin-top: 72px; }
  .textile-card .button { width: 100%; }
  .section-heading { gap: 10px; }
  .product-card { min-height: 190px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .product-card:last-child { border-bottom: 0 !important; }
  .steps li, .steps li + li { min-height: 190px; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  footer { grid-template-columns: 1fr; gap: 8px; }
  footer img { margin-left: -8px; }
  dialog { padding: 28px 20px 20px; }
  .dialog-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.patterns { scroll-margin-top: 90px; }
.pattern-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.pattern-price { padding: clamp(22px, 3vw, 42px); background: white; }
.pattern-price + .pattern-price { border-left: 1px solid var(--line); }
.pattern-price h3 { font-size: 1.1rem; }
.pattern-price .pattern-amount { margin: 24px 0 18px; font-size: clamp(2rem, 3.5vw, 3.3rem); font-weight: 700; line-height: 1.2; }
.pattern-amount span { display: block; margin-top: 6px; font-size: .95rem; font-weight: 500; }
.pattern-price-featured { background: var(--green); color: white; }
.pattern-details { display: flex; align-items: center; gap: 32px; margin-top: 28px; }
.pattern-details p { flex: 1; color: var(--muted); }
.pattern-details .button { flex-shrink: 0; }
@media (max-width: 760px) {
  .pattern-prices { grid-template-columns: 1fr; }
  .pattern-price + .pattern-price { border-left: 0; border-top: 1px solid var(--line); }
  .pattern-details { align-items: stretch; flex-direction: column; gap: 16px; }
}

.request-result { grid-column: 1 / -1; padding: 28px; background: white; border: 2px solid var(--green); min-width: 0; scroll-margin-top: 90px; }
.request-result[hidden] { display: none; }
.request-result h2 { margin-bottom: 16px; font-size: 1.6rem; }
.request-result pre { padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); font-family: inherit; font-size: 1rem; }
.request-result .dialog-actions { gap: 12px; }
