/* Drapemill — B2B Curtain Factory Site */
:root {
  --navy: #0f1c2e;
  --navy-mid: #1a2d45;
  --teal: #1a7a6d;
  --teal-light: #229985;
  --gold: #c4a35a;
  --cream: #f7f4ef;
  --white: #ffffff;
  --text: #1e293b;
  --muted: #526073; /* darkened from #64748b for WCAG AA contrast on cream */
  --border: #e2e8f0;
  --placeholder-bg: #fff8e6;
  --placeholder-border: #e6c86a;
  --placeholder-text: #6f5410; /* AA contrast on placeholder bg */
  --shadow: 0 8px 30px rgba(15, 28, 46, 0.08);
  --radius: 12px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5rem;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }
ul { list-style: none; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--navy); color: var(--white); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-dark .eyebrow { color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.25; color: inherit; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 0.5rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.section-dark .lead { color: #b8c5d6; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 1.4rem; border-radius: 8px; font-weight: 650; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: 0.2s ease;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-light); color: white; }
.btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.45); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.05); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Placeholder badges — clearly mark unknown factory facts */
.ph {
  display: inline-block;
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border: 1px dashed var(--placeholder-border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.92em;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.section-dark .ph {
  background: rgba(196, 163, 90, 0.15);
  color: #f0d78c;
  border-color: rgba(196, 163, 90, 0.5);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 28, 46, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.logo {
  display: flex; flex-direction: column; color: white; font-weight: 700;
  line-height: 1.2;
}
.logo span { font-size: 0.7rem; font-weight: 500; color: #9db0c7; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 0.35rem 1.25rem; }
.nav a {
  color: #d5deea; font-size: 0.92rem; font-weight: 500; padding: 0.35rem 0;
}
.nav a:hover, .nav a.active { color: white; }
.nav .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.3);
  color: white; border-radius: 6px; padding: 0.4rem 0.65rem; cursor: pointer;
}
.top-bar {
  background: var(--navy-mid); color: #a8b8cc; font-size: 0.8rem; padding: 0.4rem 0;
}
.top-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.top-bar a { color: #c5d4e6; }

/* Hero */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  color: white; overflow: hidden;
  background: var(--navy) center/cover no-repeat;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(15,28,46,0.92) 0%, rgba(15,28,46,0.72) 55%, rgba(15,28,46,0.45) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 5rem 0 4rem; max-width: 700px; }
.hero h1 { margin: 0.5rem 0 1rem; }
.hero p { color: #c8d4e4; font-size: 1.1rem; max-width: 560px; }
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-top: -2.5rem; position: relative; z-index: 2;
}
.trust-card {
  background: white; border-radius: var(--radius); padding: 1.15rem 1rem;
  box-shadow: var(--shadow); text-align: center;
}
.trust-card strong { display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.25rem; }
.trust-card span { font-size: 0.8rem; color: var(--muted); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: 0.2s ease; height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #dde3ea; }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.card-meta { margin-top: 0.85rem; font-size: 0.8rem; color: var(--navy-mid); }
.value-card {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); height: 100%;
}
.value-card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: #e6f5f2;
  color: var(--teal); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 1rem;
}
.process {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step;
}
.process.process-4 { grid-template-columns: repeat(4, 1fr); }
.process-step {
  background: white; border-radius: var(--radius); padding: 1.25rem 1rem;
  border: 1px solid var(--border); position: relative;
}
.process-step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: white; font-size: 0.85rem; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 0.75rem;
}
.faq details {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.2rem; margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer; font-weight: 650; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.25rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, #163552 60%, var(--teal) 140%);
  border-radius: calc(var(--radius) + 4px); padding: 2.5rem; color: white;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-banner p { color: #c5d4e6; max-width: 480px; margin-top: 0.5rem; }
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
}
.cert-box {
  border: 1px dashed var(--placeholder-border); background: var(--placeholder-bg);
  border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center;
  color: var(--placeholder-text); font-weight: 600; font-size: 0.9rem;
  min-height: 100px; display: grid; place-items: center;
}
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #1a2d45; aspect-ratio: 16/10; position: relative;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white; padding: 1.5rem 1rem 1rem; font-size: 0.85rem;
}

