/* Kabelové Řešení - style.css - Warm, Friendly, Responsive Flexbox Design */

/* --------------------
   CSS RESET & VARIABLES
----------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #FFFDFB;
  color: #224159;
  min-height: 100vh;
  line-height: 1.7;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #224159;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }
p, ul, ol { margin-bottom: 16px; }
strong { font-weight: 600; }

a {
  color: #79A589;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f0975f;
  outline: none;
}

/* Form Elements */
input, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar { width: 12px; background: #F7F5FE; }
::-webkit-scrollbar-thumb { background: #e6ded7; border-radius: 8px; }

/* Variables for brand colors */
:root {
  --primary: #224159;
  --secondary: #79A589;
  --accent: #F7F5FE;
  --warm-bg: #fff7ef;
  --highlight: #f0975f;
  --white: #fff;
  --shadow: 0 3px 14px rgba(80,70,60,0.12);
  --radius: 16px;
  --border: #e6ded7;
}

/* --------------------
   HEADER & NAVIGATION
----------------------- */
header {
  width: 100%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  position: relative;
  z-index: 200;
}
header .logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 8px;
  padding: 7px 16px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--highlight);
  color: #fff;
  box-shadow: 0 6px 18px rgba(240,151,95,0.13);
}
.btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  padding: 11px 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.btn:hover, .btn:focus {
  background: #ffe2cc;
  color: var(--primary);
  box-shadow: 0 4px 13px rgba(240,151,95,0.10);
}

/* Burger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ffe2cc;
  color: var(--highlight);
  outline: none;
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  color: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
  box-shadow: 0 0 64px rgba(34,65,89,0.3);
  padding: 32px 20px 20px 20px;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #193b4a;
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 8px;
  transition: background 0.15s, color 0.15s;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* --------------------
   LAYOUT CONTAINERS
----------------------- */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  transition: box-shadow 0.21s, border-color 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px rgba(34,65,89,0.18);
  border-color: var(--secondary);
}

