/* ═══════════════════════════════════════════════════════════════
   ORTOCELL – Prezentačný web
   Farby: biela, tmavomodrá #0B2545, akcentová tyrkysová #1B9AAA
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0B2545;
  --teal:   #1B9AAA;
  --teal-l: #d0f0f4;
  --white:  #ffffff;
  --off-white: #f7f9fc;
  --gray:   #6b7280;
  --gray-l: #e5e7eb;
  --text:   #1f2937;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(11,37,69,.08);
  --shadow-md: 0 8px 40px rgba(11,37,69,.14);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Container ─────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn--primary:hover { background: #158a98; border-color: #158a98; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,154,170,.35); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover { background: var(--teal-l); }

.btn--lg { padding: 15px 36px; font-size: 1rem; }

/* ─── Header ────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,37,69,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  transition: all var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.logo__text {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--white);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.08); }

.nav__cta { margin-left: 12px; }

.btn--logout {
  margin-left: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--logout:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, #103a6a 50%, #0e4d5c 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231B9AAA' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 24px;
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll-hint span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.4;transform:scaleY(.5) translateY(0)} 50%{opacity:1;transform:scaleY(1) translateY(0)} }

/* ─── Highlights ────────────────────────────────────────────────── */
.highlights {
  background: var(--white);
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-l);
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.highlight-card {
  text-align: center;
  padding: 32px 24px;
  border: 1.5px solid var(--gray-l);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.highlight-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.highlight-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.highlight-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.highlight-card p {
  font-size: .875rem;
  color: var(--gray);
}

/* ─── Section commons ───────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--alt { background: var(--off-white); }

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ─── Services ──────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 36px 32px;
  border: 1.5px solid var(--gray-l);
  border-radius: var(--radius);
  background: var(--white);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--teal);
  border-radius: 0 0 4px 0;
  transition: height .4s ease;
}
.service-card:hover::before { height: 100%; }
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-card__num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--teal);
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card__text {
  font-size: .9rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card__list li {
  font-size: .85rem;
  color: var(--gray);
  padding-left: 16px;
  position: relative;
}
.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: .75rem;
}

/* ─── About ─────────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__text .section__title { text-align: left; }

.about__text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: .95rem;
}
.about__text p strong { color: var(--text); }

.about__stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1.5px solid var(--gray-l);
}

.stat__num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1;
}
.stat__label {
  font-size: .8rem;
  color: var(--gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about__img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--teal-l), #e8f6f8);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray);
  font-size: .9rem;
  border: 2px dashed rgba(27,154,170,.3);
}
.about__img-placeholder span { font-size: 3rem; }

/* ─── News ──────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.news-card {
  background: var(--white);
  border: 1.5px solid var(--gray-l);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.news-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }

.news-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy), #103a6a);
  border: none;
  color: var(--white);
}
.news-card--featured .news-card__date { color: var(--teal); }
.news-card--featured .news-card__title { color: var(--white); }
.news-card--featured .news-card__text { color: rgba(255,255,255,.7); }

.news-card__badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.news-card__date {
  display: block;
  font-size: .8rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.news-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.news-card__text {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ─── Contact ───────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-block__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.contact-block h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 4px;
}

.contact-block p {
  color: var(--text);
  font-size: .95rem;
}
.contact-block p a { color: var(--navy); font-weight: 600; }
.contact-block p a:hover { color: var(--teal); }

.contact-block__note {
  font-size: .75rem;
  color: #f59e0b;
  font-style: italic;
}

.hours-table {
  border-collapse: collapse;
  margin-top: 4px;
}
.hours-table td {
  padding: 3px 20px 3px 0;
  font-size: .875rem;
  color: var(--text);
}
.hours-table td:last-child { color: var(--gray); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 420px;
}
.contact-map iframe {
  width: 100%; height: 100%;
  border: none;
}

/* ─── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #0e7a87 100%);
  padding: 72px 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 56px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.footer__brand .logo__mark { display: inline-flex; margin-bottom: 8px; }
.footer__brand .logo__text { display: inline; }
.footer__brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  margin-top: 10px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__legal p {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}
.footer__copy {
  margin-top: 16px !important;
  color: rgba(255,255,255,.3) !important;
  font-size: .75rem !important;
}

/* ─── Back to top ───────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--teal); transform: translateY(-3px); }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { display: none; flex-direction: column; gap: 0; }
  .nav.open {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav__link { padding: 14px 24px; border-radius: 0; }
  .nav__cta { margin: 8px 24px 0; }
  .hamburger { display: flex; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map { height: 300px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card--featured { grid-column: 1; }
  .about__stats { flex-direction: column; gap: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .highlights__grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .highlights__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
}
