/* =========================
   CSS 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F6F7FA;
  color: #193153;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* =========================
   BRAND VARIABLES & FONTS
   ========================= */
:root {
  --color-primary: #193153;
  --color-secondary: #A1A7B3;
  --color-accent: #F1D8B3;
  --color-light: #fff;
  --color-background: #F6F7FA;
  --color-dark: #1A2235;
  --color-muted: #F4F4F6;
  --shadow-1: 0 4px 16px 0 rgba(25,49,83,0.10);
  --shadow-2: 0 2px 8px 0 rgba(25,49,83,0.08);
  --radius: 16px;
  --radius-sm: 8px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Playfair Display'), local('PlayfairDisplay-Bold');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Roboto'), local('Roboto-Regular');
}

/* =========================
   GENERAL LAYOUT
   ========================= */
body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 400;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.25;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
ul,
ol {
  padding-left: 22px;
}
ul li, ol li {
  margin-bottom: 6px;
}
strong, b {
  font-weight: 700;
  color: var(--color-primary);
}
.text-section {
  max-width: 700px;
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================
   HEADER / NAVIGATION
   ========================= */
header {
  background: var(--color-light);
  box-shadow: var(--shadow-1);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 0;
  color: var(--color-dark);
  transition: color 0.2s;
  letter-spacing: 0.02em;
  position: relative;
}
header nav a.active, 
header nav a:hover, 
header nav a:focus {
  color: var(--color-primary);
}
header nav a.active:after,
header nav a:hover:after {
  content: '';
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-accent);
  margin: 6px auto 0 auto;
}
.cta-btn.primary {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-light);
  padding: 13px 34px;
  margin-left: 20px;
  box-shadow: var(--shadow-2);
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.25s, box-shadow 0.25s, transform 0.12s;
  outline: none;
  position: relative;
  display: inline-block;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--color-dark);
  box-shadow: 0 8px 24px 0 rgba(25,49,83,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* =========================
   MOBILE NAVIGATION BURGER
   ========================= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 101;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(25,49,83,0.10);
  transition: background 0.22s, box-shadow 0.22s;
}
.mobile-menu-toggle:active {
  background: #e6c484;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 6px 32px 0 rgba(25,49,83,0.22);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.85,0,.15,1);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.4rem;
  margin: 24px 0 18px 24px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1000;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: #FFD596;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-light);
  padding: 12px 0;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 0 24px 24px 0;
  transition: background 0.16s, color 0.16s;
  margin-right: 36px;
  margin-bottom: 0;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
@media (max-width: 1020px) {
  header nav { display: none; }
  .cta-btn.primary { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* =========================
   HERO & CTA SECTION
   ========================= */
section {
  background: none;
  border: none;
  border-radius: 0;
  margin-bottom: 60px;
  padding: 40px 0;
}
section:nth-child(odd) {
  background: var(--color-light);
}
section:nth-child(even) {
  background: var(--color-muted);
}
.content-wrapper.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}
.content-wrapper.text-section a.cta-btn {
  margin-top: 18px;
}

/* =========================
   FLEX LAYOUTS - CRITICAL
   ========================= */
.features-grid, .investment-types-grid, .card-container, .team-list, .property-list, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 20px;
}
.feature-item, .investment-type, .service-item, .property-highlight, .team-member {
  background: var(--color-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2);
  padding: 26px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 255px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item:hover, .investment-type:hover, .service-item:hover, .property-highlight:hover, .team-member:hover {
  box-shadow: 0 6px 24px 0 rgba(25,49,83,0.14);
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}
.card-container {
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.12s;
}
.card:hover {
  box-shadow: 0 10px 32px 0 rgba(25,49,83,0.20);
  transform: translateY(-3px) scale(1.025);
  z-index: 2;
}
.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;
}

/* TESTIMONIALS - high contrast, distinctly bold */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 12px 0;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 24px 18px 24px;
  background: #fff;
  box-shadow: var(--shadow-2);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 240px; max-width: 420px;
  color: #111821;
  font-size: 1.10rem;
  font-family: var(--font-body);
  font-weight: 600;
  position: relative;
  margin-bottom: 20px;
  border-left: 6px solid var(--color-accent);
  transition: box-shadow 0.23s, border-left-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(25,49,83,0.17);
  border-left-color: var(--color-primary);
}
.testimonial-card p {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  text-align: left;
}
.testimonial-card .reviewer {
  font-size: 0.98rem;
  color: #3f4656;
  font-style: italic;
  font-weight: 600;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--color-primary);
  padding: 38px 0 28px 0;
  color: var(--color-light);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #F1D8B3;
  font-size: 1.06rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: 0.04em;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
  font-family: var(--font-body);
}
.footer-contact img {
  vertical-align: middle;
  height: 22px;
  width: auto;
  margin-right: 8px;
}

/* =========================
   SPECIAL COMPONENTS
   ========================= */
.team-list { flex-wrap: wrap; gap: 24px; }
.team-member { flex: 1 1 270px; }
.property-list { flex-wrap: wrap; gap: 24px; }
.property-highlight { min-width:240px; flex: 1 1 265px; }
.investment-types-grid { flex-wrap: wrap; gap: 24px; }
.investment-type { min-width:220px; flex:1 1 260px; }
.services-list { flex-wrap: wrap; gap: 24px; }
.service-item { min-width:220px; flex:1 1 260px; }

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.contact-info img {
  height: 22px;
  width: 22px;
}

/* =========================
   FLEXBOX RESPONSIVE ADAPTATION
   ========================= */
