/* =========================================
   Clothona — Shared Styles
   ========================================= */

/* Design tokens */
:root {
  --color-bg: #efe4df;
  --color-bg-card: #f9f5f3;
  --color-surface: #fff;
  --color-footer: #111;
  --color-text: #222;
  --color-text-heading: #111;
  --color-text-secondary: #444;
  --color-text-muted: #888;
  --color-text-footer: #666;
  --color-border: rgba(0, 0, 0, 0.06);
  --color-accent: #222;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --radius-card: 10px;
  --max-content: 1100px;
  --max-text: 600px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* =========================================
   Cookie Banner
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}

.cookie-content {
  max-width: 700px;
  text-align: center;
}

.cookie-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.cookie-content p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cookie-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
  min-height: 44px;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  opacity: 0.85;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-surface);
}

.cookie-btn.decline {
  background: transparent;
  border: 1px solid #aaa;
  color: var(--color-text-secondary);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.nav-logo img {
  height: 50px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.nav-links a:focus-visible,
.nav-mobile a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
  border-radius: 2px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color: var(--color-text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 14px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 20px 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-mobile a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
}

.nav-mobile.open {
  display: flex;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  line-height: 0;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 25%, rgba(0, 0, 0, 0.72) 65%, rgba(0, 0, 0, 0.85) 100%);
  padding: 64px 40px 32px;
  color: #fff;
  line-height: normal;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-overlay h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 600;
  color: #fff;
  text-wrap: balance;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-subline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 8px;
  max-width: 520px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-rating {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* =========================================
   CTA Button shared styles
   ========================================= */
.cta-btn {
  display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}

.cta-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.cta-btn img {
  height: 52px;
  display: block;
}

.telegram-badge {
  height: 52px !important;
  width: auto !important;
  border-radius: 8px;
  object-fit: cover;
  background: #229ED9;
}

/* =========================================
   How It Works
   ========================================= */
.steps-section {
  background-color: var(--color-bg);
  padding: 72px 40px;
  text-align: center;
}

.steps-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 56px;
  letter-spacing: 0.01em;
}

.steps-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 48px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--color-text-heading);
  opacity: 0.24;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* =========================================
   Main Content Section
   ========================================= */
.content-section {
  background-color: var(--color-surface);
  padding: 64px 40px;
}

.content-wrapper {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  display: block;
}

.content-text h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text-heading);
  line-height: 1.15;
  text-wrap: balance;
}

.content-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
  max-width: var(--max-text);
}

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

/* =========================================
   Page Header (for inner pages)
   ========================================= */
.page-header {
  background-color: var(--color-bg);
  padding: 48px 40px 32px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-text-heading);
}

/* =========================================
   Page Content (for inner pages)
   ========================================= */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--color-surface);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--color-text-heading);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.page-content p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.page-content li {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.page-content a {
  color: var(--color-text-secondary);
}

.page-content .last-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* =========================================
   Contact page
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}

.contact-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.contact-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  margin-top: 0;
}

.contact-card p {
  font-size: 0.97rem;
  color: #333;
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--color-text);
  font-weight: 600;
  word-break: break-all;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--color-footer);
  color: var(--color-surface);
  text-align: center;
  padding: 36px 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 22px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-surface);
  outline: none;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-social a {
  color: #aaa;
  font-size: 1.25rem;
  transition: color 0.2s;
  text-decoration: none;
  line-height: 1;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--color-surface);
  outline: none;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-footer);
}

/* =========================================
   Entrance animations
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-image {
  animation: fadeUp 0.6s ease-out both;
}

.hero-overlay {
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.steps-section {
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.content-image {
  animation: fadeUp 0.6s ease-out 0.15s both;
}

.content-text {
  animation: fadeUp 0.6s ease-out 0.25s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .hero-overlay,
  .steps-section,
  .content-image,
  .content-text {
    animation: none;
  }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .hero {
    min-height: 420px;
  }

  .hero-image {
    height: 420px;
    object-fit: cover;
    object-position: center top;
  }

  .hero-overlay {
    padding: 32px 20px 24px;
  }

  .steps-section {
    padding: 56px 20px;
  }

  .steps-list {
    flex-direction: column;
    gap: 36px;
  }

  .step-number {
    font-size: 2.5rem;
  }

  .step-desc {
    max-width: 100%;
  }

  .content-section {
    padding: 48px 20px;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-text h2 {
    font-size: 1.8rem;
  }

  .page-header {
    padding: 36px 20px 24px;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .page-content {
    padding: 32px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
