/* RESET & NORMALIZE (based on modern standards, compatible, minimal) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  font-size: 16px; /* Base for scale */
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f4f5f7;
  color: #222;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #244C5A;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.72,.09,.33,.99);
}
a:focus, a:hover {
  color: #B59267;
  outline: none;
  text-decoration: underline;
}

/* ROOT VARIABLES for Vibrant Energetic Colors */
:root {
  --primary: #244C5A;
  --secondary: #B59267;
  --accent: #F4F5F7;
  --electric-blue: #2AF1EF;
  --vivid-orange: #FF5C38;
  --energizing-yellow: #FFC600;
  --intense-magenta: #E92Fd8;
  --deep-purple: #793997;
  --gray-dark: #222a34;
  --gray-light: #ebedf0;
  --white: #fff;
  --danger: #e94560;
}

/* Typography - Vibrant, Modern, Energetic */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: .02em;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  color: var(--electric-blue);
}
h2 {
  font-size: 2rem;
  color: var(--vivid-orange);
}
h3 {
  font-size: 1.4rem;
  color: var(--deep-purple);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul, ol, li, td, th {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--gray-dark);
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: bold;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Header Navigation */
header {
  background: var(--primary);
  color: var(--accent);
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 16px rgba(30,30,60,0.10);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 18px 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: center;
  margin-left: 32px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
header nav a:focus,
header nav a:hover {
  color: var(--energetic-yellow);
}
header img[alt="Wansibeati Media Kuchyně"] {
  height: 44px;
  max-width: 170px;
  margin-right: 18px;
  display: block;
}
header .btn-primary {
  margin-left: 26px;
}

/* Main header hamburger (mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--electric-blue);
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--vivid-orange);
}
/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  transition: transform 0.45s cubic-bezier(.86,0,.07,1), opacity 0.34s;
  transform: translateX(100%);
  opacity: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--electric-blue);
  font-size: 2.4rem;
  padding: 18px 24px 12px 12px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.3s;
  z-index: 1001;
}
.mobile-menu-close:focus,.mobile-menu-close:hover {
  color: var(--energetic-yellow);
}
.mobile-nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  padding: 16px 36px;
}
.mobile-nav a {
  color: var(--electric-blue);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.24s, border 0.18s;
  border-radius: 4px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--vivid-orange);
  border-bottom: 2px solid var(--vivid-orange);
  background: rgba(255,255,255,0.04);
}

/* Buttons */
.btn,
button,
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  outline: none;
  padding: 0.7em 2.2em;
  border-radius: 44px;
  cursor: pointer;
  font-size: 1.07rem;
  letter-spacing: .02em;
  background: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.13s;
  box-shadow: 0 4px 16px rgba(43, 174, 217, 0.10);
  margin: 0 6px 0 0;
}
.btn-primary {
  background: linear-gradient(90deg, var(--electric-blue), var(--vivid-orange));
  color: var(--gray-dark);
  box-shadow: 0 2px 16px rgba(255,92,56,0.18);
  border-radius: 44px;
  border: none;
}
.btn-primary:focus, .btn-primary:hover {
  background: linear-gradient(90deg, var(--vivid-orange), var(--electric-blue));
  color: var(--white);
  box-shadow: 0 6px 22px rgba(255,92,56,0.23);
  transform: translateY(-2px) scale(1.045);
}
.btn-secondary {
  background: linear-gradient(90deg, var(--secondary), var(--electric-blue), var(--secondary));
  color: var(--primary);
  box-shadow: 0 2px 14px rgba(244,245,247,0.19);
  border-radius: 44px;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(90deg, var(--energetic-yellow), var(--vivid-orange));
  color: var(--white);
  transform: translateY(-2px) scale(1.05);
}

/* Base lists and typography */
ul, ol {
  padding: 0 0 0 24px;
  margin-bottom: 12px;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}
ul li strong, ol li strong {
  color: var(--vivid-orange);
}

/* Section Styling (energy!) */
section {
  width: 100%;
  background: var(--accent);
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(90, 40, 255, .03);
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Card Patterns (flex only) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(36, 76, 90, 0.11);
  margin-bottom: 20px;
  padding: 28px 20px;
  transition: box-shadow 0.20s, transform 0.15s;
  position: relative;
  flex: 1 1 330px;
  min-width: 220px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover {
  box-shadow: 0 8px 40px rgba(255, 92, 56, 0.16);
  transform: translateY(-5px) scale(1.017);
}
/* Card Content Flex */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
  margin-bottom: 44px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(36,76,90,0.07);
  margin-bottom: 24px;
  font-style: italic;
  font-size: 1.08rem;
  color: #181818;
  position: relative;
}
.testimonial-card p {
  margin: 0 0 8px 0;
  color: #222;
  flex: 1;
}
.testimonial-card strong {
  color: var(--deep-purple);
}
.testimonial-card div {
  font-size: .97rem;
  color: #444;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 4px solid var(--electric-blue);
  padding-left: 20px;
  margin-bottom: 24px;
}

.text-section {
  margin-bottom: 24px;
}
.text-section h3 {
  margin-bottom: 10px;
  color: var(--electric-blue);
  font-size: 1.13rem;
}
.text-section ul {
  margin-top: 6px;
}

/* Service grid on services.html */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 34px;
}
.service-grid > div {
  flex: 1 1 280px;
  min-width: 220px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(36, 76, 90, 0.10);
  padding: 24px 18px 18px 18px;
  transition: box-shadow 0.18s, transform 0.19s;
}
.service-grid > div:hover {
  box-shadow: 0 8px 32px rgba(42,241,239,0.13);
  transform: translateY(-4px) scale(1.015);
}
.service-grid h3 {
  margin-bottom: 10px;
}

