/* =========================================================
   TWORIVO — Unified Design System (static, no WordPress)
   ========================================================= */

:root {
  --bg-color: #FBF9F6;
  --card-color: #FFFFFF;
  --accent-color: #E06A3F;
  --accent-dark: #2B1B15;
  --light-beige: #F1EAE0;
  --text-main: #4F463E;
  --heading-color: #1C1C1C;
  --btn-hover: #C76A3C;
  --decorative: #BFA58A;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(43, 27, 21, 0.04);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --blur-bg: rgba(251, 249, 246, 0.85);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--heading-color);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(224, 106, 63, 0.25);
}

.btn-primary:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 106, 63, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--heading-color);
  border: 1px solid var(--decorative);
}

.btn-secondary:hover {
  background-color: var(--light-beige);
  transform: translateY(-2px);
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  background-color: var(--blur-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(43, 27, 21, 0.06);
  transform: translateZ(0);
}

.header-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--heading-color);
}

.logo-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-top: -2px;
}

.nav-menu {
  display: none;
  gap: 28px;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.header .btn {
  display: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--heading-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav overlay */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--card-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 110px 32px 40px;
  gap: 20px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile a {
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
  color: var(--heading-color);
  padding: 8px 0;
}

/* ---------- LEGAL PAGES ---------- */
.legal-page {
  max-width: 900px;
  margin: 40px auto 60px;
  padding: 0 20px;
  line-height: 1.75;
}

.legal-page h1 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.9rem;
}

.legal-page h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: #6b4f3a;
  font-size: 1.25rem;
}

.legal-page ul {
  padding-left: 22px;
  margin: 12px 0;
}

.legal-page p {
  margin-bottom: 12px;
}

/* ---------- FOOTER ---------- */
.footer {
  background-color: var(--heading-color);
  color: #FFFFFF;
  padding: 50px 0 24px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-logo .logo-text {
  color: #FFFFFF;
}

.footer-address {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 0.88rem;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  opacity: 0.5;
}

/* ---------- REZERWACJA specific ---------- */
.hero {
  padding: 40px 16px 30px;
  background: radial-gradient(circle at top, #fff8f0, #f4e1d2);
  text-align: center;
}

.hero h1 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: var(--accent-dark);
}

.hero-sub {
  font-size: 1.05rem;
  color: #6b4f3a;
  max-width: 560px;
  margin: 0 auto 16px;
}

.badge {
  display: inline-block;
  background: #2e7d32;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.hero-cta button {
  margin-top: 18px;
  background: linear-gradient(135deg, #d4a373, #b08968);
  color: white;
  border: none;
  padding: 15px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: 0.3s;
  font-weight: 600;
}

.hero-cta button:hover {
  transform: translateY(-2px);
}

.hero-trust {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #5d4037;
}

.counter-banner {
  background: var(--accent-color);
  color: white;
  padding: 12px 16px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
}

.welcome-section {
  padding: 36px 16px;
  text-align: center;
  background: white;
  border-bottom: 4px solid var(--accent-color);
}

.investor-box {
  max-width: 700px;
  margin: 16px auto 0;
  font-style: italic;
  color: #666;
  line-height: 1.6;
}

.benefits {
  padding: 40px 16px;
}

.benefits h2 {
  text-align: center;
  margin-bottom: 24px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.benefit.highlight {
  border: 2px solid var(--accent-color);
}

.steps {
  padding: 40px 16px;
  background: var(--light-beige);
}

.steps h2 {
  text-align: center;
  margin-bottom: 28px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  background: white;
  padding: 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 700;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 12px;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid var(--accent-dark);
  cursor: pointer;
  font-weight: 600;
  background: white;
  color: var(--accent-dark);
  transition: 0.25s;
}

.nav-btn.active {
  background: var(--accent-dark);
  color: white;
}

.urgency {
  text-align: center;
  color: #e63946;
  font-weight: 600;
  margin: 8px 0 16px;
  font-size: 0.95rem;
}

.shelf-container {
  display: flex;
  justify-content: center;
  padding: 24px 12px;
  background: var(--light-beige);
  border-radius: var(--radius);
  margin: 16px 0 28px;
}

.rack {
  width: 100%;
  max-width: 320px;
}

.rack-img-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.rack-img {
  width: 100%;
  height: auto;
  display: block;
}

.shelf-zone {
  position: absolute;
  left: 5%;
  width: 90%;
  height: 14%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  z-index: 10;
}

.shelf-zone:hover {
  background: rgba(255, 255, 255, 0.35);
}

.shelf-zone.selected {
  background: rgba(76, 175, 80, 0.75) !important;
  border: 2px solid #2e7d32;
}

.shelf-zone .price,
.shelf-zone .level {
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shelf-zone.selected .price,
.shelf-zone.selected .level {
  background: #fff;
  color: #1b5e20;
}

.form-box {
  max-width: 520px;
  margin: 0 auto 40px;
  padding: 28px 22px;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.form-box h3 {
  text-align: center;
  margin-bottom: 18px;
}

.form-box input,
.form-box select {
  width: 100%;
  padding: 13px 16px;
  margin: 8px 0;
  border: 1px solid var(--light-beige);
  background-color: var(--bg-color);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: var(--accent-dark);
  -webkit-appearance: none;
  transition: 0.25s;
}

.form-box input:focus,
.form-box select:focus {
  border-color: var(--accent-color);
  background: #fff;
  outline: none;
}

.form-box label {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 500;
}

#summary {
  background: #f9f9f9;
  padding: 14px;
  border-radius: 10px;
  margin: 14px 0;
  border-left: 4px solid var(--accent-color);
  font-size: 0.95rem;
}

.info-alert {
  background: #F6F1EA;
  border: 1px solid var(--light-beige);
  padding: 20px;
  margin: 20px 0;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.info-alert h4 {
  color: var(--accent-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.checkbox-container {
  margin-top: 12px;
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.checkbox-container input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: 3px;
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  background-color: var(--accent-dark);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: manipulation;
  margin-top: 12px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.error {
  border: 2px solid #e63946 !important;
  background: #fff5f5 !important;
}

#status-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
  z-index: 1001;
  text-align: center;
  min-width: 280px;
  max-width: 90%;
}

#modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
}

/* ---------- DESKTOP ---------- */
@media (min-width: 768px) {
  .header-container {
    height: 80px;
  }

  .nav-menu {
    display: flex;
  }

  .header .btn {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .benefit-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
