:root {
  --gold: #D4AA69;
  --gold-soft: rgba(212, 170, 105, 0.12);   /* svetlá zlatá – hover */
  --gold-medium: rgba(212, 170, 105, 0.22); /* tmavšia zlatá – aktívny stav */
  --gold-semidark: #c49a5f;                 /* tmavšia zlatá od gold */
  --gold-dark: #b89055;                     /* najtmavšia zlatá */

  --blue: #204560;
  --dark: #575756;

  --bg-light: #f7f7f7;
  --white: #ffffff;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
}

body {
  font-size: 16px;
  line-height: 1.65;
}

/* 
Nepouzite, lebo h3 bolo v Služby menšie ako h4.
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; } 
*/
h1 {
  color: var(--blue);
}

h2 {
  color: var(--blue);
}

h3 {
  color: var(--blue);
}

p, li {
  font-size: 1rem;
}

.nav-link {
  font-weight: 500;
}

.hero {
  padding: 7rem 1rem 5rem;
  background: linear-gradient(rgba(255,255,255,.92), rgba(255,255,255,.92)), url('../img/hero.jpg') top/cover;
}

.icon-box i {
  font-size: 2.2rem;
  color: var(--gold);
}

.btn-primary {
  background-color: var(--gold);
  border: none;
}

.btn-primary:hover {
  background-color: var(--gold-semidark);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
  background-color: var(--gold-dark); /* ešte o kúsok tmavší zlatý */
  border-color: var(--gold-dark);
  box-shadow: none;
}

.btn-outline-secondary {
  --bs-btn-color: var(--blue);
  --bs-btn-border-color: var(--blue);
  --bs-btn-hover-color: var(--white);
  --bs-btn-hover-bg: var(--blue);
  --bs-btn-hover-border-color: var(--blue);
  --bs-btn-active-color: var(--white);
  --bs-btn-active-bg: var(--dark); /* mierne tmavší odtieň */
  --bs-btn-active-border-color: var(--dark);
  --bs-btn-focus-shadow-rgb: 255, 0, 0;
}

.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary:active:focus {
  box-shadow: none;
}

footer {
  background: var(--blue);
  color: white;
}

/* === Accordion – hover a aktívny stav (dizajn manuál) === */

/* Hover na záhlavie */
.accordion-button:hover {
  background-color: var(--gold-soft);
}

/* Rozbalený (aktívny) accordion */
.accordion-button:not(.collapsed) {
  background-color: var(--gold-medium);
  color: var(--blue);
  box-shadow: none;
}

/* Focus – odstránenie bootstrapového glow */
.accordion-button:focus {
  box-shadow: none;
  border-color: var(--gold);
}

/* === CERTIFICATES == */
.certificate-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #f6f1e7, var(--white));
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
}

.certificate-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.certificate-title {
  font-weight: 600;
}

.certificate-meta {
  color: var(--blue);
  opacity: 0.8;
  font-size: 0.95rem;
}

.certificate-hours {
  margin-top: auto;
  color: var(--blue);
  opacity: 0.8;
  font-size: 0.9rem;
}

.reference-text {
  margin-bottom: 0.75rem;
}

.reference-signature {
  color: var(--blue);
  opacity: 0.8;
  font-size: 0.95rem;
  font-style: italic;
}

.quote-inline {
  color: var(--gold);
  opacity: 0.35;
  font-size: 1.4rem;
  margin-right: 0.35rem;
  position: relative;
  top: 0.1rem; /* jemné vertikálne zarovnanie k textu */
}

/* ================= CERTIFIKÁTY – OBRÁZKY ================= */

.certificate-placeholder {
  height: 200px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.certificate-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* kľúčové: orez / zmenšenie */
}

/* Hover efekt – jemné priblíženie */
.certificate-card:hover img {
  transform: scale(1.05);
}

.certificate-placeholder img {
  transition: transform 0.3s ease;
}

/* ================= LIGHTBOX ================= */

.certificate-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 2rem;
}

.certificate-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  border-radius: 4px;
}

.certificate-lightbox.active {
  display: flex;
}

.certificate-lightbox .close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ===============================
   CERTIFIKÁTY – FIX LAYOUTU
   =============================== */

/* karta */
.certificate-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
}

/* wrapper pre obrázok */
.certificate-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
}

/* samotný obrázok */
.certificate-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* certifikát sa nedeformuje */
}

