/* ============================================================
   Caribe.VIP — Design Tokens & Styles
   Art Direction: Luxury Caribbean — Dark & Gold
   ============================================================ */

/* --- Fonts --- */
/* Cormorant Garamond = luxury serif display
   Switzer = clean modern sans body */

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* --- Spacing --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Fonts --- */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.15);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.2);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.35);
  --shadow-gold: 0 0 40px oklch(0.75 0.12 85 / 0.15);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* === DARK LUXURY PALETTE (default — single-theme page) === */
:root {
  --color-bg:           #0d0d0d;
  --color-surface:      #141414;
  --color-surface-2:    #1a1a1a;
  --color-surface-3:    #222222;
  --color-border:       #2a2a2a;
  --color-border-gold:  rgba(196, 167, 103, 0.25);

  --color-text:         #f2efe8;
  --color-text-muted:   #a09d94;
  --color-text-faint:   #5e5c56;

  --color-gold:         #c4a767;
  --color-gold-light:   #dbc68e;
  --color-gold-dark:    #8b7640;

  --color-teal:         #2a9d8f;
  --color-teal-dark:    #1a6b62;
}

/* ============================================================
   LAYOUT
   ============================================================ */

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

.page-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-8) var(--space-6);
  overflow: hidden;
  text-align: center;
}

/* Background image with overlay */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0.05 0 0 / 0.55) 0%,
    oklch(0.05 0 0 / 0.7) 40%,
    oklch(0.05 0 0 / 0.88) 70%,
    oklch(0.05 0 0 / 0.97) 100%
  );
}

/* Content */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

/* Logo */
.hero__logo {
  width: clamp(120px, 18vw, 200px);
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 4px 24px oklch(0 0 0 / 0.5));
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-gold);
  border-radius: var(--radius-full);
  background: oklch(from var(--color-gold) l c h / 0.08);
  color: var(--color-gold-light);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Heading */
.hero__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.hero__heading em {
  font-style: italic;
  color: var(--color-gold);
}

/* Subheading */
.hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================================
   OPT-IN FORM
   ============================================================ */

.opt-in {
  width: 100%;
  max-width: 480px;
  margin-top: var(--space-4);
}

.opt-in__form {
  display: flex;
  gap: var(--space-3);
  width: 100%;
}

.opt-in__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  min-width: 0;
}

.opt-in__input::placeholder {
  color: var(--color-text-faint);
}

.opt-in__input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px oklch(from var(--color-gold) l c h / 0.15);
}

.opt-in__btn {
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              background var(--transition-interactive);
}

.opt-in__btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold), var(--shadow-md);
}

.opt-in__btn:active {
  transform: translateY(0);
}

.opt-in__note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

/* Success state */
.opt-in__success {
  display: none;
  text-align: center;
  padding: var(--space-4);
}

.opt-in__success.is-visible {
  display: block;
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.opt-in__success-icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.opt-in__success-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold-light);
  font-weight: 400;
}

.opt-in__success-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   VALUE PROPOSITIONS
   ============================================================ */

.features {
  position: relative;
  z-index: 1;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
  background: var(--color-bg);
}

.features__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.features__label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.features__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.feature-card:hover {
  border-color: var(--color-border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: oklch(from var(--color-gold) l c h / 0.1);
  color: var(--color-gold);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   CATEGORIES / WHAT'S INCLUDED
   ============================================================ */

.categories {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
  background: var(--color-surface);
}

.categories__inner {
  max-width: var(--content-default);
  margin: 0 auto;
  text-align: center;
}

.categories__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.categories__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.categories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: border-color var(--transition-interactive),
              color var(--transition-interactive);
}

.category-tag:hover {
  border-color: var(--color-border-gold);
  color: var(--color-gold-light);
}

.category-tag__icon {
  font-size: 1.15em;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer__inner {
  max-width: var(--content-default);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-gold);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__attribution {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__attribution a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__attribution a:hover {
  color: var(--color-gold);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

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

@media (max-width: 768px) {
  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .opt-in__form {
    flex-direction: column;
  }

  .opt-in__btn {
    width: 100%;
    text-align: center;
    padding: var(--space-4) var(--space-6);
  }

  .hero__heading {
    font-size: var(--text-2xl);
  }

  .features__title,
  .categories__title {
    font-size: var(--text-xl);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-6) var(--space-4);
  }

  .categories__list {
    gap: var(--space-2);
  }

  .category-tag {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }
}
