/* ========================================
   NOELI.CZ - Detska knihovnicka
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.body--no-scroll {
  overflow: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

input, textarea {
  font: inherit;
  border: none;
  outline: none;
}

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-cream: #FFF8F0;
  --color-beige: #F5E6D3;
  --color-soft-pink: #F2C4C4;
  --color-peach: #FADCC2;
  --color-apricot: #F4B69A;
  --color-soft-green: #C8DFD0;
  --color-sage: #A8C5B2;
  --color-white: #FFFFFF;
  --color-text-primary: #3D3028;
  --color-text-secondary: #6B5E52;
  --color-text-light: #8A7E74;
  --color-accent: #E8956B;
  --color-accent-hover: #D47E55;

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --font-accent: 'Fredoka', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(61, 48, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(61, 48, 40, 0.08);
  --shadow-lg: 0 8px 32px rgba(61, 48, 40, 0.12);
  --shadow-xl: 0 16px 48px rgba(61, 48, 40, 0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease-out;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1rem;
  --header-height: 72px;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.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;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(232, 149, 107, 0.3);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 149, 107, 0.4);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  background: var(--color-beige);
  color: var(--color-text-light);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.section-header__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Focus --- */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-sticky);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo-text {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.5px;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  gap: var(--space-lg);
}

.header__nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-accent);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
  position: relative;
}

.header__action-btn:hover {
  background: var(--color-beige);
}

.header__action-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header__cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header__hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.header__hamburger:hover {
  background: var(--color-beige);
}

.header__hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Mobile Menu Overlay */
.header__nav--open {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 80vw;
  background: var(--color-white);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-overlay);
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
  animation: slideInRight 0.3s ease-out;
}

.header__nav--open .header__nav-list {
  flex-direction: column;
  gap: var(--space-xl);
}

.header__nav--open .header__nav-link {
  font-size: 1.125rem;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 48, 40, 0.3);
  z-index: calc(var(--z-overlay) - 1);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.mobile-close-btn:hover {
  background: var(--color-beige);
}

.mobile-close-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (min-width: 768px) {
  .header__nav {
    display: block;
  }
  .header__hamburger {
    display: none;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-4xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content {
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
}

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

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__cta {
  font-size: 1.0625rem;
}

.hero__image {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero__img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--color-peach), var(--color-soft-pink), var(--color-soft-green));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  padding: var(--space-xl);
}

/* Floating decorations */
.hero__decoration {
  position: absolute;
  opacity: 0.6;
  pointer-events: none;
}

.hero__decoration--star {
  top: 5%;
  right: -5%;
  width: 40px;
  height: 40px;
  animation: float 4s ease-in-out infinite;
}

.hero__decoration--book {
  bottom: 15%;
  left: -8%;
  width: 50px;
  height: 50px;
  animation: float 4s ease-in-out infinite 1.2s;
}

.hero__decoration--heart {
  top: 25%;
  right: 10%;
  width: 30px;
  height: 30px;
  animation: float 4s ease-in-out infinite 2.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__decoration {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    text-align: left;
  }
  .hero__content {
    text-align: left;
    flex: 1;
  }
  .hero__subtitle {
    margin-inline: 0;
  }
  .hero__image {
    flex: 1;
  }
}

/* ========================================
   CONFIGURATOR
   ======================================== */
.configurator {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.configurator__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* Preview */
.configurator__preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.configurator__preview-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-cream);
  box-shadow: var(--shadow-md);
}

.configurator__preview-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--transition-base);
}

.configurator__preview-layer--fading {
  opacity: 0;
}

/* Placeholder for the preview */
.configurator__preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: var(--color-text-light);
  font-size: 0.9375rem;
  padding: var(--space-xl);
  text-align: center;
}

.configurator__preview-placeholder svg {
  width: 80px;
  height: 80px;
  stroke: var(--color-beige);
  fill: none;
  stroke-width: 1.5;
}

.configurator__price-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 1.125rem;
}

.configurator__price-label {
  color: var(--color-text-secondary);
}

.configurator__price-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

