/* ========================== 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: #101929;
  color: #E4F6FF;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #57A880;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E4C28B;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
}
:focus {
  outline: 2px solid #57A880;
  outline-offset: 2px;
}

/* ======================= TYPOGRAPHY ============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: .05em;
  margin-bottom: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 16px #27825755;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
strong {
  color: #E4C28B;
  font-weight: 700;
}
.text-section {
  /* for text-image pattern */
  max-width: 680px;
}

/* ======================= COLOR VARIABLES (FALLBACKS) ======================== */
:root {
  --primary: #1B415A;
  --secondary: #E4C28B;
  --accent: #57A880;
  --text-light: #E4F6FF;
  --text-dark: #222E33;
  --surface: #182433;
  --card-bg: #202B3C;
  --border-radius: 16px;
  --shadow: 0 8px 32px 0 rgba(39,130,87, 0.18);
  --focus-outline: #57A880;
}

/* ======================= CONTAINER & LAYOUTS ============================== */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.card-container,
.card-grid, /* for properties page */
.feature-grid, 
.services-grid,
.featured-grid,
.recent-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card, .feature-item, .service-item, .property-card, .blog-snippet, .testimonial-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 24px;
  color: var(--text-light);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.card:hover, .feature-item:hover, .service-item:hover, .property-card:hover, .blog-snippet:hover, .testimonial-card:hover {
  box-shadow: 0 8px 40px 0 #27825788;
  transform: translateY(-4px) scale(1.012);
}

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

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  max-width: 330px;
  flex: 1 1 220px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  background: #fff;
  color: #1B415A;
  border: 2px solid #E4C28B;
  box-shadow: 0 4px 26px 0 rgba(39,130,87, 0.10);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  width: 100%;
}
.star-ratings {
  display: flex;
  align-items: center;
  gap: 2px;
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--secondary);
}

.quick-facts ul, .faq-snippet ul {
  margin-bottom: 0;
}

.direct-contact-details,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-embed {
  margin-top: 22px;
  margin-bottom: 0;
}

/* ======================== HEADER & NAVIGATION =============================== */
header {
  width: 100%;
  background: #101929;
  box-shadow: 0 4px 30px 0 #1B415A11;
  position: relative;
  z-index: 40;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px 0;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: .04em;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #278257 40%, #E4C28B 100%);
  transition: width .2s;
  position: absolute;
  left: 0;
  bottom: 4px;
}
.main-nav a:hover:after,.main-nav a:focus:after {
  width: 70%;
}

