/* --------------------------------------
   Permoohmic AutoPrenájom - style.css
   Minimalist Flexbox-Only CSS Framework
   -------------------------------------- */

/* --- CSS RESET + NORMALIZE --- */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #F8F9FB;
  color: #223C60;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 16px;
  text-align: left;
}
th {
  background: #F8F9FB;
  font-weight: 600;
  letter-spacing: 0.01em;
}
tr {
  border-bottom: 1px solid #E4E7EF;
}
strong {
  font-weight: 600;
}

/* --- VARIABLES (with fallback) --- */
:root {
  --primary: #223C60;
  --secondary: #F8F9FB;
  --accent: #E09B2D;
  --shadow: 0 4px 14px rgba(34,60,96,0.06);
  --radius: 12px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #223C60;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p, li, dd {
  font-size: 1rem;
  color: #223C60;
  margin-bottom: 12px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.375rem;
  }
  h3 {
    font-size: 1.125rem;
  }
}

/* --- BRAND COLORS UTILITY --- */
.bg-primary { background: var(--primary); color: #fff; }
.bg-secondary { background: var(--secondary); }
.text-accent { color: var(--accent); }

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

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px rgba(34,60,96,0.02);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
header a img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 8px;
  color: #223C60;
  transition: color 0.18s;
  position: relative;
}
nav a:not(.cta-btn):hover,
nav a:not(.cta-btn):focus {
  color: var(--accent);
}
nav a.cta-btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 8px 22px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(34,60,96,0.08);
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  border: none;
  outline: none;
  cursor: pointer;
}
nav a.cta-btn:hover,
nav a.cta-btn:focus {
  background: #d08823;
  color: #fff;
  box-shadow: 0 4px 18px rgba(34,60,96,.10);
}

/* --- MOBILE MENU & BURGER --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary);
  padding: 8px 12px;
  z-index: 120;
  cursor: pointer;
  margin-left: 20px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,60,96,0.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  z-index: 120;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.29s cubic-bezier(.74,.006,.43,1.01), opacity 0.22s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #fff;
  position: absolute;
  top: 22px; right: 28px;
  z-index: 130;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100vw;
  margin-top: 100px;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.013em;
  padding: 6px 0;
  transition: color 0.20s;
  border-radius: 8px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--accent);
}

/* --- MAIN SPACING & SECTIONS --- */
main {
  padding-top: 20px;
  padding-bottom: 40px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.hero {
  display: flex;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
  border-radius: var(--radius);
  padding: 48px 0 52px 0;
  min-height: 300px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: flex;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 650px;
  gap: 16px;
}

/* --- FLEX STRUCTURE: Features, Cards, Sections --- */
.features {
  margin-bottom: 64px;
  background: #F8F9FB;
  border-radius: var(--radius);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 200px;
  flex: 1 1 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(34,60,96,0.05);
  padding: 24px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.feature-item img {
  height: 38px;
  margin-bottom: 10px;
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 6px 24px rgba(34,60,96,0.12);
  transform: translateY(-3px) scale(1.015);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
  flex: 1 1 260px;
}

.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;
}

/* --- TESTIMONIALS --- */
.testimonials {
  background: #F8F9FB;
  border-radius: var(--radius);
  margin-bottom: 64px;
  padding: 48px 0;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 3px 18px rgba(34,60,96,0.09);
  max-width: 350px;
  min-width: 220px;
  margin-bottom: 20px;
  color: #223C60;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 7px 28px rgba(224,155,45,0.14);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  font-size: 1.06rem;
  color: #223C60;
  text-align: center;
}
.testimonial-name {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  color: var(--primary);
  margin-top: 8px;
  font-weight: 500;
}

/* --- CTA SECTION --- */
.cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 30px rgba(34,60,96,0.12);
  padding: 40px 0 46px 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 54px;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 12px;
}
.cta h2, .cta p {
  color: #fff;
}

/* --- BUTTONS --- */
.cta-btn, .btn, .cookie-banner .btn, .cookie-modal .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: var(--radius);
  padding: 12px 32px;
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(224,155,45,0.10);
  transition: background 0.18s, box-shadow 0.20s, color 0.18s, transform 0.16s;
}
.cta-btn:hover, .cta-btn:focus, .btn:hover, .btn:focus {
  background: #c7861c;
  color: #fff;
  box-shadow: 0 6px 22px rgba(224,155,45,0.18);
  transform: translateY(-2px) scale(1.025);
}

