/* ===================================================
   DRIT s.r.o. – drit.cz
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:      #111827;
  --darker:    #0d1117;
  --blue:      #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light:#eff6ff;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-disp: 'Raleway', sans-serif;
  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --transition: 0.2s ease;

  /* Semantic theme vars – light defaults */
  --bg-body:      #ffffff;
  --bg-surface:   #f8fafc;
  --bg-card:      #ffffff;
  --bg-input:     #ffffff;
  --border-card:  #e2e8f0;
  --text-body:    #334155;
  --text-muted:   #64748b;
  --text-heading: #111827;
  --hover-item:   #f8fafc;
}

/* --- Dark mode --- */
[data-theme="dark"] {
  --bg-body:      #0d1117;
  --bg-surface:   #111827;
  --bg-card:      #1e293b;
  --bg-input:     #0f172a;
  --border-card:  rgba(255,255,255,0.09);
  --text-body:    #cbd5e1;
  --text-muted:   #94a3b8;
  --text-heading: #f1f5f9;
  --hover-item:   rgba(255,255,255,0.05);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg-body:      #0d1117;
    --bg-surface:   #111827;
    --bg-card:      #1e293b;
    --bg-input:     #0f172a;
    --border-card:  rgba(255,255,255,0.09);
    --text-body:    #cbd5e1;
    --text-muted:   #94a3b8;
    --text-heading: #f1f5f9;
    --hover-item:   rgba(255,255,255,0.05);
  }
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo { flex-shrink: 0; line-height: 0; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--gray-400);
  cursor: pointer;
  padding: 6px 9px;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d1117 0%, #111827 55%, #152035 100%);
  overflow: hidden;
  padding: 120px 0 80px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 65%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 65%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-disp);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray-500);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===================================================
   SECTIONS
   =================================================== */
.section {
  padding: 96px 0;
}

.section:nth-child(odd):not(.section-dark) {
  background: var(--bg-body);
}

.section:nth-child(even):not(.section-dark) {
  background: var(--bg-surface);
}

.section-dark {
  background: var(--dark);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header.light h2,
.section-header.light p { color: var(--white); }

.section-label {
  display: inline-block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-dark .section-label { color: #60a5fa; }

.section-header h2 {
  font-family: var(--font-disp);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ===================================================
   SERVICE CARDS
   =================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gray-200);
}

.section:nth-child(even) .card {
  background: var(--bg-card);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===================================================
   WHY US / REASONS
   =================================================== */
.reasons {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.reason {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.reason:last-child { border-bottom: none; }

.reason-num {
  font-family: var(--font-disp);
  font-weight: 200;
  font-size: 3rem;
  color: rgba(37, 99, 235, 0.4);
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  padding-top: 4px;
}

.reason-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.reason-body p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.section-testimonial {
  background: var(--bg-surface);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 28px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  font-style: normal;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-heading);
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
}

a.contact-item:hover {
  background: var(--hover-item);
}

a.contact-item:hover .contact-icon-wrap {
  background: var(--blue);
  color: var(--white);
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  transition: background var(--transition), color var(--transition);
}

.contact-item strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item span, .contact-item a {
  font-size: 0.97rem;
  color: var(--text-heading);
  font-weight: 500;
  line-height: 1.4;
}

.contact-note-inline {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

[data-theme="dark"] .contact-note-inline {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .contact-note-inline {
    background: rgba(37, 99, 235, 0.12);
    color: var(--text-muted);
  }
}

.contact-note {
  margin-top: 16px;
  padding: 16px;
  background: var(--blue-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}

[data-theme="dark"] .contact-note {
  background: rgba(37, 99, 235, 0.12);
}

.contact-note p {
  font-size: 0.88rem;
  color: var(--blue-dark);
  font-weight: 500;
}

[data-theme="dark"] .contact-note p {
  color: #93c5fd;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.req { color: var(--blue); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-heading);
  background: var(--bg-input);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.field-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 18px;
}

.cf-turnstile { margin-bottom: 18px; }

#formStatus {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}

#formStatus.success {
  display: block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

#formStatus.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--darker);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-left: auto;
  text-align: right;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { margin-left: 0; text-align: left; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13,17,23,0.98);
    padding: 24px;
    gap: 4px;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open + .nav-cta {
    display: block;
    position: fixed;
    top: auto;
    bottom: 24px;
    left: 24px; right: 24px;
    text-align: center;
  }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .section { padding: 64px 0; }
  .reason { flex-direction: column; gap: 12px; }
  .reason-num { font-size: 2rem; width: auto; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .cards { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
   ══════════════════════════════════════════════════════════ */

#cookie-banner {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 620px;
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity   0.32s ease;
  pointer-events: none;
}

#cookie-banner.cb--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

#cookie-banner.cb--hiding {
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
}

/* Karta */
.cb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.22),
    0 4px 16px  rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 22px 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Logo + nadpis */
.cb-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cb-logo {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 200;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.cb-logo-dr,
.cb-logo-it {
  color: var(--text-heading);
}

.cb-logo-dot {
  color: #2563eb;
  font-weight: 700;
}

.cb-logo-sub {
  display: block;
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 4px;
  font-weight: 300;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.cb-divider {
  width: 1px;
  height: 32px;
  background: var(--border-card);
  flex-shrink: 0;
}

.cb-title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
}

/* Popis */
.cb-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.cb-text strong {
  color: var(--text-body);
  font-weight: 500;
}

.cb-text a {
  color: var(--blue);
  text-decoration: none;
}

.cb-text a:hover {
  text-decoration: underline;
}

/* Tlačítka */
.cb-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2px;
}

.cb-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.cb-btn--decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
}

.cb-btn--decline:hover {
  background: var(--hover-item);
  color: var(--text-body);
  border-color: var(--gray-400);
}

.cb-btn--accept {
  background: var(--blue);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.cb-btn--accept:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* Mobilní layout */
@media (max-width: 520px) {
  #cookie-banner {
    bottom: 12px;
    width: calc(100% - 20px);
  }

  .cb-card {
    padding: 18px 18px 16px;
  }

  .cb-actions {
    flex-direction: column-reverse;
    gap: 7px;
  }

  .cb-btn {
    width: 100%;
    padding: 10px 18px;
    text-align: center;
  }
}