.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;
  background: #fff7ef;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(240,151,95,0.11);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  border: 1px solid #fdeddb;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 28px rgba(240,151,95,0.13);
  transform: translateY(-2px) scale(1.014);
}
.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  color: #4C352E;
}
.stars {
  font-size: 1.5rem;
  color: #f0975f;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* List & Section Styling */
ul, ol {
  padding-left: 23px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.price {
  color: var(--secondary);
  font-weight: bold;
  margin-left: 8px;
}

/* --------------------
   HERO, CTA, FEATURES
----------------------- */
.hero-section {
  padding: 60px 20px 40px 20px;
  background: var(--warm-bg);
  border-radius: 0 0 44px 44px;
  box-shadow: 0 12px 48px rgba(255,207,152,0.08);
  margin-bottom: 50px;
}
.hero-section h1 {
  font-size: 2.6rem;
  color: var(--primary);
}
.hero-section p {
  font-size: 1.20rem;
  color: #67513a;
  margin-bottom: 20px;
  max-width: 610px;
}
.cta-section {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 28px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 4px 20px rgba(34,65,89,0.14);
}
.cta-section h2, .cta-section p {
  color: var(--primary);
}
.cta-section .btn-primary {
  margin-top: 14px;
}

.feature-item strong {
  color: var(--primary);
}
.features-section, .about-section, .services-section, .tips-section, .stories-section, .contact-section, .faq-section, .legal-section {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Text Section */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #323232;
}

/* Cookie Price Highlight (in product listings) */
span.price, .services-section .price {
  background: #fff2e6;
  color: var(--highlight);
  padding: 2px 10px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

/* --------------------
   FOOTER
----------------------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 16px 0;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -5px 22px rgba(34,65,89,0.05);
  position: relative;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-content img {
  height: 42px;
  margin-bottom: 8px;
  border-radius: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.footer-nav a {
  color: #fff;
  text-decoration: underline;
  font-size: 1rem;
  opacity: 0.96;
  transition: color 0.16s, opacity 0.18s;
  border-radius: 7px;
  padding: 6px 8px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  opacity: 1;
}
footer p {
  text-align: center;
  font-size: 0.98rem;
  opacity: 0.85;
  margin-top: 10px;
}

/* --------------------
   COOKIE CONSENT
----------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff7ef;
  box-shadow: 0 -4px 22px rgba(240,151,95,0.11);
  border-top: 2px solid #fdeddb;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px 18px;
  z-index: 3000;
  font-size: 1.02rem;
  animation: cookie-fadein 0.5s;
}
@keyframes cookie-fadein {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  margin-bottom: 0;
}
.cookie-banner button {
  border-radius: 18px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 23px;
  margin-left: 6px;
  margin-right: 0;
  cursor: pointer;
  box-shadow: 0px 2px 6px rgba(240,151,95,0.09);
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .accept-all {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .accept-all:hover, .cookie-banner .accept-all:focus {
  background: var(--highlight);
  color: #fff;
}
.cookie-banner .reject-all {
  background: #fff3eb;
  color: #a75c21;
}
.cookie-banner .reject-all:hover, .cookie-banner .reject-all:focus {
  background: #fed4b5;
  color: #824216;
}
.cookie-banner .settings {
  background: #ffe2cc;
  color: var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,65,89,0.18);
  justify-content: center;
  align-items: center;
  animation: cookie-modal-fadein 0.32s;
}
.cookie-modal-overlay.active {
  display: flex !important;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff7ef;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(240,151,95,0.14);
  max-width: 430px;
  width: 94vw;
  padding: 36px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookie-modal-popup .3s cubic-bezier(0.62,1.69,0.37,0.54) 1;
}
@keyframes cookie-modal-popup {
  0% { transform: scale(0.88); opacity: 0; }
  100% {  transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.34rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.cookie-modal .cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal .cookie-pref-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #fde3c4;
  font-size: 1rem;
  color: #3F2C18;
}
.cookie-modal .cookie-pref-item:last-child {
  border-bottom: none;
}
.cookie-modal label {
  font-size: 1rem;
}
.cookie-modal .cookie-pref-toggle {
  margin-left: auto;
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
}
.cookie-modal .cookie-pref-toggle[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal button, .cookie-modal .close {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  padding: 8px 22px;
  cursor: pointer;
  box-shadow: 0px 2px 8px rgba(240,151,95,0.11);
}
.cookie-modal .close {
  position: absolute;
  top: 11px;
  right: 13px;
  background: none;
  color: #e4882c;
  font-size: 1.6rem;
  padding: 2px 10px;
  border-radius: 12px;
}
.cookie-modal .close:hover, .cookie-modal .close:focus { background: #f9decd; color: var(--primary); }
.cookie-modal .save {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .save:hover {
  background: var(--highlight);
  color: #fff;
}

/* --------------------
   RESPONSIVE DESIGN
----------------------- */
@media (max-width: 1050px) {
  .container { max-width: 92vw; }
}
@media (max-width: 900px) {
  header {
    padding: 11px 0;
  }
  .footer-content {
    padding: 0 12px;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 9px;
  }
  .main-nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    max-width: 99vw;
    padding: 0 6vw;
  }
  .content-wrapper, .footer-content {
    gap: 18px;
  }
  .section, .features-section, .about-section, .services-section, .tips-section, .stories-section, .contact-section, .faq-section, .legal-section, .cta-section {
    padding: 27px 7px;
    border-radius: 12px;
    margin-bottom: 36px;
  }
  .hero-section {
    padding: 35px 7px 28px 7px;
    border-radius: 0 0 22px 22px;
    margin-bottom: 28px;
  }
  .cta-section {
    border-radius: 14px;
    padding: 27px 7px;
    margin-bottom: 30px;
  }
  .footer-content {
    padding: 0 7px;
  }
  h1 { font-size: 1.84rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.1rem; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 10px;
    border-radius: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .card-container, .card-grid, .features-section ul, .services-section ul {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 460px) {
  body { font-size: 15px; }
  .cookie-banner {
    flex-direction: column;
    gap: 9px;
    padding: 13px 4px 18px 4px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    padding: 18px 7px 14px 7px;
    border-radius: 14px;
    max-width: 99vw;
  }
  .cookie-modal .cookie-modal-actions {
    flex-direction: column;
    gap: 11px;
    padding-bottom: 5px;
  }
}

/* --------------------
   MICRO-INTERACTIONS
----------------------- */
.card, .testimonial-card, .btn, .btn-primary {
  transition: box-shadow 0.20s cubic-bezier(.5,.7,.4,1.2), background 0.15s;
}
.btn-primary:active, .btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(240,151,95,0.18);
}

.testimonial-card:active {
  transform: scale(0.99);
}

input:focus, button:focus, textarea:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Utility classes for spacing */
.mb-2 { margin-bottom: 12px!important; }
.mb-3 { margin-bottom: 20px!important; }
.mt-2 { margin-top: 12px!important; }
.mt-3 { margin-top: 20px!important; }

/* --------------------
   MISC
----------------------- */
::-moz-selection { background: #ffe2cc; color: var(--primary); }
::selection { background: #ffe2cc; color: var(--primary); }

/* End of Kabelové Řešení - style.css */
