/* Nightshade Arc Turnieje Globalne — style.css (creative_artistic) */
/* RESET & NORMALIZE */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; border: none; outline: none; }
:focus-visible { outline: 2px dashed #00A76D; outline-offset: 2px; }

/* THEME TOKENS */
:root {
  --ns-primary: #0A2E5C; /* deep navy */
  --ns-secondary: #00A76D; /* vivid green */
  --ns-accent: #F5F7FA; /* light mist */
  --ns-bg: #FFFFFF; /* base white */
  --ns-ink: #0A2E5C; /* text ink aligned with primary */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 6px 18px rgba(10,46,92,0.12);
  --shadow-2: 0 12px 32px rgba(10,46,92,0.18);
  --shadow-soft: 0 3px 10px rgba(10,46,92,0.10);
  --border: 1px solid rgba(10,46,92,0.12);
  --speed: 220ms;
}

/* TYPOGRAPHY */
body { font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 16px; line-height: 1.65; color: var(--ns-ink, #0A2E5C); background: var(--ns-bg, #FFFFFF); }
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, Geneva, Tahoma, sans-serif; color: var(--ns-primary, #0A2E5C); margin: 0 0 10px 0; line-height: 1.2; }
h1 { font-size: 32px; letter-spacing: -0.4px; }
h2 { font-size: 24px; letter-spacing: -0.2px; }
h3 { font-size: 20px; }
p { margin: 0 0 14px 0; }
small { font-size: 14px; opacity: 0.9; }

/* CREATIVE LINK STYLE */
a { color: var(--ns-secondary, #00A76D); position: relative; transition: color var(--speed) ease; }
a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0; background: var(--ns-secondary, #00A76D); transition: width var(--speed) ease; }
a:hover { color: #00895A; }
a:hover::after { width: 100%; }

/* LAYOUT PRIMITIVES (MOBILE-FIRST, FLEX ONLY) */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; justify-content: center; }

/* MANDATORY SPACING PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* GLOBAL SECTION SPACING */
section { margin-bottom: 60px; }

/* HEADER */
header { position: sticky; top: 0; z-index: 1000; background: var(--ns-accent, #F5F7FA); box-shadow: 0 2px 0 rgba(10,46,92,0.06); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; }
header .content-wrapper { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.logo img { height: 42px; width: auto; }

/* NAVIGATION */
.main-nav { display: none; flex-direction: row; align-items: center; gap: 12px; }
.main-nav a { color: var(--ns-primary); padding: 10px 12px; border-radius: 999px; transition: background var(--speed) ease, transform var(--speed) ease; }
.main-nav a:hover { background: rgba(10,46,92,0.08); transform: translateY(-1px); }

/* CTA GROUP */
.cta-group { display: flex; flex-direction: row; gap: 10px; align-items: center; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease, color var(--speed) ease; will-change: transform; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--ns-secondary, #00A76D); color: #FFFFFF; }
.btn-primary:hover { background: #009762; }
.btn-secondary { background: #FFFFFF; color: var(--ns-secondary, #00A76D); border-color: var(--ns-secondary, #00A76D); }
.btn-secondary:hover { background: var(--ns-accent, #F5F7FA); }

/* HERO (creative_artistic) */
.hero { position: relative; color: #FFFFFF; background: var(--ns-primary, #0A2E5C); overflow: hidden; }
.hero .container { padding-top: 40px; padding-bottom: 40px; }
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { color: #FFFFFF; }
.hero .subheadline { color: #E6F4EF; opacity: 0.95; }
/* Decorative paint blocks (pure solid colors) */
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; opacity: 0.18; border-radius: 36px; }
.hero::before { width: 240px; height: 240px; background: #FFFFFF; left: -60px; top: -40px; transform: rotate(12deg); }
.hero::after { width: 320px; height: 160px; background: var(--ns-secondary, #00A76D); right: -80px; bottom: -40px; transform: rotate(-8deg); }
.hero .container, .hero .content-wrapper, .hero * { position: relative; z-index: 1; }

/* TEXT BLOCKS */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul { margin: 6px 0 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.text-section li { display: flex; align-items: flex-start; gap: 10px; }
.text-section li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; margin-top: 7px; background: var(--ns-secondary, #00A76D); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(0,167,109,0.1); }

/* TESTIMONIALS (high contrast on light) */
.testimonial-card { background: var(--ns-accent, #F5F7FA); color: var(--ns-ink, #0A2E5C); border: var(--border); border-left: 6px solid var(--ns-secondary, #00A76D); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.testimonial-card p { margin: 0; }
.testimonial-card + .testimonial-card { margin-top: 20px; }

/* CARDS (generic) */
.card { background: #FFFFFF; border-radius: var(--radius-lg); border: var(--border); box-shadow: var(--shadow-soft); padding: 20px; }

/* FOOTER */
footer { background: var(--ns-primary, #0A2E5C); color: #FFFFFF; padding: 32px 0; }
footer .content-wrapper { flex-direction: column; align-items: flex-start; gap: 24px; }
footer h3 { color: #FFFFFF; }
footer a { color: #A6FFDE; }
footer a:hover { color: #FFFFFF; }
footer img { filter: brightness(0) invert(1); opacity: 0.9; }

/* HEADLINE DECOR */
h2 { position: relative; display: inline-flex; align-items: center; }
h2::after { content: ""; height: 8px; width: 48px; background: var(--ns-secondary, #00A76D); border-radius: 6px; margin-left: 10px; display: inline-flex; }

/* ICON TEXT LAYOUTS */
.text-image-section { align-items: center; }
.text-image-section img { width: 28px; height: auto; margin-right: 8px; }

/* NAV: MOBILE MENU */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: #FFFFFF; color: var(--ns-primary); border: 2px solid rgba(10,46,92,0.15); box-shadow: var(--shadow-soft); cursor: pointer; transition: transform var(--speed) ease, background var(--speed) ease; }
.mobile-menu-toggle:hover { transform: translateY(-2px); background: var(--ns-accent); }

.mobile-menu { position: fixed; inset: 0; background: #FFFFFF; display: flex; flex-direction: column; gap: 16px; padding: 20px; z-index: 2000; transform: translateX(100%); transition: transform 360ms ease; box-shadow: var(--shadow-2); }
.mobile-menu.open, .mobile-menu.active, .mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 10px; background: var(--ns-accent); color: var(--ns-primary); border: 2px solid rgba(10,46,92,0.15); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a { padding: 14px 10px; border-radius: 10px; background: #FFFFFF; border: var(--border); color: var(--ns-primary); font-weight: 700; }
.mobile-nav a:hover { background: var(--ns-accent); }

/* PAGE-SPECIFIC TWEAKS */
.hero .cta-group { flex-wrap: wrap; }
.support-note { font-size: 14px; color: #D5F5EA; }

/* FORMS (minimal, for potential future) */
input[type="text"], input[type="email"], input[type="tel"], textarea, select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid rgba(10,46,92,0.15); background: #FFFFFF; transition: border-color var(--speed) ease, box-shadow var(--speed) ease; }
input:focus, textarea:focus, select:focus { border-color: var(--ns-secondary, #00A76D); box-shadow: 0 0 0 4px rgba(0,167,109,0.18); }

/* COOKIE CONSENT: Banner & Modal */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; display: flex; flex-direction: column; gap: 12px; background: var(--ns-accent, #F5F7FA); color: var(--ns-ink, #0A2E5C); border-top: 3px solid var(--ns-secondary, #00A76D); box-shadow: 0 -8px 24px rgba(10,46,92,0.12); padding: 16px; transform: translateY(100%); transition: transform 380ms ease; }
.cookie-banner.show, .cookie-banner.active { transform: translateY(0); }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: background var(--speed) ease, color var(--speed) ease, transform var(--speed) ease; }
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-accept { background: var(--ns-secondary, #00A76D); color: #FFFFFF; }
.cookie-accept:hover { background: #009762; }
.cookie-reject { background: #FFFFFF; color: var(--ns-primary, #0A2E5C); border-color: rgba(10,46,92,0.2); }
.cookie-settings { background: #FFFFFF; color: var(--ns-secondary, #00A76D); border-color: var(--ns-secondary, #00A76D); }

.cookie-modal { position: fixed; inset: 0; z-index: 3500; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,46,92,0.5); }
.cookie-modal.open, .cookie-modal.active { display: flex; }
.cookie-modal .cookie-modal-content { display: flex; flex-direction: column; gap: 16px; background: #FFFFFF; color: var(--ns-ink, #0A2E5C); border-radius: 16px; border: var(--border); width: 100%; max-width: 720px; padding: 20px; box-shadow: var(--shadow-2); }
.cookie-modal .cookie-cats { display: flex; flex-direction: column; gap: 12px; }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: var(--border); border-radius: 12px; background: var(--ns-accent, #F5F7FA); }
/* Toggle switch */
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: rgba(10,46,92,0.25); transition: background var(--speed) ease; display: inline-flex; align-items: center; padding: 0 3px; }
.switch::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-soft); transform: translateX(0); transition: transform var(--speed) ease; }
input[type="checkbox"].switch-input { position: absolute; opacity: 0; pointer-events: none; }
input[type="checkbox"].switch-input:checked + .switch { background: var(--ns-secondary, #00A76D); }
input[type="checkbox"].switch-input:checked + .switch::after { transform: translateX(20px); }
.cookie-modal .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* UTILITIES */
.muted { opacity: 0.75; }
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.nowrap { white-space: nowrap; }

/* RESPONSIVE (FLEX DIRECTION & TYPE SCALE) */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .hero .container { padding-top: 60px; padding-bottom: 60px; }
  .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; }
  /* Header: show main nav and CTAs on desktop */
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .content-wrapper { gap: 18px; }
  /* Footer columns */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; gap: 28px; }
  footer .text-section { flex: 1 1 240px; }
  /* Text-image sections side-by-side */
  .text-image-section { flex-direction: row; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .container { padding: 0 20px; }
}

/* ACCESSIBLE TABLE & LIST LOOK (if present) */
table { width: 100%; border-collapse: collapse; border: var(--border); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
thead, tbody, tr { display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; }
th, td { flex: 1 1 120px; padding: 12px; border-bottom: 1px solid rgba(10,46,92,0.1); }
th { background: var(--ns-accent); color: var(--ns-primary); text-align: left; font-weight: 700; }

/* CARDS / LISTS inside .text-section (gentle separation without absolute pos) */
.text-section > div { padding: 16px 0; border-bottom: 1px dashed rgba(10,46,92,0.15); }
.text-section > div:last-child { border-bottom: none; }

/* BREADCRUMB / PAGINATION (anchors already styled) */
.pagination, .breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pagination a, .breadcrumbs a { padding: 8px 12px; border-radius: 10px; border: var(--border); background: #FFFFFF; color: var(--ns-primary); }
.pagination a:hover, .breadcrumbs a:hover { background: var(--ns-accent); }

/* SHADOW HIGHLIGHT BLOCK (for creative vibe) */
.highlight { background: #FFFFFF; border-left: 8px solid var(--ns-secondary); padding: 14px; border-radius: 12px; box-shadow: var(--shadow-soft); }

/* SECTION VARIANTS */
.section--alt { background: var(--ns-accent); border-top: 3px solid rgba(10,46,92,0.08); border-bottom: 3px solid rgba(10,46,92,0.08); }

/* ENSURE ADEQUATE GAPS IN FLEX WRAPS */
.content-grid > * { margin: 0; }
.card-container > * { margin: 0; }

/* PRINT BASICS */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a::after { display: none !important; }
}
