/* =====================================
   LugliCarbo Rekonstrukce – style.css
   Design: geometric_structured
   Layout: Mobile-first, Flexbox-only (no CSS Grid/Columns)
   ===================================== */

/* ------------------------------
   CSS RESET / NORMALIZE
------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
main { display: block; }
h1 { font-size: 2em; margin: 0.67em 0 0.4em; }
hr { height: 0; color: inherit; }
abbr[title] { border-bottom: none; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
img { border-style: none; max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { background-color: transparent; color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid #1F3A56; outline-offset: 2px; }

/* ------------------------------
   THEME TOKENS
------------------------------ */
:root {
  --primary: #1F3A56; /* deep steel blue */
  --secondary: #995200; /* copper */
  --accent: #F5F7FA; /* light slate */
  --ink: #1A1D21; /* near-black for text */
  --muted: #6B7280; /* slate */
  --line: #E5E9F0; /* light divider */
  --white: #FFFFFF;
  --shadow-1: 0 2px 10px rgba(31,58,86,0.08);
  --shadow-2: 0 6px 20px rgba(31,58,86,0.12);
}

/* Fallbacks if custom properties unsupported */
body { background: #FFFFFF; color: #1A1D21; }

/* ------------------------------
   TYPOGRAPHY
------------------------------ */
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px; /* base */
  line-height: 1.6;
  color: var(--ink);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif; /* angular, geometric */
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-wrap: balance;
}

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; position: relative; }
h3 { font-size: 18px; line-height: 1.4; margin: 12px 0 4px; color: var(--ink); }

.subheadline { color: var(--muted); font-size: 16px; margin-top: 8px; }

p { font-size: 16px; color: var(--ink); }
small { font-size: 14px; color: var(--muted); }

/* Geometric section heading accent */
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--secondary);
  margin-top: 10px;
}

/* Links */
a { color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { color: #224564; }
a:active { color: #13283a; }

/* ------------------------------
   LAYOUT HELPERS (FLEX ONLY)
------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;           /* flex-only layout */
  flex-direction: column;  /* mobile-first */
  gap: 24px;               /* spacing between children */
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

section { /* baseline spacing for all sections */
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: 0; }

/* Mandatory spacing and alignment 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; }

/* ------------------------------
   HEADER / NAVIGATION
------------------------------ */
header {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  position: relative;
  z-index: 40;
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img { height: 40px; width: auto; }

.main-nav {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 16px;
}
.main-nav a {
  color: var(--primary);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.main-nav a:hover { border-color: var(--line); background: var(--accent); }
.main-nav a[aria-current="page"] { border-color: var(--secondary); color: var(--secondary); }

.header-cta {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 12px;
}
.phone-link { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; }
.phone-link img { width: 16px; height: 16px; }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  font-size: 22px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.mobile-menu-toggle:hover { background: var(--accent); transform: translateY(-1px); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1000; /* above header */
  padding: 20px;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 44px; height: 44px;
  border-radius: 6px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 18px;
  padding: 12px 10px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); }
.mobile-nav a[aria-current="page"] { border-color: var(--secondary); color: var(--secondary); }

/* ------------------------------
   HERO
------------------------------ */
.hero {
  background: var(--accent);
  padding: 40px 0;
  position: relative;
}
/* geometric corner accent */
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-left: 48px solid transparent;
  border-bottom: 48px solid var(--secondary);
}

.hero .container { gap: 0; }
.hero .content-wrapper { gap: 16px; }
.hero h1 { margin: 0; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------
   BUTTONS
------------------------------ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  border-radius: 6px; /* angular but slightly softened */
  box-shadow: var(--shadow-1);
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--accent); }

/* ------------------------------
   LISTS / TEXT SECTIONS (Geometric bullets)
------------------------------ */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}
.text-section ul,
.text-section ol {
  display: flex;             /* flex-only */
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}
.text-section ul li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.text-section ul li::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--secondary);
  transform: rotate(45deg); /* diamond bullet */
  margin-top: 7px;
  flex: 0 0 auto;
}
.text-section ol {
  counter-reset: geo;
}
.text-section ol > li {
  list-style: none;
  counter-increment: geo;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.text-section ol > li::before {
  content: counter(geo);
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px;
  flex: 0 0 auto;
}

/* Trust badges on home */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 0;
}
.trust-badges li {
  list-style: none;
  background: var(--white);
  border: 2px solid var(--line);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}

