/* Resin Rock Solutions — brand: charcoal / gold / silver (from RRS logo) */

:root {
  --bg: #121316;
  --bg-2: #1a1c20;
  --bg-3: #22252a;
  --line: #2e3138;
  --text: #e8e6e1;
  --text-dim: #a7a49e;
  --gold: #c9962e;
  --gold-2: #e0b45a;
  --silver: #c7ccd1;
  --radius: 14px;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Logo ---------- */
.logo-img { display: block; height: 62px; width: auto; }
header.site .logo { margin-right: 24px; flex-shrink: 0; }
nav.main a { white-space: nowrap; }
@media (max-width: 900px) {
  nav.main { gap: 16px; }
  nav.main a:not(.btn) { display: none; }
}
.footer-logo { height: 96px; margin: 0 auto 14px; }

/* (legacy text-logo styles kept for fallback) */
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo .rrs {
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
  font-style: italic;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 30%, #f2f3f4 55%, var(--silver) 75%, #9aa0a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo .name {
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  margin-top: 6px;
  border-top: 2px solid var(--gold);
  padding-top: 5px;
  white-space: nowrap;
}
.logo .sub {
  color: var(--gold);
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  margin-top: 4px;
  white-space: nowrap;
}
.logo .sub::before, .logo .sub::after { content: "—"; color: var(--gold); margin: 0 6px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 19, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}
header.site .logo .rrs { font-size: 1.6rem; }
header.site .logo .name { font-size: 0.58rem; margin-top: 4px; }
header.site .logo .sub { display: none; }

nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.04em; }
nav.main a:hover { color: var(--gold-2); }

/* Menu toggle + dropdown panel */
.menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer;
}
.menu-btn span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--gold-2); transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 10px 24px 18px;
}
.nav-panel.open { display: block; animation: fade 0.18s ease; }
.nav-panel a {
  display: block; padding: 13px 4px;
  color: var(--text); text-decoration: none; font-size: 1rem;
  border-bottom: 1px solid var(--line);
}
.nav-panel a:hover { color: var(--gold-2); }
.nav-panel a.gold-link { color: var(--gold-2); font-weight: 700; border-bottom: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn.gold {
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  color: #17130a;
  box-shadow: 0 4px 18px rgba(201, 150, 46, 0.35);
}
.btn.gold:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(201, 150, 46, 0.5); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201, 150, 46, 0.13), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(199, 204, 209, 0.07), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .kicker {
  color: var(--gold);
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  max-width: 15em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold), var(--gold-2) 40%, var(--silver));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 20px;
  max-width: 34em;
  color: var(--text-dim);
  font-size: 1.08rem;
}
.hero .cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.vuba-badge { margin-top: 34px; display: flex; align-items: center; gap: 14px; }
.vuba-badge .chip {
  background: #fff; border-radius: 12px; padding: 8px 12px;
  display: inline-flex; align-items: center;
}
.vuba-badge .chip img { height: 52px; width: auto; display: block; }
.vuba-badge .tag { color: var(--text-dim); font-size: 0.9rem; max-width: 22em; }
.vuba-badge.center { justify-content: center; margin: 0 0 18px; }
.vuba-badge.center .chip img { height: 44px; }

.hero-strip { margin-top: 34px; display: flex; gap: 10px; height: 14px; border-radius: 999px; overflow: hidden; max-width: 560px; }
.hero-strip span { flex: 1; }

/* ---------- Sections ---------- */
section.block { padding: 78px 0; border-bottom: 1px solid var(--line); }
section.block.alt { background: var(--bg-2); }
.block h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 10px; }
.block .sub-h {
  color: var(--gold); letter-spacing: 0.28em; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; margin-bottom: 14px;
}
.block p.intro { color: var(--text-dim); max-width: 44em; margin-bottom: 36px; }

.grid { display: grid; gap: 20px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.card p { color: var(--text-dim); font-size: 0.92rem; }
.card .ico { font-size: 1.6rem; margin-bottom: 12px; display: block; }

/* ---------- Stone swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.swatch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.12s ease;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}
.swatch:hover { border-color: var(--gold); transform: translateY(-2px); }
.swatch.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.swatch canvas, .swatch img { display: block; width: 100%; height: 110px; object-fit: cover; }
#result-visual canvas, #result-visual img {
  display: block; width: 100%; height: 90px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line);
}
.swatch .label { padding: 12px 14px; }
.swatch .label b { display: block; font-size: 0.92rem; color: #fff; }
.swatch .label span { display: block; font-size: 0.78rem; color: var(--text-dim); }
.swatch .label .lead-tag {
  display: inline-block; font-style: normal; font-size: 0.68rem;
  color: var(--gold-2); border: 1px solid rgba(201, 150, 46, 0.45);
  border-radius: 999px; padding: 1px 9px; margin-top: 7px;
}

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 34px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -18px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(100deg, var(--gold), var(--gold-2));
  color: #17130a; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Estimator ---------- */
.est-shell { max-width: 860px; margin: 0 auto; }
.est-progress { display: flex; gap: 8px; margin: 34px 0 30px; }
.est-progress span {
  flex: 1; height: 5px; border-radius: 999px; background: var(--line);
}
.est-progress span.on { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

.est-step { display: none; }
.est-step.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.est-step h2 { margin-bottom: 6px; }
.est-step .hint { color: var(--text-dim); margin-bottom: 26px; }

.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.opt {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.12s ease;
}
.opt:hover { border-color: var(--gold); }
.opt.selected { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.opt b { display: block; color: #fff; margin-bottom: 4px; }
.opt span { color: var(--text-dim); font-size: 0.88rem; }
.opt .ico { font-size: 1.5rem; display: block; margin-bottom: 10px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.94rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 15px;
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.dim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.area-note { color: var(--text-dim); font-size: 0.86rem; margin-top: -8px; margin-bottom: 20px; }
.area-note b { color: var(--gold-2); }

.est-nav { display: flex; justify-content: space-between; margin-top: 34px; gap: 12px; }

/* Result */
.result-card {
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
}
.result-card .range {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(100deg, var(--gold), var(--gold-2) 50%, var(--silver));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 8px 0 4px;
}
.result-card .gst { color: var(--text-dim); font-size: 0.86rem; }
.result-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin: 26px 0; text-align: left;
}
.result-summary div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.result-summary b { display: block; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 3px; }
.disclaimer { color: var(--text-dim); font-size: 0.82rem; margin-top: 18px; max-width: 40em; margin-left: auto; margin-right: auto; }
.breakdown { margin: 0 0 22px; text-align: left; }
.breakdown div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 4px; border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.breakdown div span { color: var(--text-dim); }
.breakdown div b { color: #fff; white-space: nowrap; }

/* ---------- Contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.contact-list li b { color: #fff; display: inline-block; min-width: 110px; }

footer.site {
  padding: 44px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
footer.site .logo { margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid.c4, .swatches { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav.main a:not(.btn) { display: none; }
  .grid.c3, .grid.c2, .opt-grid { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
}
