/* =======================================================
   CSS RESET & BASE STYLES - Limber Hill Immobilien
   ======================================================= */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F5F7FA;
  color: #222235;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  background-color: #faf8f5;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #14305C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #917c5d;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
strong { font-weight: bold; }

/* =======================================================
   BRAND FONTS & TYPOGRAPHY
   ======================================================= */
:root {
  --primary: #14305C;
  --secondary: #A5B7C8;
  --accent: #F5E6CE;
  --background: #faf8f5;
  --card-bg: #fff;
  --footer-bg: #14305C;
  --muted: #E7EDF2;
  --success: #426B44;
  --danger: #8C4040;
  --shadow: 0 2px 12px rgba(20, 48, 92, 0.09);
  --radius: 10px;
  --main-font: 'Georgia', 'Times New Roman', Times, serif;
  --accent-font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}
body {
  font-family: var(--main-font);
  font-size: 16px;
  color: #222235;
  background-color: var(--background);
}
h1, h2, h3, h4 {
  color: var(--primary);
  font-family: var(--accent-font);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.subheadline {
  font-family: var(--accent-font);
  font-size: 1.1rem;
  color: #5a6270;
  margin-bottom: 18px;
}
p, li, label, span {
  font-family: var(--main-font);
  font-size: 1rem;
  color: #262342;
}

/* ===== BUTTONS ===== */
.cta-btn {
  display: inline-block;
  font-family: var(--accent-font);
  font-weight: 500;
  padding: 14px 32px;
  font-size: 1.1rem;
  color: #fff !important;
  background-color: var(--primary);
  border-radius: 32px;
  border: none;
  outline: none;
  box-shadow: 0 2px 8px rgba(20,48,92,0.07);
  box-sizing: border-box;
  transition: background 0.25s, box-shadow 0.25s, color 0.2s;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #223a61;
  color: #F5E6CE !important;
  box-shadow: 0 5px 16px rgba(20,48,92,0.12);
  text-decoration: none;
}
button {
  font-family: var(--accent-font);
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* =======================================================
   HEADER & NAVIGATION
   ======================================================= */
header {
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(20,48,92,0.06);
  position: sticky;
  top: 0;
  z-index: 120;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-start;
  padding: 18px 24px;
  font-family: var(--accent-font);
  background: transparent;
}
.main-nav a {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 14px;
  transition: color 0.2s, background 0.2s, border-radius 0.18s;
  border-radius: 18px;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: #917c5d;
}
.main-nav .cta-btn {
  margin-left: 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 32px;
  padding: 12px 28px;
  box-shadow: 0 2px 10px rgba(20, 48, 92, 0.07);
}
.main-nav img {
  height: 34px;
  margin-right: 15px;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  margin-right: 18px;
  z-index: 400;
}

/* =======================================================
   MOBILE MENU - Burger Navigation
   ======================================================= */
.mobile-menu {
  background: var(--card-bg);
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.81,-0.01,.21,.98);
  box-shadow: 0 6px 32px rgba(20,48,92,0.14);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 35px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: var(--primary);
  margin: 0 26px 0 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  transition: color 0.18s;
}
.mobile-menu-close:hover {
  color: #917c5d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 0 0 34px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: var(--primary);
  padding: 14px 0;
  border-bottom: 1px solid #E7EDF2;
  width: 90%;
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #917c5d;
  background: var(--accent);
}

/* ===================
   LAYOUT CONTAINERS
   =================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0 0 0 0;
  padding: 0;
}
.feature-grid li {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 18px 24px;
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #183253;
  transition: box-shadow 0.18s, background 0.18s;
}
.feature-grid li img { width: 24px; height: 24px; }
.feature-grid li:hover {
  background: var(--accent);
  box-shadow: 0 4px 22px rgba(20,48,92,0.17);
}

/* =============
   CARDS & GRIDS
   ============= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  flex: 1 1 260px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 18px 22px 18px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, border 0.18s, background 0.18s;
  border: 1px solid #eaebef;
  min-width: 250px;
  max-width: 100%;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px rgba(20,48,92,0.15);
  border-color: #c8bfd2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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 */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  font-family: var(--main-font);
  max-width: 480px;
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
  color: #183253;
  min-width: 240px;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: #14305C;
}
.testimonial-card span {
  font-size: 1rem;
  color: #4F5B75;
  font-style: italic;
  letter-spacing: 0.01em;
}
.testimonial-card img {
  height: 21px;
  width: 21px;
  margin-right: 2px;
  display: inline-block;
}

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

/* Cards for quick facts, etc. */
.quick-facts {
  background: var(--muted);
  font-family: var(--accent-font);
  border-radius: var(--radius);
  color: #14305C;
  padding: 14px 22px;
  margin-top: 14px;
  margin-bottom: 16px;
  font-style: italic;
}

