/* =======================
   CSS RESET AND 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F0F3F8;
  color: #1E3557;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* ======================
   BRAND + DESIGN TOKENS
   ====================== */
:root {
  --primary: #1E3557;
  --secondary: #F0F3F8;
  --accent: #C9A253;
  --white: #fff;
  --black: #181818;
  --gray: #65708A;
  --card-bg: #fff;
  --card-shadow: 0 2px 16px 0 rgba(30,53,87,0.07), 0 1.5px 4px 0 rgba(0,0,0,0.05);
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: 0.2s cubic-bezier(.55,.16,.43,1.11);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ========================
   TYPOGRAPHY + HIERARCHY
   ======================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 13px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

p, ul, ol, li, blockquote, span, label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.6;
}
strong {
  font-weight: 800;
}
blockquote {
  font-size: 1.18rem;
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.text-section {
  margin-bottom: 18px;
}

/* Visual hierarchy for accent/highlight */
.accent, .service-price {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ====================
   CONTAINER, LAYOUTS
   ==================== */
.container {
  width: 100%;
  max-width: 1180px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius-md);
}

.card-container, .team-members, .services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card, .profile-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .profile-card:hover {
  box-shadow: 0 6px 20px 0 rgba(201,162,83,0.16), 0 2px 6px 0 rgba(30,53,87,0.07);
  transform: translateY(-4px) scale(1.03);
}

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

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  box-shadow: var(--card-shadow);
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--primary);
  min-width: 216px;
  margin-bottom: 8px;
}
.features-list img {
  width: 32px; height: 32px;
}

.services-list, .services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
.services-list li, .services-grid li {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  flex: 1 1 270px;
  min-width: 250px;
  padding: 20px 20px 24px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.services-list li:hover, .services-grid li:hover {
  box-shadow: 0 4px 20px 0 rgba(201,162,83,0.14), 0 1.5px 4px 0 rgba(30,53,87,0.10);
  transform: translateY(-3px) scale(1.02);
}
.services-list h3, .services-grid h2 {
  margin-bottom: 6px;
}

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card blockquote {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-right: 10px;
  border-left: 3px solid var(--accent);
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--gray);
  font-family: var(--font-body);
}
.testimonial-card strong {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(30,53,87,0.07), 0 2px 10px 0 rgba(201,162,83,0.09);
  transform: translateY(-2px) scale(1.012);
}

.profile-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--accent);
  margin-bottom: 14px;
  object-fit: cover;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.profile-card {
  min-width: 230px;
  max-width: 350px;
  min-height: 230px;
}

.property-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.property-search-bar input[type="text"] {
  flex: 1 1 180px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--primary);
  background: #fff;
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--font-body);
  transition: border-color 0.18s;
}
.property-search-bar input[type="text"]:disabled {
  background: #e6eaf0;
  color: #9ca4af;
  cursor: not-allowed;
}
.filter-options {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-options label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--gray);
}
.property-search-bar .cta-button {
  font-size: 1rem;
  padding: 0 24px;
}

.footer-logo img {
  width: 60px; height: 60px;
  margin-bottom: 8px;
}

/* Nav */
header {
  background: var(--white);
  box-shadow: 0 4px 14px 0 rgba(30, 53, 87, 0.04);
  padding: 9px 0 9px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.2px;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  transition: background 0.17s, color 0.17s;
  position: relative;
  z-index: 1;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--white);
}
header img {
  height: 52px; width: auto;
}

footer {
  background: var(--primary);
  color: var(--white);
  padding: 32px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.22s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--white);
  text-decoration: underline;
}
footer p {
  font-size: 0.97rem;
  color: #d5dbeb;
  margin-bottom: 0;
}

/* =========================
   BUTTONS & INTERACTIONS
   ========================= */
.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 13px 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px 0 rgba(201,162,83,0.13);
  letter-spacing: .4px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  margin-bottom: 0;
}
.cta-button:hover, .cta-button:focus {
  background: #a28538;
  color: var(--white);
  transform: scale(1.045);
  box-shadow: 0 4px 25px 0 rgba(201,162,83,0.18);
}

/* Generic button styles */
button, .button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  margin-bottom: 0;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}
button:hover, button:focus, .button:hover, .button:focus {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.04);
}

