/* ==========================================================================
   PROSTIK PROSTO - Vědecký portál o zdraví prostaty a prevenci
   Design System & Modern CSS Rules
   Aesthetics: Deep Navy (#0F1E2E), Terracotta (#D86A4C), Sage (#688A75), Sand (#FAF8F5)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --color-navy-dark: #0F1E2E;
  --color-navy-card: #16293D;
  --color-navy-light: #1E3650;
  --color-terracotta: #D86A4C;
  --color-terracotta-hover: #C2563A;
  --color-sage: #688A75;
  --color-sage-light: #EBF2EC;
  --color-sand-bg: #FAF8F5;
  --color-sand-card: #F3EFE9;
  --color-text-main: #1D2939;
  --color-text-muted: #536476;
  --color-text-light: #E2E8F0;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  --color-gold-badge: #D9A74A;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(15, 30, 46, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 30, 46, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 30, 46, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-sand-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ==========================================================================
   TOP DISCLAIMER BAR (Google Ads & EAU Compliance)
   ========================================================================== */
.top-disclaimer-bar {
  background-color: #0A141F;
  color: #94A3B8;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-disclaimer-bar strong {
  color: var(--color-gold-badge);
}
.top-disclaimer-bar a {
  color: #CBD5E1;
  text-decoration: underline;
}

/* ==========================================================================
   HEADER & NAVIGATION (Dark Navy Header like design mockup)
   ========================================================================== */
.main-header {
  background-color: var(--color-navy-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-sage));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.brand-badge {
  font-size: 0.6875rem;
  background-color: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-link {
  color: #CBD5E1;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-terracotta);
  border-radius: 2px;
}

.btn-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(104, 138, 117, 0.2);
  border: 1px solid rgba(104, 138, 117, 0.4);
  color: #A3C9AE;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cert-badge:hover {
  background-color: rgba(104, 138, 117, 0.35);
  color: white;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTIONS (Navy style from reference mockup)
   ========================================================================== */
.hero-section {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(216, 106, 76, 0.15) 0%, rgba(15, 30, 46, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(216, 106, 76, 0.15);
  border: 1px solid rgba(216, 106, 76, 0.3);
  color: #FFA58C;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.hero-lead {
  font-size: 1.125rem;
  color: #94A3B8;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Custom Image Frame Grid matching user mockup stacked photos */
.hero-visual-frame {
  position: relative;
  display: flex;
  justify-content: center;
}

.stacked-card-grid {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 380px;
}

.stacked-photo-box {
  position: absolute;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--color-white);
  overflow: hidden;
  background-color: var(--color-navy-card);
  transition: var(--transition);
}

.stacked-photo-1 {
  width: 250px;
  height: 290px;
  left: 10px;
  top: 10px;
  transform: rotate(-4deg);
  z-index: 2;
}

.stacked-photo-2 {
  width: 230px;
  height: 250px;
  right: 20px;
  top: 40px;
  transform: rotate(5deg);
  z-index: 3;
}

.stacked-photo-3 {
  width: 210px;
  height: 190px;
  bottom: 10px;
  left: 90px;
  transform: rotate(-2deg);
  z-index: 4;
}

.stacked-photo-box svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.botanical-decor {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}

.botanical-top-left {
  top: -20px;
  left: -20px;
  width: 90px;
}

.botanical-bottom-right {
  bottom: -30px;
  right: 10px;
  width: 110px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-terracotta);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(216, 106, 76, 0.4);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   FEATURE STRIP & TRUST BADGES
   ========================================================================== */
.trust-strip {
  background-color: var(--color-sand-card);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.75rem 1.5rem;
}

.trust-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-main);
  font-size: 0.875rem;
  font-weight: 600;
}

.trust-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CONTENT SECTIONS & CARDS
   ========================================================================== */
.section {
  padding: 5rem 1.5rem;
}

.section-dark {
  background-color: var(--color-navy-dark);
  color: var(--color-white);
}

.section-header {
  max-width: 750px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--color-terracotta);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-dark .section-subtitle {
  color: #FFA58C;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.section-dark .section-title {
  color: var(--color-white);
}

.section-description {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.section-dark .section-description {
  color: #94A3B8;
}

.grid-3 {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

/* CARDS WITH DECORATIVE ACCENTS */
.info-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(216, 106, 76, 0.3);
}

.section-dark .info-card {
  background-color: var(--color-navy-card);
  border-color: rgba(255, 255, 255, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--color-sage-light);
  color: var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.section-dark .card-title {
  color: var(--color-white);
}

.card-text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.section-dark .card-text {
  color: #CBD5E1;
}

.card-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  color: var(--color-terracotta-hover);
  gap: 0.6rem;
}

/* SCIENTIFIC REFERENCE BOX */
.citation-box {
  background-color: #F8FAFC;
  border-left: 4px solid var(--color-sage);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}
.citation-box strong {
  color: var(--color-text-main);
}

/* ==========================================================================
   ARTICLE / CONTENT PAGE STYLES
   ========================================================================== */
.page-header {
  background-color: var(--color-navy-dark);
  color: white;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.page-breadcrumb {
  color: #94A3B8;
  font-size: 0.875rem;
}
.page-breadcrumb a {
  color: #CBD5E1;
}

.article-container {
  max-width: 900px;
  margin: -2rem auto 4rem;
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.reviewer-badge {
  background-color: var(--color-sage-light);
  color: var(--color-sage);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--color-navy-dark);
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-navy-dark);
}

.article-body p {
  margin-bottom: 1.25rem;
  color: #334155;
  line-height: 1.7;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: #334155;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background-color: #F1F5F9;
  border-left: 4px solid var(--color-terracotta);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}
.callout-title {
  font-weight: 700;
  color: var(--color-navy-dark);
  margin-bottom: 0.5rem;
}

/* FORM STYLES FOR CONTACT PAGE */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-navy-dark);
}

.form-input, .form-textarea {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(216, 106, 76, 0.15);
}

/* ==========================================================================
   FOOTER (Dark Navy Footer with Legal Links & Google Ads Compliance)
   ========================================================================== */
.main-footer {
  background-color: #0B1622;
  color: #94A3B8;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  color: white;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: white;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94A3B8;
}

.footer-links a:hover {
  color: white;
}

.footer-disclaimer-box {
  max-width: 1280px;
  margin: 0 auto 2.5rem;
  padding: 1.25rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748B;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   COOKIE BANNER (GDPR Compliance)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 600px;
  background-color: var(--color-navy-dark);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9999;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.cookie-text {
  font-size: 0.84375rem;
  color: #CBD5E1;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

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

.btn-cookie-accept {
  background-color: var(--color-terracotta);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.84375rem;
  cursor: pointer;
}

.btn-cookie-decline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.84375rem;
  cursor: pointer;
}

/* ==========================================================================
   CERTIFICATE MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 30, 46, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: white;
  max-width: 650px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.cert-badge-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--color-sand-card);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .stacked-card-grid {
    margin: 0 auto;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-navy-dark);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-menu.active {
    display: flex;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .article-container {
    padding: 2rem 1.5rem;
    margin-top: -1rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
