/*
 * Yaphank Trail of Terror - hand-coded static rebuild by NJLIGames Ltd.
 * Dark, cinematic haunt theme. Self-hosted fonts, one stylesheet, responsive,
 * accessible, and built for localization (see js/i18n.js). All copy is the
 * attraction's own wording.
 */
@font-face { font-family: "Creepster"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/creepster-400.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/oswald-500.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/oswald-600.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/oswald-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-600.woff2") format("woff2"); }

:root {
  --bg: #0c0a0b;
  --bg-2: #141011;
  --panel: #1a1415;
  --panel-2: #221a1b;
  --border: #33262a;
  --ink: #ece6e2;
  --muted: #a89b96;
  --orange: #d24a1e;
  --orange-2: #f06526;
  --blood: #8c1616;
  --fog: rgba(255,255,255,.04);
  --maxw: 1160px;
  --radius: 10px;
  --shadow: 0 8px 40px rgba(0,0,0,.55);
  --logo: "Creepster", "Impact", fantasy;
  --head: "Oswald", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-2); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: .04em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #fff; padding: .7rem 1.1rem; z-index: 100; }
.skip:focus { left: 0; }
.eyebrow { font-family: var(--head); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: var(--orange-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.8rem; border-radius: 6px; font-family: var(--head); font-weight: 600; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, transform .1s, border-color .15s; min-height: 48px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 20px rgba(210,74,30,.35); }
.btn--primary:hover { background: var(--orange-2); }
.btn--ghost { background: rgba(0,0,0,.3); color: var(--ink); border-color: var(--orange); }
.btn--ghost:hover { background: var(--orange); color: #fff; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(10,8,9,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-head__in { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; flex-direction: column; margin-right: auto; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--logo); font-size: 1.7rem; color: var(--orange); letter-spacing: .02em; text-shadow: 0 2px 10px rgba(210,74,30,.35); }
.brand__sub { font-family: var(--head); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { font-family: var(--head); text-decoration: none; color: var(--ink); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-2); }
.nav .btn { padding: .5rem 1rem; min-height: 38px; font-size: .78rem; }
.langswitch { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.langswitch button { background: transparent; color: var(--muted); border: 0; font-family: var(--head); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .6rem; cursor: pointer; }
.langswitch button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; text-align: center; color: #fff; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.3) contrast(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, transparent 30%, rgba(0,0,0,.55) 100%), linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.75)); }
.hero__in { position: relative; z-index: 1; padding-block: clamp(3rem, 9vw, 7rem); }
.hero__presents { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(.7rem, .6rem + .4vw, .95rem); color: var(--orange-2); margin: 0 0 .8rem; }
.hero__logo { font-family: var(--logo); font-weight: 400; font-size: clamp(3rem, 1.8rem + 7vw, 7rem); line-height: .95; color: var(--orange); text-shadow: 0 3px 0 #5a1e0c, 0 0 30px rgba(210,74,30,.5); margin: 0 0 1.2rem; text-transform: none; letter-spacing: .01em; }
.hero__banner { max-width: 60ch; margin: 0 auto 1.6rem; font-size: clamp(1rem, .95rem + .4vw, 1.25rem); color: #f0e9e5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* Sections */
.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--panel { background: var(--bg-2); }
.section__head { text-align: center; max-width: 64ch; margin: 0 auto 2rem; }
.section__head p { color: var(--muted); }

/* Info cards (dates / hours / price) */
.info-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--orange); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { color: var(--orange-2); margin-bottom: .8rem; }
.card p { margin: 0 0 .4rem; }
.card__big { font-family: var(--head); font-weight: 700; font-size: 2rem; color: var(--ink); }
.dates-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.dates-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--border); font-family: var(--head); letter-spacing: .02em; }
.dates-list li span:first-child { color: var(--ink); }
.dates-list li span:last-child { color: var(--muted); }
.note { color: var(--muted); font-size: .92rem; }

/* Prose */
.prose { max-width: 68ch; margin-inline: auto; }
.prose p { color: #ddd4cf; }
.prose p:first-of-type::first-letter { font-family: var(--logo); color: var(--orange); font-size: 3rem; line-height: 1; float: left; margin: .1rem .5rem 0 0; }

/* Rules list */
.rules { max-width: 70ch; margin-inline: auto; counter-reset: rule; list-style: none; padding: 0; }
.rules li { position: relative; padding: .9rem 1rem .9rem 3.4rem; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); margin-bottom: .7rem; }
.rules li::before { counter-increment: rule; content: counter(rule); position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--orange); color: #fff; font-family: var(--head); font-weight: 700; border-radius: 6px; }
.warn { max-width: 70ch; margin: 1.5rem auto 0; padding: 1rem 1.25rem; border-left: 4px solid var(--blood); background: rgba(140,22,22,.12); color: #f3d9d9; border-radius: 0 8px 8px 0; }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* Awards */
.awards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
.award { text-align: center; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.award img { width: 96px; height: 96px; margin: 0 auto 1rem; object-fit: contain; }
.award h3 { color: var(--orange-2); }
.award p { color: var(--muted); margin: 0; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .ico { color: var(--orange); flex: none; }
.info-list a { color: var(--orange-2); text-decoration: none; }
form label { font-family: var(--head); display: block; font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .35rem; }
form input, form textarea { width: 100%; padding: .75rem .85rem; min-height: 48px; font: inherit; font-family: var(--body); border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--ink); margin-bottom: 1rem; }
form textarea { min-height: 130px; resize: vertical; }
.map { border: 0; width: 100%; height: 320px; border-radius: 8px; filter: grayscale(.4) invert(.9) hue-rotate(180deg); }

/* CTA band */
.cta-band { text-align: center; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: 14px; padding: clamp(2rem, 5vw, 3rem); }

/* Footer */
.site-foot { background: #080707; border-top: 1px solid var(--border); }
.site-foot__in { display: grid; gap: 2rem; padding-block: 2.5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.site-foot h4 { font-family: var(--head); color: var(--ink); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .9rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--orange-2); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-foot address { font-style: normal; line-height: 1.9; color: var(--muted); }
.foot-legal { border-top: 1px solid var(--border); padding-block: 1.1rem 2rem; font-family: var(--head); font-size: .78rem; letter-spacing: .04em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: var(--muted); }

@media (min-width: 780px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 940px) {
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: .5rem 1.25rem 1.25rem; box-shadow: var(--shadow); transform: translateY(-150%); transition: transform .2s ease; }
  .site-head.open .nav { transform: translateY(0); }
  .nav a { padding: .9rem .2rem; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: .8rem; }
  .nav .langswitch { margin-top: .8rem; align-self: flex-start; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); align-items: center; justify-content: center; cursor: pointer; }
  .nav-toggle span { width: 20px; height: 2px; background: var(--orange); display: block; }
}
