/* style.css for AquaExpert | Warm & Friendly Flexbox-Only UI | Responsive | Burger Menu | Cookie Consent */

/* ===== CSS RESET & BASE ===== */
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, menu, 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,
main, 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9FAFB;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus { outline: 2px solid #38A6C5; outline-offset: 2px; }
ul, ol, li { list-style: none; margin:0; padding:0; }
img { max-width: 100%; display: block; border: 0; }
h1, h2, h3, h4 { margin-bottom: 0.6em; line-height: 1.18; }
h1, h2, h3, h4, h5, h6 {font-weight: 700;}

/* ===== BRAND COLORS & FONTS ===== */
:root {
  --primary: #15527A;
  --secondary: #38A6C5;
  --accent: #E6EEF2;
  --bg: #F9FAFB;
  --white: #fff;
  --light: #FAF4F1;
  --brand-yellow: #FAE3D4;
  --warm-orange: #F9975D;
  --brand-brown: #B07C6B;
  --success: #47C079;
  --error: #F67575;
  --shadow: 0 4px 24px rgba(20,48,70,0.06);
  --radius: 20px;
  --radius-small: 12px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: var(--font-body);
  color: #2e2e2e;
  background: var(--bg);
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1em;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6em;
}
@media (min-width:700px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.5rem; }
}

p, li, address {
  color: #4f4f4f;
  font-size: 1rem;
}
strong { color: var(--primary); }

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