@media (max-width: 900px) {
  .container { max-width: 100%; }
  footer .container { flex-direction: column; gap: 24px; align-items: flex-start; }
  .features-grid, .investment-types-grid, .team-list, .services-list, .property-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-list { flex-direction: column; gap: 18px; }
}
@media (max-width: 768px) {
  header .container { flex-direction: row; gap: 8px; min-height: 64px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .section { margin-bottom: 38px; padding: 24px 8px; }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact { font-size: 0.93rem; }
  .testimonial-card { min-width: 0; max-width: 100%; padding: 24px 14px 16px 16px; }
  .feature-item, .service-item, .property-highlight, .team-member, .investment-type {
    min-width: 0; flex: 1 1 100%; padding: 20px 12px 18px 14px;
  }
}
@media (max-width: 500px) {
  .container { padding: 0 6px; }
  .section { padding: 16px 2px; }
  .cta-btn.primary { padding: 10px 20px; font-size: 0.98rem; }
}

/* =========================
   BUTTONS, INTERACTIONS
   ========================= */
button, .cta-btn, .cookie-banner button {
  cursor: pointer;
  border: none;
  outline: none;
}
.cta-btn {
  border-radius: var(--radius-sm); 
  box-shadow: var(--shadow-2);
  transition: background 0.18s, color 0.18s, transform 0.10s;
  font-family: var(--font-body);
  text-align: center;
  margin-bottom: 8px;
}
.cta-btn:active {
  transform: scale(0.98);
}
.cta-btn.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  padding: 10px 30px;
  border-radius: var(--radius-sm);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #FFD596;
  color: var(--color-primary);
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: var(--color-primary);
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px;
  box-shadow: 0 -3px 18px rgba(25,49,83,0.16);
  font-family: var(--font-body);
  font-size: 1rem;
  animation: cookieBannerIn 0.7s cubic-bezier(.57,.21,.69,1.25);
  gap: 24px;
}
.cookie-banner .cookie-btns {
  display: flex; flex-direction: row; gap: 14px;
}
.cookie-banner button {
  font-family: var(--font-body);
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 21px;
  font-size: 0.97rem;
  transition: background 0.19s, color 0.19s, transform 0.12s;
}
.cookie-banner .accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-banner .accept:hover {
  background: #FFD596;
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-primary);
}
.cookie-banner .reject:hover {
  background: var(--color-accent);
}
.cookie-banner .settings {
  background: transparent;
  color: var(--color-light);
  border: 1.5px solid var(--color-accent);
}
.cookie-banner .settings:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
@keyframes cookieBannerIn {
  0% { opacity: 0; transform: translateY(60px); }
  60% { opacity: 0.7; transform: translateY(-15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* COOKIE MODAL POPUP  */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(25,49,83,0.65);
  z-index: 3010;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalOverlayIn 0.33s cubic-bezier(.48,.21,.69,1);
}
@keyframes cookieModalOverlayIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-dark);
  border-radius: var(--radius);
  box-shadow: 0 5px 32px 0 rgba(24,39,70,0.18);
  width: 96vw; max-width: 430px;
  padding: 36px 32px 28px 32px;
  font-family: var(--font-body);
  display: flex; flex-direction: column; gap: 18px;
  animation: cookieModalIn 0.38s cubic-bezier(.48,.21,.69,1.18);
  position: relative;
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: translateY(-42px); }
  100% { opacity: 1; transform: translateY(0);
  }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.cookie-modal .category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 20px; height: 20px;
}
.cookie-modal .category label {
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 600;
  cursor: pointer;
}
.cookie-modal .modal-btns {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 6px;
}
.cookie-modal .save {
  background: var(--color-primary);
  color: #fff;
  border-radius: 21px;
  padding: 8px 23px;
  font-weight: 700;
  font-size: 0.97rem;
}
.cookie-modal .save:hover {
  background: var(--color-dark);
}
.cookie-modal .cancel {
  background: transparent;
  color: var(--color-primary);
  border: 1.4px solid var(--color-primary);
  border-radius: 21px;
  padding: 8px 23px;
  font-weight: 700;
  font-size: 0.97rem;
}
.cookie-modal .cancel:hover {
  background: var(--color-muted);
}
.cookie-modal .close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.6rem;
  position: absolute;
  top: 13px; right: 18px;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .close:hover {
  color: var(--color-primary);
}

/* =========================
   MODERN GEOMETRIC ACCENTS
   ========================= */
section h1, section h2 {
  position: relative;
  z-index: 1;
  padding-left: 12px;
}
section h1:before, section h2:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 7px;
  width: 6px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-accent);
  z-index: 0;
}
section h2:before {
  height: 26px;
}

/* =========================
   TRANSITIONS & HOVER EFFECTS
   ========================= */
.feature-item, .service-item, .property-highlight, .team-member, .investment-type, .testimonial-card, .card {
  transition: box-shadow 0.20s, transform 0.13s, border-color 0.14s;
}
.cta-btn, .card, .testimonial-card {
  transition: box-shadow 0.19s, background 0.13s, color 0.13s, transform 0.13s;
}
.cta-btn:active, .card:active, .testimonial-card:active {
  transform: scale(0.97);
}

/* =========================
   UTILITIES
   ========================= */
.text-center { text-align: center; }
.d-flex { display: flex; }
.d-flex-col { flex-direction: column; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } 
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; } 
@media (max-width: 900px) {
  .gap-24 { gap: 14px; }
}

/* =========================
   Z-INDEX MANAGEMENT
   ========================= */
header, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay, .cookie-modal { z-index: 100+; }

/* =========================
   PRINT
   ========================= */
@media print {
  * { background: #fff !important; color: #000 !important; box-shadow: none !important; }
}
