/*
Theme Name: Trap'n'House Landing
Theme URI: https://trapnhouse.local
Description: Standalone landing page for Trap'n'House — Saint Rave Abbey 13.06.2026. Single-purpose theme: drip blobs form (Instagram, Email, Why) submitting via admin-post.php + wp_mail.
Version: 1.0
Author: adriandabrowski
Author URI: https://github.com/adriandev-web
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trapnhouse-landing
*/

:root {
  --ink: #f3f3f3;
  --ink-dim: #b9b9b9;
  --max-w: 560px;
}

* { box-sizing: border-box; }

html { background: #0a0a0a; }
body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* === BG STACK z warstwami textur + blend-modes === */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #0a0a0a;
  filter: brightness(2) contrast(0.95);
}
.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 1. Bazowe foto Trap House — master z .ai */
.bg-base {
  background-image: url("assets/ai-extracted/ai-photo-bar.jpg");
  filter: brightness(0.85) contrast(1.0);
}

/* 2. Faktura papieru — master z .ai */
.bg-paper {
  background-image: url("assets/ai-extracted/ai-paper.jpg");
  mix-blend-mode: multiply;
  opacity: 0.55;
}

/* 3. Białe rysy/scratchy — master z .ai */
.bg-scratches {
  background-image: url("assets/ai-extracted/ai-scratches.jpg");
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* 4. Grunge frame — wyłączone (spray-frame robi obwódkę) */
.bg-grunge {
  background-image: none;
  opacity: 0;
}

/* 5. Spray-frame — wyłączone (asset usunięty wcześniej) */
.bg-spray {
  background-image: none;
  opacity: 0;
}

/* 5b. Dodatkowy papier — overlay-paper.jpg na opacity 0.2 */
.bg-paper2 {
  background-image: url("assets/overlay-paper.jpg");
  mix-blend-mode: overlay;
  opacity: 0.2;
}

/* 6. Vignette */
.bg-vignette {
  background: radial-gradient(120% 80% at 50% 40%,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0.35) 100%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* HERO */
.hero { text-align: center; padding-top: 8px; }
.logo-tnh {
  max-width: 320px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.6));
}
.event-date {
  margin: 12px 0 0;
  text-align: center;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 2px;
  color: #f5f5f5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* FORM */
.form { display: flex; flex-direction: column; gap: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 6px; }
.field + .field--mail { margin-top: -20px; }
.field + .actions { margin-top: -40px; }

.label {
  color: #f5f5f5;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
  text-align: center;
  display: block;
  padding: 0;
  -webkit-text-stroke: 0.6px #f5f5f5;
}

/* DRIP CONTAINERS */
.drip {
  position: relative;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
.drip--input,
.drip--alt     { aspect-ratio: 1000 / 333; }
.drip--input  { background-image: url("assets/drip-input.png"); }
.drip--alt    { background-image: url("assets/drip-input-2.png"); }
.drip--textarea {
  background-image: url("assets/drip-textarea.png");
  aspect-ratio: 1000 / 504;
}

.drip input,
.drip textarea {
  position: absolute;
  left: 50%;
  width: 78%;
  transform: translateX(-50%);
  background: transparent;
  border: 0;
  outline: 0;
  color: #111;
  font: inherit;
  font-weight: 600;
  padding: 0;
  margin: 0;
  resize: none;
  caret-color: #111;
  text-align: center;
}

.drip--input  input,
.drip--alt    input {
  top: 33%;
  transform: translate(-50%, -50%);
  height: 1.4em;
  line-height: 1.4;
  font-size: clamp(15px, 4vw, 19px);
}

.drip--textarea textarea {
  top: 18%;
  height: calc(34% - 20px);
  width: calc(80% - 40px);
  font-size: clamp(14px, 3.4vw, 16px);
  line-height: 1.4;
  text-align: center;
  display: block;
  overflow-y: auto;
  scrollbar-width: thin;
}
#why  { width: calc(80% - 40px); height: calc(34% - 20px); }

/* Per-field tuning */
#ig   { width: calc(78% - 60px); }
#mail {
  width: calc(78% - 100px);
  left: calc(50% + 5px);
  top: calc(33% + 5px);
}

.drip input::placeholder,
.drip textarea::placeholder { color: #555; }

.drip:focus-within { filter: drop-shadow(0 0 6px rgba(255,255,255,0.35)); }
.drip.has-error    { filter: drop-shadow(0 0 8px rgba(255, 80, 80, 0.7)); }

/* BUTTON */
.actions { display: flex; justify-content: center; margin-top: 6px; }

.btn-drip {
  position: relative;
  background: url("assets/drip-button.png") center / 100% 100% no-repeat;
  border: 0;
  width: 280px;
  max-width: 80%;
  aspect-ratio: 600 / 386;
  cursor: pointer;
  color: #111;
  font: 900 18px/1 "Lato", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: transform .15s ease, filter .15s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-drip span {
  display: block;
  text-align: center;
  transform: translateY(-30px);
}
.btn-drip:hover  { transform: translateY(-1px); filter: drop-shadow(0 4px 14px rgba(255,255,255,0.25)); }
.btn-drip:active { transform: translateY(1px); }
.btn-drip[disabled] { opacity: 0.55; cursor: not-allowed; }

.form-msg {
  text-align: center;
  min-height: 1.2em;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-dim);
}
.form-msg.is-error { color: #ff8080; }
.form-msg.is-ok    { color: #b8ffb8; }

/* FOOTER */
.footer { margin-top: auto; margin-bottom: 90px; text-align: center; padding-top: 24px; }
.logo-sr {
  width: 160px;
  max-width: 60%;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.tag {
  margin: 6px 0 0;
  letter-spacing: 4px;
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.copyright {
  margin: 18px 0 0;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  opacity: 0.7;
}

@media (min-width: 720px) {
  .page { padding: 64px 24px 64px; gap: 32px; }
  .label { font-size: 19px; }
}

@media (max-width: 380px) {
  .label { font-size: 16px; }
}