@media (min-width:900px){
  .section {
    padding: 60px 44px;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(21,82,122,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
}
.logo img { height: 44px; border-radius: 8px; }
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.main-nav li a {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-size: 1rem;
  padding: 8px 0 4px 0;
  border-bottom: 2.5px solid transparent;
  transition: border 0.16s, color 0.16s;
  border-radius: 6px 6px 0 0;
}
.main-nav li a:hover, .main-nav li a:focus {
  color: var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg,#F9975D 0%,#38A6C5 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: 40px;
  box-shadow: 0 2px 12px rgba(249,151,93,0.10);
  border: none;
  cursor: pointer;
  transition: background 0.19s, box-shadow 0.19s, transform 0.14s;
  outline: none;
  margin-left: 16px;
  letter-spacing: 0.03em;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg,#38A6C5 0%,#F9975D 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 14px rgba(249,151,93,0.18);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--brand-yellow);
  color: var(--primary);
  font-size: 2.3rem;
  border: none;
  border-radius: var(--radius-small);
  z-index: 2200;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20,48,70,0.10);
  transition: background 0.18s, box-shadow 0.14s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { background: #fcd7bc; }
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(246,228,216,0.98);
  box-shadow: 0 0 60px 0 rgba(21,82,122,0.15);
  z-index: 3000;
  transform: translateX(100vw);
  transition: transform 0.4s cubic-bezier(.86,0,.07,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--warm-orange);
  color: var(--white);
  font-size: 2rem;
  border: none;
  position: absolute;
  top: 22px; right: 28px;
  z-index: 3050;
  border-radius: 40px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(249,151,93,0.18);
  transition: background 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #d36224; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  padding: 40px 24px 0 38px;
  width: 100vw;
  gap: 10px;
}
.mobile-nav a {
  display: block;
  padding: 14px 0 14px 0;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--primary);
  border-radius: 12px;
  transition: color 0.18s, background 0.18s;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus { color: var(--warm-orange); background: #fff1e7; }

/* Desktop Nav Hide/Show */
@media (max-width: 1020px) {
  .main-nav ul, .main-nav .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
  .main-nav { justify-content: flex-start; }
}
@media (min-width: 1021px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
  .main-nav ul { display: flex; }
  .main-nav .btn-primary { display: inline-block; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(110deg, #FAE3D4 0%, #E6EEF2 98%);
  border-radius: var(--radius);
  margin-bottom: 40px;
  padding: 46px 0 44px 0;
  box-shadow: 0 6px 40px 0 rgba(20,41,70,0.08);
  overflow: hidden;
}
.hero .container {display: flex; justify-content: center;}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  max-width: 650px;
}
.hero h1 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.16;
  margin-bottom: 0.2em;
}
.hero p {
  font-size: 1.1rem;
  color: #4f4f4f;
  margin-bottom: 0.8em;
}

@media (min-width:700px) {
  .hero h1 { font-size: 2.9rem; }
}

/* ===== FLEX & CARD PATTERNS ===== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 0;
  align-items: flex-start;
}
.features-grid li {
  background: var(--accent);
  padding: 18px 18px 18px 18px;
  border-radius: var(--radius-small);
  min-width: 210px;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
  color: var(--primary);
  box-shadow: var(--shadow);
  font-size: 1.06rem;
  transition: background 0.18s, transform 0.13s, box-shadow 0.17s;
}
.features-grid li img {
  width: 38px; height: 38px;
}
.features-grid li:hover {
  background: #fcf2ea;
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 6px 24px rgba(56,166,197,0.09);
}

.services-list, .services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.services-list li, .services-grid li {
  background: var(--white);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 28px 20px 18px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.15s;
}
.services-list li:hover, .services-grid li:hover {
  box-shadow: 0 8px 24px rgba(249,151,93,0.12);
  transform: translateY(-3px) scale(1.025);
}
.service-price {
  font-family: var(--font-display);
  color: var(--secondary);
  background: #FDE9CE;
  padding: 6px 14px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1rem;
  align-self: flex-start;
}
@media (max-width:750px){
  .features-grid, .services-list, .services-grid {
    flex-direction: column;
    gap: 0;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.17s, transform 0.12s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(56,166,197,0.11);
  transform: scale(1.017);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px 18px 18px 18px;
}

/* ===== TESTIMONIALS (Hodnocení zákazníků) ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius-small);
  box-shadow: 0 2px 14px rgba(21,82,122,0.05);
  margin-bottom: 20px;
  position: relative;
  max-width: 720px;
  transition: background 0.16s, box-shadow 0.18s, transform 0.15s;
}
.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: 1.13rem;
  color: #222;
  quotes: "\201E" "\201C";
  font-style: italic;
}
.testimonial-card blockquote:before {
  content: open-quote;
  color: var(--warm-orange);
  font-size: 2rem;
  margin-right: 4px;
  vertical-align: bottom;
}
.testimonial-card blockquote:after { content: close-quote; color:var(--warm-orange); font-size:2rem; margin-left:2px;vertical-align: bottom; }
.testimonial-card strong {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
}
.testimonial-card:hover {
  background: #fcf2ea;
  box-shadow: 0 8px 28px rgba(249,151,93,0.15);
  transform: translateY(-2px) scale(1.015);
}
@media (max-width:700px) {
  .testimonial-card { flex-direction: column; gap: 10px; }
}

/* ===== LAYOUT UTILS ===== */
.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;
}

@media (max-width: 768px) {
  .container { padding: 0 9px; }
  .section { padding: 30px 10px; }
  .content-grid, .text-image-section { flex-direction: column; gap: 22px; }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== ADDRESS, FOOTER ===== */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 46px 0 36px 0;
  font-size: 0.99rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-menu a {
  color: var(--accent);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border 0.14s;
  font-size: 1.01rem;
  border-radius: 4px;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--warm-orange);
  border-bottom: 2px solid var(--warm-orange);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 210px;
}
.footer-contact img { height:28px; margin-bottom:6px; }
.footer-contact address {
  font-style: normal;
  color: var(--white);
  line-height: 1.7;
}
.footer-contact a { color: #fff8ef; font-weight:500;}
.footer-contact a:hover { color: var(--warm-orange);}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a img {
  width: 36px; height:36px; filter: brightness(98%);
  transition: filter 0.15s;
}
.footer-social a:hover img { filter: brightness(1) contrast(1.5); }
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 22px; align-items: flex-start; }
}

/* ===== BUTTONS & INTERACTIONS ===== */
button, .btn, .btn-primary, .btn-secondary {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, box-shadow 0.18s, color 0.16s;
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 28px;
  font-size: 1rem;
  margin-left: 12px;
  box-shadow: 0 2px 10px rgba(56,166,197,0.09);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: var(--brand-yellow);
}

.btn-tertiary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.99rem;
  box-shadow: 0 1px 8px rgba(21,82,122,0.06);
  margin-left: 0;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: var(--brand-yellow);
  color: var(--primary);
}