/* Page hero (inner) */
.page-hero {
  background: var(--navy); color: white; padding: 3.5rem 0 2.5rem;
}
.page-hero .lead { color: #b8c5d6; }
.breadcrumb { font-size: 0.85rem; color: #8fa3bf; margin-bottom: 0.75rem; }
.breadcrumb a { color: #d5deea; text-decoration: underline; text-underline-offset: 2px; }

/* Products */
.product-block {
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 2rem;
  padding: 2rem 0; border-bottom: 1px solid var(--border); align-items: start;
}
.product-block:last-child { border-bottom: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 1rem; }
.spec-table th, .spec-table td {
  text-align: left; padding: 0.65rem 0.75rem; border: 1px solid var(--border);
}
.spec-table th { background: var(--cream); width: 36%; color: var(--navy); font-weight: 650; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; font-weight: 650; margin-bottom: 0.35rem; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 0.75rem 0.85rem; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; background: white; color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(26,122,109,0.35); border-color: var(--teal);
}
textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.85rem; color: var(--placeholder-text); background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-border); padding: 0.75rem 1rem; border-radius: 8px;
  margin-bottom: 1rem;
}
.contact-aside {
  background: var(--cream); border-radius: var(--radius); padding: 1.75rem;
  height: fit-content;
}
.contact-aside li { margin: 0.85rem 0; font-size: 0.95rem; }
.contact-aside strong { display: block; color: var(--navy); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Footer */
.site-footer {
  background: #0a1420; color: #9db0c7; padding: 3rem 0 1.5rem; font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.site-footer h4, .footer-title { color: white; margin-bottom: 1rem; font-size: 0.95rem; font-weight: 700; }
.site-footer a { color: #9db0c7; }
.site-footer a:hover { color: white; }
.site-footer ul li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  font-size: 0.8rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200;
  background: #25d366; color: white !important; width: 56px; height: 56px;
  border-radius: 50%; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  font-size: 1.6rem; transition: 0.2s;
}
.wa-float:hover { transform: scale(1.06); color: white !important; }
.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.center-lead { margin-inline: auto; text-align: center; }
.section-head { margin-bottom: 2.25rem; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

@media (max-width: 900px) {
  .grid-4, .process, .process.process-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2, .product-block, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .header-inner { position: relative; }
  .hero { min-height: auto; }
  .trust-strip { margin-top: 1.5rem; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .process, .process.process-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .top-bar { font-size: 0.72rem; }
  .top-bar .container { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .hero-content { padding: 3rem 0 2.5rem; }
  .btn-row .btn { width: 100%; }
  .wa-float { right: 0.85rem; bottom: 0.85rem; width: 52px; height: 52px; }
}

/* --- M1 audit additions --- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--navy); padding: 0.6rem 1rem; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.h3-like { font-size: 1.15rem; font-weight: 650; margin-bottom: 0.5rem; color: var(--navy); }
table { display: block; overflow-x: auto; }
.spec-table { display: table; }
@media (max-width: 560px) { .spec-table th { width: 42%; } .spec-table th, .spec-table td { padding: 0.55rem; } }
/* Inquiry form states */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.field-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
input[type="file"] { padding: 0.55rem; background: var(--cream); }
.is-invalid { border-color: #b42318 !important; }
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status.error { color: #b42318; }
.form-status.info { color: var(--muted); }
.form-success {
  background: #e8f5f2; border: 1px solid #9fd3c7; border-radius: var(--radius);
  padding: 1.5rem; color: var(--navy);
}
.form-success h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }
.consent { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.cf-turnstile { min-height: 65px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.form-status:empty { display: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
/* Privacy / long-form text */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.prose p, .prose li { color: var(--text, inherit); line-height: 1.7; }
.prose p + p { margin-top: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0; }
.prose li + li { margin-top: 0.4rem; }
.consent a { text-decoration: underline; }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.section-divider { border-top: 1px solid var(--border); }
.heading-table th[scope="col"] { width: auto; }
.heading-table th[scope="row"] { width: 18%; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.heading-table { min-width: 640px; }
