/* ==== 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  background: transparent;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

body {
  background: #fff;
  color: #253357;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #253357;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.subheadline {
  color: #253357;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 20px;
}
p {
  margin-bottom: 16px;
  color: #253357;
}
strong {
  font-weight: 700;
}
blockquote {
  font-size: 1.125rem;
  font-style: italic;
  color: #253357;
  margin-bottom: 12px;
  border-left: 2px solid #E3A63A;
  padding-left: 18px;
}

/* ==== CONTAINERS & SECTIONS ==== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==== FLEX UTILITIES ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  padding: 28px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(37,51,87,0.06), 0 1.5px 6px rgba(37,51,87,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 320px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F5F6F8;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(37,51,87,0.06), 0 1.5px 8px rgba(37,51,87,0.05);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 270px;
  max-width: 100%;
}
.testimonial-card blockquote {
  color: #253357;
}
.testimonial-client {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #253357;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #fff;
  border-bottom: 1px solid #F5F6F8;
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 12px;
}
header img[alt="Realitní Horizont"] {
  width: 170px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #253357;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F5F6F8;
  color: #E3A63A;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #253357;
  padding: 0 12px;
  cursor: pointer;
  z-index: 16;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #E3A63A;
}

/* ==== MOBILE BURGER MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.42,.14,.42,1);
  display: flex;
  flex-direction: column;
  padding: 56px 28px 28px 28px;
  box-shadow: 0 0 40px 3px rgba(37,51,87,0.15);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #253357;
  cursor: pointer;
  z-index: 101;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #E3A63A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}
.mobile-nav a {
  color: #253357;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  border-radius: 8px;
  padding: 12px 8px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5F6F8;
  color: #E3A63A;
}

/* ==== CTA BUTTONS ==== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: .02em;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37,51,87,0.07);
  transition: background 0.16s, color 0.16s, box-shadow 0.26s;
  margin-right: 0;
  margin-bottom: 0;
  text-align: center;
}
.cta-btn.primary {
  background: #253357;
  color: #fff;
  border: 1.5px solid #253357;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #E3A63A;
  border-color: #E3A63A;
  color: #253357;
}
.cta-btn.secondary {
  background: #fff;
  color: #253357;
  border: 1.5px solid #E3A63A;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #E3A63A;
  color: #253357;
  border-color: #E3A63A;
}

/* ==== FEATURE BOXES, TAGS ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #F5F6F8;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37,51,87,0.03);
  padding: 32px 20px 26px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.feature-grid img {
  width: 40px;
  height: 40px;
}
.trust-badges {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
  align-items: center;
}
.trust-badges img {
  width: 44px;
  height: 44px;
}

/* ==== OPPORTUNITIES TEASERS/LIST ==== */
.opportunities-teasers, .opportunities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.opportunities-teasers > div, .opportunities-list > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(37,51,87,0.05);
  padding: 28px 20px;
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.location-tag, .category-tag, .risk-level {
  background: #F5F6F8;
  color: #253357;
  border-radius: 6px;
  font-size: 0.95rem;
  padding: 4px 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.risk-level {
  background: #E3A63A;
  color: #253357;
}

/* ==== BLOG PREVIEWS ==== */
.blog-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.blog-previews article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(37,51,87,0.045);
  padding: 22px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category-tag {
  background: #E3A63A;
  color: #253357;
  font-size: 0.95rem;
  border-radius: 6px;
  padding: 4px 14px;
  font-weight: 500;
}

/* ==== TESTIMONIALS ==== */
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

/* ==== CASE STUDIES ==== */
.case-studies {
  background: #F5F6F8;
  border-radius: 10px;
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(37,51,87,0.03);
}
.case-studies h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* ==== FOOTER ==== */
footer {
  background: #fff;
  border-top: 1px solid #F5F6F8;
  margin-top: 60px;
  padding: 38px 0 22px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img[alt="Realitní Horizont"],
footer img[alt="Realitní Horizont"] {
  width: 50px;
  height: auto;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #253357;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  transition: color 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #E3A63A;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  color: #253357;
}
.footer-contact img {
  width: 16px;
  height: auto;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
}
.footer-contact a {
  color: #253357;
  text-decoration: underline;
  transition: color 0.15s;
}
.footer-contact a:hover {
  color: #E3A63A;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #F5F6F8;
  color: #253357;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0 -2px 22px rgba(37,51,87,0.08);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  gap: 32px;
  transition: transform 0.34s cubic-bezier(.42,.14,.42,1), opacity 0.25s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  max-width: 680px;
  flex: 1 0 320px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  border-radius: 7px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background: #253357;
  color: #fff;
  box-shadow: 0 1.5px 5px rgba(37,51,87,0.02);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.cookie-btn.secondary {
  background: #fff;
  color: #253357;
  border: 1.5px solid #E3A63A;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #E3A63A;
  color: #253357;
  border-color: #E3A63A;
}
.cookie-btn.settings {
  background: #E3A63A;
  color: #253357;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #253357;
  color: #E3A63A;
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(37,51,87,0.32);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 24px rgba(37,51,87,0.13);
  padding: 40px 32px 28px 32px;
  width: 95%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalIn 0.36s cubic-bezier(.58,.14,.4,1) both;
}
@keyframes modalIn {
  0% { transform: translateY(44px) scale(0.98); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 0.7em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}
.cookie-modal label {
  font-size: 1.03rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal input[type="checkbox"][disabled] {
  accent-color: #E3A63A;
  cursor: not-allowed;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #253357;
  width: 17px;
  height: 17px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 19px;
  right: 22px;
  background: none;
  border: none;
  color: #253357;
  font-size: 1.23rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.cookie-modal .close-modal:hover {
  opacity: 1;
}

/* ==== TABLES, LISTS ==== */
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 8px;
  text-align: left;
  font-size: 1rem;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #253357;
}
tr {
  border-bottom: 1px solid #F5F6F8;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1.03rem;
}
ul li strong, ol li strong {
  color: #253357;
}

/* ==== FORMS & INPUTS ==== */
input, textarea, select {
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid #F5F6F8;
  background: #fff;
  color: #253357;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: border 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E3A63A;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 5px;
  color: #253357;
}

/* ==== TRANSITIONS & HOVER EFFECTS ==== */
a, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a, .cookie-btn {
  transition: color 0.16s, background 0.16s, border-color 0.16s, box-shadow 0.2s;
}
.card,
.feature-grid > div,
.blog-previews article,
.testimonial-card,
.opportunities-teasers > div,
.opportunities-list > div {
  transition: box-shadow 0.18s, transform 0.22s;
}
.card:hover,
.feature-grid > div:hover,
.blog-previews article:hover,
.testimonial-card:hover,
.opportunities-teasers > div:hover,
.opportunities-list > div:hover {
  box-shadow: 0 4px 20px rgba(37,51,87,0.10), 0 2px 9px rgba(37,51,87,0.07);
  transform: translateY(-4px) scale(1.015);
}

/* ==== MEDIA QUERIES ==== */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 14px;
  }
}
@media (max-width: 950px) {
  .feature-grid,
  .opportunities-teasers,
  .opportunities-list,
  .card-container,
  .testimonial-slider,
  .testimonial-list,
  .blog-previews,
  .case-studies {
    gap: 18px;
  }
  footer .container {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 850px) {
  .main-nav a {
    font-size: 0.97rem;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container, .section {
    padding: 0 7px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.375rem;
  }
  .content-wrapper {
    gap: 12px;
  }
  .feature-grid,
  .opportunities-teasers,
  .opportunities-list,
  .card-container,
  .testimonial-slider,
  .testimonial-list,
  .blog-previews {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn.primary {
    padding: 10px 18px;
    font-size: 1rem;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  .section {
    margin-bottom: 38px;
    padding: 22px 7px;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 8px;
    font-size: 0.95rem;
  }
  .cookie-banner .cookie-actions {
    padding-top: 4px;
    gap: 8px;
  }
}
@media (max-width: 530px) {
  h1 {
    font-size: 1.3rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.08rem;
    margin-bottom: 14px;
  }
  .cta-btn,
  .cookie-btn {
    padding: 9px 13px;
    font-size: 0.97rem;
  }
  .mobile-menu {
    padding: 38px 9px 18px 9px;
  }
  .mobile-menu-close {
    top: 13px;
    right: 15px;
    font-size: 1.4rem;
  }
  .cookie-modal {
    padding: 24px 8px 16px 8px;
  }
}

/* ==== GENERAL UTILITY CLASSES ==== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }

/* ==== ACCESSIBILITY ==== */
:focus { outline: 2px solid #E3A63A; outline-offset: 1px; }

/* ==== SELECTED OVERRIDES ==== */
::-webkit-scrollbar {
  width: 8px;
  background: #F5F6F8;
}
::-webkit-scrollbar-thumb {
  background: #E3A63A;
  border-radius: 10px;
}

/* ===== BRAND FONTS (FALLBACK) ===== */
@font-face {
  font-family: 'Montserrat';
  font-display: swap;
  src: local('Montserrat'), url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
}
@font-face {
  font-family: 'Roboto';
  font-display: swap;
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
}