/* Tables (services) energetic style */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  font-size: 1.01rem;
  box-shadow: 0 2px 12px rgba(150,180,220,0.09);
  margin: 22px 0;
}
thead tr {
  background: var(--electric-blue);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
th, td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--brace-light, #ecedf1);
}
th {
  color: var(--deep-purple);
  font-size: 1.08rem;
}
tbody tr {
  background: var(--accent);
  transition: background 0.16s;
}
tbody tr:hover {
  background: var(--energetic-yellow);
  color: var(--primary);
}

/* Contact and Support Lists */
ul li img {
  vertical-align: middle;
  margin-right: 7px;
  width: 20px;
  height: 20px;
}

/* Links in context (energetic, bold)  */
.text-section a, ul li a {
  color: var(--vivid-orange);
  font-weight: 600;
}
.text-section a:hover, ul li a:hover {
  color: var(--deep-purple);
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 38px 0 18px 0;
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 13px;
}
footer nav a {
  color: var(--accent);
  font-size: 1.06rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: .93;
  font-weight: 500;
  transition: color 0.17s;
}
footer nav a:focus, footer nav a:hover {
  color: var(--vivid-orange);
}
footer .container > div {
  font-size: .97rem;
  color: var(--accent);
  opacity: .94;
}

/* Cookie Consent Banner (Fixed bottom) */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400;
  background: var(--white);
  border-top: 3.5px solid var(--vivid-orange);
  box-shadow: 0 -3px 22px rgba(36,76,90,0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 18px 18px 18px 18px;
  font-size: 0.96rem;
  font-family: 'Roboto', Arial, sans-serif;
  animation: cookiebanner-in .6s cubic-bezier(.71,.17,.37,1) forwards;
}
@keyframes cookiebanner-in {
  from { transform: translateY(100%); opacity: 0 }
  to { transform: translateY(0); opacity: 1 }
}
.cookie-banner .btn {
  font-size: 0.97rem;
  margin: 0 5px 0 0;
  padding: 0.54em 1.6em;
}
.cookie-banner .btn-accept {
  background: var(--electric-blue);
  color: var(--primary);
}
.cookie-banner .btn-accept:hover,
.cookie-banner .btn-accept:focus {
  background: var(--vivid-orange);
  color: var(--white);
}
.cookie-banner .btn-reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-banner .btn-reject:focus, .cookie-banner .btn-reject:hover {
  background: #c22b37;
}
.cookie-banner .btn-settings {
  background: var(--secondary);
  color: var(--white);
}
.cookie-banner .btn-settings:hover,
.cookie-banner .btn-settings:focus {
  background: var(--deep-purple);
  color: var(--energetic-yellow);
}

