/**
 * landing.css — SolPoly landing page
 * ---------------------------------------------------------------------------
 * Pastel, welcoming base + molten-orange accent (the "hot plastic" energy).
 * Layout: fixed 3D stage fills the frame; content panels scroll over it
 * on the left/right; nav fixed on top; contact panel at the bottom.
 */

:root {
  /* Pastel base — soft, welcoming, light */
  --bg-1: #f6f1ea;          /* warm cream */
  --bg-2: #eef4f3;          /* soft mint-white */
  --bg-3: #f3edf6;          /* light lavender-white */
  --stage-veil: rgba(246, 241, 234, 0.55);

  /* Pastels for UI surfaces — emphasized faded-white cards that isolate
     the factory behind them while the rest of the 3D stays visible */
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --panel-border: rgba(255, 255, 255, 0.95);
  --panel-shadow: 0 14px 50px rgba(120, 90, 70, 0.22);
  --panel-shadow-active: 0 22px 70px rgba(120, 90, 70, 0.32), 0 0 0 1px rgba(239, 108, 46, 0.18);

  /* Text */
  --ink: #3a332c;           /* warm near-black for pastel contrast */
  --ink-soft: #6d6357;
  --ink-faint: #9a9086;

  /* Accent — molten orange (the one strong color) */
  --accent: #ef6c2e;
  --accent-deep: #d4541a;
  --accent-soft: #fde6d8;
  --accent-glow: rgba(239, 108, 46, 0.18);

  /* Secondary pastel accents for badges/chips */
  --mint: #bfe3d2;
  --sky: #bcd9ec;
  --peach: #f8d5b8;
  --lilac: #d8ccf0;

  --radius: 18px;
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Stepped scroll: each scroll lands on a section so one card is
     always in frame, then the next card on the next scroll. */
  scroll-snap-type: y mandatory;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------- 3D stage ---------------- */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Soft vignette to seat the 3D inside the pastel page */
#story-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(246, 241, 234, 0.65) 100%),
    linear-gradient(180deg, rgba(246,241,234,0.5) 0%, transparent 18%, transparent 82%, rgba(243,237,246,0.6) 100%);
}

#scroll-hint {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 8px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
#scroll-hint .mouse {
  display: inline-block;
  width: 18px; height: 28px;
  border: 2px solid var(--ink-soft);
  border-radius: 10px;
  position: relative;
}
#scroll-hint .mouse i {
  position: absolute;
  left: 50%; top: 6px;
  width: 3px; height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}
#scroll-hint.gone { opacity: 0; }

/* ---------------- Nav ---------------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.55));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--panel-border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ffb27a);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.brand-name span { color: var(--accent); }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-cta { display: flex; gap: 10px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(239,108,46,0.35); }
.btn-wa {
  background: #25d366;
  color: #073d22;
}
.btn-wa:hover { background: #1ebb57; }
.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border: 1px solid var(--panel-border);
}
.btn-block { width: 100%; }

/* ---------------- Content over the stage ---------------- */
#content {
  position: relative;
  z-index: 10;
  pointer-events: none;   /* panels re-enable their own pointer events */
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px clamp(20px, 5vw, 64px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Panels: the only pointer-interactive areas over the 3D.
   A strong faded-white card that isolates the factory behind it,
   while the rest of the 3D stage stays visible around the card. */
.panel {
  pointer-events: auto;
  width: min(430px, 40vw);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  padding: 36px 36px 34px;
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease, background 0.5s ease;
}
.panel.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  background: var(--panel-strong);
  box-shadow: var(--panel-shadow-active);
}
/* While a card is the focused/active one, lift it a touch more */
.panel.is-active {
  background: var(--panel-strong);
  box-shadow: 0 26px 80px rgba(120, 90, 70, 0.38), 0 0 0 1.5px rgba(239, 108, 46, 0.28);
  transform: translateY(-2px) scale(1.01);
}
.panel-left  { margin-right: auto; }
.panel-right { margin-left: auto; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2 {
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.accent { color: var(--accent); }
.lede {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.section .panel p { font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 18px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.trust-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-strip li {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--panel-border);
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 5px 0 5px 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef6c2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 12px 16px;
}
.rating-row .stars { color: var(--accent); letter-spacing: 2px; font-size: 16px; }
.rating-row strong { color: var(--ink); }

/* ---------------- Contact panel (bottom) ---------------- */
.section-contact { min-height: 110vh; align-items: flex-end; }
.panel-bottom {
  width: min(720px, 92vw);
  margin: 0 auto 9vh;
}
#rfq-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.full { grid-column: 1 / -1; }
.form-grid label, .full {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
input, select, textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(180, 165, 150, 0.4);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-note { margin: 0; font-size: 14px; font-weight: 600; min-height: 20px; color: var(--accent); }
.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.contact-direct a { color: var(--accent-deep); font-weight: 700; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

/* ---------------- Footer ---------------- */
#footer {
  position: relative;
  z-index: 10;
  padding: 22px clamp(20px, 5vw, 64px) 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.85));
  border-top: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.foot-inner a { color: var(--accent-deep); text-decoration: none; font-weight: 700; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .panel { width: min(440px, 88vw); }
  .panel-left, .panel-right { margin: 0 auto; }
  .section { padding: 84px 18px; }
  .section-contact { align-items: flex-end; }
  .panel-bottom { margin-bottom: 12vh; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
}

/* Reduced motion: keep it calm */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .panel { opacity: 1; transform: none; }
}
