/*
 * Theme Name:  ESG Simple
 * Theme URI:   https://www.esgsimple.cz
 * Author:      ECO trend s.r.o. & KLB Legal, s.r.o.
 * Author URI:  https://www.ecotrend.cz
 * Description: ESG reporting pro malé a střední podniky. Projekt TAČR SS07020148 – Program Prostředí pro život.
 * Version:     1.0.0
 * Requires at least: 6.4
 * Requires PHP: 8.1
 * License:     Private – všechna práva vyhrazena
 * Text Domain: esg-simple
 * Tags:        esg, csrd, esrs, sustainability, reporting
 */

/* ============================================================
   CSS CUSTOM PROPERTIES (design tokens from HTML prototype)
   ============================================================ */
:root {
  /* Brand colors */
  --orange:      #E16839;
  --teal:        #4A7366;
  --cream:       #F8F6F3;
  --dark:        #1A1A1A;
  --white:       #FFFFFF;
  --gray:        #6B7280;
  --gray-light:  #F3F4F6;
  --border:      #E5E7EB;

  /* Typography */
  --font:        'Roboto', sans-serif;
  --size-sm:     0.875rem;
  --size-base:   1rem;
  --size-lg:     1.125rem;
  --size-xl:     1.25rem;
  --size-2xl:    1.5rem;
  --size-3xl:    2rem;
  --size-4xl:    2.75rem;

  /* Spacing */
  --section-pad: 5rem;
  --radius:      12px;
  --radius-sm:   8px;

  /* Effects */
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --transition:  all 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

nav .logo { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.current-menu-item { color: var(--orange); }
.nav-links a.current-menu-item::after { width: 100%; }

.cta-button {
  background: var(--orange);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--size-sm);
  white-space: nowrap;
}

.cta-button:hover {
  background: #c85a2e;
  color: var(--white);
  transform: translateY(-1px);
}

.nav-user {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cta-button--outline {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.cta-button--outline:hover {
  background: var(--orange);
  color: var(--white);
}

/* Mobile hamburger (hidden by default) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ============================================================
   PAGE OFFSET (fixed nav)
   ============================================================ */
body { padding-top: 72px; }

/* ============================================================
   HERO — LANDING
   ============================================================ */
.hero-landing {
  background: linear-gradient(135deg, var(--cream) 0%, #EBE9E4 100%);
  color: var(--dark);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-landing::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(225, 104, 57, 0.05) 0%, transparent 70%);
}

.hero-landing::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(74, 115, 102, 0.05) 0%, transparent 70%);
}

.hero-landing .container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-landing h1 {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.hero-landing .hero-content > p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.hero-landing .hero-content > p.lead {
  font-size: 1.35rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-highlights {
  margin: 1.5rem 0;
}

.hero-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-highlight-item .icon {
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.hero-highlight-item .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--teal);
  stroke-width: 1.75;
  fill: none;
}

.hero-highlight-item strong { color: var(--dark); }
.hero-highlight-item p { margin: 0; font-size: 1rem; color: var(--gray); opacity: 1; }

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ============================================================
   HERO — SUBPAGES
   ============================================================ */
.hero-subpage {
  background: linear-gradient(135deg, var(--teal) 0%, #2d4f45 100%);
  color: var(--white);
  padding: 3.5rem 0;
}

.hero-subpage h1 {
  font-size: var(--size-3xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-subpage .breadcrumb {
  font-size: var(--size-sm);
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-subpage .breadcrumb a { opacity: 0.85; }
.hero-subpage .breadcrumb a:hover { opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.primary-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(225, 104, 57, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.primary-btn:hover {
  background: #D15A2E;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 104, 57, 0.3);
}

.secondary-btn {
  display: inline-block;
  background: var(--white);
  color: var(--teal);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 2px solid var(--teal);
}

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

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--teal);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* ============================================================
   STATS GRID (hero visual)
   ============================================================ */
.hero-visual { position: relative; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-card:hover { transform: translateY(-5px); }

.stat-card .number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.stat-card .label {
  font-size: var(--size-sm);
  color: var(--gray);
  margin-top: 0.5rem;
}

/* ============================================================
   FUNDING NOTICE
   ============================================================ */
.funding-notice {
  background: linear-gradient(135deg, var(--teal) 0%, #3A5D54 100%);
  color: var(--white);
  padding: 2rem;
  text-align: center;
}

.funding-notice p {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.95;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 6rem 2rem; background: var(--white); }
section:nth-child(even):not(.hero-subpage):not(.hero-landing) { background: var(--cream); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: var(--size-lg);
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--teal);
  font-size: var(--size-sm);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Alternating background */
section.bg-cream { background: var(--cream); }

/* ============================================================
   CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.75;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.card p { color: var(--gray); line-height: 1.7; margin-top: 0.5rem; }

/* Feature cards (landing) */
.feature-card {
  background: var(--cream);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 2px solid transparent;
}

.feature-card:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
}

.feature-card:hover .card-icon { background: var(--teal); border-color: var(--teal); }
.feature-card:hover .card-icon svg { stroke: var(--white); }
.feature-card h3 { font-size: 1.35rem; margin-bottom: 1rem; color: var(--dark); }
.feature-card p { color: var(--gray); line-height: 1.7; }

/* ESG pillar cards */
.esg-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.esg-card h3 { font-size: 1.75rem; color: var(--teal); margin-bottom: 1.25rem; }
.esg-card p { color: var(--gray); line-height: 1.7; margin-bottom: 0.75rem; }
.esg-card ul { list-style: none; margin-top: 1rem; }

.esg-card ul li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  color: var(--gray);
  line-height: 1.6;
}

.esg-card ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.step-number {
  background: var(--orange);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: var(--size-lg);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-content p { color: var(--gray); line-height: 1.7; margin-top: 0.5rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--orange);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.contact-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--cream);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-card:hover { transform: translateY(-5px); }

.contact-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1rem;
}

.contact-card p { color: var(--gray); margin-bottom: 0.75rem; line-height: 1.7; font-size: 0.95rem; }
.contact-card a { color: var(--orange); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
}

footer .container { max-width: 1200px; margin: 0 auto; }

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

footer h4 {
  color: var(--orange);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  margin-bottom: 0.75rem;
}

.footer-col a:hover { color: var(--orange); }

.badge {
  display: inline-block;
  background: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-top: 0.5rem;
}

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

.footer-bottom a { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   LEGAL CONTENT (GDPR, cookies, podmínky)
   ============================================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.legal-content h2 {
  font-size: var(--size-2xl);
  margin: 2.5rem 0 0.75rem;
  color: var(--teal);
}

.legal-content h3 {
  font-size: var(--size-xl);
  margin: 1.75rem 0 0.5rem;
}

.legal-content p, .legal-content li {
  color: var(--gray);
  margin-bottom: 0.75rem;
  font-size: var(--size-base);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: var(--size-sm);
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--size-base);
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(74,115,102,0.12);
}

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

.form-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit:hover {
  background: #c85a2e;
  transform: translateY(-1px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { animation: fadeIn 0.8s ease forwards; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-section.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-box h3 { font-size: 1rem; color: var(--teal); margin-bottom: 0.5rem; }
.info-box p  { color: var(--gray); font-size: 0.93rem; line-height: 1.7; }
.info-box a  { color: var(--orange); font-weight: 500; }

/* ============================================================
   SECURITY GRID
   ============================================================ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.security-item {
  background: var(--white);
  border-left: 4px solid var(--teal);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.security-item h3 { color: var(--teal); font-size: 1rem; margin-bottom: 0.5rem; }
.security-item p  { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   ESG GRID (partner cards)
   ============================================================ */
/* ============================================================
   FEATURES GRID (landing about)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--teal);
  stroke-width: 1.75;
  fill: none;
}

.esg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.section-link { display: inline-block; color: var(--orange); font-weight: 600; margin-top: 1rem; font-size: 0.95rem; }
.section-link:hover { text-decoration: underline; }

/* ============================================================
   GLOSSARY
   ============================================================ */
.glossary-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.glossary-item:hover { border-color: var(--teal); }
.glossary-item h3 { color: var(--teal); font-size: 1rem; margin-bottom: 0.5rem; }
.glossary-item p  { color: var(--gray); line-height: 1.7; }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; overflow: hidden; cursor: pointer; }

.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: var(--size-base);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--teal); line-height: 1; }
.faq-item.open .faq-q { color: var(--teal); background: var(--cream); }
.faq-item.open .faq-q::after { content: '−'; }

.faq-a {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  font-size: var(--size-sm);
  color: var(--gray);
  background: var(--white);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a { max-height: 300px; padding: 0.75rem 1.25rem 1.25rem; }

/* ============================================================
   AUTH PAGES (přihlášení, registrace)
   ============================================================ */
.auth-wrapper {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 3rem 1rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
}

.auth-card h1  { font-size: var(--size-2xl); font-weight: 700; margin-bottom: 0.25rem; text-align: center; }
.auth-subtitle { text-align: center; color: var(--gray); font-size: var(--size-sm); margin-bottom: 1.75rem; }
.auth-links    { text-align: center; margin-top: 1.25rem; font-size: var(--size-sm); }
.auth-links a  { color: var(--teal); font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

.auth-notice {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--gray);
  text-align: center;
}

.auth-notice a { color: var(--teal); }

.btn-primary-full {
  display: block;
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  text-align: center;
}

.btn-primary-full:hover { background: #c85a2e; transform: translateY(-1px); }

.btn-submit {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover { background: #3a5e52; transform: translateY(-1px); }

.btn-orange { display: inline-block; background: var(--orange); color: var(--white); padding: 0.85rem 2rem; border-radius: var(--radius-sm); font-weight: 600; transition: var(--transition); }
.btn-orange:hover { background: #c85a2e; color: var(--white); }

.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--teal); cursor: pointer; }
.checkbox-group label { font-size: var(--size-sm); color: var(--gray); cursor: pointer; line-height: 1.5; }
.checkbox-group label a { color: var(--teal); font-weight: 500; }

/* ============================================================
   DATABASE — filtry a grid
   ============================================================ */
.db-search { position: relative; margin-bottom: 1.25rem; }

.db-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gray);
  stroke-width: 2;
}

.db-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.db-search input:focus { border-color: var(--teal); }

.db-filter-groups {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  background: var(--cream);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.filter-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  min-width: 80px;
  flex-shrink: 0;
}

.db-filter-btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.db-count { font-size: 0.88rem; color: var(--gray); margin-bottom: 1rem; }
.db-count strong { color: var(--dark); font-weight: 600; }

.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.db-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.db-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.db-item[hidden] { display: none !important; }

.db-item-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.65rem; }
.db-item h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.db-item p  { font-size: 0.9rem; color: var(--gray); line-height: 1.65; margin-bottom: 0.6rem; }
.db-subtema { font-size: 0.78rem; color: var(--gray); margin-left: 0.1rem; }

.db-meta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 0.75rem 0 0.5rem; padding-top: 0.65rem; border-top: 1px solid var(--border); }
.meta-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--gray); }
.meta-item svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.dopad-vysoky { color: #B91C1C; font-weight: 500; }
.dopad-stredni { color: #B45309; font-weight: 500; }
.dopad-nizky  { color: #047857; font-weight: 500; }

.tag-row { margin-top: 0.5rem; }

.db-no-results { text-align: center; padding: 3rem 1rem; color: var(--gray); grid-column: 1 / -1; }
.db-no-results p { margin-bottom: 1rem; }

.tag        { display: inline-block; padding: 0.2rem 0.65rem; background: var(--cream); border-radius: 4px; font-size: 0.82rem; color: var(--teal); }
.tag-e      { background: rgba(74, 115, 102, 0.12); color: #2E5E52; border: 1px solid rgba(74, 115, 102, 0.25); }
.tag-s      { background: rgba(59, 130, 246, 0.1); color: #1D4ED8; border: 1px solid rgba(59, 130, 246, 0.25); }
.tag-g      { background: rgba(124, 58, 237, 0.1); color: #6D28D9; border: 1px solid rgba(124, 58, 237, 0.25); }
.tag-esrs   { background: var(--dark); color: var(--white); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.03em; padding: 0.2rem 0.6rem; }

/* ============================================================
   MEASURE DETAIL PAGE — single-esg_measure.php
   ============================================================ */
.hero-subpage-lead { opacity: 0.8; margin-top: 0.5rem; }

.measure-detail { padding: 4rem 0; }

.measure-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.measure-detail-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.measure-detail-content { max-width: 800px; }
.measure-detail-content h2 { color: var(--teal); font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.measure-detail-content h3 { color: var(--dark); font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.measure-detail-content p { color: var(--gray); line-height: 1.8; margin-bottom: 0.75rem; }
.measure-detail-content ul,
.measure-detail-content ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.measure-detail-content li { color: var(--gray); line-height: 1.8; }

.measure-detail-links { margin-top: 2rem; }
.measure-detail-links h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.measure-detail-links ul { list-style: disc; padding-left: 1.25rem; }
.measure-detail-links li { margin-bottom: 0.4rem; }
.measure-detail-links a { color: var(--teal); }
.measure-detail-links a:hover { color: var(--orange); text-decoration: underline; }

.measure-meta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.measure-meta-card h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--teal); }

.meta-row { margin-bottom: 0.75rem; }
.meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}
.meta-value { color: var(--dark); }

.measure-back-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.measure-back-link:hover { color: var(--orange); }

@media (max-width: 768px) {
  .measure-detail-grid { grid-template-columns: 1fr; }
  .measure-meta-card { position: static; }
}

/* ============================================================
   SUBTITLE (section description)
   ============================================================ */
.subtitle { color: var(--gray); font-size: var(--size-lg); max-width: 680px; margin: 0 auto; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-landing .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 3rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .nav-toggle { display: flex; }

  .hero-landing h1 { font-size: 2rem; }
  .hero-highlights { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section-header h2 { font-size: var(--size-2xl); }
  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .filter-tabs { flex-wrap: wrap; }
  .measures-list { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .db-grid { grid-template-columns: 1fr; }
  .db-filter-groups { padding: 1rem; }
  .filter-group-label { min-width: auto; width: 100%; }
}

/* ============================================================
   PROTOTYPE ALIASES (compatibility with HTML prototype classes)
   ============================================================ */
.steps       { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.step-num    { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--orange); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--size-lg); flex-shrink: 0; }

/* ============================================================
   STAGGER ANIMATION (for .esg-grid.stagger, .help-grid.stagger, etc.)
   ============================================================ */
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 100ms; }
.stagger > *:nth-child(3) { animation-delay: 200ms; }
.stagger > *:nth-child(4) { animation-delay: 300ms; }
.stagger > *:nth-child(5) { animation-delay: 400ms; }
.stagger > *:nth-child(6) { animation-delay: 500ms; }

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in-section.visible .stagger > * {
  opacity: 1;
  transform: none;
}

/* ============================================================
   DATABASE PREVIEW (front-page homepage section)
   ============================================================ */
.database-preview {
  background: var(--cream);
  padding: 3rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.filter-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.6rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
  font-family: var(--font);
}

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

.measures-list { display: grid; gap: 1rem; }

.measure-item {
  display: block;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--orange);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.measure-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.measure-item h4 { color: var(--dark); margin-bottom: 0.5rem; }
.measure-item p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0.5rem; }

.measure-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.measure-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--cream);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--teal);
  margin-right: 0.25rem;
}

.measure-tag.tag-e { background: #d1fae5; color: #065f46; }
.measure-tag.tag-s { background: #dbeafe; color: #1e40af; }
.measure-tag.tag-g { background: #ede9fe; color: #5b21b6; }

/* ============================================================
   HELP GRID (front-page Nápověda section)
   ============================================================ */
.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.help-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.help-card:hover { transform: translateY(-5px); }

.help-card .help-icon {
  width: 22px;
  height: 22px;
  stroke: var(--teal);
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
}

.help-card h3 {
  font-size: 1.35rem;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.help-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-card ul li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--gray);
  position: relative;
  font-size: 0.95rem;
}

.help-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 0.7rem;
  top: 0.15em;
}

/* ============================================================
   DATABÁZE OPATŘENÍ — page-databaze-opatreni.php
   ============================================================ */

/* Info cards grid */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-card .info-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  background: rgba(74, 115, 102, 0.1);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--teal);
}

.info-card .info-icon svg {
  width: 24px;
  height: 24px;
}

.info-card h3 {
  font-size: var(--size-base);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: var(--size-sm);
  color: var(--gray);
  line-height: 1.6;
}

/* Pagination */
.db-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.db-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: var(--size-sm);
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.db-pagination .page-numbers.current,
.db-pagination .page-numbers:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.db-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

/* ============================================================
   LEGAL CONTENT PAGES — page-gdpr/cookies/podminky.php
   ============================================================ */

.legal-content {
  padding: var(--section-pad) 0;
}

.container--narrow {
  max-width: 800px;
}

.prose {
  font-size: var(--size-base);
  line-height: 1.8;
  color: var(--dark);
}

.prose h2 {
  font-size: var(--size-xl);
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}

.prose h3 {
  font-size: var(--size-lg);
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--dark);
}

.prose p {
  margin-bottom: 1rem;
  color: var(--gray);
}

.prose ul,
.prose ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: var(--gray);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--orange);
}