/* Cookie Modal (Consent settings) */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,76,90,0.36);
  justify-content: center;
  align-items: center;
  animation: cookie-modal-in .37s cubic-bezier(.72,.03,.25,.97) forwards;
}
@keyframes cookie-modal-in {
  from { opacity: 0 }
  to { opacity: 1 }
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  padding: 38px 26px 26px 26px;
  border-radius: 22px;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 8px 44px rgba(42, 241, 239, 0.10), 0 2px 14px var(--electric-blue, #2AF1EF);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookiemodal-in-2 .4s cubic-bezier(.68,0,.19,1) forwards;
}
@keyframes cookiemodal-in-2 {
  0% { transform: scale(.95) translateY(25px); opacity: 0 }
  100% { transform: scale(1) translateY(0); opacity: 1 }
}
.cookie-modal h3 {
  font-size: 1.38rem;
  margin-bottom: 15px;
  color: var(--deep-purple);
  font-family: 'Montserrat', sans-serif;
}
.cookie-modal .category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #e2e2e2;
  font-size: 1em;
}
.cookie-modal label {
  font-size: 1.01rem;
  color: var(--primary);
  font-family: 'Roboto';
  margin-left: 7px;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gray-light);
  transition: background .19s;
  border-radius: 20px;
}
.cookie-modal .switch input:checked + .slider {
  background: var(--electric-blue);
}
.cookie-modal .slider::before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px;
  bottom: 4px;
  background: var(--white);
  transition: .18s;
  border-radius: 50%;
  box-shadow: 0 1.5px 5px rgba(36,76,90,0.13);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .note {
  font-size: 0.95em;
  color: #777;
  margin-top: 3px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .btn-close {
  position: absolute;
  right: 8px;
  top: 10px;
  color: var(--danger);
  background: none;
  font-size: 1.59em;
  border: none;
  cursor: pointer;
}
.cookie-modal .btn-close:hover,
.cookie-modal .btn-close:focus {
  color: var(--primary);
}
.cookie-modal .btn {
  font-size: 0.97rem;
  padding: 0.54em 1.6em;
}

/* Responsive - MOBILE FIRST! */
@media (max-width: 1200px){
  .container { max-width: 96vw; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 11px 6px 11px 6px;
  }
  header nav {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 12px;
    top: 10px;
  }
  .mobile-menu {
    display: flex;
    width: 100vw;
    height: 100vh;
    padding-top: 12px;
  }
  .mobile-menu.open {
    opacity: 1;
    transform: translateX(0);
  }
  section, .section {
    margin-bottom: 38px;
    padding: 24px 9px;
    border-radius: 18px;
  }
  .service-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 15px 11px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  .container { padding-left: 2vw; padding-right: 2vw; }
  .section { padding: 14px 2vw; }
  .card, .service-grid > div {
    padding: 14px 4vw;
  }
  footer .container { padding: 0 2vw; }
}

/* Utility for accessibility & vibrant energetic style */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Micro-interaction on links and button icons */
a, button, .btn {
  transition: color 0.19s, box-shadow 0.17s, background 0.18s, transform 0.12s;
}
.btn:active, .btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(36,76,90,0.09);
}

/* Custom scrollbar for energetic look */
::-webkit-scrollbar { width: 11px; background: var(--gray-light); }
::-webkit-scrollbar-thumb { background: var(--electric-blue); border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: var(--vivid-orange); }

/* Highlighting and Selection styling (energetic) */
::selection {
  background: var(--vivid-orange);
  color: var(--white);
}

/* Ensure gaps always applied in every flex container */
.card-container, .service-grid, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* Prevent overlapping */
.card, .card-container > *, .service-grid > *, section, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* Hide cookie modal/overlay on start */
.cookie-modal-overlay:not(.open){
  display: none !important;
  pointer-events: none;
  opacity: 0;
}

/* ENERGETIC HOVER for other elements (visual feedback) */
.card:hover, .service-grid > div:hover, .btn:focus, .btn:hover {
  box-shadow: 0 12px 38px rgba(36,76,90,0.14);
}

/* Z-indexes for nav and modals */
header { z-index: 900 !important; }
.mobile-menu { z-index: 999 !important; }
.cookie-modal-overlay { z-index: 3000 !important; }

/* Misc, prevent absolute pos for content, only for decor as needed */

/* END */
