/* ====================================================
   immersive.cafe — WIP Landing Page
   Self-hosted fonts · No external dependencies
   ==================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Lora';
  src: url('../Assets/Fonts/Lora-400.woff2') format('woff2');
  font-weight: 400 700; /* variable font */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('../Assets/Fonts/Nunito-400.woff2') format('woff2');
  font-weight: 400 700; /* variable font */
  font-style: normal;
  font-display: swap;
}

/* ---------- Custom properties ---------- */
:root {
  --color-bg:         #1a1410;
  --color-bg-card:    #2a2118;
  --color-text:       #f5ebe0;
  --color-text-muted: #c4a882;
  --color-accent:     #8b7355;
  --color-border:     #3d3124;

  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito', 'Segoe UI', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  --radius:    12px;
  --max-width: 1100px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__image-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(196, 168, 130, 0.08);
}

.hero__image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero__text {
  text-align: center;
  padding: var(--space-lg) var(--space-sm) 0;
  max-width: 680px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ====================================================
   GALLERY
   ==================================================== */
.gallery {
  padding: var(--space-lg) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.5);
}

.gallery__item--wide {
  grid-column: 1 / -1;
}

.gallery__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery__item figcaption {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-sm) calc(var(--space-sm) + 0.25rem);
  text-align: center;
}

/* ====================================================
   BREWING (steam animation)
   ==================================================== */
.brewing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.brewing__cup {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.brewing__icon {
  font-size: 4rem;
  line-height: 1;
  filter: grayscale(0.3) brightness(0.85);
}

/* Steam wisps */
.brewing__steam {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.brewing__steam span {
  display: block;
  width: 3px;
  height: 22px;
  border-radius: 3px;
  background: var(--color-text-muted);
  opacity: 0;
  animation: steam 2.4s ease-in-out infinite;
}

.brewing__steam span:nth-child(1) { animation-delay: 0s; }
.brewing__steam span:nth-child(2) { animation-delay: 0.5s; }
.brewing__steam span:nth-child(3) { animation-delay: 1s; }

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(0) scaleY(0.6);
  }
  30% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translateY(-28px) scaleY(1.2) scaleX(1.4);
  }
}

.brewing__text {
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ====================================================
   PRIVACY POLICY PAGE
   ==================================================== */
.privacy {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-md);
  animation: fade-up 0.7s ease-out both;
}

.privacy h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}

.privacy__updated {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.privacy h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.privacy h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
  color: var(--color-text-muted);
}

.privacy p,
.privacy li {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.privacy ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: var(--space-sm);
}

.privacy a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.privacy a:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.privacy table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.privacy th,
.privacy td {
  text-align: left;
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.privacy th {
  color: var(--color-text);
  font-weight: 600;
}

.privacy address {
  font-style: normal;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.privacy__back {
  margin-top: var(--space-lg);
}

/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  text-align: center;
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-accent);
}

.footer strong {
  font-weight: 600;
  color: var(--color-text-muted);
}

.footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* ====================================================
   RESPONSIVE
   ==================================================== */

/* -- Small screens (phones) -- */
@media (max-width: 600px) {
  .hero {
    padding: var(--space-md) var(--space-sm) var(--space-sm);
  }

  .hero__text {
    padding-top: var(--space-md);
  }

  .gallery {
    padding: var(--space-md) var(--space-sm);
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* On mobile, wide items are just full-width single column like everything else */
  .gallery__item--wide {
    grid-column: auto;
  }
}

/* -- Medium screens (tablets, small laptops) -- */
@media (min-width: 601px) and (max-width: 900px) {
  .gallery__grid {
    gap: var(--space-sm);
  }
}

/* -- Large screens -- */
@media (min-width: 1200px) {
  .hero {
    padding-top: var(--space-xl);
  }
}

/* ---------- Fade-in on load ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__image-wrap {
  animation: fade-up 0.9s ease-out both;
}

.hero__text {
  animation: fade-up 0.9s 0.25s ease-out both;
}

.gallery__item {
  animation: fade-up 0.7s ease-out both;
}

.gallery__item:nth-child(1) { animation-delay: 0.1s; }
.gallery__item:nth-child(2) { animation-delay: 0.2s; }
.gallery__item:nth-child(3) { animation-delay: 0.3s; }
.gallery__item:nth-child(4) { animation-delay: 0.4s; }
.gallery__item:nth-child(5) { animation-delay: 0.5s; }
.gallery__item:nth-child(6) { animation-delay: 0.6s; }

.brewing {
  animation: fade-up 0.8s 0.5s ease-out both;
}
