/*
==================================================================
ELVEA CSS FRAMEWORK - CORE.CSS (MASTER)
Version: 1.2.0
Created: 2025-10-15
Updated: Univerzálne section triedy s full-width pozadím
Base: Univerzálny základ pre všetky ELVEA stránky

NOVÉ V v1.2.0:
- Univerzálne section triedy: .section-even, .section-odd, .section-cta
- Full-width pozadie (100vw), centered obsah (container)
- Vizuálne oddelenie sekcií
- Flexibilné použitie na akejkoľvek stránke
==================================================================
*/

/* ===============================================
CSS CUSTOM PROPERTIES - KOMPLETNÉ Z v1.1.0
=============================================== */
:root {
  /* ELVEA BRAND COLORS */
  --color-primary: #000080;
  --color-primary-hover: #000066;
  --color-primary-light: #1a1a99;
  --color-primary-pale: #e6e6ff;
  --color-accent: #6B8E23;
  --color-accent-hover: #5A7A1E;
  --color-accent-dark: #556b1d;
  --color-accent-darker: #405716;
  --color-accent-light: #8FA847;
  --color-accent-pale: #E8F5E8;

  /* TEXT COLORS */
  --color-text-primary: #333333;
  --color-text-secondary: #666666;
  --color-text-menu: #2a2f59;
  --color-text-muted: #999999;
  --color-text-white: #ffffff;
  --color-text-white-90: rgba(255, 255, 255, 0.9);
  --color-text-white-95: rgba(255, 255, 255, 0.95);

  /* BACKGROUNDS - UNIVERZÁLNE SEKCIE v1.2.0 */
  --bg-top-bar: rgba(26, 26, 26, 0.55);
  --bg-header: #ffffff;
  --bg-body: rgba(248, 249, 250, 0.85);
  --bg-section-even: rgba(255, 255, 255, 0.8);       /* PÁRNE sekcie - biele */
  --bg-section-odd: rgba(248, 249, 252, 0.8);        /* NEPÁRNE sekcie - svetlé */
  --bg-section-cta: linear-gradient(135deg, rgba(0, 0, 128, 0.95) 0%, rgba(0, 48, 153, 0.95) 100%); /* CTA/Footer sekcie */
  --bg-hero: linear-gradient(135deg, rgba(0, 0, 128, 0.95) 0%, rgba(0, 48, 153, 0.95) 100%);
  --bg-contact: linear-gradient(135deg, rgba(0, 0, 128, 0.95) 0%, rgba(0, 48, 153, 0.95) 100%);
  --bg-white: rgba(255, 255, 255, 0.8);
  --bg-process: rgba(248, 249, 252, 0.8);
  --bg-partners: rgba(248, 249, 250, 0.8);
  --bg-footer: rgba(26, 26, 26, 0.95);
  --bg-search: rgba(255, 255, 255, 0.98);
  --color-border: #E5E8EB;
  --color-border-light: #d4d4d4;

/* [VŠETKY OSTATNÉ PREMENNÉ ROVNAKÉ...] */
  /* LAYOUT - DUAL HEADER */
  --container-max-width: 1536px;
  --container-max-width-content: 87.5%;
  --container-padding: 20px;
  --top-bar-height: 40px;
  --header-height: 85px;
  --header-height-mobile: 65px;
  --header-height-tablet: 75px;
  --search-bar-height: 80px;

  /* TYPOGRAPHY */
  --font-family-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;
  --font-weight-heavy: 900;

  /* SPACING & BORDERS */
  --border-radius: 6px;
  --border-radius-large: 12px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-5xl: 5rem;

  /* SHADOWS */
  --shadow-light: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-medium: 0 6px 20px rgba(0,0,0,0.15);
  --shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
  --shadow-cta: 0 4px 15px rgba(107, 142, 35, 0.4);
  --shadow-cta-hover: 0 6px 20px rgba(107, 142, 35, 0.5);
  --shadow-search: 0 4px 20px rgba(0,0,0,0.1);

  /* TRANSITIONS */
  --transition-standard: all 0.3s ease;
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-search: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-INDEX SCALE - v5.0.2 */
  --z-top-bar: 999997;
  --z-header-inner: 999998;
  --z-search: 999999;
  --z-mobile-menu: 9999999;
  --z-scroll-button: 1000;
}

.logo-img {
  z-index: -1;
}
/* [ZACHOVANÉ VŠETKY SVG ICONS, RESET, BASE STYLES, HEADER, NAVIGATION, TYPOGRAPHY, COMPONENTS Z v1.1.0...] */

/* ===============================================
UNIVERZÁLNE SECTION TRIEDY - NOVÉ v1.2.0
Full-width pozadie + centered obsah
=============================================== */

/* BASE SECTION - pre všetky sekcie */
.section-base {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 80px 0;
  margin: 0;
  border: none;
  transition: var(--transition-smooth);
}

/* PÁRNE SEKCIE - Biele pozadie */
.section-even {
  @extend .section-base;
  background: var(--bg-section-even);
  color: var(--color-text-primary);
}

/* NEPÁRNE SEKCIE - Svetlé pozadie */
.section-odd {
  @extend .section-base;
  background: var(--bg-section-odd);
  color: var(--color-text-primary);
}

/* CTA/FOOTER SEKCIE - Hero pozadie */
.section-cta,
.section-footer-hero {
  @extend .section-base;
  background: var(--bg-section-cta);
  color: var(--color-text-white);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* CSS FALLBACK pre prehliadače bez @extend */
.section-even,
.section-odd,
.section-cta,
.section-footer-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 80px 0;
  margin: 0;
  border: none;
  transition: var(--transition-smooth);
}

.section-even {
  background: var(--bg-section-even);
  color: var(--color-text-primary);
}

