/* Letizorrid Jezdecká Akademie - Scandinavian Clean CSS
   Mobile-first, flexbox-only, accessible, and brand-consistent
   Brand colors: primary #2F2A24, secondary #2D5948, accent #F5EFE5 */

/* =========================
   RESET & BASELINE
   ========================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #2F2A24; background-color: #FAF9F6; line-height: 1.6; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding-left: 1.2rem; }
p { margin: 0; }
strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: #2D5948; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px dashed #2D5948; outline-offset: 2px; }

/* Typography scale */
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; color: #2F2A24; margin: 0; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; }
.subheadline { color: #504B45; font-size: 16px; }

/* Spacing utilities */
:root {
  --clr-primary: #2F2A24;
  --clr-secondary: #2D5948;
  --clr-accent: #F5EFE5;
  --clr-bg: #FAF9F6;
  --clr-surface: #FFFFFF;
  --clr-border: #E6E1D9;
  --radius-m: 12px;
  --shadow-s: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-m: 0 6px 20px rgba(0,0,0,0.08);
}

/* =========================
   MANDATORY SPACING/LAYOUT PATTERNS
   ========================= */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* =========================
   GLOBAL LAYOUT
   ========================= */
section { margin-bottom: 60px; padding: 40px 20px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; align-items: center; }
.content-wrapper { width: 100%; display: flex; flex-direction: column; gap: 20px; }

/* Subtle surfaces matching Scandinavian clean */
.surface, .text-section, .card { background: #FFFFFF; border: 1px solid #E6E1D9; border-radius: var(--radius-m); box-shadow: var(--shadow-s); padding: 20px; }

/* =========================
   HEADER & NAVIGATION
   ========================= */
header { position: sticky; top: 0; background: #FFFFFF; border-bottom: 1px solid #E6E1D9; z-index: 1000; }
header .container { padding: 0 12px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: #2F2A24; padding: 6px 8px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.main-nav a[aria-current="page"] { color: var(--clr-secondary); font-weight: 600; }
.main-nav a:hover { background: #F2EFE8; text-decoration: none; }

.header-ctas { display: none; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #D9D4CC; background: #FFFFFF; color: #2F2A24; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { background: #F5EFE5; transform: translateY(-1px); }

/* Mobile off-canvas menu */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 84%; max-width: 420px; background: #FFFFFF; border-left: 1px solid #E6E1D9; box-shadow: -8px 0 24px rgba(0,0,0,0.08); transform: translateX(100%); transition: transform .35s ease; z-index: 1400; display: flex; flex-direction: column; padding: 16px; }
/* Dim overlay via pseudo element */
.mobile-menu::before { content: ""; position: fixed; inset: 0; background: rgba(47,42,36,0.35); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu[aria-hidden="false"]::before { opacity: 1; pointer-events: auto; }
.mobile-menu-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #D9D4CC; background: #FFFFFF; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.mobile-nav a { display: block; padding: 14px 12px; border-radius: 10px; color: #2F2A24; background: #FFFFFF; border: 1px solid #EEE8DE; transition: background-color .2s ease, transform .2s ease; }
.mobile-nav a:hover { background: #F5EFE5; transform: translateX(2px); text-decoration: none; }
.mobile-nav a[aria-current="page"] { border-color: #2D5948; color: #2D5948; font-weight: 600; }

/* =========================
   BUTTONS
   ========================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #2D5948; color: #FFFFFF; border-color: #2D5948; }
.btn-primary:hover { background: #244C3D; box-shadow: 0 6px 16px rgba(45,89,72,0.25); text-decoration: none; }
.btn-secondary { background: #F5EFE5; color: #2F2A24; border-color: #E6E1D9; }
.btn-secondary:hover { background: #F1E8DA; box-shadow: var(--shadow-s); text-decoration: none; }

.cta-row, .service-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* =========================
   CARDS, LISTS, FEATURES
   ========================= */
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section h3 { margin-bottom: 4px; }

.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid .text-section { flex: 1 1 260px; }

.supporting-points ul, .stat-highlights ul, .timeline ul, .values-list ul, .qualifications-list ul, .certifications ul, .faq-items, .trainer-cards, .trainer-bios, .contact-cards, .testimonials-list { display: flex; flex-wrap: wrap; gap: 16px; padding-left: 0; list-style: none; }
.supporting-points li, .stat-highlights li, .timeline li, .values-list li, .certifications li { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #E6E1D9; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-s); }
.supporting-points img, .stat-highlights img { width: 20px; height: 20px; }

/* Trust badges (index) */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding-left: 0; }
.trust-badges li { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid #E6E1D9; border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow-s); }
.trust-badges img { width: 18px; height: 18px; }

/* Testimonials */
.testimonials-list { align-items: stretch; }
.testimonial-card { background: #FFFFFF; border: 1px solid #E6E1D9; border-radius: 14px; box-shadow: var(--shadow-s); color: #2F2A24; flex: 1 1 280px; }
.testimonial-card p { margin: 0; }
.testimonial-card:hover { box-shadow: var(--shadow-m); }

.rating-summary { display: flex; align-items: center; padding: 10px 12px; background: #F5EFE5; border: 1px solid #E6E1D9; border-radius: 10px; width: fit-content; }

/* Process steps */
.process-steps, .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.2rem; }
.notes-for-beginners ul { display: flex; flex-direction: column; gap: 6px; }

/* Info chips / notes */
.price-notes, .tax-and-fees { background: #FFFFFF; border: 1px solid #E6E1D9; border-radius: 12px; padding: 14px; }

/* Contact blocks */
.contact-cards .text-section { flex: 1 1 280px; }

/* Footer */
footer { background: #FFFFFF; border-top: 1px solid #E6E1D9; }
footer .content-wrapper { align-items: center; text-align: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; }
.footer-nav a { color: #2F2A24; padding: 6px 8px; border-radius: 8px; transition: background-color .2s ease; }
.footer-nav a:hover { background: #F2EFE8; text-decoration: none; }
.brand-statement p, .contact-mini p { color: #4A453F; }

/* =========================
   HERO & SECTION EMPHASIS
   ========================= */
/* First section on each page: soft accent background for Scandinavian warmth */
main > section:first-of-type { background: #F5EFE5; border-bottom: 1px solid #E6E1D9; border-top: 1px solid #E6E1D9; }
main > section:first-of-type .content-wrapper { padding-top: 10px; padding-bottom: 10px; }

/* =========================
   LINKS & MICRO INTERACTIONS
   ========================= */
a.button-link { display: inline-flex; align-items: center; gap: 8px; }
*[data-elevate], .text-section, .card { transition: box-shadow .25s ease, transform .2s ease; }
*[data-elevate]:hover, .text-section:hover, .card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }

/* =========================
   TABLES (if any text content uses) - keep minimalistic */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #E6E1D9; }
th { font-family: Georgia, 'Times New Roman', serif; color: #2F2A24; }

/* =========================
   MOBILE-FIRST RESPONSIVE FLEX LAYOUTS
   ========================= */
/* Common flexible groups */
.faq-items { display: flex; flex-wrap: wrap; gap: 16px; }
.faq-items .text-section { flex: 1 1 260px; }
.trainer-cards, .trainer-bios { display: flex; flex-wrap: wrap; gap: 16px; }
.trainer-cards .text-section, .trainer-bios .text-section { flex: 1 1 260px; }

/* Text-image sections (if used) */
.text-image-section { justify-content: space-between; }
.text-image-section > * { flex: 1 1 280px; }

/* =========================
   COOKIE CONSENT BANNER & MODAL
   ========================= */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; background: #FFFFFF; color: #2F2A24; border: 1px solid #E6E1D9; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); padding: 16px; display: flex; flex-direction: column; gap: 12px; z-index: 2000; transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner .btn { padding: 10px 14px; border-radius: 10px; }
.cookie-banner .btn-accept { background: #2D5948; border-color: #2D5948; color: #FFFFFF; }
.cookie-banner .btn-accept:hover { background: #244C3D; }
.cookie-banner .btn-reject { background: #FFFFFF; border: 1px solid #D9D4CC; color: #2F2A24; }
.cookie-banner .btn-reject:hover { background: #F5EFE5; }
.cookie-banner .btn-settings { background: #F5EFE5; border: 1px solid #E6E1D9; color: #2F2A24; }
.cookie-banner .btn-settings:hover { background: #F1E8DA; }

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(47,42,36,0.45); z-index: 2100; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content { background: #FFFFFF; border: 1px solid #E6E1D9; border-radius: 16px; width: 100%; max-width: 720px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 36px rgba(0,0,0,0.16); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #E6E1D9; border-radius: 12px; background: #FFFFFF; }
.cookie-category .label { display: flex; flex-direction: column; gap: 4px; }

/* Simple toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .switch { width: 44px; height: 26px; background: #E6E1D9; border-radius: 999px; position: relative; transition: background-color .2s ease; display: flex; align-items: center; }
.toggle .switch::after { content: ""; width: 20px; height: 20px; background: #FFFFFF; border: 1px solid #D1CCC4; border-radius: 50%; position: relative; left: 3px; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.toggle input:checked + .switch { background: #2D5948; }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.cookie-modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* =========================
   ACCESSIBILITY & MISC
   ========================= */
.hidden { display: none !important; }
.muted { color: #68635D; }

/* =========================
   MEDIA QUERIES
   ========================= */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .subheadline { font-size: 17px; }
}

@media (min-width: 768px) {
  .logo img { height: 42px; }
  .header-ctas { display: flex; }
  .cta-row, .service-cta-row { gap: 14px; }
  .text-image-section { flex-direction: row; }
  .feature-grid .text-section, .faq-items .text-section, .trainer-cards .text-section, .trainer-bios .text-section, .contact-cards .text-section { flex: 1 1 calc(50% - 20px); }
  .testimonials-list .testimonial-card { flex: 1 1 calc(50% - 20px); }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .content-wrapper { padding: 14px 12px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .feature-grid .text-section { flex: 1 1 calc(33% - 20px); }
  .testimonials-list .testimonial-card { flex: 1 1 calc(33% - 20px); }
}

/* =========================
   PAGE-SPECIFIC LIGHT TOUCHES
   ========================= */
/* Index page info chips spacing */
.stat-highlights ul, .supporting-points ul { gap: 12px; }

/* Timeline and values with clear spacing */
.timeline, .values-list { display: flex; flex-direction: column; gap: 10px; }

/* FAQ items as light cards */
.faq-items .text-section { background: #FFFFFF; }

/* Links in running text */
.content-wrapper a { transition: color .2s ease; }
.content-wrapper a:hover { color: #244C3D; }

/* =========================
   ENSURE MINIMUM GAPS BETWEEN CARDS & SECTIONS
   ========================= */
.text-section, .testimonial-card, .supporting-points li, .stat-highlights li, .timeline li, .values-list li, .certifications li, .contact-cards .text-section { margin-bottom: 0; }
.content-wrapper > * + * { margin-top: 0; }

/* =========================
   PRINT (basic) 
   ========================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; color: #000; }
  body { background: #FFFFFF; }
}
