/* ==================================================   CSS RESET & BASE ================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  background: #FAF9F7;
  color: #22303a;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
html {
  box-sizing: border-box;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}
a {
  color: #194C69;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #57927C;
  text-decoration: underline;
}
body {
  width: 100%;
}

/* ==================================================   BASE TYPOGRAPHY ================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', Times, serif;
  color: #194C69;
  margin-bottom: 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.2rem;
  color: #346675;
  margin-bottom: 8px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, li {
  font-family: 'Roboto', 'Merriweather', serif;
  font-size: 1rem;
  color: #22303a;
}
small, .small {
  font-size: 0.92em;
  color: #6c7a80;
}

/* ==================================================   LAYOUT CONTAINERS ================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

/* --------------------------------------------------   SECTIONS   -------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(32,48,53,0.04);
}
@media (max-width: 900px) {
  .section { padding: 28px 10px; }
}

main {
  padding: 20px 0 0 0;
}

/* ==================================================   HEADER & NAVIGATION ================================================== */
header {
  background: #fff;
  border-bottom: 1px solid #e6e9ec;
  box-shadow: 0 2px 10px 0 rgba(32,48,53,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 50px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  padding: 4px 0;
  position: relative;
  color: #194C69;
  font-weight: 500;
  border-radius: 0;
  transition: color 0.2s;
}
.main-nav a.button-primary {
  margin-left: 12px;
}
.main-nav a:not(.button-primary):hover,
.main-nav a:not(.button-primary):focus {
  color: #57927C;
}
.button-primary {
  background: #194C69;
  color: #fff !important;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  padding: 11px 30px;
  border-radius: 36px;
  border: none;
  box-shadow: 0 1px 3px rgba(32,48,53,.03);
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.02em;
}
.button-primary:hover, .button-primary:focus {
  background: #57927C;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 8px 0 rgba(32,48,53,.09);
}

/* --------------------------------------------------   MOBILE MENU   -------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #194C69;
  cursor: pointer;
  margin-left: 18px;
  z-index: 200;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #57927C;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(24,50,65, 0.93);
  z-index: 888;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.4,1.2,.5,1), opacity 0.27s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #F7F9F8;
  position: absolute;
  top: 24px; right: 32px;
  cursor: pointer;
  z-index: 999;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #57927C;
}
.mobile-nav {
  margin-top: 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 12px 0;
  width: 100%;
  transition: color 0.20s, background 0.18s;
  border-radius: 7px;
  position: relative;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #194C69;
  color: #F7F9F8;
}
.mobile-nav a.button-primary {
  margin-top: 8px;
  background: #194C69;
  color: #fff;
  border-radius: 30px;
  text-align: center;
  font-size: 1.1rem;
  padding: 11px 16px;
}

/* ==================================================   HERO & CTA SECTIONS ================================================== */
.hero {
  background: #f7f9f8;
  padding: 40px 0 30px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 700px;
}
@media (max-width: 767px) {
  .hero {
    padding: 28px 0 15px 0;
  }
}
.call-to-action {
  background: #194C69;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(32,48,53,0.05);
  margin-bottom: 60px;
  padding: 40px 0;
}
.call-to-action .content-wrapper h2,
.call-to-action .content-wrapper p {
  color: #fff !important;
}
.call-to-action .button-primary {
  background: #fff;
  color: #194C69 !important;
  box-shadow: 0 1px 4px 0 rgba(25,76,105,0.06);
}
.call-to-action .button-primary:hover,
.call-to-action .button-primary:focus {
  background: #57927C;
  color: #fff !important;
}

/* ==================================================   FEATURES & GRID LAYOUTS ================================================== */
.features-grid,
.service-grid,
.region-grid,
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid li,
.service-grid li,
.region-card,
.team-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 11px 0 rgba(32,48,53,0.035);
  flex: 1 1 min(270px, 100%);
  min-width: 250px;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.23s, transform 0.17s;
  border: 1px solid #eaecec;
}
.features-grid li:hover, .region-card:hover, .service-grid li:hover, .team-card:hover {
  box-shadow: 0 6px 32px 0 rgba(32,48,53,0.13);
  transform: translateY(-6px) scale(1.01);
  border-color: #d8e8e4;
}
.features-grid img,
.service-grid img,
.region-card img,
.team-card img {
  width: 38px;
  height: 38px;
  margin-bottom: 7px;
}
.service-grid {
  gap: 24px;
}
.service-grid li {
  min-width: 240px;
  max-width: 360px;
}
.team-list {
  gap: 24px;
}
.team-card {
  min-width: 208px;
  max-width: 290px;
  flex: 1 1 208px;
}
.region-features .region-grid {
  gap: 30px;
}
.region-card {
  min-width: 225px;
  max-width: 320px;
}