/* Controls */
.configurator__controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.configurator__step-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.configurator__step-number {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Panel cards */
.configurator__panels {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.configurator__panel-card {
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-cream);
  border: 3px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  scroll-snap-align: start;
  position: relative;
}

.configurator__panel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.configurator__panel-card--selected {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.configurator__panel-card--selected::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.configurator__panel-thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.configurator__panel-thumb-placeholder {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  text-align: center;
  padding: var(--space-xs);
}

.configurator__panel-name {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.configurator__panel-price {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Fabric filter */
.fabric-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.fabric-filter__btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid var(--color-beige);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.fabric-filter__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.fabric-filter__btn--active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Fabric swatches */
.configurator__fabrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--space-md);
}

.configurator__fabric-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border: 3px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.configurator__fabric-swatch:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

.configurator__fabric-swatch--selected {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.configurator__fabric-swatch--selected::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.configurator__swatch-color {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(61, 48, 40, 0.1);
}

.configurator__swatch-name {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.2;
}

/* Summary */
.configurator__summary {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.configurator__summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.configurator__summary-line strong {
  color: var(--color-text-primary);
}

.configurator__summary-line--total {
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-beige);
  font-size: 1.0625rem;
}

.configurator__summary-line--total strong {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.configurator__add-to-cart {
  margin-top: var(--space-sm);
}

@media (min-width: 768px) {
  .configurator__fabrics {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
}

@media (min-width: 1024px) {
  .configurator__layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .configurator__preview {
    flex: 0 0 45%;
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
  }
  .configurator__controls {
    flex: 1;
  }
  .configurator__panels {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
  padding: var(--space-4xl) 0;
}

.gallery__grid {
  column-count: 2;
  column-gap: var(--space-md);
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery__img {
  width: 100%;
  border-radius: var(--radius-md);
}

.gallery__img-placeholder {
  width: 100%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Lightbox */
.gallery__lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  animation: fadeIn 0.3s ease;
}

.gallery__lightbox[hidden] {
  display: none;
}

.gallery__lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-base);
}

.gallery__lightbox-close,
.gallery__lightbox-prev,
.gallery__lightbox-next {
  position: absolute;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.gallery__lightbox-close:hover,
.gallery__lightbox-prev:hover,
.gallery__lightbox-next:hover {
  background: rgba(255, 255, 255, 0.15);
}

.gallery__lightbox-close {
  top: var(--space-lg);
  right: var(--space-lg);
}

.gallery__lightbox-prev {
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
}

.gallery__lightbox-next {
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .gallery__grid { column-count: 3; }
}

@media (min-width: 1024px) {
  .gallery__grid { column-count: 4; }
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.how-it-works__step {
  text-align: center;
  max-width: 240px;
}

.how-it-works__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: var(--color-peach);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-it-works__icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-it-works__step-title {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.how-it-works__step-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.how-it-works__connector {
  width: 2px;
  height: 40px;
  background: var(--color-beige);
  border-radius: 1px;
}

@media (min-width: 768px) {
  .how-it-works__steps {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
  }
  .how-it-works__connector {
    width: 60px;
    height: 2px;
    margin-top: 40px;
    flex-shrink: 0;
  }
  .how-it-works__step {
    flex: 1;
    max-width: 220px;
  }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: var(--space-4xl) 0;
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  align-items: center;
}

.about__image {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.about__image::before {
  content: '';
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  right: calc(var(--space-md) * -1);
  bottom: calc(var(--space-md) * -1);
  background: var(--color-peach);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__image img,
.about__image-placeholder {
  border-radius: var(--radius-lg);
  width: 100%;
}

.about__image-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-soft-pink), var(--color-peach));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
}

.about__content {
  max-width: 500px;
}

.about__content .section-header__title {
  text-align: left;
}

.about__content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.about__quote {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-accent);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-accent);
  margin-top: var(--space-lg);
  line-height: 1.6;
}

@media (min-width: 1024px) {
  .about__inner {
    flex-direction: row;
  }
  .about__image {
    flex: 0 0 45%;
  }
  .about__content {
    flex: 1;
  }
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews {
  padding: var(--space-4xl) 0;
  background: var(--color-white);
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.reviews__card {
  background: var(--color-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-soft-pink);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.reviews__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.reviews__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.reviews__star {
  width: 18px;
  height: 18px;
  color: #F4B942;
}

.reviews__quote {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.reviews__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.reviews__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.reviews__avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
  flex-shrink: 0;
}

.reviews__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.reviews__meta {
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ========================================
   FAQ
   ======================================== */
.faq {
  padding: var(--space-4xl) 0;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-accent);
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  position: relative;
}

.faq__chevron::before,
.faq__chevron::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}

.faq__chevron::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: 75% 50%;
}

.faq__chevron::after {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: 25% 50%;
}

.faq__item--open .faq__chevron::before {
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: 75% 50%;
}

.faq__item--open .faq__chevron::after {
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: 25% 50%;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item--open .faq__answer {
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq__answer p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.footer__logo {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer__tagline {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__contact p {
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition-fast);
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer__social svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.8);
}

.footer__newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.footer__newsletter-input {
  flex: 1;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  color: var(--color-white);
  font-size: 0.875rem;
}

.footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer__newsletter-success {
  color: var(--color-soft-green);
  font-size: 0.9375rem;
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
  position: fixed;
  top: calc(var(--header-height) + var(--space-md));
  right: var(--space-md);
  background: var(--color-white);
  color: var(--color-text-primary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  animation: slideInToast 0.3s ease-out;
  border-left: 4px solid var(--color-sage);
}

.toast--hiding {
  animation: slideOutToast 0.3s ease-in forwards;
}

@keyframes slideInToast {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutToast {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}

