/* --- CSS RESET & BASE TYPOGRAPHY --- */
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;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { vertical-align: middle; max-width: 100%; display: block; border: 0; }
html {
  height: 100%;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F8F5F1;
}
body {
  min-height: 100vh;
  background: #F8F5F1;
  color: #21304A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- COLORS --- */
:root {
  --primary: #21304A;
  --secondary: #F1C76D;
  --accent: #FFFFFF;
  --warm1: #FFF6E6;
  --warm2: #FDEBC6;
  --warm3: #EDCA92;
  --danger: #B03C25;
  --shadow1: rgba(33,48,74,0.07);
  --shadow2: rgba(33,48,74,0.12);
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4, h5, h6 { font-size: 1rem; margin-bottom: 12px; }
p {
  margin-bottom: 12px;
  font-size: 1.08rem;
}
strong { font-weight: bold; }
em { font-style: italic; color: var(--primary); }

/* --- LAYOUT CONTAINER --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* --- HEADER / NAV --- */
header {
  background: var(--accent);
  box-shadow: 0 2px 8px var(--shadow1);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 48px;
  border-radius: 8px;
}
header nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.02rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.17s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--warm2);
  color: #945C20;
}
.cta.primary {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 24px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 8px var(--shadow2);
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-left: 12px;
}
.cta.primary:hover, .cta.primary:focus {
  background: #EDCA92;
  box-shadow: 0 8px 24px var(--shadow2);
  transform: translateY(-2px) scale(1.02);
}
.cta.secondary {
  background: var(--primary);
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 9px 22px;
  border: none;
  border-radius: 32px;
  margin-left: 0px;
  box-shadow: 0 2px 8px var(--shadow2);
  transition: background 0.18s, box-shadow 0.16s, transform 0.11s;
  cursor: pointer;
  display: inline-block;
  margin-top: 12px;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #384a70;
  transform: translateY(-1.5px) scale(1.015);
}
.cta.tertiary {
  background: var(--warm3);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 24px;
  border: none;
  margin-top: 8px;
  margin-bottom: 4px;
  transition: background 0.18s, color 0.16s, box-shadow 0.16s;
  box-shadow: 0 2px 8px var(--shadow2);
  cursor: pointer;
  display: inline-block;
}
.cta.tertiary:hover, .cta.tertiary:focus {
  background: var(--secondary);
  color: #945C20;
  box-shadow: 0 3px 14px var(--shadow2);
}
.cta-link {
  color: #AD6C29;
  font-weight: 700;
  padding: 2px 2px;
  border-radius: 4px;
  transition: background 0.16s, color 0.14s;
}
.cta-link:hover, .cta-link:focus {
  background: var(--warm2);
  color: var(--primary);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2.05rem;
  border-radius: 12px;
  padding: 8px 14px;
  margin-left: 20px;
  transition: background 0.14s, color 0.12s;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--warm2);
  color: var(--primary);
}
@media (max-width: 1024px) {
  header nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (max-width: 600px) {
  header img { height: 40px; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,48,74, 0.95);
  z-index: 9900;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(0.77,0.02,0.62,1.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 14px;
  padding: 8px 20px 8px 12px;
  margin: 32px 0 24px 28px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--shadow2);
  transition: background 0.16s, color 0.13s;
  z-index: 9910;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--warm2);
  color: #945C20;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 0 36px 24px 36px;
  width: 100vw;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.45rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 10px;
  transition: background 0.17s, color 0.13s;
  margin-bottom: 2px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:active, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* --- HERO SECTIONS --- */
.hero {
  background: var(--warm1);
  border-radius: 32px;
  margin: 36px 0 40px 0;
  padding: 36px 0;
  box-shadow: 0 3px 24px var(--shadow1);
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  gap: 12px;
}
.hero h1 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 8px !important;
  font-size: 2.2rem;
}
.hero p {
  color: #684313;
  margin-bottom: 20px;
  font-size: 1.18rem;
}
.hero .cta {
  margin-top: 12px;
}

@media (max-width: 768px) {
  .hero {
    padding: 28px 0 30px 0;
    border-radius: 21px;
    margin: 20px 0 28px 0;
  }
  .hero h1 { font-size: 1.43rem; }
  .hero p { font-size: 1rem; }
}

/* --- GENERIC SECTION STYLING (MANDATORY SPACING) --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 20px;
}
@media (max-width: 768px) {
  section { padding: 20px 7px;  margin-bottom: 36px; }
}
/* --- CARDS, FLEXBOX LAYOUTS, SPACING --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow1);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 0 240px;
}

.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;
  align-items: center;
  gap: 20px;
  background: var(--warm1);
  border-radius: 18px;
  box-shadow: 0 3px 16px var(--shadow1);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 200px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--shadow1);
  padding: 20px 16px;
  margin: 0 0 20px 0;
}

/* --- HOMEPAGE FEATURE GRID, PROPERTY LIST --- */
.feature-grid, .service-grid, .property-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 15px;
}
.feature-grid > div, .service-grid > div, .property-card {
  flex: 1 0 252px;
  min-width: 230px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--shadow1);
  padding: 22px 18px 18px 18px;
  transition: box-shadow 0.18s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .service-grid > div:hover, .property-card:hover {
  box-shadow: 0 7px 32px var(--shadow2);
  transform: translateY(-4px) scale(1.021);
}
.feature-grid img, .service-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 5px var(--shadow1));
}
.property-card h3 {
  margin-bottom: 11px;
  color: var(--primary);
  font-size: 1.18rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.property-card ul {
  margin-bottom: 0;
}

/* --- BLOG STYLING --- */
.featured-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0;
}
.featured-articles article {
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow1);
  padding: 20px;
  flex: 1 1 318px;
  min-width: 240px;
  transition: box-shadow 0.16s;
  margin-bottom: 20px;
}
.featured-articles article:hover {
  box-shadow: 0 7px 30px var(--shadow2);
}
.categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.98rem;
  margin-top: 14px;
  margin-bottom: 0;
}
.categories-list li {
  background: var(--warm2);
  color: var(--primary);
  border-radius: 12px;
  padding: 6px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.mini-trends ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}
