/* ==========================================================================
   CanBee.pl — arkusz stylów
   Kolory zmieniasz w jednym miejscu: sekcja :root poniżej.
   ========================================================================== */

:root {
  --accent:        #C08A2E;
  --accent-dark:   #8A6321;
  --accent-light:  #F7F1E6;
  --accent-soft:   #EBDABC;

  --bg:            #FDF8EF;
  --ink:           #2B2013;
  --cream:         #F4E9CF;
  --muted:         #6B5D45;
  --muted-2:       #8C7A54;
  --border:        #EFE3C4;
  --border-input:  #E4D6B8;
  --error:         #DC2626;
  --success:       #15803D;

  --radius:        20px;
  --radius-sm:     10px;
  --shadow-card:   0 20px 50px -20px rgba(43, 32, 19, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; }

input::placeholder,
textarea::placeholder { color: #B7A98A; }

select { appearance: none; -webkit-appearance: none; }

a { color: var(--accent-dark); }

.script    { font-family: 'Caveat', cursive; }
.brand-bee { font-family: 'Yellowtail', cursive; }

/* Ukrywa element wizualnie, ale zostawia go czytnikom ekranu */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden { display: none !important; }


/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 110px 24px 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
              rgba(20, 15, 8, 0.55) 0%,
              rgba(20, 15, 8, 0.78) 100%);
  z-index: 1;
}

.hero-logo {
  position: absolute;
  top: 32px; left: 0; right: 0;
  text-align: center;
  z-index: 2;
  font-size: 32px;
  line-height: 1;
}

.hero-logo .logo-can {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero-logo .logo-bee {
  font-size: 1.3em;
  color: var(--accent);
  margin-left: 2px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--accent-light);
  margin-bottom: 6px;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FBF3E2;
  margin: 0 0 20px;
  line-height: 1.15;
  text-wrap: pretty;
}

.hero h1 .accent {
  color: var(--accent);
  font-weight: 700;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(251, 243, 226, 0.82);
  max-width: 520px;
  margin: 0 auto 32px;
  text-wrap: pretty;
}


/* ==========================================================================
   PRZYCISKI
   ========================================================================== */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-hero {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 16px 36px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-map {
  font-size: 14.5px;
  padding: 13px 24px;
  white-space: nowrap;
}

.btn-pay {
  font-size: 18px;
  padding: 18px 44px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


/* ==========================================================================
   SEKCJE OGÓLNE
   ========================================================================== */

.section {
  padding: 96px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-narrow {
  padding: 0 24px 32px;
  max-width: 900px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 6px;
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}


/* ==========================================================================
   O PRODUKCIE
   ========================================================================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.feature {
  text-align: center;
  padding: 0 12px;
}

.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
}

.feature-icon.hex  { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.feature-icon.drop { border-radius: 50% 50% 50% 0; transform: rotate(45deg); }
.feature-icon.diam { transform: rotate(45deg); }

.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}


/* ==========================================================================
   O NAS
   ========================================================================== */

.about {
  padding: 0 24px 96px;
  max-width: 1120px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 35% 25%;
  display: block;
}

.about h2 { margin-bottom: 18px; font-size: clamp(26px, 3.2vw, 36px); }

.about p {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.about-signature {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--ink);
  margin-top: 24px;
}


/* ==========================================================================
   KARTY (konfigurator, formularz)
   ========================================================================== */

.card {
  background: #FFFFFF;
  border: 1.5px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}

.card-head {
  text-align: center;
  margin-bottom: 28px;
}

.card-head .eyebrow { margin-bottom: 4px; }

.card-head h2 { font-size: clamp(24px, 3vw, 32px); }


/* ==========================================================================
   KONFIGURATOR
   ========================================================================== */

.config-body {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.gallery {
  width: 280px;
  flex-shrink: 0;
  margin: 0 auto;
}

.gallery-frame {
  position: relative;
  width: 280px; height: 360px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  overflow: hidden;
}

.gallery-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-frame img.is-active { opacity: 1; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-input);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}

.gallery-nav.prev { left: 8px; }
.gallery-nav.next { right: 8px; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--accent-soft);
  transition: background 0.25s ease;
}

.gallery-dot.is-active { background: var(--accent); }

.config-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.config-info h3 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}

.config-info > div > p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 14px;
  text-wrap: pretty;
}

.spec-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.spec-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}


/* --- Wybór wariantów i liczby sztuk --- */

.variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.variant {
  display: flex;
  align-items: center;
  gap: 14px;
}

.variant-thumb {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.variant-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.variant-meta { flex: 1; }

.variant-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.variant-price {
  font-size: 12.5px;
  color: var(--muted-2);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stepper button {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border-input);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper output {
  min-width: 22px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink);
}


/* --- Podsumowanie w konfiguratorze --- */

.summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.4s ease, opacity 0.35s ease,
              padding-top 0.4s ease, border-color 0.4s ease;
}

.summary.is-open {
  max-height: 160px;
  opacity: 1;
  padding-top: 14px;
  border-top-color: var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}

.summary-row.total {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.delivery-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}

/* Komunikat po osiągnięciu limitu 10 świec */
.limit-note {
  font-size: 13px;
  color: var(--ink);
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

.limit-note a {
  color: var(--accent-dark);
  font-weight: 600;
}


/* ==========================================================================
   FORMULARZ
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-input);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #FFFFFF;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
}

.field input[readonly] {
  background: var(--bg);
}

.field.has-error input { border-color: var(--error); }

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  display: none;
}

.field.has-error .field-error { display: block; }


/* --- Paczkomat --- */

.parcel {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.parcel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.parcel-hint {
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.parcel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.parcel-row .field {
  flex: 1;
  min-width: 220px;
}

.parcel-row .btn-map { margin-top: 22px; }


/* ==========================================================================
   KOMUNIKATY
   ========================================================================== */

.alert {
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
}

.alert-success {
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  color: var(--ink);
}

.alert-error {
  background: #FEF2F2;
  border: 1.5px solid var(--error);
  color: #7F1D1D;
}

.alert-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF;
  font-size: 13px;
  text-align: center;
  line-height: 22px;
  flex-shrink: 0;
}

.alert-error .alert-icon { background: var(--error); }


/* ==========================================================================
   MODAL PACZKOMATU
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 8, 0.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-head h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-input);
  background: #FFFFFF;
  color: var(--muted-2);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

#geowidgetHost inpost-geowidget {
  width: 100%;
  height: 500px;
  display: block;
}

.modal-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted-2);
}


/* ==========================================================================
   PŁATNOŚĆ
   ========================================================================== */

.pay {
  padding: 0 24px 96px;
  max-width: 900px;
  margin: 0 auto;
}

.pay-head {
  text-align: center;
  margin-bottom: 20px;
}

.pay-head .eyebrow { margin-bottom: 4px; }
.pay-head h2 { font-size: clamp(24px, 3vw, 32px); }

.pay-box {
  background: var(--ink);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.pay-info { color: var(--cream); }

.pay-line {
  font-size: 15.5px;
  color: rgba(244, 233, 207, 0.75);
  margin-bottom: 6px;
}

.pay-total {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
}

.pay-total span { color: var(--accent); }

.pay-sub {
  font-size: 12.5px;
  color: rgba(244, 233, 207, 0.6);
  margin-top: 4px;
}

.pay-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.pay-terms {
  font-size: 12px;
  color: rgba(244, 233, 207, 0.6);
  max-width: 280px;
  text-align: right;
}

.pay-terms a { color: var(--accent); }

@media (max-width: 620px) {
  .pay-actions { align-items: stretch; width: 100%; }
  .pay-terms   { text-align: center; max-width: none; }
  .btn-pay     { width: 100%; }
}


/* ==========================================================================
   STOPKA
   ========================================================================== */

.footer {
  padding: 28px 24px 96px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-2);
}

.footer a {
  color: var(--accent-dark);
  text-decoration: underline;
}


/* ==========================================================================
   PODSTRONY (regulamin, polityka prywatności)
   ========================================================================== */

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.doc-back {
  display: inline-block;
  font-size: 14px;
  margin-bottom: 28px;
  text-decoration: none;
}

.doc-back:hover { text-decoration: underline; }

.doc h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--ink);
}

.doc-updated {
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 20px;
  margin: 36px 0 12px;
}

.doc h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--ink);
}

.doc p,
.doc li {
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}

.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* Miejsce na dane firmy do uzupełnienia */
.fill-in {
  background: #FEF9C3;
  border-bottom: 1.5px dashed #CA8A04;
  padding: 1px 6px;
  border-radius: 3px;
  color: #713F12;
  font-weight: 500;
}

.doc-notice {
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 36px;
}