@media (max-width: 900px) {
  .features-grid,
  .service-grid,
  .region-grid,
  .team-list {
    gap: 16px;
  }
  .features-grid li,
  .service-grid li,
  .region-card,
  .team-card {
    min-width: 180px;
    max-width: 98vw;
    padding: 18px 12px 16px 12px;
  }
}
@media (max-width: 767px) {
  .features-grid,
  .service-grid,
  .region-grid,
  .team-list {
    flex-direction: column;
    gap: 14px;
  }
  .features-grid li, .service-grid li, .region-card, .team-card {
    min-width: unset;
    max-width: 100vw;
    width: 100%;
  }
}

/* ------------------------------------------ CARDS & CONTAINER FLEX SPACING ------------------------------------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 11px 0 rgba(32,48,53,0.035);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px 20px 20px;
  transition: box-shadow 0.21s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 6px 34px 0 rgba(32,48,53,0.14);
  transform: translateY(-5px) scale(1.01);
  border-color: #d8e8e4;
}

.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) {
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

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

/* ==================================================   TESTIMONIALS ================================================== */
.testimonial {
  margin-bottom: 60px;
  background: #f7f9f8;
  padding: 36px 0 16px 0;
}
.testimonial .content-wrapper {
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px 16px 24px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(32,48,53,0.07);
  border-left: 4px solid #57927C;
  transition: box-shadow 0.19s, border 0.16s;
  max-width: 570px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(32,48,53,0.13);
  border-left: 4px solid #194C69;
}
.testimonial-card p {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #22303a;
  font-size: 1.16rem;
  font-style: italic;
  margin-bottom: 5px;
}
.testimonial-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-family: 'Roboto', 'Merriweather', serif;
  font-size: 1rem;
  color: #346675;
  font-weight: 500;
}
.testimonial-meta span:last-child {
  color: #194C69;
  letter-spacing: 1px;
}

@media (max-width: 700px) {
  .testimonial-card {
    max-width: 100vw;
    padding: 14px 11px 14px 18px;
  }
}

/* ==================================================   FAQ / ACCORDION ================================================== */
.faq .accordion h3 {
  cursor: pointer;
  position: relative;
  padding-right: 40px;
  font-size: 1.13rem;
  margin-bottom: 0.07em;
  color: #194C69;
  transition: color 0.17s;
}
.faq .accordion h3:hover {
  color: #57927C;
}
.faq .accordion p {
  margin-bottom: 22px;
}
.faq-contact-prompt {
  margin-top: 18px;
}

/* ==================================================   PROPERTY FILTER / SEARCH BAR ================================================== */
.property-filter {
  background: #f0f3f2;
  border-radius: 14px;
  margin-bottom: 45px;
  padding: 30px 0;
}
.property-search-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 14px;
}
.property-search-bar label {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  color: #194C69;
}
.property-search-bar input {
  font-family: 'Roboto', serif;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #d1d9dc;
  background: #fff;
  transition: border-color 0.15s;
}
.property-search-bar input:focus {
  border-color: #57927C;
  outline: none;
}
.filter-options {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-bottom: 16px;
}
.filter-options span {
  background: #fff;
  padding: 7px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', serif;
  font-size: 1.01rem;
  color: #346675;
  border: 1px solid #e2eaea;
  box-shadow: 0 1px 2px rgba(32,48,53,0.025);
  cursor: pointer;
  transition: border 0.15s;
}
.filter-options span:hover {
  border: 1.5px solid #57927C;
  background: #edfaf6;
}

/* ==================================================   OTHER COMPONENTS ================================================== */
.process ol, .legal ul {
  margin-left: 1.0em;
  margin-bottom: 1.2em;
}
.legal {
  margin-bottom: 60px;
  padding: 36px 0 0 0;
}
.legal h1 {
  margin-bottom: 18px;
}
.legal h2 {
  margin-top: 22px;
  margin-bottom: 10px;
}
.legal h3 {
  margin-top: 18px;
  margin-bottom: 6px;
}

.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-details ul li img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 9px;
}

.thank-you {
  margin: 50px 0 70px 0;
  padding: 40px 0 35px 0;
  text-align: left;
}

/* ==================================================   FOOTER ================================================== */
footer {
  background: #F7F9F8;
  border-top: 1px solid #e1e6ea;
  color: #22303a;
  margin-top: 80px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 30px 20px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 8px;
}
.footer-menu a {
  color: #194C69;
  font-family: 'Merriweather', serif;
  font-size: 1em;
  font-weight: 500;
  transition: color 0.14s;
}
.footer-menu a:hover,
.footer-menu a:focus {
  color: #57927C;
}
.footer-contact p {
  font-family: 'Roboto', 'Merriweather', serif;
  font-size: 1rem;
  color: #22303a;
  margin-bottom: 3px;
}
@media (max-width: 700px) {
  footer .container {
    padding: 20px 8px;
    gap: 14px;
  }
  .footer-menu {
    gap: 13px;
  }
  .footer-contact p {
    font-size: 0.97rem;
  }
}