/* --- FORMS (Add as needed) --- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #bac1d3;
  border-radius: var(--radius);
  padding: 9px 16px;
  background: #fff;
  color: #223C60;
  margin-bottom: 16px;
  outline: none;
  transition: border 0.14s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--accent);
  box-shadow: 0 2px 8px rgba(224,155,45, 0.06);
}
label {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  cursor: pointer;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary);
  margin-bottom: 4px;
  transition: color 0.18s;
}
.faq-accordion dt:hover, .faq-accordion dt:focus {
  color: var(--accent);
}
.faq-accordion dd {
  margin-left: 0;
  background: #F8F9FB;
  border-radius: 8px;
  padding: 10px 16px 14px 16px;
  margin-bottom: 8px;
  color: #223C60;
  font-size: 1rem;
}

/* --- PRICING TABLE --- */
.pricing-table table {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 11px rgba(34,60,96,0.05);
  margin-bottom: 22px;
  background: #fff;
}
.pricing-table th, .pricing-table td {
  border-bottom: 1px solid #E4E7EF;
  padding: 16px 18px;
  font-size: 1rem;
  color: #223C60;
}
.pricing-table th {
  background: #F8F9FB;
  font-size: 1.08rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #E4E7EF;
  margin-top: 48px;
  padding: 0 0 30px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #223C60;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.94;
  transition: opacity 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--accent);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  flex-direction: row;
  align-items: flex-start;
}
.footer-contact p {
  display: flex;
  align-items: center;
  font-size: 0.97rem;
  color: #223C60;
  gap: 8px;
}
.footer-contact img {
  height: 19px;
  width: auto;
  margin-right: 7px;
  opacity: 0.8;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.footer-social a img {
  height: 26px;
  width: 26px;
  border-radius: 50%;
  background: #F8F9FB;
  transition: filter 0.16s, box-shadow 0.16s;
  box-shadow: 0 0.5px 3px rgba(34,60,96,0.09);
}
.footer-social a:hover img, .footer-social a:focus img {
  box-shadow: 0 4px 18px rgba(224,155,45,0.14);
  filter: brightness(1.12);
}
.footer-copyright {
  font-size: 0.93rem;
  color: #908e8e;
  margin-top: 12px;
}

/* --- CONTACT PAGE --- */
.contact-details .contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.contact-details .contact-note {
  background: #F8F9FB;
  border-radius: var(--radius);
  padding: 16px 22px;
  font-size: 1rem;
}

/* --- UTILITY FLEXBOX PATTERNS (MANDATORY) --- */
.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;
}

/* --- COOKIE BANNER AND MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -3px 20px rgba(34,60,96,0.10);
  padding: 20px 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  z-index: 5100;
  justify-content: space-between;
  transition: transform 0.33s cubic-bezier(.74,.006,.43,1.01), opacity 0.22s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  flex: 2;
  font-size: 1rem;
  color: #223C60;
  margin-right: 10px;
}
.cookie-banner .btn-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex: 1;
}
.cookie-banner .btn {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: background 0.18s, color 0.15s;
}
.cookie-banner .btn[aria-label^="Nastavenia"],
.cookie-banner .btn.cookie-settings {
  background: #F8F9FB;
  color: var(--primary);
  border: 1px solid #bac1d3;
  transition: background 0.12s, color 0.15s;
}
.cookie-banner .btn.cookie-settings:hover,
.cookie-banner .btn.cookie-settings:focus {
  background: #f4f5fa;
  color: var(--accent);
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus {
  background: #d08823;
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,60,96, 0.48);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal .modal-card {
  background: #fff;
  border-radius: var(--radius);
  min-width: 330px;
  max-width: 95vw;
  padding: 36px 30px 22px 30px;
  box-shadow: 0 8px 42px rgba(34,60,96,0.16);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-modal h2 {
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  margin-bottom: 0;
  font-size: 1rem;
  color: #223C60;
  cursor: pointer;
}
.cookie-modal .cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.cookie-modal .cookie-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #eaeaea;
  border-radius: 12px;
  transition: background .22s;
}
.cookie-modal .cookie-switch input:checked + .slider {
  background: var(--accent);
}
.cookie-modal .slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s;
  box-shadow: 0 1px 4px rgba(34,60,96,0.08);
}
.cookie-modal .cookie-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .btn-group {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.cookie-modal .btn {
  padding: 9px 26px;
  border-radius: var(--radius);
  font-size: 1rem;
  border: none;
  transition: background .15s, color .15s;
}
.cookie-modal .btn.accept {
  background: var(--accent); color: #fff;
}
.cookie-modal .btn.accept:hover { background: #c7861c; }
.cookie-modal .btn.reject {
  background: #F8F9FB; color: #223C60;
  border: 1px solid #e2e3ec;
}
.cookie-modal .btn.reject:hover {
  background: #edeff5; color: #c7861c;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .feature-grid, .card-container, .testimonial-list {
    gap: 18px;
  }
  header .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 900px) {
  .testimonial-list, .feature-grid, .card-container, .content-grid {
    flex-wrap: wrap;
    gap: 18px;
  }
  .feature-item, .testimonial-card, .card {
    flex: 1 1 280px;
    max-width: 95vw;
  }
}
@media (max-width: 700px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .hero, .section {
    padding: 32px 0;
    margin-bottom: 32px;
  }
  .feature-grid, .testimonial-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  nav {
    gap: 13px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .section, .hero {
    padding: 16px 0;
  }
  .feature-item, .testimonial-card, .card {
    padding: 18px 8px;
    min-width: 160px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 12px;
    font-size: 0.93rem;
  }
  .cookie-modal .modal-card {
    border-radius: 0;
    min-width: unset;
    padding: 16px 8px 10px 8px;
  }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.11s;
}
.card:hover, .card:focus-within,
.feature-item:hover, .feature-item:focus-within,
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 7px 18px rgba(224,155,45,0.13);
  transform: translateY(-2px) scale(1.012);
}
.cta-btn, .btn, .cookie-banner .btn, .cookie-modal .btn {
  transition: background 0.16s, box-shadow 0.15s, color 0.15s, transform 0.11s;
}
.cta-btn:active, .btn:active {
  transform: scale(0.97);
}

/* --- SCROLLBARS --- */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #f3f5fa;
}
body::-webkit-scrollbar {
  width: 8px;
  background: #f3f5fa;
}
body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}

/* --- ACCESSIBILITY FOCUS --- */
a:focus, button:focus, .btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Z-INDEX SAFETY (MENU, COOKIE) --- */
header { z-index: 60; }
.mobile-menu { z-index: 120; }
.cookie-banner { z-index: 5100; }
.cookie-modal { z-index: 9999; }

/* --- NO GRID OR ABSOLUTE POS FOR MAIN CONTENT --- */
/* (all flexbox throughout, only decorative absolute if ever used) */