.btn-primary {
  padding: 12px 28px;
  border-radius: 25px;
  background: linear-gradient(90deg, #278257 0%, #1B415A 97%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 18px 0 #27825744;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
  margin-left: 16px;
  position: relative;
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #E4C28B 0%, #278257 100%);
  color: #1B415A;
  border: 2px solid #E4C28B;
  text-shadow: none;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: none;
  color: #E4C28B;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  position: absolute;
  right: 24px;
  top: 18px;
  z-index: 121;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus {
  background: #18363a;
}
.mobile-menu-toggle:hover {
  background: #57A88044;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background: #172130;
  box-shadow: -4px 0 32px 0 #27825755;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 38px 28px 28px 22px;
  transform: translateX(105%);
  transition: transform 0.33s cubic-bezier(0.77,0,0.18,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #E4C28B;
  background: none;
  align-self: flex-end;
  margin-bottom: 14px;
  cursor: pointer;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: background 0.13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #E4C28B;
  color: #1B415A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 22px;
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 1.15rem;
  color: #E4F6FF;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #57A880;
  background: #182433;
}
@media (max-width: 1000px) {
  .main-nav, .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none;
  }
}

/* ========================== HERO SECTIONS ============================ */
.hero, .hero-buy, .hero-sell {
  background: linear-gradient(120deg, #1B415A 60%, #278257 100%, #57A880 100%), #182433;
  box-shadow: 0 12px 68px 0 #57A88033;
  border-radius: 0 0 38px 38px;
  min-height: 340px;
  margin-bottom: 60px;
  padding: 52px 0 68px 0;
  display: flex;
  align-items: center;
}
.hero .content-wrapper, .hero-buy .content-wrapper, .hero-sell .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  color: #fff;
}
.hero h1, .hero-buy h1, .hero-sell h1 {
  color: #E4C28B;
  text-shadow: 0 10px 44px #27825799;
}
.hero .btn-primary, .hero-buy .btn-primary, .hero-sell .btn-primary {
  margin-top: 16px;
}

/* ====================== FEATURE & VALUE SECTIONS ======================= */
.features, .feature-grid, .buy-features, .selling-services, .services-overview .services-grid, .featured-grid {
  width: 100%;
}
.feature-grid, .services-grid, .featured-grid {
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item img, .service-item img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 8px #E4C28B22);
}
.feature-item h3, .service-item h3 {
  color: #E4C28B;
  font-size: 1.13rem;
  letter-spacing: .02em;
}

/* CARD styles for all cards */
.property-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 20px 28px 24px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.property-card h3 {
  color: #E4C28B;
}
.property-card ul {
  margin-bottom: 5px;
}
.property-card .btn-primary {
  width: fit-content;
  margin-top: 8px;
}

.blog-snippet {
  background: #212F48;
  color: #E4C28B;
  border: 2px solid #278257;
  box-shadow: 0 5px 30px #27825733;
  min-width: 190px;
  max-width: 340px;
  flex: 1 1 220px;
  padding: 24px 20px;
  margin-bottom: 20px;
}
.blog-snippet h3 {
  color: #E4C28B;
}
.blog-snippet a {
  color: #57A880;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.16s;
}
.blog-snippet a:hover {
  color: #E4F6FF;
}

/* ========================= TESTIMONIALS ======================== */
.testimonials, .testimonial-slider {
  width: 100%;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 0 0 16px 0;
}
.testimonial-card p {
  color: #222E33;
  font-size: 1.07rem;
  line-height: 1.6;
}
.testimonial-footer span {
  font-weight: 700;
  color: #278257;
  font-size: 1.01rem;
}
.social-proof {
  margin-top: 8px;
  color: #278257;
  font-weight: 600;
  font-size: 1.02rem;
}

/* ========================= CTA SECTIONS ========================= */
.cta {
  background: linear-gradient(93deg,#27825755 19% ,#1B415A 80%);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 36px #27825744;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta .content-wrapper h2 {
  color: #E4C28B;
}
.cta .btn-primary {
  margin-top: 16px;
}

.cta-block {
  margin-top: 28px;
}

/* ================== BLOG CATEGORY BUTTONS/ FILTER BARS ========= */
.property-filters, .category-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 22px 0;
}
.property-filters button, .category-filters button {
  padding: 7px 20px;
  border-radius: 18px;
  background: #278257;
  color: #fff;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: background 0.16s, border 0.16s, color 0.13s;
}
.property-filters button:hover, .property-filters button:focus,
.category-filters button:hover, .category-filters button:focus {
  background: #E4C28B;
  color: #1B415A;
  border: 1.5px solid #E4C28B;
}

/* ================ FOOTER ========================= */
footer {
  width: 100%;
  background: #0F181F;
  margin-top: 60px;
  padding: 42px 0 20px 0;
  border-top: 3.5px solid #278257;
  color: #E4F6FF;
  position: relative;
  z-index: 41;
  overflow: hidden;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  width: 120px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #E4C28B;
  font-size: 1.05rem;
  transition: color 0.14s;
  letter-spacing: .01em;
}
.footer-nav a:hover { color: #57A880; }
.footer-contact p, .footer-geo-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer-geo-note span, .language-selection span {
  color: #278257;
  font-size: .98rem;
  font-weight: 500;
}
.language-selection {
  margin-top: 10px;
}

/* ================ STATIC UTILITY CLASSES =============== */
.mt-24 { margin-top: 24px !important; } 
.mb-12 { margin-bottom: 12px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* ============== COOKIES CONSENT BANNER & MODAL ============= */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #202B3C;
  color: #fff;
  box-shadow: 0 -6px 36px #57A88033;
  padding: 18px 20px;
  z-index: 99999;
  gap: 24px;
  font-size: 1.04rem;
  border-top: 2px solid #278257;
  animation: cookieSlideUp 0.45s cubic-bezier(0.66,0,0.34,1);
}
@keyframes cookieSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}
.cookie-btn {
  background: #57A880;
  color: #fff;
  border-radius: 8px;
  padding: 8px 20px;
  border: none;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s;
  margin-left: 8px;
}
.cookie-btn.settings {
  background: #E4C28B;
  color: #1B415A;
}
.cookie-btn.reject {
  background: #1B415A;
  color: #E4C28B;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #278257;
  color: #fff;
}
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100000;
  background: #182433;
  border-radius: 20px;
  box-shadow: 0 10px 80px #57A88044;
  min-width: 350px;
  transform: translate(-50%, -55%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.27s;
  padding: 35px 28px 24px 28px;
  color: #fff;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal-title {
  font-family: 'Montserrat',sans-serif;
  font-size: 1.25rem;
  color: #E4C28B;
  margin-bottom: 10px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 15px;
  margin-top: 7px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
}
.cookie-modal-category input[type=checkbox] {
  accent-color: #57A880;
  width: 18px;
  height: 18px;
}
#cookie-modal .cookie-actions {
  margin-left: 0;
  margin-top: 20px;
}
#cookie-modal .cookie-btn {
  margin-left: 0;
}
#cookie-modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  color: #E4C28B;
  font-size: 1.7rem;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.13s, color 0.15s;
}
#cookie-modal-close:hover {
  background: #E4C28B;
  color: #182433;
}

