/* Paintball Ptuj - MVP spirit: style tags, not classes */
/* No JavaScript. */

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

:root {
  --bg: hsl(160 10% 6%);
  --bg-card: hsl(160 8% 10%);
  --fg: hsl(45 20% 90%);
  --primary: hsl(36 100% 50%);
  --primary-fg: hsl(160 10% 6%);
  --amber-glow: hsl(30 100% 60%);
  --muted: hsl(160 10% 55%);
  --border: hsl(160 8% 18%);
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

a:hover { color: var(--amber-glow); }


/* ── TYPOGRAPHY ── */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--fg);
}

h1 {
  font-size: clamp(3.5rem, 10vw, 7rem);
  background: linear-gradient(135deg, var(--primary), var(--amber-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--primary), var(--amber-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 0.9rem;
  color: var(--fg);
  letter-spacing: 0.12em;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0.5rem 0;
}

small {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
}


/* ── BUTTONS (via <a><b> and <a><i>) ── */

a b, a strong,
button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 0 25px hsl(36 100% 50% / 0.3), 0 0 50px hsl(36 100% 50% / 0.1);
  transition: all 0.3s;
}

a b:hover, a strong:hover,
button:hover, input[type="submit"]:hover {
  background: var(--amber-glow);
  transform: translateY(-2px);
  box-shadow: 0 0 35px hsl(36 100% 50% / 0.4), 0 0 70px hsl(36 100% 50% / 0.15);
}

a em, a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.05em;
  border: 2px solid hsl(36 100% 50% / 0.4);
  background: transparent;
  color: var(--fg);
  transition: all 0.3s;
}

a em:hover, a i:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}


/* ── NAVBAR (body > header) ── */

body > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(160 10% 6% / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

body > header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

nav li a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}

nav li a:hover { color: var(--primary); }

nav li:last-child a {
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  box-shadow: 0 0 20px hsl(36 100% 50% / 0.2);
}

nav li:last-child a:hover {
  background: var(--amber-glow);
  color: var(--primary-fg);
}

#logo {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--primary);
  box-shadow: 0 0 12px hsl(36 100% 50% / 0.2);
  transition: box-shadow 0.3s, border-color 0.3s;
}

#logo:hover {
  box-shadow: 0 0 20px hsl(36 100% 50% / 0.35);
  border-color: var(--amber-glow);
}

@media (max-width: 768px) {
  body > header nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  nav ul {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  nav li a {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
}


/* ── MAIN LAYOUT ── */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main > section {
  padding: 4rem 0;
}


/* ── HERO (first section) ── */

main > section:first-of-type {
  text-align: center;
  padding: 5rem 0 3rem;
}

main > section:first-of-type > div {
  max-width: 700px;
  margin: 0 auto;
}

main > section:first-of-type small {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

main > section:first-of-type h1 {
  margin-bottom: 1.5rem;
}

main > section:first-of-type p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

main > section:first-of-type div div {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Hero image (main > img) */
main > img {
  width: 100%;
  max-width: 1100px;
  margin: -1rem auto 4rem;
  border-radius: var(--radius);
  box-shadow: 0 0 60px hsl(36 100% 50% / 0.12), 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}


/* ── SPLIT LAYOUT (article with div + figure) ── */

section > article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

article.reverse {
  direction: rtl;
}

article.reverse > * {
  direction: ltr;
}

article > div h2 { margin-bottom: 1rem; }
article > div p { margin-bottom: 1rem; }

article > figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px hsl(36 100% 50% / 0.08), 0 10px 40px rgba(0,0,0,0.3);
}

article > figure img.vertical {
  max-width: 80%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  section > article {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  article.reverse { direction: ltr; }
}


/* ── CARDS (section > aside) ── */

section:has(> aside) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
}

section > aside {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

section > aside:hover {
  border-color: hsl(36 100% 50% / 0.5);
  transform: translateY(-4px);
}

section > aside h3 {
  color: var(--fg);
  margin-bottom: 0.5rem;
}

section > aside p { font-size: 0.9rem; }

/* Expand/collapse cards */
section > aside details { width: 100%; }

section > aside summary {
  list-style: none;
  cursor: pointer;
}

section > aside summary::-webkit-details-marker { display: none; }
section > aside summary::marker { display: none; content: ""; }

section > aside summary::after {
  content: "+";
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.75rem;
  transition: transform 0.3s;
}

section > aside details[open] summary::after {
  content: "−";
}

section > aside details > p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Section header (above cards) */
section > header {
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0;
  position: static;
  background: none;
  border: none;
  backdrop-filter: none;
}

section > header p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Info cards (asides with lists) */
section > aside ul {
  padding-left: 0;
  text-align: left;
}

section > aside ul li {
  color: var(--muted);
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

section > aside ul li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

section > aside small {
  font-style: italic;
  margin-top: 1rem;
}

@media (max-width: 500px) {
  section > aside { min-width: 100%; }
}


/* ── PRICING (section.pricing) ── */

section.pricing > aside {
  min-width: 250px;
  max-width: 320px;
  padding: 2.5rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

section.pricing aside h3 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

section.pricing aside > small {
  margin-bottom: 1.5rem;
  font-style: normal;
}

section.pricing aside > div {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

section.pricing aside > div > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section.pricing aside strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--amber-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section.pricing aside > div small {
  margin-top: 0.25rem;
  font-style: normal;
}

aside.featured {
  border-color: var(--primary);
  transform: scale(1.04);
  box-shadow: 0 0 30px hsl(36 100% 50% / 0.2), 0 0 60px hsl(36 100% 50% / 0.08);
}

aside.featured::before {
  content: "Popularno";
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-fg);
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

aside.featured {
  position: relative;
}

aside.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

@media (max-width: 768px) {
  section.pricing > aside { max-width: 380px; }
  aside.featured { transform: none; }
  aside.featured:hover { transform: translateY(-4px); }
}


/* ── BLOCKQUOTE (notice box) ── */

blockquote {
  width: 100%;
  border: 1px solid hsl(36 100% 50% / 0.3);
  border-radius: var(--radius);
  background: hsl(36 100% 50% / 0.05);
  padding: 1.25rem 1.75rem;
  margin: 0 0 2rem;
}

blockquote p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}

blockquote strong {
  color: var(--primary);
}


/* ── GALLERY ── */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px hsl(36 100% 50% / 0.15);
}

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
}


/* ── DOUBLE IMAGE ── */

.doubleimg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
  margin-top: 2rem;
}

.doubleimg img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.doubleimg img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px hsl(36 100% 50% / 0.15);
}

@media (max-width: 600px) {
  .doubleimg { grid-template-columns: 1fr; }
}


/* ── FOOTER ── */

footer {
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}

footer > div {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto 3rem;
}

footer > div > div {
  text-align: center;
}

footer > div > div h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

footer > div > div p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.25rem 0;
  line-height: 1.6;
}

footer > div > div a { font-weight: 500; }

footer > small {
  display: block;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  footer > div {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
}


/* ── SELECTION & SCROLLBARS ── */

::selection {
  background: var(--primary);
  color: var(--primary-fg);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
