/* ============================================================
   SwapMart - Switzerland's Fairest Marketplace
   CSS Stylesheet - Mobile First, Responsive
   ============================================================ */

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

:root {
  /* Teal / Emerald */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Warm Amber */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --red-500: #ef4444;
  --green-500: #22c55e;

  /* Semantic */
  --primary: var(--teal-600);
  --primary-light: var(--teal-500);
  --primary-dark: var(--teal-700);
  --primary-bg: var(--teal-50);
  --accent: var(--amber-500);
  --accent-light: var(--amber-400);
  --accent-dark: var(--amber-600);
  --text: var(--gray-800);
  --text-light: var(--gray-500);
  --text-dark: var(--gray-900);
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --border: var(--gray-200);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s ease;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 68px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--primary {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: var(--white);
}

.section__title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.section--primary .section__title {
  color: var(--white);
}

.section__subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section--primary .section__subtitle {
  color: var(--teal-100);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--accent);
  color: var(--gray-900);
}

.btn--accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--primary-dark);
}

.btn--white:hover {
  background: var(--teal-50);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
}

.nav__logo-icon {
  font-size: 1.75rem;
}

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

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 999;
}

.nav__mobile.active {
  display: block;
}

.nav__mobile a {
  display: block;
  padding: 12px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.nav__mobile a:last-child {
  border-bottom: none;
}

.nav__mobile .btn {
  width: 100%;
  margin-top: 16px;
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 64px;
  background: linear-gradient(160deg, var(--teal-50) 0%, var(--white) 40%, var(--amber-50) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-100);
  color: var(--teal-800);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  color: var(--primary);
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--amber-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero__search {
  display: flex;
  max-width: 580px;
  margin: 0 auto 32px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition);
}

.hero__search:focus-within {
  border-color: var(--primary);
}

.hero__search input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
}

.hero__search input::placeholder {
  color: var(--gray-400);
}

.hero__search button {
  padding: 16px 24px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition);
}

.hero__search button:hover {
  background: var(--primary-dark);
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-light);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__trust-item strong {
  color: var(--text-dark);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--teal-800);
  color: var(--white);
  padding: 20px 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}

.stats-bar__item {
  padding: 8px;
}

.stats-bar__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber-300);
}

.stats-bar__label {
  font-size: 0.8125rem;
  color: var(--teal-200);
  margin-top: 2px;
}

/* --- Comparison Section --- */
.comparison {
  overflow-x: auto;
}

.comparison__table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison__table thead th {
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  background: var(--gray-50);
  border-bottom: 2px solid var(--border);
}

.comparison__table thead th:first-child {
  text-align: left;
}

.comparison__table thead th.comparison__ours {
  background: var(--teal-50);
  color: var(--teal-800);
}

.comparison__table tbody td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9375rem;
}

.comparison__table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
}

.comparison__table tbody td.comparison__ours {
  background: var(--teal-50);
  color: var(--teal-800);
  font-weight: 700;
}

.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

.comparison__check {
  color: var(--green-500);
  font-size: 1.25rem;
}

.comparison__cross {
  color: var(--red-500);
  font-size: 1.25rem;
}

.comparison__note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* --- Categories Grid --- */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-300);
  color: var(--text);
}

.category-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.category-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

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

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}

.step__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  max-width: 280px;
  margin: 0 auto;
}

.step__badge {
  display: inline-block;
  background: var(--amber-100);
  color: var(--amber-700);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* --- Featured Listings --- */
.listings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

.listing-card__img {
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.listing-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.listing-card__badge--swap {
  background: var(--teal-100);
  color: var(--teal-800);
}

.listing-card__badge--cash {
  background: var(--amber-100);
  color: var(--amber-700);
}

.listing-card__badge--new {
  background: var(--gray-800);
  color: var(--white);
}

.listing-card__body {
  padding: 16px;
}

.listing-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.listing-card__meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.listing-card__price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.listing-card__swap-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal-600);
}

.listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* --- Swap + Cash Explainer --- */
.swap-explainer {
  max-width: 800px;
  margin: 0 auto;
}

.swap-explainer__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.swap-explainer__side {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: border-color var(--transition);
}

.swap-explainer__side:hover {
  border-color: var(--teal-400);
}

.swap-explainer__side-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.swap-explainer__side-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.swap-explainer__side-sub {
  font-size: 0.875rem;
  color: var(--text-light);
}