.mini-trends li {
  background: var(--warm2);
  color: var(--primary);
  border-radius: 12px;
  padding: 8px 12px;
}

/* --- TREND CARDS --- */
.trend-card {
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--shadow1);
  margin-bottom: 20px;
  padding: 22px 22px;
  transition: box-shadow 0.16s;
}
.trend-card:hover {
  box-shadow: 0 8px 38px var(--shadow2);
  transform: translateY(-6px) scale(1.02);
}

/* --- TESTIMONIALS SLIDER --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--warm1);
  color: var(--primary);
  border-radius: 18px;
  box-shadow: 0 3px 16px var(--shadow1);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 190px;
  max-width: 350px;
  font-size: 1.06rem;
  outline: none;
}
.testimonial-card p {
  color: #3B2F15;
  font-weight: 500;
}
.testimonial-card strong {
  color: #b07a15;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 14px;
}

@media (max-width: 820px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--warm2);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 14px var(--shadow1);
  padding: 44px 0 22px 0;
  margin-top: 60px;
  font-size: 0.98rem;
  color: #493D20;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 22px;
}
.footer-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #605633;
  font-weight: 600;
  border-radius: 8px;
  padding: 5px 9px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: #21304A;
}
.footer-contact {
  margin-bottom: 16px;
  margin-top: 12px;
}
.footer-contact ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 0;
}
.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}
.footer-legal {
  text-align: center;
  color: #6e632f;
  padding-top: 10px;
  font-size: 0.97rem;
}
@media (max-width: 768px) {
  footer {
    padding: 32px 0 12px 0;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-contact ul {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* --- FORM & DETAILS --- */
.text-section, .team-intro {
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 10px var(--shadow1);
  padding: 18px 20px 20px 20px;
  margin-bottom: 20px;
  line-height: 1.72;
  color: #3B2F15;
}
.text-section ul, .team-intro ul {
  margin-bottom: 14px;
}
.text-section ul li,
.team-intro ul li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.text-section img, .team-intro img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

ol {
  margin-left: 25px;
  margin-bottom: 12px;
}

/* --- RESPONSIVE FLEX LAYOUTS --- */
@media (max-width: 1024px) {
  .feature-grid, .property-list, .service-grid, .testimonial-slider, .content-grid, .featured-articles {
    flex-direction: column;
    gap: 22px;
  }
  .property-card, .feature-grid > div, .service-grid > div, .trend-card {
    min-width: 200px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container { gap: 12px; }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
section, .card, .cta, .feature-item, .testimonial-card, .trend-card, .property-card, .featured-articles article, .footer-nav a {
  transition: box-shadow 0.17s, background 0.14s, transform 0.12s, color 0.13s;
}

/* --- MANDATORY: NO GRID/ABSOLUTE FOR CONTENTS (Cards Only for Decoration) --- */
/* Verified: No grid, columns, abs pos used (except for decorative only if needed) */

/* --- COOKIE CONSENT BANNER (FIXED BOTTOM) --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--accent);
  box-shadow: 0 -2px 18px var(--shadow2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9901;
  padding: 18px 24px;
  border-radius: 24px 24px 0 0;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.23s, transform 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.14s, color 0.14s, box-shadow 0.13s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #EDCA92;
}
.cookie-banner .reject {
  background: var(--warm2);
  color: var(--danger);
  font-weight: 700;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ffe2ce;
  color: #8A2611;
}
.cookie-banner .settings {
  background: none;
  color: #ad6c29;
  border: 2px solid var(--secondary);
  font-weight: 600;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 9px;
    gap: 8px;
  }
  .cookie-banner .cookie-buttons {
    gap: 8px;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width: 100vw; height: 100vh;
  background: rgba(33,48,74,0.37);
  z-index: 9902;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--accent);
  border-radius: 26px;
  padding: 32px 32px 24px 32px;
  min-width: 300px;
  max-width: 92vw;
  box-shadow: 0 8px 34px var(--shadow2);
  font-size: 1.08rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.22rem;
  margin-bottom: 18px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 3px;
}
.cookie-category label {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
}
.cookie-category input[type=checkbox], .cookie-category input[type=switch] {
  width: 20px;
  height: 20px;
}
.cookie-category .always-on {
  color: #9A8953;
  font-size: 0.97rem;
  margin-left: 7px;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  padding: 5px 13px;
  z-index: 1;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--warm3);
  color: #945C20;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 18px 5vw 10px 5vw;
    font-size: 0.98rem;
  }
}

/* --- UTILITY & OVERRIDES --- */
ul, ol { margin-left: 20px; }
li { margin-bottom: 7px; }
a:focus-visible, button:focus-visible {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  background: var(--warm1);
}
::-webkit-scrollbar-thumb {
  background: var(--warm2);
  border-radius: 8px;
}

/* --- SCROLL ANIMATION FOR SMOOTH TRANSITIONS --- */
html {
  scroll-behavior: smooth;
}

/* --- CUSTOM CHECKBOXES & SWITCHES FOR COOKIES --- */
.cookie-category input[type="checkbox"]:not(:disabled) {
  accent-color: var(--secondary);
  border-radius: 8px;
}

/* --- THANK YOU PAGE & CTAs --- */
nav {
  margin-bottom: 0;
}

/* --- ACCESSIBILITY & MOBILE PATCHES --- */
@media (max-width: 500px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1rem; }
}

/* --- END --- */