/* ------------------------------
   CARDS / TESTIMONIALS
------------------------------ */
.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.testimonial-card {
  background: var(--white); /* CRITICAL: light background, dark text */
  border: 2px solid var(--line);
  border-left: 6px solid var(--secondary);
  border-radius: 8px;
  box-shadow: var(--shadow-1);
}
.testimonial-card h3 { margin: 0; color: var(--primary); }
.testimonial-card p { margin: 0; color: var(--ink); }

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  background: var(--primary);
  color: var(--white);
  margin-top: 20px;
}
footer .container { gap: 0; }
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.footer-brand img { width: 40px; height: auto; }
.footer-brand p { color: #E8EEF6; }

.footer-nav, .footer-legal, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer h3 { color: #E8EEF6; font-size: 16px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.08em; }
footer a { color: #E8EEF6; }
footer a:hover { color: #ffffff; }

footer .social { display: flex; gap: 12px; }
footer .social img { width: 20px; height: 20px; filter: invert(90%); }

footer .content-wrapper:last-child { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; align-items: center; }

/* ------------------------------
   RESPONSIVE (Flex direction switches)
------------------------------ */
@media (min-width: 768px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 40px; }
  .subheadline { font-size: 18px; }
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  footer .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  .content-grid { justify-content: space-between; }
}

@media (min-width: 1200px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* ------------------------------
   UTILITIES
------------------------------ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.separator { width: 100%; height: 2px; background: var(--line); }

/* ------------------------------
   FORMS (generic styling for any forms that may be added)
------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,58,86,0.12); outline: none; }
label { font-weight: 700; font-size: 14px; color: var(--primary); margin-bottom: 6px; display: inline-block; }

/* ------------------------------
   COOKIE CONSENT BANNER + MODAL
------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 3px solid var(--primary);
  box-shadow: 0 -6px 20px rgba(31,58,86,0.12);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-primary { background: var(--secondary); border-radius: 6px; }
.cookie-banner .btn-secondary { border-color: var(--primary); color: var(--primary); }

/* Cookie modal overlay */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none; /* toggled by JS */
  align-items: center;
  justify-content: center;
  z-index: 1001;
}
.cookie-overlay.show { display: flex; }

.cookie-modal {
  background: var(--white);
  width: min(720px, 92vw);
  border-radius: 10px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal h3 { margin: 0; color: var(--primary); }
.cookie-modal .cookie-groups { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 2px solid var(--line); border-radius: 8px; padding: 12px; }
.cookie-modal .cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .switch {
  width: 46px; height: 26px;
  background: var(--accent);
  border: 2px solid var(--line);
  border-radius: 999px;
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}
.toggle .knob {
  position: absolute; top: 50%; left: 2px;
  transform: translate(0, -50%);
  width: 20px; height: 20px;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: transform .2s ease, border-color .2s ease;
}
.toggle input:checked + .switch { background: rgba(31,58,86,0.12); border-color: var(--primary); }
.toggle input:checked + .switch .knob { transform: translate(18px, -50%); border-color: var(--primary); }

/* Essential cookies (always enabled) */
.cookie-row.essential { background: #fbfcfe; border-color: #DFE7F2; }

/* ------------------------------
   GEOMETRIC MICRO-ACCENTS
------------------------------ */
.geo-bar { height: 4px; width: 64px; background: var(--secondary); }
.boxed { border: 2px solid var(--line); border-radius: 8px; padding: 16px; }

/* ------------------------------
   PAGE-SPECIFIC TWEAKS
------------------------------ */
/* Highlight phone links consistently */
.phone-link { text-decoration: none; }
.phone-link:hover { text-decoration: underline; }

/* Footer contact links with icons */
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact img { width: 16px; height: 16px; filter: invert(90%); }

/* Ensure adequate spacing inside each section container */
.container > .content-wrapper + .content-wrapper { margin-top: 20px; }

/* Encourage flex wrapping to prevent overlaps */
.content-grid > * { flex: 1 1 260px; }
.card-container > * { flex: 1 1 280px; }

/* ------------------------------
   PRINT BASICS
------------------------------ */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-overlay { display: none !important; }
  a { text-decoration: underline; color: #000; }
  header, footer { border: 0; }
}
