/* ============================================================
   Tritius ILS — Main Stylesheet
   Design inspired by en.tritius.cz
   ============================================================ */

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

:root {
  --color-primary:    #007BBF;
  --color-primary-dark: #005f99;
  --color-dark:       #3A3A3A;
  --color-darker:     #212121;
  --color-bg:         #F0F0F0;
  --color-white:      #FFFFFF;
  --color-border:     #D8D8D8;
  --color-text:       #3A3A3A;
  --color-text-muted: #666666;
  --color-hero-bg:    #0D2040;

  --font-heading: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body:    'Open Sans', 'Segoe UI', Arial, sans-serif;

  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 32px rgba(0,0,0,0.16);

  --nav-height: 68px;
  --max-width: 1200px;
  --section-padding: 80px 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-darker);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.section--gray {
  background: var(--color-bg);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__header h2 {
  margin-bottom: 12px;
}

.section__header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
  height: var(--nav-height);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo:hover {
  color: var(--color-primary-dark);
}

.navbar__logo-dot {
  color: var(--color-dark);
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar__link {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.navbar__link:hover,
.navbar__link.active {
  background: var(--color-bg);
  color: var(--color-primary);
}

.navbar__link--cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  margin-left: 8px;
}

.navbar__link--cta:hover {
  background: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  border-left: 1px solid var(--color-border);
  padding-left: 12px;
}

.lang-btn {
  padding: 5px 9px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.05em;
}

.lang-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-border);
}

.lang-btn.active {
  color: var(--color-primary);
  background: #e8f4fb;
  border-color: var(--color-primary);
}

/* Burger button (mobile) */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
}

.navbar__burger span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-hero-bg);
  background-image: linear-gradient(135deg, #0D2040 0%, #0a3a6e 50%, #003d80 100%);
  color: var(--color-white);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,123,191,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,100,160,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__content {
  /* left column */
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  /* right column */
}

.hero__video {
  width: 100%;
  display: block;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}

/* ---------- Stats ---------- */
.stats {
  padding: 56px 20px;
  background: #1B115A;
}

.stats__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-card {
  text-align: center;
  padding: 36px 24px;
  border-right: 1px solid rgba(241, 241, 249, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.stat-card:last-child {
  border-right: none;
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.stat-card__icon svg {
  width: 100%;
  height: 100%;
}

.stat-card__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  color: #F9F9F9;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card__label {
  font-size: 0.88rem;
  color: rgba(241, 241, 249, 0.72);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e8f4fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--color-darker);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 12px;
  left: 20px;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-top: 20px;
  font-size: 0.95rem;
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0D2040 0%, #0a3a6e 100%);
  color: var(--color-white);
  padding: 64px 20px;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Features page grid ---------- */
.features-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-detail-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-primary);
}

.feature-detail-card__icon {
  width: 44px;
  height: 44px;
  background: #e8f4fb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-detail-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-detail-card h3 {
  margin-bottom: 8px;
}

.feature-detail-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- Pricing ---------- */
.pricing-tables {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pricing-table {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pricing-table__header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 24px 32px;
}

.pricing-table__header h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.pricing-table__header p {
  opacity: 0.85;
  font-size: 0.9rem;
  margin: 0;
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 24px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  background: #f7f9fb;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.pricing-table td:not(:first-child) {
  text-align: right;
  font-weight: 600;
  color: var(--color-primary);
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background: #f7f9fb;
}

.pricing-note {
  max-width: var(--max-width);
  margin: 32px auto 0;
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.pricing-cta {
  text-align: center;
  padding: 48px 20px;
  background: var(--color-bg);
}

.pricing-cta p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-darker);
  background: var(--color-white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-info {
  padding-top: 8px;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info-block {
  margin-bottom: 28px;
}

.contact-info-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.7;
}

.contact-info-block address {
  font-style: normal;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-hero-bg);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-white);
}

.footer__copy {
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 20px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  /* Nav mobile */
  .navbar__burger {
    display: flex;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px 16px 20px;
    gap: 4px;
  }

  #nav-menu.open {
    display: flex;
  }

  .lang-switcher {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 12px;
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
  }

  .navbar__link--cta {
    margin-left: 0;
    text-align: center;
  }

  /* Dropdown mobile: flat inline list */
  .nav-dropdown__menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 4px 0 4px 12px;
    margin-top: 2px;
  }

  .nav-dropdown.open .nav-dropdown__menu {
    display: block;
  }

  .nav-dropdown__toggle {
    width: 100%;
    justify-content: space-between;
  }

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

  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(241, 241, 249, 0.18);
  }

  .stat-card:nth-child(odd) {
    border-right: 1px solid rgba(241, 241, 249, 0.18);
  }

  .stat-card:nth-last-child(-n+2):not(:nth-child(odd)) {
    border-bottom: none;
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .features-detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ---------- Dropdown nav ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown__toggle:hover,
.nav-dropdown__toggle.active {
  background: var(--color-bg);
  color: var(--color-primary);
}

.nav-dropdown__arrow {
  font-size: 0.65rem;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown.open .nav-dropdown__arrow {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 160px;
  list-style: none;
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown__menu {
  display: block;
}

.nav-dropdown__item {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-dark);
  border-radius: var(--radius);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.nav-dropdown__item:hover,
.nav-dropdown__item.active {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* ---------- Internal / TODO nav link ---------- */
.navbar__link--internal {
  background: #FFF3CD;
  color: #7A5200 !important;
  border: 1px solid #FFDF7E;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.navbar__link--internal:hover {
  background: #FFE69C;
  color: #533500 !important;
}

/* ---------- Cookie consent banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-hero-bg);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  min-width: 220px;
}

.cookie-banner__text a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--color-white);
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__actions .btn--primary {
  padding: 9px 22px;
  font-size: 0.88rem;
}

.cookie-banner__decline {
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}

.cookie-banner__decline:hover {
  color: rgba(255,255,255,0.9);
}

@media (max-width: 600px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cookie-banner__actions {
    justify-content: center;
  }
}
