/* Rustik By Güner — shared styles */
:root {
  --wood-900: #1e150e;
  --wood-800: #2c1f15;
  --wood-700: #3b2a1c;
  --amber: #d9a441;
  --amber-soft: #e6bd6a;
  --cream: #f5efe4;
  --cream-dim: #cdbfa6;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--wood-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Animated background ---- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--wood-700) 0%, var(--wood-900) 62%);
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.ambient::before {
  width: 60vmax; height: 60vmax;
  top: -18vmax; left: -12vmax;
  background: radial-gradient(circle, var(--amber) 0%, transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.ambient::after {
  width: 52vmax; height: 52vmax;
  bottom: -16vmax; right: -10vmax;
  background: radial-gradient(circle, #7a4f22 0%, transparent 62%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.ambient .grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vmax, 6vmax, 0) scale(1.18); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-8vmax, -5vmax, 0) scale(1.22); }
}

/* ---- Home ---- */
.home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.brand {
  animation: rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.brand h1 em {
  font-style: italic;
  color: var(--amber-soft);
}

.brand .rule {
  width: 64px; height: 1px;
  margin: 1.6rem auto;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  letter-spacing: 0.06em;
  background: rgba(59, 42, 28, 0.35);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  animation: rise 1.4s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-cta svg { width: 1.05em; height: 1.05em; fill: var(--amber-soft); }

.phone-cta:hover {
  border-color: var(--amber);
  background: rgba(217, 164, 65, 0.14);
  transform: translateY(-2px);
}

.catalog-link {
  margin-top: 3.4rem;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  animation: rise 1.4s 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.catalog-link:hover { color: var(--amber-soft); border-color: var(--amber-soft); }

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

/* ---- Catalog page ---- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: rgba(30, 21, 14, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 164, 65, 0.22);
}

.topbar a.brand-small {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.topbar a.brand-small em { font-style: italic; color: var(--amber-soft); }

.topbar .download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.topbar .download:hover { background: rgba(217, 164, 65, 0.14); border-color: var(--amber); }

.pdf-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 58px);
  border: 0;
  background: #f0e8da;
}

/* ---- Mobile PDF fallback (native viewer, no iframe) ---- */
.mobile-only { display: none; }

.mobile-pdf {
  min-height: calc(100dvh - 58px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.mobile-pdf .mp-label {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.mobile-pdf .mp-open {
  width: 100%;
  max-width: 320px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), #b8862f);
  color: var(--wood-900);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 24px rgba(217, 164, 65, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-pdf .mp-open:active {
  transform: scale(0.98);
  box-shadow: 0 3px 12px rgba(217, 164, 65, 0.25);
}

.mobile-pdf .mp-download {
  width: 100%;
  max-width: 320px;
  padding: 0.9rem 1.5rem;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 12px;
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.mobile-pdf .mp-note {
  color: var(--cream-dim);
  font-size: 0.9rem;
  max-width: 300px;
}

@media (max-width: 820px), (pointer: coarse) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex; }
}