/* ==== CSS RESET & NORMALIZER ==== */
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.55;
  background: #FBFBFB;
  color: #1B263B;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1B263B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #5E7C99;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}
button {
  cursor: pointer;
}

/* ==== TYPOGRAPHY & HEADINGS ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #1B263B;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 12px;
  font-family: 'Georgia', serif;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  color: #344055;
  margin-bottom: 18px;
  line-height: 1.65;
}
strong, b {
  font-weight: bold;
  color: #1B263B;
}
em, i {
  font-style: italic;
}

/* ==== CONTAINER AND GENERAL LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  max-width: 840px;
  margin: 0 auto;
  padding: 32px 0;
}

/* ==== UNIVERSAL SECTION SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(30,60,90,0.07);
  transition: box-shadow 0.3s;
}
section:last-child {
  margin-bottom: 0;
}

/* ==== HEADER & NAV ==== */
header {
  background: #fff;
  border-bottom: 1px solid #E9F1F7;
  box-shadow: 0 2px 8px 0 rgba(30,40,60,0.03);
  z-index: 30;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Georgia', serif;
  font-size: 1.06rem;
  color: #1B263B;
  padding: 6px 0;
  transition: color 0.22s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #5E7C99;
}
header .cta-primary {
  margin-left: 16px;
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1B263B;
  z-index: 41;
  padding: 4px 12px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #5E7C99;
  background: #E9F1F7;
  border-radius: 4px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(235,239,242,0.97);
  z-index: 99;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.3s;
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  display: block;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1B263B;
  margin-bottom: 18px;
  align-self: flex-end;
  padding: 4px 16px;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  padding: 8px 0;
  color: #1B263B;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #E0E6ED;
  transition: color 0.2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #5E7C99;
  background: #E9F1F7;
}

/* ==== MAIN CTA BUTTON ==== */
.cta-primary {
  --cta-fg: #fff;
  --cta-bg: #1B263B;
  --cta-border: #273451;
  display: inline-block;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 32px;
  border-radius: 28px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: 1px solid var(--cta-border);
  box-shadow: 0 2px 8px rgba(30,40,60,0.10);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, border 0.2s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #5E7C99;
  color: #fff;
  border-color: #5E7C99;
  box-shadow: 0 4px 18px rgba(94,124,153,0.14);
  text-decoration: none;
}

/* ==== SECTION LAYOUTS & CONTAINERS ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(30,60,90,0.07);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 9px rgba(30,60,90,0.10);
  padding: 30px 24px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  transition: box-shadow 0.20s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(30,60,90,0.17);
  transform: translateY(-5px) scale(1.017);
}
.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;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  background: #E9F1F7;
  color: #1B263B;
  padding: 28px 32px;
  border-radius: 14px;
  margin-bottom: 24px;
  min-width: 266px;
  max-width: 460px;
  box-shadow: 0 2px 9px rgba(30,60,90,0.08);
}
.testimonial-card p {
  color: #273451;
  font-style: italic;
  font-size: 1.13rem;
}
.testimonial-card span {
  font-size: 1rem;
  color: #184072;
}
.testimonial-slider,
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F6F7F9;
  padding: 20px 22px;
  border-radius: 10px;
}

/* ==== ICON IN FEATURE LIST ==== */
.features-list img,
.buyer-benefits img,
.tenant-benefits img,
.features-list li img,
.service-list li img {
  width: 30px;
  height: 30px;
  margin-right: 14px;
  vertical-align: middle;
  display: inline-block;
}
.features-list, .buyer-benefits, .tenant-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.features-list li, .buyer-benefits li, .tenant-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.07rem;
  background: #F6F7F9;
  border-radius: 12px;
  padding: 16px 18px;
  color: #273451;
  min-width: 250px;
  box-shadow: 0 1px 5px rgba(30,40,60,0.04);
  margin-bottom: 4px;
}

.services-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.services-list li, .service-list li {
  flex: 1 1 270px;
  background: #F6F7F9;
  padding: 22px 18px;
  border-radius: 13px;
  box-shadow: 0 1px 4px rgba(94,124,153,0.07);
  min-width: 250px;
  margin-bottom: 8px;
}
.services-list h3, .service-list h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
}

ul li, ol li {
  margin-bottom: 7px;
}
/* For lists under .content-wrapper, ensure spacing between blocks */
.content-wrapper ul {
  margin-bottom: 20px;
}

/* ==== TESTIMONIALS SPECIAL STYLING & CONTRAST ==== */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1B263B;
  font-size: 1.1rem;
  background: #F6F8FA;
  padding: 12px 20px;
  border-radius: 8px;
}
.rating-summary img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

/* ==== CONTACT INFOS, CARDS, MAPS ==== */
.contact-infos, .contact-details,
.location-map, .business-hours,
.company-highlights, .expertise-overview, .advantages, .assistance-highlight, .support-highlight, .communication-channels, .next-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.contact-infos a {
  margin-top: 10px;
}
.location-map, .business-hours {
  background: #F6F7F9;
  border-radius: 10px;
  padding: 18px 18px;
}

