/* ============================================
   Weekend Retreat - Coming Soon Page
   Design Tokens + Full Styling
   ============================================ */

/* --- Design Tokens (Primitive) --- */
:root {
  /* Colors - Primitive */
  --color-cream: #F5F1E8;
  --color-heritage-gold: #A68B5B;
  --color-charcoal: #2C2C2C;
  --color-stone: #5A5A5A;
  --color-white: #FFFFFF;

  /* Colors - Semantic */
  --color-surface-base: var(--color-cream);
  --color-text-primary: var(--color-charcoal);
  --color-text-secondary: var(--color-stone);
  --color-accent: var(--color-heritage-gold);
  --color-overlay-bg: rgba(245, 241, 232, 0.85);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing - 8px base */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(44, 44, 44, 0.08);
  --shadow-card-hover: 0 8px 48px rgba(44, 44, 44, 0.12);

  /* Motion */
  --duration-subtle: 300ms;
  --duration-standard: 600ms;
  --duration-dramatic: 1200ms;
  --ease-elegant: cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --ease-reveal: cubic-bezier(0.0, 0.0, 0.2, 1.0);

  /* Border Radius */
  --radius-card: 12px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-surface-base);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Background Illustration Layer --- */
.bg-illustration {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--color-surface-base);
  /* Subtle radial gradient that mimics a vintage parchment */
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(166, 139, 91, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(166, 139, 91, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(166, 139, 91, 0.02) 0%, transparent 80%);
}

/* --- Background Watermark Images --- */
.bg-image {
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.9;
  pointer-events: none;
  /* Fade edges into cream background - horizontal and vertical */
  mask-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 10%,
      rgba(0, 0, 0, 0.8) 90%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.85) 25%,
      rgba(0, 0, 0, 0.85) 75%,
      rgba(0, 0, 0, 0.5) 100%
    );
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 10%,
      rgba(0, 0, 0, 0.8) 90%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.85) 25%,
      rgba(0, 0, 0, 0.85) 75%,
      rgba(0, 0, 0, 0.5) 100%
    );
  -webkit-mask-composite: source-in;
}

.bg-mountains {
  top: 0;
  left: 0;
  right: 0;
  max-height: 50%;
  object-position: top center;
  /* Fade out more at bottom edge to avoid overlap with content */
  mask-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 10%,
      rgba(0, 0, 0, 0.8) 90%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.85) 20%,
      rgba(0, 0, 0, 0.7) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 10%,
      rgba(0, 0, 0, 0.8) 90%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.85) 20%,
      rgba(0, 0, 0, 0.7) 80%,
      rgba(0, 0, 0, 0) 100%
    );
  -webkit-mask-composite: source-in;
}

.bg-train {
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 50%;
  object-position: bottom center;
  /* Fade out more at top edge to avoid overlap with content */
  mask-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 10%,
      rgba(0, 0, 0, 0.8) 90%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.7) 20%,
      rgba(0, 0, 0, 0.85) 80%,
      rgba(0, 0, 0, 0.6) 100%
    );
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.8) 10%,
      rgba(0, 0, 0, 0.8) 90%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.7) 20%,
      rgba(0, 0, 0, 0.85) 80%,
      rgba(0, 0, 0, 0.6) 100%
    );
  -webkit-mask-composite: source-in;
}

/* --- Page Layout --- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* --- Hero Section --- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  padding-top: env(safe-area-inset-top, var(--space-3));
  padding-bottom: var(--space-6);
}

/* --- Content Card (Centerpiece) --- */
.content-card {
  background: var(--color-overlay-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(166, 139, 91, 0.15);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-6) var(--space-4);
  max-width: 600px;
  width: 100%;
  text-align: center;
  animation: cardReveal var(--duration-dramatic) var(--ease-reveal) both;
}

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

/* --- Logo --- */
.hero-logo {
  margin-bottom: var(--space-4);
  animation: fadeUp 800ms var(--ease-reveal) 400ms both;
}

.hero-logo img {
  width: clamp(160px, 30vw, 260px);
  height: auto;
  margin: 0 auto;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent),
    transparent
  );
  margin: var(--space-3) auto;
  animation: fadeIn var(--duration-standard) var(--ease-reveal) 600ms both;
}

/* --- Coming Soon --- */
.coming-soon {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 48px);
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-2);
  animation: fadeUp 600ms var(--ease-reveal) 800ms both;
}

/* --- Tagline --- */
.tagline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--color-text-primary);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
  animation: fadeUp 600ms var(--ease-reveal) 1000ms both;
}

/* --- Description --- */
.description {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--space-4);
  animation: fadeUp 600ms var(--ease-reveal) 1200ms both;
}

/* --- Contact Section --- */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  animation: fadeUp 400ms var(--ease-reveal) 1500ms both;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-link,
.contact-text {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
}

.contact-link {
  position: relative;
  transition: color var(--duration-subtle) var(--ease-elegant);
  padding: 4px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--duration-subtle) var(--ease-elegant);
}

.contact-link:hover {
  color: var(--color-accent);
}

.contact-link:hover::after {
  width: 100%;
}

.contact-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --- Social Links --- */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  animation: fadeUp 400ms var(--ease-reveal) 1700ms both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text-secondary);
  opacity: 0.6;
  transition:
    color var(--duration-subtle) var(--ease-elegant),
    opacity var(--duration-subtle) var(--ease-elegant),
    transform var(--duration-subtle) var(--ease-elegant);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  color: var(--color-accent);
  opacity: 1;
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
  opacity: 1;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: var(--space-3);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
}

.site-footer p {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--color-text-secondary);
  opacity: 0.6;
  letter-spacing: 0.02em;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Mobile background adjustments --- */
@media (max-width: 767px) {
  .bg-mountains {
    max-height: 45%;
  }

  .bg-train {
    max-height: 45%;
  }
}

/* --- Responsive: Tablet (768px+) --- */
@media (min-width: 768px) {
  .hero {
    padding: var(--space-6);
  }

  .content-card {
    padding: var(--space-8) var(--space-6);
  }

  .contact-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
  }

  .divider {
    width: 80px;
    margin: var(--space-4) auto;
  }
}

/* --- Responsive: Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .content-card {
    padding: var(--space-10) var(--space-8);
    max-width: 660px;
  }

  .hero-logo img {
    width: 240px;
  }
}

/* --- Responsive: Large Desktop (1440px+) --- */
@media (min-width: 1440px) {
  .content-card {
    max-width: 720px;
  }
}

/* --- High Contrast Mode --- */
@media (forced-colors: active) {
  .content-card {
    border: 2px solid CanvasText;
  }

  .divider {
    background: CanvasText;
  }
}
