/* ==========================================================================
   Travel Leg Health Polska — Design System
   Brand: Travel Leg Health Polska (travelleghealth.info)
   Target: Poland (pl-PL)
   Palette: Navy Blue (#0F2C59), Deep Teal (#087E8B), Warm Amber (#D97706), Soft Slate (#F8FAFC)
   Typography: Plus Jakarta Sans / Outfit
   ========================================================================== */

:root {
  --navy: #0F2C59;
  --navy-dark: #071933;
  --navy-light: #1E3E6D;

  --teal: #087E8B;
  --teal-hover: #06656F;
  --teal-light: #F0FDFA;
  --teal-subtle: #CCFBF1;
  --teal-border: #99F6E4;

  --amber: #D97706;
  --amber-hover: #B45309;
  --amber-light: #FFFBEB;
  --amber-border: #FDE68A;

  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-alt: #F1F5F9;
  --bg-muted: #E2E8F0;

  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --border-light: rgba(15, 23, 42, 0.08);
  --border-card: #E2E8F0;
  --border-focus: #087E8B;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

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

html {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--navy);
  color: var(--text-white);
  padding: 10px 18px;
  z-index: 99999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 15px;
  outline: 3px solid var(--amber);
}

:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

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

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}
a:hover {
  color: var(--teal-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-top: 2rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.35rem; margin-top: 1.5rem; margin-bottom: 0.65rem; }
p { margin-bottom: 1.15rem; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Navigation */
.site-header {
  background: var(--navy);
  color: var(--text-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--navy-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.brand-tagline {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

.nav-links a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.btn-header-cta {
  background: var(--amber);
  color: #FFFFFF !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}
.btn-header-cta:hover {
  background: var(--amber-hover) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 44, 89, 0.98);
  backdrop-filter: blur(8px);
  z-index: 999;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-links a {
  color: #F8FAFC;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #38BDF8;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
  color: var(--text-muted);
}

.breadcrumbs-list a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumbs-list a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.breadcrumbs-separator {
  color: var(--text-light);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--text-white);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--text-white);
  font-size: 2.5rem;
  max-width: 900px;
}

.page-hero-lead {
  font-size: 1.2rem;
  color: #CBD5E1;
  max-width: 820px;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: #94A3B8;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Content Layout */
.content-section {
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.main-article {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
}

.main-article h2 {
  border-bottom: 2px solid var(--teal-subtle);
  padding-bottom: 0.4rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.widget-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
}

/* Callout Boxes */
.callout-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.75rem 0;
  border-left: 4px solid;
}

.callout-info {
  background: var(--teal-light);
  border-color: var(--teal);
  color: #0F5159;
}

.callout-warning {
  background: var(--amber-light);
  border-color: var(--amber);
  color: #78350F;
}

.callout-medical {
  background: #FEF2F2;
  border-color: #DC2626;
  color: #991B1B;
}

.callout-box h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Figures & Diagrams */
.article-figure {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
}

.article-figure img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.figure-caption {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-top: 1px solid var(--border-card);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.feature-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--navy);
}

.feature-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  flex-grow: 1;
}

.feature-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Interactive Tools Styling */
.tool-container {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.checklist-progress-wrap {
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  height: 12px;
  overflow: hidden;
  margin: 1.25rem 0;
}

.checklist-progress-bar {
  background: linear-gradient(90deg, var(--teal), var(--amber));
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.checklist-item:hover {
  background: var(--bg-alt);
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
  cursor: pointer;
  margin-top: 2px;
}

.checklist-item-content {
  flex-grow: 1;
}

.checklist-item-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
}

.checklist-item-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 3px;
  margin-bottom: 0;
}

.checklist-score-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Assistant Wizard */
.wizard-step {
  margin-bottom: 2rem;
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.wizard-btn {
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.wizard-btn:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.wizard-btn.selected {
  border-color: var(--navy);
  background: var(--teal-subtle);
  box-shadow: 0 0 0 1px var(--navy);
}

.wizard-btn-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.wizard-btn-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.wizard-result {
  background: var(--bg-page);
  border: 2px dashed var(--teal);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
}

/* Comparison Table / Cards */
.comparison-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.comparison-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.comparison-card-badge {
  display: inline-block;
  padding: 3px 8px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* FAQ Accordion */
.faq-search-wrap {
  margin-bottom: 2rem;
}

.faq-search-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.faq-search-input:focus {
  border-color: var(--teal);
  outline: none;
}

.faq-item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question-btn:hover {
  background: var(--bg-alt);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--teal);
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-body);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Contact Form */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  padding: 12px 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 126, 139, 0.15);
}

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

.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  display: none;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #94A3B8;
  margin-top: auto;
  border-top: 3px solid var(--teal);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #38BDF8;
  padding-left: 4px;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  color: white;
  padding: 1.25rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  display: none;
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn-cookie-accept {
  background: var(--teal);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-cookie-manage {
  background: transparent;
  color: #CBD5E1;
  border: 1px solid #475569;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-secondary {
  background: var(--navy);
  color: white;
}
.btn-secondary:hover {
  background: var(--navy-light);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .comparison-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 768px) {
  .main-nav .nav-links, .main-nav .btn-header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .page-hero h1 {
    font-size: 1.85rem;
  }
  .main-article {
    padding: 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
