:root{
  --bg:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --brand:#2f6f6d;
  --brand2:#1f4f4d;
  --alt:#f7f7f5;
  --card:#ffffff;
  --border:rgba(31,41,55,.10);
  --shadow:0 10px 25px rgba(0,0,0,.06);
  --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

.container{width:min(1120px,92vw);margin:0 auto}

/* Header */
.site-header{
  position:sticky; top:0; z-index:20;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex; gap:12px; align-items:center;
}
.logo{
  width:44px;height:44px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#e8f3f2,#fff);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  font-size:22px;
}
.brand h1{margin:0;font-size:18px}
.brand p{margin:2px 0 0;color:var(--muted);font-size:13px}

.nav{
  display:flex; gap:10px; flex-wrap:wrap;
  align-items:center;
}
.nav a{
  text-decoration:none;
  color:var(--brand2);
  font-weight:700;
  font-size:14px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{background:#e8f3f2;border-color:#d7eeec}
.nav a.active{background:var(--brand); color:#fff}

.actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.btn{
  border:1px solid var(--border);
  background:#fff;
  color:var(--brand2);
  font-weight:800;
  padding:9px 12px;
  border-radius:12px;
  cursor:pointer;
}
.btn.primary{
  background:var(--brand);
  color:#fff;
  border-color:rgba(0,0,0,.08);
}
.btn:hover{filter:brightness(.98)}
.btn.primary:hover{background:var(--brand2)}

/* Hero */
.hero{
  padding:34px 0 26px;
  background:
    radial-gradient(1200px 400px at 18% 0%, #e8f3f2 0%, rgba(232,243,242,0) 60%),
    radial-gradient(900px 420px at 90% 10%, #f6e6d9 0%, rgba(246,230,217,0) 55%);
  border-bottom:1px solid var(--border);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
}
@media (max-width: 900px){ .hero-grid{grid-template-columns:1fr} }
.hero h2{margin:0 0 10px;font-size:30px;line-height:1.15}
.hero p{margin:0 0 10px}
.note{color:var(--muted);font-size:13px;margin-top:10px}

.card{
  background:rgba(255,255,255,.82);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
}
.card h3{margin:0 0 8px}
.small{font-size:13px;color:var(--muted);margin:0 0 14px}

.section{padding:32px 0}
.section.alt{background:var(--alt);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section h2{margin:0 0 12px;font-size:24px}
.lead{color:var(--muted);margin:0 0 16px}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 900px){ .grid-2{grid-template-columns:1fr} }
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width: 900px){ .grid-3{grid-template-columns:1fr} }

.room{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
  margin:14px 0;
}
.room-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:10px;
  border-bottom:1px solid var(--border);
  padding-bottom:10px;margin-bottom:12px;
}
.room-head h3{margin:0;font-size:18px}
.tag{
  font-size:12px;
  color:var(--brand2);
  background:#e8f3f2;
  border:1px solid #d7eeec;
  padding:3px 8px;
  border-radius:999px;
  display:inline-block;
  margin-left:8px;
}
.room-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width: 900px){ .room-grid{grid-template-columns:1fr} }
.room h4{margin:0 0 8px}
.room ul{margin:0 0 10px 18px;padding:0}
.why{
  margin:0;
  padding:10px;
  background:#f1faf9;
  border:1px solid #d7eeec;
  border-radius:12px;
}
.avoid{
  margin:10px 0 0;
  padding:10px;
  background:#fff3f2;
  border:1px solid #ffd8d3;
  border-radius:12px;
}

/* Palette page */
.palette-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width: 900px){ .palette-grid{grid-template-columns:1fr} }
.swatch-card{
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.swatch-top{
  height:88px;
}
.swatch-body{padding:14px}
.kv{margin:6px 0 0;color:var(--muted);font-size:13px}
.code{
  display:inline-block;
  margin-top:10px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  font-weight:800;
  font-size:12px;
  background:#f9fafb;
}

/* Direction form */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 900px){ .form-row{grid-template-columns:1fr} }
label{font-weight:800;font-size:13px}
select,button,input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:14px;
}
.result{
  margin-top:12px;
  padding:14px;
  border-radius:14px;
  background:#f1faf9;
  border:1px solid #d7eeec;
}
.result h4{margin:0 0 8px}
.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  background:#e8f3f2;
  border:1px solid #d7eeec;
  color:var(--brand2);
  font-weight:800;
  font-size:12px;
}

/* Footer + utilities */
.footer{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  border:1px dashed rgba(31,41,55,.18);
  background:rgba(255,255,255,.75);
}
.to-top{
  position:fixed;right:18px;bottom:18px;
  width:44px;height:44px;border-radius:999px;
  border:1px solid var(--border);
  background:#fff;box-shadow:var(--shadow);
  cursor:pointer;font-weight:900;
}
.to-top:hover{background:#f1faf9}

/* Print to PDF: keep it clean */
@media print{
  .site-header, .to-top, .no-print{display:none !important;}
  body{background:#fff}
  .section.alt{background:#fff !important}
  .room, .card, .swatch-card{box-shadow:none !important}
  a{color:inherit;text-decoration:none}
  @page{margin:12mm}
}