@theme {
  /*
    RondaConnect – Earthy Editorial Palette
    Inspired by: Andalusian terracotta + olive groves
    Style: Clean, editorial, grounded
  */

  /* Primary: deep evergreen */
  --color-primary: #0f6b5a;
  --color-primary-50: #eef9f5;
  --color-primary-100: #d9f1e8;
  --color-primary-200: #b8e3d4;
  --color-primary-300: #8bcfb8;
  --color-primary-400: #59b394;
  --color-primary-500: #2f9475;
  --color-primary-600: #1d7d61;
  --color-primary-700: #0f6b5a;
  --color-primary-800: #105348;
  --color-primary-900: #103f38;
  --color-primary-950: #072a26;

  /* Secondary: warm sand */
  --color-olive-50: #faf6ef;
  --color-olive-100: #f3ecdf;
  --color-olive-200: #e8dcc7;
  --color-olive-300: #d9c4a1;
  --color-olive-400: #c5a879;
  --color-olive-500: #af8951;
  --color-olive-600: #936c3b;
  --color-olive-700: #755530;
  --color-olive-800: #5d442b;
  --color-olive-900: #4b3826;
  --color-olive-950: #291d13;

  /* Accent */
  --color-accent-gold: #ff8b2b;

  /* Surfaces */
  --color-surface: #f6f3ec;
  --color-surface-2: #ede8dd;
  --color-panel: #fffdf9;
  --color-panel-soft: #f8f4ec;
  --color-border-soft: #ded6c7;

  /* Text */
  --color-text: #17211d;
  --color-text-muted: #65706a;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Merriweather", serif;
}

@layer base {
  :root {
    --rc-radius: 24px;

    --rc-shadow-sm: 0 1px 2px rgb(23 33 29 / 0.03), 0 10px 22px rgb(23 33 29 / 0.03);
    --rc-shadow-md: 0 10px 30px rgb(23 33 29 / 0.07), 0 2px 10px rgb(23 33 29 / 0.04);
    --rc-shadow-lg: 0 18px 48px rgb(23 33 29 / 0.10), 0 4px 14px rgb(23 33 29 / 0.06);
    --rc-shadow-soft: 0 24px 60px -20px rgba(16, 63, 56, 0.22);
  }

  html,
  body {
    height: 100%;
  }

  body {
    background:
      radial-gradient(circle at top left, rgb(217 241 232 / 0.9), transparent 28%),
      radial-gradient(circle at top right, rgb(255 139 43 / 0.08), transparent 24%),
      linear-gradient(180deg, #fbfaf6 0%, var(--color-surface) 28%, #f3eee4 100%);
    color: var(--color-text);
    @apply antialiased;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgb(255 255 255 / 0.45) 1px, transparent 1px),
      linear-gradient(90deg, rgb(255 255 255 / 0.45) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, black 18%, transparent 78%);
    opacity: 0.18;
  }

  ::selection {
    background: rgb(192 86 33 / 0.2);
  }
}

@layer components {

  /* Buttons */
  .rc-btn-primary {
    @apply inline-flex items-center justify-center px-6 py-3 bg-[--color-primary] text-white font-extrabold text-sm hover:bg-primary-800 transition-all;
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow-md);
  }

  .rc-btn-secondary {
    @apply inline-flex items-center justify-center px-6 py-3 bg-[--color-accent-gold] text-white font-extrabold text-sm hover:brightness-95 transition-all;
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow-md);
  }

  .rc-btn-outline {
    @apply inline-flex items-center justify-center px-6 py-3 bg-white/88 backdrop-blur-sm border text-[--color-text] font-bold text-sm hover:bg-white transition;
    border-color: color-mix(in srgb, var(--color-primary) 12%, white);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow-sm);
  }

  /* Cards */
  .rc-card {
    @apply overflow-hidden;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(255 253 249 / 0.98));
    border: 1px solid color-mix(in srgb, var(--color-primary) 10%, white);
    border-radius: var(--rc-radius);
    box-shadow: var(--rc-shadow-sm);
  }

  .rc-card:hover {
    box-shadow: var(--rc-shadow-lg);
  }

.rc-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease;
}

  .rc-reveal[data-revealed="true"] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  /* Badges */
  .rc-badge {
    @apply inline-flex items-center px-2.5 py-1 text-[10px] font-black uppercase tracking-[0.18em];
    border-radius: 999px;
    backdrop-filter: blur(10px);
  }

  .rc-badge-offer {
    @apply bg-olive-700 text-white;
  }

  .rc-badge-request {
    @apply bg-blue-600 text-white;
  }

  .rc-badge-demo {
    @apply bg-white/80 text-gray-500 border border-white/60;
  }

  /* Inputs */
  .rc-input {
    @apply w-full bg-transparent border-none focus:ring-0 text-[--color-text] placeholder-olive-400/60 text-base px-4;
  }

  /* Section headers */
  .rc-section-title {
    @apply text-3xl sm:text-4xl font-bold text-[--color-text];
    font-family: var(--font-display);
    letter-spacing: -0.03em;
  }

  .rc-section-subtitle {
    @apply text-[--color-text-muted] mt-2 font-medium text-base;
  }

  /* Material Symbols */
  .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  }
}

/* Hide scrollbar utility */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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