/* =========================================================================
   VERDE GROUP — style.css
   Farebné tokeny prevzaté 1:1 z Lovable projektu (src/index.css).
   Hodnoty sú HSL trojice, aby sa dala použiť priehľadnosť:
   hsl(var(--primary))  a  hsl(var(--primary) / .6)
   ========================================================================= */

:root {
  --background: 150 50% 97%;
  --foreground: 155 55% 15%;

  --popover: 0 0% 100%;

  --primary: 153 58% 23%;
  --primary-foreground: 150 60% 93%;

  --secondary: 150 60% 92%;
  --muted: 150 30% 94%;
  --muted-foreground: 155 15% 40%;
  --accent: 150 50% 88%;

  --border: 150 25% 88%;
  --input: 150 25% 88%;
  --ring: 153 58% 23%;

  --radius: 0.75rem;

  --hero-gradient: linear-gradient(135deg, hsl(150 50% 93%) 0%, hsl(150 60% 88%) 100%);
  --section-alt: 150 50% 93%;

  /* Farby hlavičky boli v Lovable zadané napevno, nie cez tokeny */
  --header-bg: #175e40;
  --header-border: #0f4a31;
  --header-text: #dff7ed;

  --header-h: 4rem;      /* výška hlavičky na mobile */
  --header-h-md: 5rem;   /* výška hlavičky na desktope */
}

/* ============================= Základ ================================= */

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h4 { font-size: .875rem; font-weight: 600; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

ul { list-style: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

input { font: inherit; }

/* Viditeľný focus pre klávesnicu — v pôvodnom projekte chýbal */
:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 4px;
}

/* Kotvy sa nesmú schovať pod fixnú hlavičku */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

@media (min-width: 768px) {
  section[id] { scroll-margin-top: calc(var(--header-h-md) + 1rem); }
}

/* Skryté ikonové SVG (sprite) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Text len pre čítačky obrazovky */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================ Kontajner =============================== */
/* Zodpovedá Tailwind container: center, padding 2rem, max-width 1400px */

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 2rem;
}

@media (min-width: 1400px) {
  .container { max-width: 1400px; }
}

/* ============================ Ikony =================================== */

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================ Sekcie ================================== */

.section { padding-block: 4rem; }

.section--alt { background-color: hsl(var(--section-alt)); }
.section--bg { background-color: hsl(var(--background)); }
.section--muted { background-color: hsl(var(--muted) / .4); }

@media (min-width: 768px) {
  .section { padding-block: 6rem; }
}

.eyebrow {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: hsl(var(--primary) / .6);
  margin-bottom: .5rem;
}

.section-title {
  font-size: 1.875rem;
  color: hsl(var(--primary));
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

/* ============================ Hlavička ================================ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo { flex-shrink: 0; display: flex; align-items: center; }

.header__logo img {
  height: 2.5rem;
  width: auto;
}

.header__nav { display: none; }

.header__nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--header-text);
  text-decoration: none;
  transition: opacity .2s;
}

.header__nav a:hover { opacity: .8; }

.header__toggle {
  display: inline-flex;
  padding: .5rem;
  color: var(--header-text);
}

.header__toggle .icon--close { display: none; }

.header__toggle[aria-expanded="true"] .icon--menu { display: none; }
.header__toggle[aria-expanded="true"] .icon--close { display: block; }

.header__mobile {
  display: none;
  background-color: var(--header-bg);
  border-top: 1px solid var(--header-border);
}

.header__mobile.is-open { display: block; }

.header__mobile a {
  display: block;
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--header-text);
  text-decoration: none;
}

.header__mobile a:hover { opacity: .8; }

@media (min-width: 768px) {
  .header__bar { height: var(--header-h-md); }
  .header__logo img { height: 3rem; }
  .header__nav { display: flex; align-items: center; gap: 2rem; }
  .header__toggle { display: none; }
  .header__mobile { display: none !important; }
}

/* ============================== Hero ================================== */

.hero {
  background: var(--hero-gradient);
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__title {
  font-size: 1.875rem;
  line-height: 1.25;
  color: hsl(var(--primary));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero { padding-top: 9rem; padding-bottom: 6rem; }
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 3.25rem; }
}

/* Tlačidlá */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s, background-color .2s;
}

.btn--primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn--primary:hover { opacity: .9; }

.btn--outline {
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn--outline:hover { background-color: hsl(var(--primary) / .05); }

/* ============================ Karusel ================================= */

.carousel { position: relative; }

.carousel__viewport {
  position: relative;
  background-color: hsl(var(--background) / .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  min-height: 260px;
  padding: 2rem;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.carousel__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
  visibility: hidden;
}

.carousel__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

/* Odchádzajúci slide ide nahor, tak ako v pôvodnej Framer Motion animácii */
.carousel__slide.is-leaving {
  opacity: 0;
  transform: translateY(-20px);
  visibility: visible;
}

.carousel__slide .icon {
  width: 3rem;
  height: 3rem;
  stroke-width: 1.5;
  color: hsl(var(--primary));
}

.carousel__slide h2 {
  font-size: 1.25rem;
  color: hsl(var(--primary));
}

.carousel__slide p {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  max-width: 20rem;
}

@media (min-width: 768px) {
  .carousel__slide h2 { font-size: 1.5rem; }
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
}

.carousel__dot {
  width: .625rem;
  height: .625rem;
  border-radius: 999px;
  background-color: hsl(var(--primary) / .3);
  transition: width .3s, background-color .3s;
}

.carousel__dot.is-active {
  width: 1.5rem;
  background-color: hsl(var(--primary));
}

/* ======================= Verejná správa =============================== */

.verejna {
  position: relative;
  overflow: hidden;
  background-color: hsl(var(--background));
  padding-block: 5rem;
}

@media (min-width: 768px) {
  .verejna { padding-block: 7rem; }
}

.verejna__dots,
.verejna__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.verejna__dots {
  opacity: .7;
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--primary) / .12) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image:
    radial-gradient(ellipse at 0% 0%, black 0%, transparent 55%),
    radial-gradient(ellipse at 100% 40%, black 0%, transparent 50%);
  mask-image:
    radial-gradient(ellipse at 0% 0%, black 0%, transparent 55%),
    radial-gradient(ellipse at 100% 40%, black 0%, transparent 50%);
}