/* ===== TABLES, FORMS, LISTS ===== */
table { border-collapse: collapse; width:100%; margin-bottom:20px; }
th, td { border: 1px solid var(--accent); padding:10px 16px; }
th { background: var(--accent); }
input, textarea, select {
  border: 1.7px solid var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.7px solid var(--secondary);
  outline: none;
}
label { font-family: var(--font-display); font-size: 1.03rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; display: block; }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: var(--brand-yellow);
  color: #47372a;
  padding: 22px 16px 22px 18px;
  box-shadow: 0 -3px 30px 0 rgba(238,151,80,0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 1rem;
  min-height: 80px;
  border-radius: 24px 24px 0 0;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.34s, transform 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex; gap: 10px;
}
.cookie-banner button, .cookie-banner .btn {
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.96rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.cookie-banner .btn-accept {
  background: var(--success);
  color: #fff;
  margin-right: 2px;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus { background: #37a86d; }
.cookie-banner .btn-reject {
  background: var(--error);
  color: #fff;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus { background: #e14444; }
.cookie-banner .btn-settings {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner .btn-settings:hover { background: var(--white); color: var(--warm-orange); border-color: var(--warm-orange); }

/* Cookie Modal Style */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  z-index: 4100;
  background: rgba(21,82,122,.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: var(--white);
  padding: 32px 22px 22px 22px;
  border-radius: var(--radius);
  max-width: 390px;
  min-width: 270px;
  box-shadow: 0 12px 44px 0 rgba(21,82,122,0.24);
  position: relative;
  animation: appearModal 0.36s cubic-bezier(.86,0,.07,1);
}
@keyframes appearModal {
  from { opacity:0; transform: translateY(38px) scale(0.95);}
  to { opacity:1; transform: none; }
}
.cookie-modal h3 { color: var(--primary); margin-bottom: 16px; }
.cookie-modal .category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--accent);
  font-size: 1rem;
}
.cookie-modal .category:last-child { border-bottom: none; }
.cookie-modal .toggle {
  display: inline-flex;
  align-items: center;
  height: 28px;
}
.cookie-modal .toggle input[type=checkbox] {
  width: 36px; height: 18px;
  appearance: none;
  background: #c8e0e9;
  outline: none;
  border-radius: 14px;
  transition: background .17s;
  position: relative;
}
.cookie-modal .toggle input[type=checkbox]:checked {
  background: var(--secondary);
}
.cookie-modal .toggle input[type=checkbox]:disabled {
  background: #E6EEF2;
}
.cookie-modal .toggle input[type=checkbox]::before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: transform .17s;
  z-index: 2;
}
.cookie-modal .toggle input[type=checkbox]:checked::before {
  transform: translateX(16px);
}
.cookie-modal .toggle input[type=checkbox]:disabled::before { background:#ddd; }
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 15px; top: 12px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.7rem;
  opacity: 0.8;
  cursor: pointer;
  transition: color 0.14s, opacity 0.14s;
}
.cookie-modal .modal-close:hover { color: var(--secondary); opacity:1; }

@media (max-width: 600px) {
  .cookie-modal { max-width:96vw; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap:8px;}
}

/* ===== OTHER TYPOGRAPHY, MISC ===== */
ul, ol { margin-left: 18px; list-style-type: disc; }
ol { list-style-type: decimal; }
section ul, section ol { margin-bottom: 16px; }
hr { border: none; border-top: 1.5px solid var(--accent); margin: 28px 0; }

blockquote {
  font-style: italic;
  padding-left: 16px;
  border-left: 4px solid var(--warm-orange);
  color: #393939;
}
@media (max-width:530px){
  .container, .section, .hero {
    border-radius: 0;
    padding-left:4px; padding-right:4px;
  }
  .section { box-shadow: none; }
  .hero { padding-left:4px; padding-right:4px; }
}

/* ===== MICRO-INTERACTIONS ===== */
a, button, .btn-primary, .btn-secondary, .btn-tertiary {
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, transform 0.13s;
}
a:active, button:active, .btn-primary:active, .btn-secondary:active, .btn-tertiary:active {
  transform: scale(0.98);
}

/* ===== Accessibility - Reduce Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation: none !important;
  }
}
