/* =============================
   Nić Odkryć — Vibrant Energetic UI
   Complete style.css for all pages
   Mobile-first, ONLY Flexbox layouts, brand-driven
   ============================= */

/* ---------------------------------
   0) CSS Reset & Base Normalization
-----------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding-left: 1.2rem; }
blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #00E5FF; outline-offset: 2px; }

/* ---------------------------------
   1) Theme Tokens (Brand + Vibrant)
-----------------------------------*/
:root {
  --primary: #0B2545;  /* brand primary */
  --secondary: #155E63; /* brand secondary */
  --accent: #F5F7FA;    /* brand accent */

  --electric-pink: #FF2D55;   /* vibrant */
  --electric-cyan: #00E5FF;   /* vibrant */
  --electric-yellow: #FFD600; /* vibrant */
  --electric-violet: #7C4DFF; /* vibrant */

  --bg: #FFFFFF;
  --text: #0B2545;
  --muted: #5C6B7A;
  --line: #E4E9F0;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 3px 10px rgba(11,37,69,0.08);
  --shadow-md: 0 10px 20px rgba(11,37,69,0.12);
  --shadow-lg: 0 18px 40px rgba(11,37,69,0.16);

  --container: 1200px;
}

/* ---------------------------------
   2) Base Typography
-----------------------------------*/
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; /* brand display */ font-weight: 800; line-height: 1.2; margin: 0 0 14px; letter-spacing: 0.2px; }

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p, li { font-size: 16px; color: var(--text); }
small { font-size: 14px; color: var(--muted); }

/* Responsive type scale */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  p, li { font-size: 17px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  p, li { font-size: 18px; }
}

/* Links */
a { color: var(--secondary); text-underline-offset: 3px; transition: color .2s ease, background-color .25s ease, border-color .25s ease, transform .25s ease; }
a:hover { color: var(--electric-pink); text-decoration: underline; }

/* Lists (flex column for consistent spacing) */
ul, ol { display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------
   3) Layout Primitives (Flex-only)
-----------------------------------*/
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* Section spacing (and required .section class) */
section { margin-bottom: 60px; padding: 40px 0; position: relative; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* High-energy left accent for sections */
main > section .content-wrapper { border-left: 6px solid var(--electric-cyan); padding-left: 16px; }
main > section:nth-of-type(2) .content-wrapper { border-left-color: var(--electric-pink); }
main > section:nth-of-type(3) .content-wrapper { border-left-color: var(--electric-yellow); }
main > section:nth-of-type(4) .content-wrapper { border-left-color: var(--electric-violet); }

/* ---------------------------------
   4) Header & Navigation (Flex)
-----------------------------------*/
header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 3px solid var(--accent); box-shadow: var(--shadow-sm); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { padding: 8px 10px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--primary); }
.main-nav a[aria-current="page"], .main-nav a:hover { border-bottom-color: var(--electric-cyan); color: var(--secondary); }

.header-ctas { display: none; align-items: center; gap: 12px; flex-wrap: wrap; }
.header-ctas a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; font-weight: 800; color: #fff; background: var(--secondary); box-shadow: var(--shadow-sm); }
.header-ctas a:nth-child(1) { background: var(--electric-violet); }
.header-ctas a:nth-child(2) { background: var(--electric-pink); }
.header-ctas a:nth-child(3) { background: var(--electric-cyan); color: #06202F; }
.header-ctas a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }

/* Hamburger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: none; border-radius: 10px; background: var(--primary); color: #fff; cursor: pointer; box-shadow: var(--shadow-sm); }
.mobile-menu-toggle:hover { background: #12325f; }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--primary); color: #fff; display: flex; flex-direction: column; gap: 20px; padding: 20px; transform: translateX(100%); transition: transform .35s ease; z-index: 2000; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; border: none; border-radius: 10px; background: #122D56; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu-close:hover { background: #193c73; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a { color: #fff; font-weight: 700; font-size: 18px; padding: 10px 8px; border-left: 4px solid transparent; }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { border-left-color: var(--electric-cyan); color: var(--electric-cyan); }

/* Show desktop navs on wider screens */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ---------------------------------
   5) Content Blocks & Cards (Flex)
-----------------------------------*/
.text-section { display: flex; flex-direction: column; gap: 12px; background: var(--accent); padding: 18px; border-radius: var(--radius-md); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.text-section::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--electric-cyan); border-radius: var(--radius-md) 0 0 var(--radius-md); }
.text-section a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; background: var(--electric-yellow); color: #1b1b1b; font-weight: 800; width: fit-content; box-shadow: var(--shadow-sm); }
.text-section a:hover { background: #ffdf33; transform: translateY(-1px); text-decoration: none; }

/* MANDATORY Patterns */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.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; background: #fff; color: var(--text); border: 2px solid var(--electric-cyan); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Testimonial specifics (readable, high-contrast) */
.testimonial-card blockquote { font-size: 18px; font-weight: 800; color: var(--primary); }
.testimonial-card p { margin: 0; color: var(--muted); }
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ---------------------------------
   6) Buttons & Utilities