/* ==== FOOTER ==== */
footer {
  background: #1B263B;
  color: #fff;
  padding: 44px 0 30px 0;
  margin-top: 70px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 9px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.90;
  transition: color 0.2s, opacity 0.2s;
}
footer nav a:hover {
  color: #E9F1F7;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #E9F1F7;
  font-size: 1rem;
}
.footer-contact a {
  color: #E9F1F7;
  opacity: 0.9;
  transition: color 0.2s, opacity 0.2s;
}
.footer-contact a:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}
.footer-branding img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.footer-branding small {
  font-size: 0.99rem;
  color: #B7C2DA;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1B263B;
  color: #fff;
  z-index: 2000;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 -2px 14px rgba(30,40,60,0.09);
  transition: transform 0.45s;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner p {
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 0;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  background: #5E7C99;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 7px 22px;
  margin: 0;
  transition: background 0.19s, color 0.19s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #29405B;
  color: #E9F1F7;
}
.cookie-btn.secondary {
  background: #E9F1F7;
  color: #1B263B;
  border: 1px solid #5E7C99;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #5E7C99;
  color: #fff;
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40,55,75,0.33);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: #1B263B;
  border-radius: 18px;
  max-width: 376px;
  width: 90%;
  padding: 34px 30px 22px;
  box-shadow: 0 4px 42px rgba(41,55,90,0.11);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.38s cubic-bezier(0.38,1.25,0.18,1.0);
}
@keyframes fadeUp {
  from {transform: translateY(22px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #243962;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #E9F1F7;
  font-size: 1.06rem;
}
.cookie-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: #E9F1F7;
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.22s;
}
.cookie-toggle:checked {
  background: #5E7C99;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(30,40,60,0.15);
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.19s;
}
.cookie-toggle:checked::before {
  left: 20px;
}
.cookie-modal .cookie-btn {
  margin-top: 18px;
  width: 100%;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 16px;
  top: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #5E7C99;
  cursor: pointer;
}
/* Always enabled label style for Essential cookies */
.cookie-category .always-enabled {
  color: #7B93AE;
  font-style: italic;
  font-size: 0.97rem;
  margin-left: 10px;
}

/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .feature-item, .services-list li, .service-list li {
  transition: box-shadow 0.14s, transform 0.14s, filter 0.20s;
}
.card:hover, .services-list li:hover, .service-list li:hover, .feature-item:hover {
  box-shadow: 0 8px 28px rgba(30,60,90,0.21);
  transform: translateY(-7px) scale(1.02);
  filter: brightness(1.04);
  z-index: 2;
}

.cta-primary, .cookie-btn {
  transition: background 0.19s, color 0.19s, box-shadow 0.13s, border 0.14s;
}

/* ==== RESPONSIVE DESIGN (MOBILE-FIRST) ==== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  .content-wrapper {
    padding: 20px 0;
  }
}
@media (max-width: 768px) {
  /* Header: Mobile burger menu */
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-primary {
    margin-left: 0;
    font-size: 1rem;
    padding: 11px 20px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
  }
  .section, section {
    padding: 26px 7px;
    border-radius: 9px;
    margin-bottom: 44px;
  }
  .content-grid, .card-container, .features-list, .buyer-benefits, .tenant-benefits, .services-list, .service-list, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    min-width: unset;
    max-width: unset;
    padding: 20px 12px;
  }
  .card {
    min-width: 180px;
    max-width: 100%;
    padding: 20px 8px;
  }
  .testimonial-slider,
  .testimonial-list {
    gap: 18px;
  }
  .services-list li, .service-list li, .features-list li, .buyer-benefits li, .tenant-benefits li {
    min-width: unset;
    max-width: unset;
    padding: 14px 10px;
    font-size: 1rem;
  }
  .container {
    padding: 0 8px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .footer-branding {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 10px;
  }
}
@media (max-width: 480px) {
  h1 {font-size: 1.5rem;}
  h2 {font-size: 1.22rem;}
  header .container {
    padding: 8px 3px;
  }
  .mobile-menu {
    padding: 11px 5px;
  }
  .cookie-modal {
    padding: 18px 7px 13px;
    min-width: 0;
  }
}

/* ==== ACCESSIBILITY UTILITY CLASSES ==== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

/* ==== MISC ==== */
::-webkit-scrollbar { width: 8px; background: #F6F8FA; }
::-webkit-scrollbar-thumb { background: #E9F1F7; border-radius: 9px; }

/* Hide cookie modal if not active */
.cookie-modal-overlay:not(.active) {
  display: none !important;
}

/* Prevent overlap by enforcing minimum spacing visually for all flex containers */
.card, .testimonial-card, .feature-item, .services-list li, .service-list li, .features-list li {
  margin-bottom: 20px;
}

/* ==== END ==== */