/* ====================== RESPONSIVE =========================== */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  .footer-container, .feature-grid, .services-grid, .featured-grid, .property-filters, .category-filters {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.77rem; }
  h2 { font-size: 1.28rem; }
  .section, section, .cta {
    padding: 28px 10px;
    margin-bottom: 32px;
  }
  .container {
    padding: 0 10px;
  }
  .header-container {
    gap: 12px;
    min-height: 56px;
  }
  .footer-container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .card-container, .feature-grid, .services-grid, .featured-grid, .testimonial-slider, .recent-posts {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero, .hero-buy, .hero-sell {
    min-height: 220px;
    padding: 30px 0 32px 0;
    border-radius: 0 0 22px 22px;
  }
}
@media (max-width: 576px) {
  .footer-logo img {
    width: 90px;
  }
  #cookie-consent-banner {
    flex-direction: column;
    padding: 20px 5px;
    gap: 11px;
    text-align: center;
  }
  #cookie-modal {
    min-width: 0;
    padding: 18px 10px 18px 10px;
  }
}

/* ==================== ANIMATION & MICRO-INTERACTION =============== */
.btn-primary, .cookie-btn {
  box-shadow: 0 2px 8px #27825733;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.15s;
}
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
}
.card, .property-card, .testimonial-card, .blog-snippet, .feature-item, .service-item {
  transition: box-shadow 0.21s, transform 0.18s;
}
.card:hover, .property-card:hover, .testimonial-card:hover, .blog-snippet:hover, .feature-item:hover, .service-item:hover {
  box-shadow: 0 14px 38px #57A88044 !important;
  transform: translateY(-3px) scale(1.012);
}

/* ============= MISC (Newsletter, about, gratitude etc.) ============ */
.newsletter-signup, .newsletter {
  margin-top: 16px;
  margin-bottom: 12px;
}
.newsletter-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1rem;
}
.team-highlights ul {
  margin-bottom: 0;
}
.gratitude-note {
  background: #27825722;
  color: #278257;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  margin-top: 16px;
}

/* ============= PRINT SUPPORT: Hide navigation, footer, cookie notice when printing ============= */
@media print {
  header, footer, #cookie-consent-banner, #cookie-modal { display: none !important; }
}

/* ============= HELPER: Prevent content overlap ============= */
.card, .feature-item, .service-item, .property-card, .testimonial-card, .blog-snippet {
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
}
