/* ========================================================
   Home page — local tokens
   (extends the tokens already defined in booking_base.css)
   ======================================================== */

:root {
  /* Polish-swatch accent family — stays inside the warm brand
     palette, used only for the hero's decorative fan of dots. */
  --swatch-1: var(--color-primary);
  --swatch-2: #e8c3b5;
  --swatch-3: #c98f8a;
  --swatch-4: var(--color-primary-dark);
  --swatch-5: #f0d9c9;

  --home-max-width: 1080px;
}

/* ========================================================
   Reveal-on-scroll (progressive enhancement)
   ======================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .float,
  .shine::after {
    animation: none !important;
  }
}

/* ========================================================
   Hero
   ======================================================== */

.home-hero {
  position: relative;
  overflow: hidden;

  padding: var(--space-9) var(--space-5) var(--space-8);
}

.home-hero-blob {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);

  width: 620px;
  height: 620px;

  background: radial-gradient(
    circle,
    var(--color-primary-soft) 0%,
    rgba(243, 228, 220, 0) 70%
  );
  filter: blur(4px);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--home-max-width);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px var(--space-4);
  margin-bottom: var(--space-5);
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.home-hero h1 {
  margin: 0 auto;
  max-width: 640px;
  color: var(--color-text-dark);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.35;
}

.home-hero h1 em {
  font-style: normal;
  color: var(--color-primary-dark);
}

.home-hero-subtitle {
  max-width: 480px;
  margin: var(--space-4) auto 0;

  color: var(--color-text-muted);

  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);

  margin-top: var(--space-7);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);

  min-height: 56px;
  padding: 0 var(--space-8);

  color: #fff;
  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );

  border: none;
  border-radius: var(--radius-large);

  font-size: 16px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: var(--shadow-button);

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary svg {
  transition: transform var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(185, 143, 121, 0.32);
}

.btn-primary:hover svg {
  transform: translateX(-3px);
}

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

.hero-microcopy {
  color: var(--color-text-muted);
  font-size: 12px;
}

/* Swatch fan — signature decorative element */

.swatch-fan {
  display: flex;
  justify-content: center;
  gap: 14px;

  margin-top: var(--space-9);
}

.swatch-dot {
  position: relative;
  overflow: hidden;

  width: 46px;
  height: 46px;

  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(90, 74, 66, 0.14);
}

.swatch-dot::after {
  content: "";
  position: absolute;
  top: 15%;
  right: 20%;

  width: 40%;
  height: 22%;

  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  filter: blur(1px);
}

.swatch-dot:nth-child(1) {
  background: var(--swatch-5);
}
.swatch-dot:nth-child(2) {
  background: var(--swatch-2);
}
.swatch-dot:nth-child(3) {
  background: var(--swatch-1);
  margin-top: -10px;
  width: 54px;
  height: 54px;
}
.swatch-dot:nth-child(4) {
  background: var(--swatch-4);
}
.swatch-dot:nth-child(5) {
  background: var(--swatch-3);
}

.swatch-dot.float {
  animation: swatch-float 4.5s ease-in-out infinite;
}
.swatch-dot:nth-child(2).float {
  animation-delay: 0.3s;
}
.swatch-dot:nth-child(3).float {
  animation-delay: 0.6s;
}
.swatch-dot:nth-child(4).float {
  animation-delay: 0.9s;
}
.swatch-dot:nth-child(5).float {
  animation-delay: 1.2s;
}

@keyframes swatch-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ========================================================
   Services
   ======================================================== */

.section {
  padding: var(--space-8) var(--space-5);
}