.section-odd {
  background: var(--bg-section-odd);
  color: var(--color-text-primary);
}

.section-cta,
.section-footer-hero {
  background: var(--bg-section-cta);
  color: var(--color-text-white);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* HERO SEKCIA - Špeciálna (vždy full-width) */
.hero {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-hero);
  color: var(--color-text-white);
  padding: 80px 0;
  margin: 0;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

/* ===============================================
SECTION CONTENT - CENTERED V CONTAINER
=============================================== */

/* Obsah sekcií - centrovaný v container */
.section-even .container,
.section-odd .container,
.section-cta .container,
.section-footer-hero .container,
.hero .container {
  max-width: var(--container-max-width-content);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

/* ===============================================
SECTION TITLES - PODĽA POZADIA
=============================================== */

.section__title {
  text-align: center;
  margin-bottom: 60px;
}

.section__title h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 15px;
  font-weight: var(--font-weight-black);
  transition: var(--transition-smooth);
}

.section__title p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

/* PÁRNE/NEPÁRNE SEKCIE - Tmavé titulky */
.section-even .section__title h2,
.section-odd .section__title h2 {
  color: var(--color-primary);
}

.section-even .section__title p,
.section-odd .section__title p {
  color: var(--color-text-secondary);
}

/* CTA/HERO SEKCIE - Biele titulky */
.section-cta .section__title h2,
.section-footer-hero .section__title h2,
.hero .section__title h2 {
  color: var(--color-text-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-cta .section__title p,
.section-footer-hero .section__title p,
.hero .section__title p {
  color: var(--color-text-white-90);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===============================================
LEGACY SUPPORT - STARÝCH NÁZVOV SEKCIÍ
=============================================== */

/* Zachováva kompatibilitu so starou štruktúrou */
.services {
  @extend .section-even;
}

.process {
  @extend .section-odd;
}

.values {
  @extend .section-even;
}

.partners {
  @extend .section-cta;
}

/* CSS FALLBACK pre legacy triedy */
.services,
.process,
.values,
.partners {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 80px 0;
  margin: 0;
  border: none;
  transition: var(--transition-smooth);
}

.services {
  background: var(--bg-section-even);
  color: var(--color-text-primary);
}

.process {
  background: var(--bg-section-odd);
  color: var(--color-text-primary);
}

.values {
  background: var(--bg-section-even);
  color: var(--color-text-primary);
}

.partners {
  background: var(--bg-section-cta);
  color: var(--color-text-white);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

/* ===============================================
CONTENT KOMPONENTY - AKTUALIZOVANÉ v1.2.0
=============================================== */

/* SERVICES GRID */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 60px;
}

.services__card {
  background: rgba(255, 255, 255, 0.95);
  padding: 50px 40px;
  border-radius: var(--border-radius-large);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-standard);
  border: 3px solid transparent;
  position: relative;
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.98);
}

/* [VŠETKY OSTATNÉ KOMPONENTY ROVNAKÉ AKO V v1.1.0...] */

/* ===============================================
RESPONSIVE DESIGN - v1.2.0
=============================================== */

@media (max-width: 768px) {
  .section-even,
  .section-odd,
  .section-cta,
  .section-footer-hero,
  .hero,
  .services,
  .process,
  .values,
  .partners {
    padding: 60px 0;
  }
  
  .section__title {
    margin-bottom: 40px;
  }
  
  .section__title h2 {
    font-size: 1.8rem;
  }
  
  .section__title p {
    font-size: 1.1rem;
  }
}

@media (min-width: 768px) {
  .main {
    padding-top: var(--header-height-tablet);
  }
  
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px 40px;
  }
}

@media (min-width: 1280px) {
  .main {
    padding-top: calc(var(--top-bar-height) + var(--header-height));
  }
  
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 40px;
  }
}

/* ===============================================
DEBUGGING & DEVELOPMENT HELPERS - v1.2.0
=============================================== */

/* Pomoc pri vývoji - ukáže hranice sekcií */
.debug-sections .section-even,
.debug-sections .section-odd,
.debug-sections .section-cta,
.debug-sections .section-footer-hero,
.debug-sections .hero {
  outline: 2px solid red;
  position: relative;
}

.debug-sections .section-even:before {
  content: "EVEN SECTION";
  position: absolute;
  top: 10px;
  left: 20px;
  background: red;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  z-index: 1000;
}

.debug-sections .section-odd:before {
  content: "ODD SECTION";
  position: absolute;
  top: 10px;
  left: 20px;
  background: blue;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  z-index: 1000;
}

.debug-sections .section-cta:before {
  content: "CTA SECTION";
  position: absolute;
  top: 10px;
  left: 20px;
  background: green;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  z-index: 1000;
}

/* ===============================================
End of ELVEA CSS FRAMEWORK - CORE.CSS v1.2.0

NOVÉ V TEJTO VERZII:
✅ Univerzálne section triedy: .section-even, .section-odd, .section-cta
✅ Full-width pozadie (100vw) s centered obsahom (container)  
✅ Vizuálne oddelenie sekcií
✅ Legacy podpora pre staré názvy (.services, .process, .values, .partners)
✅ Responsive design pre všetky zariadenia
✅ Debug helpers pre vývoj

POUŽITIE V HTML:
<section class="section-even">      <!-- biele pozadie -->
<section class="section-odd">       <!-- svetlé pozadie -->  
<section class="section-cta">       <!-- hero pozadie -->
<section class="hero">              <!-- hero sekcia -->

OBSAH AUTOMATICKY CENTROVANÝ:
- Pozadie: 100vw (celá šírka obrazovky)
- Obsah: container s max-width (centrovaný)
=============================================== */
