/* ==========================================================================
   ZELTA PĪĶIS — kazino Daugavpilī
   Premium red & gold design system
   ========================================================================== */

:root {
  --bg:            #0b0708;
  --bg-2:          #120a0c;
  --panel:         #170e11;
  --panel-2:       #1f1215;
  --line:          rgba(212, 175, 55, 0.16);
  --line-strong:   rgba(212, 175, 55, 0.38);

  --red:           #c8102e;
  --red-deep:      #8c0c1e;
  --red-glow:      rgba(200, 16, 46, 0.45);
  --gold:          #d4af37;
  --gold-hi:       #f5de82;
  --gold-soft:     rgba(212, 175, 55, 0.75);

  --text:          #f3e9df;
  --text-dim:      #b9a79c;
  --text-mute:     #a89689;

  --radius:        18px;
  --radius-sm:     12px;
  --shadow:        0 24px 60px -22px rgba(0, 0, 0, 0.85);
  --shadow-gold:   0 0 0 1px rgba(212,175,55,0.18), 0 20px 50px -20px rgba(140,12,30,0.55);

  --wrap:          1180px;
  --sans:          "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif:         "Georgia", "Times New Roman", "Noto Serif", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(140,12,30,0.30), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(212,175,55,0.08), transparent 55%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-hi); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: .5px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.gold-text {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-hi) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------------------------------------------------- */
.btn {
  --_bg: var(--red);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 12px 30px -10px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--red-glow); color:#fff; }
.btn-ghost {
  color: var(--gold);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(212,175,55,.06); }

/* ---------- Header / Nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(11,7,8,0.92), rgba(11,7,8,0.72));
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .9rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  letter-spacing: .06em; line-height: 1;
}
.brand-name small { display:block; font-family: var(--sans); font-weight: 500;
  font-size: .58rem; letter-spacing: .34em; color: var(--gold); margin-top: 3px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text-dim); font-size: .93rem; font-weight: 500;
  padding: .5rem .85rem; border-radius: 999px; position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(212,175,55,.06); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content:""; position:absolute; left:50%; bottom:2px; transform:translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--gold);
}
.nav-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 10px; width: 44px; height: 40px; cursor: pointer;
  color: var(--gold); font-size: 1.2rem;
}

/* ---------- Sections --------------------------------------------------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--text-dim); }

.divider {
  width: 100%; height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* ---------- Hero ------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: .5rem; }
.hero-copy .lead { max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-stats {
  display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero-stats .stat b {
  font-family: var(--serif); font-size: 1.7rem; color: var(--gold); display: block; line-height: 1;
}
.hero-stats .stat span { font-size: .82rem; color: var(--text-mute); letter-spacing: .04em; }

.hero-visual {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-gold);
  border: 1px solid var(--line-strong);
  aspect-ratio: 4 / 5;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem; border-radius: 14px;
  background: rgba(11,7,8,0.62); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #35d07f;
  box-shadow: 0 0 0 4px rgba(53,208,127,.18); flex: none; }
.hero-badge b { color: var(--text); font-size: .95rem; }
.hero-badge span { color: var(--text-mute); font-size: .82rem; display: block; }

/* ---------- Cards / grids --------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; position: relative; overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card::before {
  content:""; position:absolute; inset:0; padding:1px; border-radius: inherit;
  background: linear-gradient(160deg, rgba(212,175,55,.35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity:0; transition: opacity .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .icon { width: 52px; height: 52px; margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-dim); font-size: .96rem; margin: 0; }

.feature-num {
  font-family: var(--serif); color: var(--gold-soft);
  font-size: 1rem; letter-spacing: .2em; margin-bottom: .8rem; display:block;
}

/* ---------- Split / feature row --------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); aspect-ratio: 5/4;
}
.split-media svg, .split-media img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.check-list li { display: flex; gap: .7rem; padding: .5rem 0; color: var(--text-dim); }
.check-list li::before {
  content: "♠"; color: var(--gold); flex: none; font-size: 1rem; line-height: 1.5;
}

/* ---------- Ribbon / callout ------------------------------------------ */
.ribbon {
  background:
    radial-gradient(700px 300px at 80% -40%, rgba(200,16,46,.35), transparent 60%),
    linear-gradient(135deg, var(--red-deep), #4d0813);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.4rem); text-align: center;
  box-shadow: var(--shadow);
}
.ribbon h2 { color: #fff; }
.ribbon p { color: rgba(255,255,255,.82); max-width: 52ch; margin-inline: auto; }
.ribbon .hero-actions { justify-content: center; }

/* ---------- Map -------------------------------------------------------- */
.map-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 460px; border: 0; filter: grayscale(.2) contrast(1.05); }

/* ---------- Page hero (interior) -------------------------------------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem,4vw,3rem); text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero .lead { margin-inline: auto; max-width: 60ch; }
.breadcrumbs { color: var(--text-mute); font-size: .85rem; margin-top: 1rem; }
.breadcrumbs a { color: var(--text-dim); }

/* ---------- Contact form ---------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.form {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.2rem);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: .45rem; letter-spacing: .02em; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: #0e080a; border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(212,175,55,.14);
}
.field.check { display: flex; align-items: flex-start; gap: .6rem; }
.field.check input { width: auto; margin-top: .25rem; }
.field.check label { margin: 0; font-size: .82rem; color: var(--text-mute); }
.form-note { font-size: .8rem; color: var(--text-mute); margin-top: .8rem; }
.form-status {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid #35d07f; background: rgba(53,208,127,.1); color: #9ff0c4;
  font-size: .9rem; display: none;
}
.form-status.show { display: block; }
.field-error { color: #ff8a9c; font-size: .78rem; margin-top: .35rem; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #ff8a9c; }

/* ---------- Contact info list ----------------------------------------- */
.info-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { width: 44px; height: 44px; flex: none; }
.info-list b { display: block; color: var(--text); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .2rem; }
.info-list span { color: var(--text-dim); }

/* ---------- Events ----------------------------------------------------- */
.event {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: center;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.6rem; transition: border-color .2s, transform .2s;
}
.event:hover { border-color: var(--line-strong); transform: translateX(4px); }
.event .date {
  text-align: center; border-right: 1px solid var(--line); padding-right: 1rem;
}
.event .date b { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.event .date span { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-mute); }
.event h3 { margin: 0 0 .25rem; }
.event p { margin: 0; color: var(--text-dim); font-size: .93rem; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line-strong); padding: .3rem .7rem; border-radius: 999px;
}

/* ---------- Prose (legal pages) --------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; color: var(--gold-soft); }
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose .updated { color: var(--text-mute); font-size: .85rem; }
.toc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem; margin-bottom: 2rem;
}
.toc b { display:block; text-transform: uppercase; letter-spacing:.14em; font-size:.75rem; color:var(--text-mute); margin-bottom:.6rem; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.toc li { margin-bottom: .4rem; }

/* ---------- Age note / helpline banner -------------------------------- */
.age-banner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 1.2rem 1.6rem; margin-top: 2rem;
}
.age-banner .badge18 {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep));
  border: 2px solid var(--gold-soft);
}
.age-banner p { margin: 0; color: var(--text-dim); font-size: .92rem; }

/* ---------- Footer ----------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(140,12,30,0.10));
  padding: 3.5rem 0 1.6rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em;
  font-size: .76rem; color: var(--gold); margin: 0 0 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: var(--text-dim); font-size: .93rem; }
.footer-links a:hover { color: var(--gold); }
.footer-about p { color: var(--text-mute); font-size: .92rem; max-width: 34ch; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  color: var(--text-mute); font-size: .82rem;
}
.footer-bottom .badge18 {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items:center;
  font-family: var(--serif); font-weight:700; font-size:.8rem; color:#fff;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); border:1px solid var(--gold-soft);
}
.footer-bottom .right { display:flex; align-items:center; gap:.8rem; }

/* ---------- Reveal animation ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse .split-media { grid-template-columns: 1fr; order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line-strong);
    padding: .6rem 5vw 1.2rem; transform: translateY(-140%); transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .9rem .4rem; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 84px 1fr; }
  .event .btn { grid-column: 1 / -1; justify-content: center; }
  .hero-stats { gap: 1.4rem; }
}