/* ==================================================   COOKIE CONSENT BANNER ================================================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: rgba(255,255,254, 0.97);
  box-shadow: 0 -2px 24px 0 rgba(32,48,53,0.13);
  padding: 23px 18px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 22px;
  justify-content: space-between;
  z-index: 9999;
  animation: cookieBannerSlideUp 0.55s cubic-bezier(.66,1.2,.5,.87);
}
@keyframes cookieBannerSlideUp {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__content {
  font-size: 1.02rem;
  color: #22303a;
  font-family: 'Roboto', serif;
  max-width: 620px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner__button {
  font-family: 'Merriweather', serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 27px;
  border: none;
  cursor: pointer;
  margin-left: 2px;
  transition: background 0.18s, color 0.14s, box-shadow 0.19s;
}
.cookie-banner__button--accept {
  background: #194C69;
  color: #fff;
}
.cookie-banner__button--accept:hover,
.cookie-banner__button--accept:focus {
  background: #57927C;
  color: #fff;
}
.cookie-banner__button--reject {
  background: #e9eceb;
  color: #22303a;
}
.cookie-banner__button--reject:hover,
.cookie-banner__button--reject:focus {
  background: #dadfe1;
  color: #57927C;
}
.cookie-banner__button--settings {
  background: #fff;
  color: #194C69;
  border: 1.8px solid #57927C;
  font-weight: 500;
}
.cookie-banner__button--settings:hover,
.cookie-banner__button--settings:focus {
  background: #edfaf6;
  color: #194C69;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 7px 13px 7px;
  }
  .cookie-banner__content {
    font-size: 0.97rem;
  }
}

/* ------- Cookie Modal ------- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(25,76,105,0.38);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open { opacity: 1; pointer-events: all; }
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 44px 0 rgba(25,76,105,0.15);
  min-width: 340px;
  max-width: 96vw;
  padding: 38px 34px 30px 34px;
  position: relative;
  animation: cookieModalPop 0.33s cubic-bezier(.42,1.17,.52,.95);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes cookieModalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.34rem;
  margin-bottom: 12px;
  color: #194C69;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 8px 0 15px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #e8eae9;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category-title {
  font-weight: 600;
  color: #194C69;
  letter-spacing: 0.01em;
}
.cookie-category-desc {
  color: #6c7a80;
  font-size: 0.98rem;
  margin-left: 13px;
}
.cookie-toggle {
  width: 40px; height: 22px;
  border-radius: 13px;
  background: #e4ecea;
  position: relative;
  transition: background 0.19s;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle[aria-checked="true"] {
  background: #57927C;
}
.cookie-toggle-knob {
  position: absolute;
  left: 2px; top: 2.5px;
  width: 18px; height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.07);
  transition: left 0.19s;
}
.cookie-toggle[aria-checked="true"] .cookie-toggle-knob {
  left: 20px;
}
.cookie-modal .cookie-modal-footer {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 19px; top: 14px;
  font-size: 1.65rem;
  background: none;
  border: none;
  color: #a1a7b0;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: #57927C;
}

/* ==================================================   RESPONSIVE ================================================== */
@media (max-width: 900px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .call-to-action, .section {
    padding: 20px 6px;
  }
}
@media (max-width: 600px) {
  body, html { font-size: 15px; }
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1.07rem; }
  .region-card, .features-grid li, .service-grid li, .team-card {
    padding: 14px 6px;
  }
  .card {
    padding: 12px 7px;
  }
}

/* ==================================================   EFFECTS, MICRO-INTERACTIONS ================================================== */
.button-primary, .cookie-banner__button, .property-search-bar input, .filter-options span, .features-grid li, .service-grid li, .region-card, .card, .team-card,
.mobile-nav a, .main-nav a {
  transition: background 0.18s, color 0.15s, box-shadow 0.17s, border 0.13s, transform 0.13s;
}

/* ======= FORM INPUTS (where needed) ======= */
input, textarea, select {
  font-family: 'Roboto', 'Merriweather', serif;
  font-size: 1rem;
  background: #fbfbfa;
  color: #22303a;
  border: 1.5px solid #ccd1d7;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 18px;
}
input:focus, textarea:focus {
  border-color: #194C69;
  outline: none;
}

/* ============ Hide unused elements ============ */
[hidden], .hidden { display: none !important; }

/* ======== Utility classes ======== */
.mb-20 { margin-bottom: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

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