/* ============================================================
   AUTH — registrace highlights list
   ============================================================ */

.auth-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--size-sm);
  color: var(--dark);
}

.auth-highlights li svg {
  flex-shrink: 0;
  color: var(--teal);
}

/* Mobile CTA nav items — hidden on desktop */
.nav-cta-mobile { display: none; }

/* ============================================================
   MOBILE — missing grid collapses (768px)
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Grids missing responsive rules */
  .esg-grid           { grid-template-columns: 1fr; gap: 1.5rem; }
  .features-grid      { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; gap: 1.5rem; }
  .security-grid      { grid-template-columns: 1fr; }

  /* Hide desktop CTA, show mobile CTA in dropdown */
  .nav-cta-desktop { display: none !important; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile .cta-button {
    display: block;
    text-align: center;
    min-height: 48px;
    line-height: 48px;
    padding: 0 1rem;
  }
  .nav-cta-mobile:first-of-type { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

  /* Touch-friendly nav */
  .nav-toggle {
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
  }
  .nav-links.open a {
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Touch-friendly buttons */
  .primary-btn,
  .secondary-btn,
  .btn-white {
    min-height: 48px;
    padding: 0.85rem 1.75rem;
  }
  .form-submit,
  .btn-primary-full,
  .btn-submit,
  .btn-orange {
    min-height: 48px;
  }

  /* Form inputs — prevent iOS zoom */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  /* FAQ touch target */
  .faq-q { min-height: 48px; }

  /* Hero subpage */
  .hero-subpage { padding: 2.5rem 0; }
  .hero-subpage h1 { font-size: 1.5rem; }
  .hero-subpage .breadcrumb { flex-wrap: wrap; font-size: 0.8rem; }

  /* Hero landing refinements */
  .hero-landing { padding: 3rem 1.5rem 2.5rem; }
  .hero-landing h1 { line-height: 1.3; }

  /* Contact card */
  .contact-card { padding: 2rem 1.5rem; }

  /* Measure detail — sidebar above content */
  .measure-detail { padding: 2.5rem 0; }
  .measure-detail-grid { gap: 2rem; }
  .measure-detail-aside { order: -1; }
  .measure-meta-card { padding: 1.25rem; }

  /* Database filter buttons */
  .db-filter-groups { padding: 0.75rem; gap: 0.75rem; }
  .db-filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

/* ============================================================
   MOBILE — small phones (480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --section-pad: 2rem;
  }

  .container { padding: 0 1rem; }

  /* Hero landing */
  .hero-landing { padding: 2rem 1rem; }
  .hero-landing h1 { font-size: 1.65rem; }
  .hero-landing .hero-content > p { font-size: 0.95rem; }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .primary-btn,
  .hero-buttons .secondary-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Section headers */
  .section-header h2 { font-size: 1.35rem; }
  .section-header { margin-bottom: 2.5rem; }
  .subtitle { font-size: var(--size-base); }

  /* Cards */
  .card, .feature-card, .esg-card { padding: 1.5rem; }
  .step { padding: 1.5rem; }
  .step-number { width: 36px; height: 36px; font-size: 1rem; }
  .help-card { padding: 1.5rem; }

  /* Auth pages */
  .auth-wrapper { padding: 2rem 0.75rem; }
  .auth-card { padding: 1.75rem; max-width: 100%; }
  .auth-card h1 { font-size: 1.25rem; }

  /* Database filters — 2-col grid */
  .filter-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }
  .filter-group-label { grid-column: 1 / -1; }
  .db-filter-btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    min-height: 40px;
  }

  /* Database grid */
  .db-grid { gap: 1rem; }
  .db-item { padding: 1.25rem; }
  .db-item h3 { font-size: 0.95rem; }
  .db-meta { gap: 0.5rem; }

  /* Database search — prevent iOS zoom */
  .db-search input { font-size: 1rem; }

  /* Database preview (homepage) */
  .database-preview { padding: 1.5rem; }

  /* CTA section */
  .cta-section { padding: 3rem 1rem; }
  .cta-section h2 { font-size: 1.5rem; }

  /* Footer */
  footer { padding: 2rem 1rem 1rem; }
  .footer-grid { gap: 1.5rem; }
  .footer-bottom { font-size: 0.78rem; }

  /* Info cards (database page) */
  .info-cards-grid { grid-template-columns: 1fr; }
  .info-card { padding: 1.25rem; }

  /* Funding notice */
  .funding-notice { padding: 1.5rem 1rem; }
}

/* ============================================================
   MOBILE — very small screens (374px, iPhone SE)
   ============================================================ */
@media (max-width: 374px) {
  .hero-landing h1 { font-size: 1.4rem; }
  .section-header h2 { font-size: 1.2rem; }
  .hero-buttons { gap: 0.5rem; }
  .db-filter-btn { padding: 0.4rem 0.5rem; font-size: 0.75rem; }
}

/* ============================================================
   TOUCH DEVICES — disable hover transforms
   ============================================================ */
@media (hover: none) {
  .card:hover,
  .feature-card:hover,
  .stat-card:hover,
  .contact-card:hover,
  .help-card:hover,
  .db-item:hover,
  .measure-item:hover {
    transform: none;
  }
}