.section-inner {
  max-width: var(--home-max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 480px;
  margin: 0 auto var(--space-7);
}

.section-header h2 {
  margin: 0;
  color: var(--color-text-dark);
  font-size: 26px;
  font-weight: 700;
}

.section-header p {
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.service-card {
  position: relative;
  overflow: hidden;

  padding: var(--space-6);

  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-card);

  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(90, 74, 66, 0.12);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 900ms ease;
  pointer-events: none;
}

.service-card:hover::before {
  transform: translateX(120%);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;
  margin-bottom: var(--space-5);

  color: var(--color-primary-dark);
  background: var(--color-primary-soft);

  border-radius: var(--radius-medium);
}

.service-card h3 {
  margin: 0 0 var(--space-2);
  color: var(--color-text-dark);
  font-size: 17px;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ========================================================
   How it works
   ======================================================== */

.steps-section {
  background: var(--color-surface-soft);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

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

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.step-index {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  color: var(--color-primary-dark);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;

  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 4px;
  color: var(--color-text-dark);
  font-size: 15.5px;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13.5px;
  line-height: 1.75;
}

/* ========================================================
   Mid-page CTA band
   ======================================================== */

.cta-band {
  position: relative;
  overflow: hidden;

  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);

  text-align: center;

  background: linear-gradient(
    135deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  border-radius: var(--radius-large);

  box-shadow: 0 20px 45px rgba(90, 74, 66, 0.2);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-band::before {
  width: 220px;
  height: 220px;
  top: -100px;
  left: -60px;
}

.cta-band::after {
  width: 180px;
  height: 180px;
  right: -60px;
  bottom: -90px;
}

.cta-band h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.cta-band p {
  position: relative;
  z-index: 1;
  margin: var(--space-3) 0 var(--space-6);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.btn-on-dark {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  gap: var(--space-2);

  min-height: 52px;
  padding: 0 var(--space-7);

  color: var(--color-primary-dark);
  background: #fff;

  border-radius: var(--radius-medium);

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  transition: transform var(--transition-fast);
}

.btn-on-dark:hover {
  transform: translateY(-2px);
}

/* ========================================================
   Social / contact section
   ======================================================== */

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

.social-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);

  padding: var(--space-5);

  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-large);

  text-decoration: none;

  box-shadow: var(--shadow-card);

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.social-icon {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  border-radius: 50%;
  color: #fff;
}

.social-icon.instagram {
  background: linear-gradient(135deg, #f0a06b, #c9536f, #7d4bab);
}
.social-icon.telegram {
  background: #4ea3d1;
}
.social-icon.whatsapp {
  background: #5fb87a;
}

.social-copy h3 {
  margin: 0 0 2px;
  color: var(--color-text-dark);
  font-size: 14.5px;
  font-weight: 700;
}

.social-copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12.5px;
}

/* ========================================================
Responsive
======================================================== */

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

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .home-hero h1 {
    font-size: 46px;
  }

  .home-hero-subtitle {
    font-size: 17px;
  }

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

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

  .cta-band h2 {
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  .home-hero h1 {
    font-size: 29px;
  }

  .swatch-dot {
    width: 36px;
    height: 36px;
  }

  .swatch-dot:nth-child(3) {
    width: 42px;
    height: 42px;
  }
}

/* Slider section ============================================================ */

/* =========================================
   PORTFOLIO SECTION
========================================= */

.portfolio {
  position: relative;
  overflow: hidden;
  background: #f7f3f0;
  color: #272321;
}

/* =========================================
   HEADER
========================================= */

.portfolio__header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  text-align: center;
  max-width: 1280px;
  margin: 20px auto 60px;
}

.portfolio__eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  text-transform: uppercase;
  color: #9c8077;
}

.portfolio__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.portfolio__title span {
  font-weight: 400;
  color: #9c8077;
}

/* =========================================
   SLIDER
========================================= */

.portfolio-slider {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}

.portfolio-swiper {
  overflow: visible;
}

.portfolio-slide {
  width: 100%;
  max-width: 300px;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* =========================================
   CARD
========================================= */

.portfolio-card {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
}

/* =========================================
   IMAGE
========================================= */

.portfolio-card__image {
  position: relative;
  aspect-ratio: 0.78;
  overflow: hidden;
  background: #e8e1dd;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*
    Image zoom on hover
*/

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.045);
}

/* =========================================
   NUMBER
========================================= */

.portfolio-card__number {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  font-size: 11px;
  color: #3d3430;
  line-height: 1;
}

/* =========================================
   CARD INFO
========================================= */

.portfolio-card__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 2px 0;
  text-align: center;
}

.portfolio-card__info h3 {
  margin: 0 0 7px;
  font-size: 22px;
  font-weight: 500;
}

.portfolio-card__info span {
  font-size: 16px;
  color: #91847f;
}

/* =========================================
   CONTROLS
========================================= */

.portfolio-controls {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 28px;

  margin-top: 55px;
}

.portfolio-arrow {
  width: 52px;

  height: 52px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid #d5cbc6;

  border-radius: 50%;

  background: transparent;

  color: #3d3430;

  font-size: 18px;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.portfolio-arrow:hover {
  background: #3d3430;

  color: white;

  transform: translateY(-2px);
}

/* =========================================
   COUNTER
========================================= */

.portfolio-counter {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}

.portfolio-counter__line {
  width: 40px;
  height: 1px;
  background: #cfc4bf;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {
  .portfolio {
    padding: 80px 20px;
  }

  .portfolio__header {
    display: block;
    margin-bottom: 45px;
  }

  .portfolio__intro {
    margin-top: 25px;
  }

  .portfolio-slide {
    width: 82vw;
  }

  .portfolio-card__image {
    aspect-ratio: 0.72;
  }

  .portfolio-controls {
    margin-top: 40px;
  }
}