/* ====== TABLES ====== */
table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: var(--shadow);
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-family: var(--main-font);
  overflow: hidden;
  margin-top: 10px;
}
thead {
  background: var(--accent);
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e3e7ed;
  font-size: 1rem;
  color: #183253;
}
th {
  font-family: var(--accent-font);
  font-size: 1.03rem;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* ======== MAP SNIPPET ======== */
.map-snippet {
  background: var(--muted);
  border-radius: 7px;
  padding: 12px 18px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
}
.map-snippet img { height: 20px; width: 20px; }

/* =======================================================
   FOOTER
   ======================================================= */
footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 36px 0 18px 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--accent-font);
  gap: 10px;
  margin-bottom: 10px;
}
footer nav a {
  color: #F5E6CE;
  font-size: 1.02rem;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contacts {
  font-size: 1rem;
  color: #e6eaf6;
  font-family: var(--main-font);
  line-height: 1.7;
}
.footer-contacts img { height: 19px; width: 19px; margin-right: 3px; vertical-align: middle;}
.footer-legal {
  font-family: var(--accent-font);
  color: #F5E6CE;
  font-size: 0.96rem;
}
.footer-legal a {
  color: #F5E6CE;
  opacity: 0.88;
  margin-left: 2px;
  margin-right: 2px;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: #fff;
  opacity: 1;
}

/* =======================================================
   RESPONSIVENESS
   ======================================================= */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 990px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 8px;
    font-size: 0.98rem;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 14px;
    right: 16px;
  }
  .container {
    padding: 0 6px;
  }
  .section {
    padding: 24px 5px;
    margin-bottom: 44px;
  } 
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: unset;
    max-width: 98%;
    padding: 14px;
    font-size: 1rem;
  }
  .footer-contacts,
  .footer-legal {
    font-size: 0.98rem;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.23rem;
  }
  h3 {
    font-size: 1rem;
  }
  .section {
    padding: 15px 2px;
    margin-bottom: 32px;
  }
  .testimonial-card {
    font-size: 0.93rem;
    padding: 11px;
    margin-bottom: 13px;
  }
}
@media (max-width: 360px) {
  h1, h2, h3 { font-size: 1rem; }
}

/* ========================
   COOKIE CONSENT BANNER
   ======================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff9ef;
  box-shadow: 0 -2px 20px rgba(20,48,92,0.09);
  color: #14305C;
  z-index: 9999;
  padding: 24px 14px 32px 14px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s, transform 0.25s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-banner__text {
  font-size: 1rem;
  font-family: var(--main-font);
  color: #14305C;
}
.cookie-banner__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 1rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--accent-font);
  border: none;
  box-shadow: 0 2px 7px rgba(20,48,92,0.09);
  transition: background 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #223a61;
  color: var(--accent);
}
#cookie-settings-btn {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid #D8C395;
  font-weight: 500;
}
#cookie-settings-btn:hover, #cookie-settings-btn:focus {
  background: var(--muted);
  color: var(--primary);
}

/* =================
   COOKIE MODAL
   ================= */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,48,66,0.38);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.18s;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal.hide {
  display: none;
}
.cookie-modal__content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 44px rgba(20,48,92,0.15);
  padding: 28px 28px 18px 28px;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--primary);
  font-family: var(--main-font);
  font-size: 1rem;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.18s;
}
.cookie-modal__close:hover { opacity: 1; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.03rem;
}
.cookie-category label {
  margin-left: 6px;
  font-family: var(--main-font);
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--primary);
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}
.cookie-category .essential {
  color: #9692a6;
  font-style: italic;
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 7px 20px 10px;
    gap: 16px;
  }
  .cookie-modal__content {
    padding: 12px 6px 11px 11px;
    min-width: unset;
    font-size: 0.98rem;
  }
}

/* ===============
   UTILITIES & MISC
   =============== */
::-webkit-scrollbar {
  width: 10px;
  background: #ececec;
}
::-webkit-scrollbar-thumb {
  background: #e3e8ee;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8cdd6;
}

hr {
  border: none;
  border-top: 1px solid #E0E3EA;
  margin: 22px 0;
}

/* ================
   FORM ELEMENTS
   ================ */
input, textarea, select {
  font-family: var(--main-font);
  font-size: 1rem;
  padding: 12px;
  border: 1px solid #d1d6db;
  border-radius: var(--radius);
  background: #fff;
  margin-top: 9px;
  margin-bottom: 18px;
  width: 100%;
  box-shadow: none;
  outline: none;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}
label {
  font-family: var(--accent-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
}

/* ============
   MISC
   ============ */
li {
  margin-bottom: 10px;
}
ul li:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .feature-grid li {
    min-width: unset;
    padding: 13px 10px;
  }
}

/* =========================================
   FOCUS STYLES FOR ACCESSIBILITY
   ========================================= */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================================
   MICRO-INTERACTIONS & TRANSITIONS
   ========================================= */
.card:hover, .card:focus-within, .feature-grid li:hover {
  box-shadow: 0 7px 26px rgba(20,48,92,0.16);
  background: var(--accent);
}
.cta-btn, .cookie-btn {
  transition: background 0.24s, color 0.24s, box-shadow 0.22s;
}
.mobile-menu,
.cookie-banner,
.cookie-modal__content {
  will-change: transform, opacity;
}

/* =========================================
   PRINT STYLES (optional)
   ========================================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #191919; }
  .section { box-shadow: none !important; border-radius: 0 !important; }
}