.swap-explainer__side-cash {
  display: inline-block;
  background: var(--amber-100);
  color: var(--amber-700);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-top: 8px;
}

.swap-explainer__arrow {
  font-size: 2rem;
  color: var(--teal-500);
  font-weight: 800;
  flex-shrink: 0;
}

.swap-explainer__text {
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.swap-explainer__text strong {
  color: var(--text-dark);
}

/* --- Pricing --- */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-xl);
}

.pricing-card--popular {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: var(--white);
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.pricing-card__price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-card__features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-card__features li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-card__features li::before {
  content: '\2713';
  color: var(--teal-500);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Pricing Examples --- */
.pricing__examples { margin-top: 48px; text-align: center; }
.pricing__examples h3 { font-size: 1.3rem; margin-bottom: 24px; color: var(--gray-800); }
.pricing__example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.pricing__example { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 16px; text-align: center; }
.pricing__example-item { display: block; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.pricing__example-price { display: block; font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); }
.pricing__example-fee { display: block; font-size: 0.85rem; color: var(--gray-500); margin-top: 4px; }
.pricing__example-compare { margin-top: 20px; font-size: 0.9rem; color: var(--gray-600); font-style: italic; }
.pricing__example-tagline { margin-top: 12px; font-size: 1rem; font-weight: 700; color: var(--primary-dark); }

/* --- Trust Section --- */
.trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.trust-card {
  text-align: center;
  padding: 24px;
}

.trust-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.trust-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.trust-card__desc {
  font-size: 0.9375rem;
  color: var(--text-light);
  max-width: 280px;
  margin: 0 auto;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section__subtitle {
  font-size: 1.125rem;
  color: var(--teal-100);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 56px 0 24px;
}

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

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo span {
  color: var(--amber-400);
}

.footer__desc {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer__swiss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-800);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-300);
}

.footer__col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-200);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  padding: 4px 0;
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--teal-400);
}

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--gray-400);
  font-size: 1.125rem;
}

.footer__social a:hover {
  color: var(--teal-400);
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 36px 28px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  color: var(--gray-400);
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--gray-700);
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.modal__subtitle {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.modal__tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
}

.modal__tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-400);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
}

.modal__tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.modal__form {
  display: none;
}

.modal__form.active {
  display: block;
}

.modal__field {
  margin-bottom: 16px;
}

.modal__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.modal__field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  background: var(--white);
}

.modal__field input:focus {
  border-color: var(--primary);
}

.modal__field input::placeholder {
  color: var(--gray-400);
}

.modal__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.modal__divider::before,
.modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.modal__terms {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 16px;
}

.modal__terms a {
  color: var(--primary);
}

/* Language Dropdown */
.lang-dropdown { position: relative; margin-left: 12px; }
.lang-dropdown__btn {
  background: rgba(13,148,136,0.08);
  border: 1px solid rgba(13,148,136,0.25);
  color: var(--gray-600, #555);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.lang-dropdown__btn:hover { background: var(--teal-50, #f0fdfa); color: var(--primary, #0d9488); border-color: var(--primary, #0d9488); }
.lang-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: 8px;
  padding: 4px 0;
  min-width: 140px;
  z-index: 1000;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.lang-dropdown__menu.open { display: block; }
.lang-dropdown__menu a {
  display: block;
  padding: 8px 16px;
  color: var(--gray-500, #6b7280);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.lang-dropdown__menu a:hover { background: var(--teal-50, #f0fdfa); color: var(--primary, #0d9488); }
.lang-dropdown__menu a.active { color: var(--primary, #0d9488); font-weight: 600; }

/* --- Responsive --- */

/* Tablet */
@media (min-width: 640px) {
  .hero__title {
    font-size: 3.25rem;
  }

  .section__title {
    font-size: 2.25rem;
  }

  .stats-bar__inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .categories__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.75rem;
  }

  .hero__subtitle {
    font-size: 1.375rem;
  }

  .section {
    padding: 96px 0;
  }

  .nav__links {
    display: flex;
  }

  .nav__burger {
    display: none;
  }

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

  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

/* Large desktop */
@media (min-width: 1280px) {
  .hero {
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 96px;
  }

  .container {
    padding: 0 32px;
  }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .category-card,
  .listing-card,
  .pricing-card,
  .trust-card,
  .step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
  }

  .category-card.visible,
  .listing-card.visible,
  .pricing-card.visible,
  .trust-card.visible,
  .step.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