.verejna__glow {
  background: linear-gradient(
    to bottom,
    hsl(var(--background) / 0),
    hsl(var(--background) / .8),
    hsl(var(--background))
  );
}

.verejna .container { position: relative; z-index: 10; }

.verejna .eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: .75rem;
}

.verejna .section-title { margin-bottom: 2rem; }

@media (min-width: 1024px) {
  .verejna .section-title { font-size: 3rem; }
}

/* ============================== Mriežky =============================== */

.grid { display: grid; gap: 1.5rem; }

@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.grid--partners { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .grid--partners { grid-template-columns: repeat(4, 1fr); }
}

.grid--2 { gap: 2rem; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================== Karty ================================= */

.card {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  background-color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: hsl(var(--primary));
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: .5rem;
}

.card__text {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

/* Karty verejnej správy */

.card--gov {
  border-color: hsl(var(--border) / .6);
  background-color: hsl(var(--popover) / .8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 1px 2px hsl(var(--foreground) / .05);
  transition: box-shadow .3s, transform .3s;
}

@media (min-width: 768px) {
  .card--gov { padding: 2rem; }
}

.card--gov .card__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.card--gov .card__icon .icon { width: 1.625rem; height: 1.625rem; }

.card--gov .card__title { font-size: 1.25rem; margin-bottom: .75rem; }
.card--gov .card__text { margin-bottom: 1.5rem; }

/* Karty súkromného sektora */

.card--biz {
  background-color: hsl(var(--background));
  transition: box-shadow .3s, transform .3s;
}

/* Karty O nás */

.card--about { background-color: hsl(var(--muted)); }
.card--about .card__title { font-size: 1.25rem; margin-bottom: .75rem; }

.card--about .card__text {
  text-align: justify;
  hyphens: auto;
}

@media (hover: hover) {
  .card--gov:hover,
  .card--biz:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px hsl(var(--foreground) / .1),
                0 4px 6px -4px hsl(var(--foreground) / .1);
  }
}

/* Štítky pod kartami verejnej správy */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: .75rem;
  background-color: hsl(var(--secondary) / .8);
  padding: .5rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.chip .icon { width: 1rem; height: 1rem; }

/* Zoznam prínosov v súkromnom sektore */

.benefits { margin-top: 1.25rem; }

.benefits h4 { color: hsl(var(--foreground)); margin-bottom: .75rem; }

.benefits ul { display: flex; flex-direction: column; gap: .5rem; }

.benefits li {
  display: flex;
  gap: .5rem;
  font-size: .875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.benefits li .icon {
  width: 1rem;
  height: 1rem;
  margin-top: .125rem;
  color: hsl(var(--primary));
}

.card__footnote {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

.card__footnote h4 { color: hsl(var(--foreground)); margin-bottom: .5rem; }

/* ============================ Partneri ================================ */

.partner {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.5rem;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.partner img {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Logá majú veľmi rozdielne pomery strán, tak sa im obmedzuje výška zvlášť,
   aby na karte pôsobili opticky rovnako veľké. Čísla sa dajú pokojne doladiť. */

.partner--lockup img { max-height: 4.5rem; }   /* dvojriadkové, napr. HPE */
.partner--wide   img { max-height: 2.75rem; }  /* široké, napr. AUSEMIO, Ascom */
.partner--xwide  img { max-height: 1.6rem; }   /* veľmi široké, napr. GreyCortex */

/* =========================== Referencie =============================== */

.quote-card {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background-color: hsl(var(--background));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-card > .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--primary) / .4);
}

.quote-card blockquote {
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--foreground));
  flex: 1;
}

.quote-card footer {
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.quote-card cite {
  display: block;
  font-style: normal;
  font-size: .875rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.quote-card footer span {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================== O nás ================================= */

.values { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }

.values li {
  font-size: .875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.values b { font-weight: 600; color: hsl(var(--foreground)); }

.card--about a {
  color: hsl(var(--primary));
  font-weight: 600;
}

.lead-in {
  font-size: .875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: .5rem;
}

/* ============================= Kontakt ================================ */

.contact__grid { display: grid; gap: 2.5rem; }

@media (min-width: 768px) {
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

.contact__heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.contact__row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
}

.contact__badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .5rem;
  background-color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.contact__badge .icon { width: 1.125rem; height: 1.125rem; }

.contact__row strong {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.contact__row span,
.contact__row a {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  display: block;
}

.contact__row a { color: hsl(var(--primary)); }
.contact__row a:hover { text-decoration: underline; }

.contact__box {
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background-color: hsl(var(--background));
  padding: 2rem;
}

.contact__box p {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

/* Odkaz na email namiesto formulára */

.contact__box .btn {
  gap: .5rem;
  word-break: break-word;
}

.contact__box .btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* ============================== Pätička =============================== */

.footer {
  padding-block: 2rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
}

.footer p {
  font-size: .875rem;
  color: hsl(var(--muted-foreground));
}

/* ====================== Obmedzenie animácií =========================== */

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .carousel__slide { transform: none !important; }
}