/* placeholder bez obrázku */
.certificate-placeholder {
  height: 200px;
  background: var(--bg-light);
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 1px;
}

/* telo karty */
.certificate-body {
  flex: 1;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

/* názov certifikátu */
.certificate-body h5 {
  font-weight: 600;
  margin-bottom: .5rem;
}

/* meta info */
.certificate-meta,
.certificate-hours {
  font-size: .9rem;
  color: #777;
}

/* hodiny vždy dole */
.certificate-hours {
  margin-top: auto;
}

/* ===============================
   LIGHTBOX
   =============================== */

#certificateLightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#certificateLightbox.open {
  display: flex;
}

#certificateLightbox img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

/* ===============================
   CERTIFIKÁTY – DIZAJNOVÁ VRSTVA
   =============================== */

.certificate-card {
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.certificate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

/* jemný hover indikátor pre klikateľné karty */
.certificate-card:not(.no-image)::after {
  /* content: "Zobraziť certifikát"; */
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: .75rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity .2s ease;
}

.certificate-card:not(.no-image):hover::after {
  opacity: 1;
}

/* vizuálne rozlíšenie obsahu */
.certificate-body h5 {
  font-size: 1.05rem;
  color: var(--blue);
}

.certificate-meta {
  font-style: italic;
}

.certificate-hours {
  font-weight: 500;
  color: var(--gold);
}

/* placeholder menej „technický“ */
.certificate-placeholder {
  font-size: .85rem;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    #f2f2f2,
    #e9e9e9
  );
  border-bottom: 1px solid #ddd;
}

ul.list-unstyled li a,
ul.list-unstyled li a:active {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

ul.list-unstyled li a:hover,
ul.list-unstyled li a:focus {
    opacity: 0.7;
}

/* === SERVICES === */
.service-tile {
  display: block;
  padding: 1.2rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--blue);
  background-color: var(--bg-light);
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-tile:hover,
.service-tile:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.service-section {
  max-width: 720px;
  margin: 0 auto 5rem auto;
  scroll-margin-top: 140px;
}

.service-section:target h3 {
color: var(--gold)
}

.service-section h3 {
  margin-bottom: 2rem;
}

.service-block {
  margin-bottom: 3rem;
}

.service-block blockquote {
  font-style: italic;
  color: var(--dark);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.service-cta {
margin-top: 3rem;
padding: 2rem;
text-align: center;
background-color: var(--gold-soft);
border-radius: 16px;
}

.service-cta p {
/* color: var(--dark); */
margin-bottom: 1rem;
}

.btn-kb {
color: var(--gold-dark);
border: 1px solid var(--gold-dark);
background-color: transparent;
}

.btn-kb:hover {
color: var(--white);
background-color: var(--gold);
}

.btn-kb:focus,
.btn-kb:active,
.btn-kb:active:focus {
color: var(--white);
background-color: var(--gold-semidark);
}

.service-block a {
color: var(--blue);
text-decoration: none;
}

.service-block a:hover {
color: var(--gold);
text-decoration: underline;
}

.service-block blockquote {
color: var(--dark);
border-left: 4px solid var(--gold);
padding-left: 1.5rem;
margin: 2rem 0;
}

.service-tile:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(212, 170, 105, 0.45),
    0 12px 28px rgba(0,0,0,0.12);
  transform: translateY(-6px);
}

blockquote {
  font-style: italic;
  color: var(--dark);
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* Spoločný focus štýl pre tlačidlá a odkazy */
.btn:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 170, 105, 0.45);
}

/* WCAG AA-ready */
:focus-visible {
  outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(212, 170, 105, 0.45);
}

.btn-primary {
  font-weight: 600;
}

/* .skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus-visible {
  top: 10px;
} */

a {
  color: var(--gold);
  text-decoration: none;
}

a:active {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover,
a:focus {
    opacity: 0.7;
}

a:active:focus {
  color: var(--gold-dark);
  opacity: 1;
}

/* ============================= */
/* KONTAKT – dvojstĺpcové údaje */
/* ============================= */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: start;
  column-gap: 1rem;
}

.contact-label {
  font-weight: 600;
  color: var(--blue);
}

.contact-value {
  color: var(--dark);
}
/* 
@media (max-width: 768px) {
  .contact-item {
    grid-template-columns: 1fr;
    row-gap: 0.3rem;
  }
}
 */