-----------------------------------*/
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: #fff; border-color: var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--electric-cyan); color: #05263F; border-color: var(--electric-cyan); }
.btn-ghost { background: transparent; color: var(--primary); border-color: transparent; }
.btn-ghost:hover { background: var(--accent); }

.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--electric-pink); color: #fff; font-weight: 800; font-size: 12px; }

/* ---------------------------------
   7) Footer
-----------------------------------*/
footer { background: var(--primary); color: #fff; padding: 30px 0; border-top: 4px solid var(--electric-violet); }
footer .content-wrapper { flex-direction: column; gap: 20px; }
.footer-quick, .footer-legal, .footer-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
footer a { color: #fff; opacity: 0.9; font-weight: 700; }
footer a:hover { opacity: 1; color: var(--electric-cyan); }
.footer-ctas a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; background: #122D56; color: #fff; }
.footer-ctas a:hover { background: #163a72; }
footer .text-section{
    color: black;
}
/* ---------------------------------
   8) Responsive Alignment Rules
-----------------------------------*/
@media (max-width: 768px) {
    .text-image-section { flex-direction: column; align-items: center; }
}

@media (min-width: 992px) {
  .content-wrapper { flex-direction: column; }
}

/* ---------------------------------
   9) Additional Content Styling
-----------------------------------*/
/* Emphasize data-driven style with colored rule lines */
hr { border: none; height: 3px; background: var(--accent); }

/* Blockquote accent */
blockquote { padding-left: 14px; border-left: 4px solid var(--electric-pink); }

/* Tables (if any) */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--accent); font-weight: 800; }

/* Forms (generic styles if used later) */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); box-shadow: var(--shadow-sm) inset; }
input:focus, textarea:focus, select:focus { border-color: var(--electric-cyan); outline: none; box-shadow: 0 0 0 3px rgba(0,229,255,0.25); }

/* ---------------------------------
   10) Cookie Consent (Banner + Modal)
-----------------------------------*/
/* Banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; background: #fff; color: var(--text); display: flex; flex-direction: column; gap: 16px; padding: 16px 20px; box-shadow: 0 -8px 24px rgba(0,0,0,0.08); border-top: 4px solid var(--electric-yellow); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-actions .btn-accept { background: var(--electric-pink); color: #fff; }
.cookie-actions .btn-accept:hover { background: #ff476a; }
.cookie-actions .btn-reject { background: #fff; border: 2px solid var(--primary); color: var(--primary); }
.cookie-actions .btn-reject:hover { background: var(--accent); }
.cookie-actions .btn-settings { background: var(--electric-cyan); color: #06202F; }
.cookie-actions .btn-settings:hover { background: #22ebff; }

/* Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(11,37,69,0.65); z-index: 3500; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 720px; background: #fff; color: var(--text); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-lg); border: 3px solid var(--electric-violet); }
.cookie-modal .cookie-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cookie-modal .cookie-row:last-child { border-bottom: none; }
.cookie-modal .cookie-controls { display: flex; align-items: center; gap: 10px; }

/* Toggle placeholder (if implemented) */
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle input { width: 42px; height: 22px; accent-color: var(--electric-cyan); }

/* Banner / Modal animations */
@keyframes slideUp { from { transform: translateY(100%);} to { transform: translateY(0);} }
.cookie-banner { animation: slideUp .35s ease both; }

/* ---------------------------------
   11) Micro-interactions
-----------------------------------*/
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.text-section:hover { box-shadow: var(--shadow-md); }

/* ---------------------------------
   12) Accessibility & Contrast helpers
-----------------------------------*/
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------------------------
   13) Page-specific subtle accents (optional)
-----------------------------------*/
/* Highlight active header CTA */
.header-ctas a[aria-current="page"] { box-shadow: 0 0 0 3px rgba(255,255,255,0.2), inset 0 0 0 2px rgba(0,0,0,0.1); transform: translateY(-1px); }

/* ---------------------------------
   14) Ensure no overlaps and roomy spacing
-----------------------------------*/
main .container { gap: 24px; }
main .content-wrapper > * + * { margin-top: 0; }

/* ---------------------------------
   15) Flex-only verification helpers
-----------------------------------*/
/* Navs and groups explicitly flex */
nav { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-quick, .footer-legal { align-items: center; }

/* ---------------------------------
   16) Desktop refinements
-----------------------------------*/
@media (min-width: 992px) {
  header .content-wrapper { gap: 24px; }
  .logo img { height: 42px; }
  .text-section { padding: 22px; }
}

/* ---------------------------------
   17) Print tweaks (optional)
-----------------------------------*/
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; color: #000; }
}
