/* =============================================================================
 * Pulirio Čistiareň — landing page styles
 *
 * Brand tokens prevzaté z aplikácie (src/styles/globals.css):
 *   --background-lime: rgb(196, 217, 91)
 *   --laundrybox-red: #da291c
 *   gradient: 20,43,85 → 31,98,177 → 55,200,225
 *   font: Fira Sans
 * ========================================================================== */

:root {
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.85);
  --color-text-dark: #142b55;
  --color-bg-dark: #0c1e3d;
  --color-lime: rgb(196, 217, 91);
  --color-lime-20: rgba(196, 217, 91, 0.2);
  --color-red: #da291c;
  --color-card: rgba(255, 255, 255, 0.08);
  --color-card-border: rgba(255, 255, 255, 0.18);

  --gradient-hero: linear-gradient(
    135deg,
    rgba(20, 43, 85, 1) 0%,
    rgba(31, 98, 177, 1) 46%,
    rgba(55, 200, 225, 1) 100%
  );

  --radius-pill: 999px;
  --radius-card: 16px;

  --text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.15);

  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

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

/* =============================================================================
 * Header
 * ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 30, 61, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.btn) {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 15px;
}

.site-nav a:not(.btn):hover {
  color: #fff;
  text-decoration: none;
}

.site-nav .btn {
  margin-left: 8px;
}

.site-nav a.btn--primary,
.site-nav a.btn--primary:hover {
  color: #000;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
}

/* =============================================================================
 * Buttons (pill style — matching app DESIGN_SYSTEM §7)
 * ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none !important;
  line-height: 1;
}

.btn--primary {
  background: var(--color-lime);
  color: #000;
}

.btn--primary:hover {
  background: #fff;
  color: #000;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline:hover {
  background: #fff;
  color: var(--color-text-dark);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* =============================================================================
 * Hero
 * ========================================================================== */
.hero {
  background: var(--gradient-hero);
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(55, 200, 225, 0.35), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-lime-20);
  color: var(--color-lime);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  text-shadow: var(--text-shadow);
}

.hero__title .accent {
  color: var(--color-lime);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  margin: 0 0 36px;
  text-shadow: var(--text-shadow);
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 14px;
}

.hero__meta span::before {
  content: "✓";
  color: var(--color-lime);
  font-weight: 700;
  margin-right: 8px;
}

/* =============================================================================
 * Sections (shared)
 * ========================================================================== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: #0c1e3d;
}

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 16px;
}

.section__lead {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* =============================================================================
 * Steps (How it works)
 * ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--color-lime);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-lime);
  color: #000;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.step__body {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* =============================================================================
 * Features
 * ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 32px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-lime-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.feature__body {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* =============================================================================
 * Locations
 * ========================================================================== */
.locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.location {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.location:hover {
  transform: translateY(-4px);
  border-color: var(--color-lime);
}

.location__pin {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-lime-20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 18px;
}

.location__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.location__address {
  color: var(--color-text-muted);
  font-style: normal;
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.55;
}

.location__meta {
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.location__meta span::before {
  content: "✓";
  color: var(--color-lime);
  font-weight: 700;
  margin-right: 6px;
}

.location__map {
  font-weight: 600;
  font-size: 0.95rem;
}

/* =============================================================================
 * Booking iframe
 * ========================================================================== */
.booking {
  background: var(--gradient-hero);
  padding: 80px 0;
}

.booking__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.booking__frame-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 8px;
  box-shadow: var(--shadow-card);
}

.booking__frame {
  width: 100%;
  border: 0;
  display: block;
  border-radius: calc(var(--radius-card) - 4px);
  min-height: 800px;
  background: transparent;
  transition: height 0.2s ease;
}

.booking__loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.booking__loading .spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--color-lime);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.booking__fallback {
  text-align: center;
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* =============================================================================
 * FAQ
 * ========================================================================== */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--color-lime);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  font-size: 0.97rem;
}

.faq__body p {
  margin: 0 0 10px;
}

.faq__body p:last-child {
  margin-bottom: 0;
}

/* =============================================================================
 * Footer
 * ========================================================================== */
.site-footer {
  background: #061227;
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 16px;
}

.site-footer p,
.site-footer li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__operator {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer__operator-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-right: 4px;
}

.site-footer__operator-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer__bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

/* =============================================================================
 * Responsive
 * ========================================================================== */
@media (max-width: 900px) {
  .steps,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 30, 61, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .btn {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding: 64px 0 80px;
  }

  .section {
    padding: 60px 0;
  }

  .steps,
  .features {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
 * Odstupenie od zmluvy
 * ========================================================================== */
.withdrawal-page {
  background: var(--gradient-hero);
  padding: 72px 0 86px;
}

.withdrawal {
  max-width: 760px;
  margin: 0 auto;
}

.withdrawal__head {
  text-align: center;
  margin-bottom: 34px;
}

.withdrawal__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0 0 12px;
  line-height: 1.1;
}

.withdrawal__lead {
  margin: 0;
  color: var(--color-text-muted);
}

.withdrawal__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 28px;
}

.withdrawal__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: #fff;
}

.withdrawal__form input,
.withdrawal__form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 13px 14px;
  font: 16px "Fira Sans", Arial, sans-serif;
  color: var(--color-text-dark);
  background: #fff;
}

.withdrawal__form textarea,
.withdrawal__check,
.withdrawal__submit,
.withdrawal__message {
  grid-column: 1 / -1;
}

.withdrawal__check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px !important;
  color: var(--color-text-muted) !important;
  line-height: 1.5;
}

.withdrawal__check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-top: 3px;
}

.withdrawal__submit {
  justify-self: start;
}

.withdrawal__message {
  margin-bottom: 22px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 700;
}

.withdrawal__message--success {
  background: rgba(196, 217, 91, 0.24);
  color: var(--color-lime);
}

.withdrawal__message--error {
  background: rgba(218, 41, 28, 0.18);
  color: #fff;
}

.withdrawal__hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .withdrawal__form {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