/* =================
   MOBILE BURGER MENU
   ================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 18px;
  z-index: 105;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(30,53,87,0.15);
  transition: background 0.18s, transform 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--accent);
}

.mobile-menu {
  display: none;
}
.mobile-menu.menu-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.menu-active {
  transform: translateX(0);
}
.mobile-menu-close {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: none;
  color: var(--white);
  font-size: 2.2rem;
  padding: 20px 26px 0 0;
  border: none;
  cursor: pointer;
  outline: none;
  align-self: flex-end;
  z-index: 210;
  transition: color 0.22s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 26px;
  height: 100%;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.17s, color 0.17s;
  min-width: 180px;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 1000px) {
  header .container nav {
    gap: 11px;
  }
  .contact-box {
    min-width: 230px;
  }
  .services-list li, .services-grid li, .profile-card {
    min-width: 160px;
    padding: 16px 10px 15px 10px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 730px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .section {
    padding: 25px 8px;
    margin-bottom: 38px;
    border-radius: 14px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .card-container, .team-members, .services-grid, .content-grid, .features-list {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card, .services-list, .services-grid {
    flex-direction: column;
    gap: 14px;
    padding: 18px 6px;
  }
  .card, .profile-card {
    min-width: unset;
    width: 100%;
    padding: 14px 8px;
  }
  .features-list li {
    min-width: unset;
    width: 100%;
    padding: 10px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .property-search-bar {
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 15px 8px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .container { padding-left: 8px; padding-right: 8px; }
  h1, .h1 { font-size: 1.75rem; }
  h2, .h2 { font-size: 1.3rem; }
  .cta-button, .button { font-size: 1rem; padding: 11px 19px; }
  .card, .profile-card { padding: 10px 6px; }
  footer { padding-top: 15px; }
}

/* ==============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  padding: 18px 13px 18px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  box-shadow: 0 -3px 18px 0 rgba(30,53,87,0.11);
  z-index: 5000;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieBannerIn 0.4s cubic-bezier(.2,1,.5,1) both;
}
@keyframes cookieBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 60%;
  color: var(--white);
  margin-right: 18px;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: var(--accent);
}
.cookie-banner .cookie-settings-btn {
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 18px;
  font-weight: 700;
  transition: background 0.19s, color 0.19s;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 7px 18px 7px;
  }
  .cookie-banner-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-banner-text { margin-right: 0; }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,53,87,0.58);
  z-index: 5400;
  animation: fadeIn 0.22s;
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px 0 rgba(30,53,87,0.17);
  padding: 34px 28px;
  min-width: 320px;
  max-width: 95vw;
  min-height: 250px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--font-body);
  position: relative;
  animation: modalPopIn 0.3s cubic-bezier(.2,1,.7,0.9);
}
@keyframes modalPopIn {
  0% { transform: scale(.8) translateY(60px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0 7px 0;
  border-bottom: 1px solid #dbe3ef;
}
.cookie-modal .cookie-category:last-child { border-bottom: none; }
.cookie-modal .category-label {
  font-size: 1.01rem;
  font-weight: 700;
  font-family: var(--font-body);
}
.cookie-modal .category-toggle {
  padding-left: 16px;
}
.cookie-modal .toggle-switch {
  display: inline-block;
  width: 38px;
  height: 24px;
  position: relative;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cfd1d7;
  border-radius: 24px;
  transition: .27s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--accent);
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .27s;
  box-shadow: 0 1px 7px 0 rgba(30,53,87,0.11);
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(14px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 6px;
}
.cookie-modal-actions .cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 0;
    padding: 16px 5px;
  }
  .cookie-modal .category-label { font-size: 0.95rem; }
}

/* =====================
   GEOMETRIC DECORATION
   ===================== */
/* Example geometric accent: top left triangle for hero section */
.section:first-child::before {
  content: '';
  position: absolute;
  display: block;
  top: -30px;
  left: -40px;
  width: 72px;
  height: 72px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.21;
  z-index: 0;
}
.section:first-child {
  position: relative;
  overflow: visible;
}

/* ============
   FORM ELEMENTS
   ============= */
input, textarea, select {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid #b4bdd0;
  padding: 12px 18px;
  font-size: 1.01rem;
  margin-bottom: 10px;
  color: var(--primary);
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}
label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

/* ================
   MISC/HELPERS
   ================ */
.hide { display: none !important; }
.w-full { width: 100% !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* ===========
   ACCESSIBILITY
   =========== */
:focus {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--accent);
  color: var(--white);
  font-weight: bold;
  padding: 6px 14px;
  z-index: 22;
}
.skip-link:focus {
  left: 14px;
  top: 10px;
}

/* =============================
   NO GRID! FLEX LAYOUT ENFORCED
   ============================= */
/* Each flex container already specified above,
   with gap and flex-wrap as per requirements. */
