/* =====================
  CSS RESET & BASE STYLES
======================== */
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 {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
img {
  border-style: none;
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
/* Base Typography & Layout */
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #2E3249;
  background-color: #F7F6F3;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
:root {
  --primary: #2E3249;
  --secondary: #E2C57B;
  --accent: #FFFFFF;
  --gray-light: #F7F6F3;
  --gray: #D1D2D8;
  --black: #181821;
  --border-radius: 14px;
  --shadow: 0 2px 10px rgba(34, 40, 49, 0.07);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

.container {
  width: 100%;
  max-width: 1180px;
  padding: 0 18px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.13;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.08rem;
}
p, li, label, blockquote {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #2E3249;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 10px;
  position: relative;
}
ul li img {
  vertical-align: middle;
  margin-right: 10px;
}
blockquote {
  color: var(--primary);
  font-style: italic;
  border-left: 4px solid var(--secondary);
  padding-left: 14px;
  background: var(--gray-light);
  margin-bottom: 0;
}
cite {
  font-style: normal;
  margin-top: 4px;
  color: #5B5B6E;
}

/* ========== HEADER ========== */
header {
  background: var(--accent);
  border-bottom: 1px solid var(--gray);
  /* sticky top effect */
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 25;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 22px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.main-nav img {
  height: 46px;
  width: auto;
  margin-right: 16px;
  display: block;
}
.main-nav > a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.18s;
  position: relative;
}
.main-nav > a.cta-btn {
  background: var(--primary);
  color: var(--accent);
  border-radius: 999px;
  padding: 9px 26px;
  margin-left: 16px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.main-nav > a.cta-btn:hover,
.main-nav > a.cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(46, 50, 73, 0.12);
}
.main-nav > a:not(.cta-btn):hover,
.main-nav > a:not(.cta-btn):focus {
  background: var(--gray-light);
  color: var(--primary);
}

/* ======================
 MOBILE MENU
======================= */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 9px;
  border: none;
  font-size: 2.1rem;
  padding: 7px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #d3b865;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 340px;
  height: 100vh;
  background: var(--accent);
  box-shadow: -4px 0 28px rgba(34,40,49,0.16);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.42,0,.57,1.2);
  z-index: 99;
  padding: 38px 20px 24px 32px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--primary);
  font-size: 2.3rem;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 28px;
  transition: color .2s;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 4px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ============ HERO ============ */
.hero-section {
  background: linear-gradient(138deg, #FFFFFF 60%, #F7F6F3 100%);
  padding-top: 56px;
  padding-bottom: 56px;
  margin-bottom: 60px;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 3px 30px 0 rgba(34,40,49,0.06);
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero-section h1,
.hero-section h2 {
  color: var(--primary);
}
.hero-section p {
  color: #444A62;
  max-width: 530px;
  margin-bottom: 0;
  font-size: 1.13rem;
}
.hero-section .cta-btn {
  margin-top: 12px;
}

/* ======== BUTTON / CTA ========= */
.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  line-height: 1.3;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
  margin-top: 8px;
  display: inline-block;
  outline: none;
  letter-spacing: 0.05em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 5px 20px rgba(34,40,49,0.10);
}

/* ========= FEATURES GRID ========== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.features-grid > div {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  min-width: 240px;
  padding: 34px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .2s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 26px rgba(46,50,73,0.09);
}
.features-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}
.features-grid h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.features-grid p {
  color: #454864;
  font-size: 0.97rem;
}

/* ==== CARD/STANDARD CONTAINER FLEX LAYOUTS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  min-width: 240px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

/* ========== TESTIMONIALS ========== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 28px 18px 20px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 18px 0 rgba(34,40,49,0.10);
  border-left: 6px solid var(--secondary);
}
.testimonial-card blockquote {
  color: #232339;
  font-size: 1.07rem;
  border: none;
  background: none;
  font-style: italic;
  margin-bottom: 0.5em;
}
.testimonial-card cite {
  color: #888;
  font-size: 0.98rem;
}

/* ========== PROPERTY LISTS ========== */
.properties-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.properties-list > div {
  flex: 1 1 300px;
  min-width: 240px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.properties-list > div:hover {
  box-shadow: 0 6px 22px rgba(34,40,49,0.13);
}
.properties-list h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

/* ==== BLOG LIST ==== */
section .content-wrapper > div > article {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .18s;
}
section .content-wrapper > div > article:hover {
  box-shadow: 0 8px 26px rgba(46,50,73,0.08);
}
.section ul {
  padding-left: 0;
  margin-bottom: 0;
}

/* ======= FOOTER ======== */
footer {
  background: var(--accent);
  border-top: 1px solid var(--gray);
  padding: 38px 0 24px 0;
  box-shadow: 0 -2px 10px 0 rgba(34,40,49,0.03);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 8px;
  align-items: center;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 5px 10px;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 8px;
}
.footer-nav a:focus, .footer-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}
footer p {
  font-size: 0.97rem;
  color: #727282;
  letter-spacing: 0.01em;
  margin-bottom: 0;
}

/* =============== FORM, LABELS, INPUTS =============== */
input[type="text"], input[type="email"], input[type="search"], input[type="password"], textarea, select {
  border: 1px solid var(--gray);
  border-radius: 7px;
  padding: 10px 12px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
  background: var(--accent);
  color: var(--primary);
  transition: border 0.17s;
  box-sizing: border-box;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--secondary);
}
label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: inline-block;
}
input[type="checkbox"] {
  accent-color: var(--secondary);
  margin-right: 6px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* ==================
 COOKIE BANNER
=================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #F3EEDC;
  color: var(--primary);
  box-shadow: 0 -2px 18px rgba(34,40,49,0.095);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 18px 20px 30px;
  z-index: 160;
  font-size: 1rem;
  animation: banner-slide-up 0.25s ease;
}
@keyframes banner-slide-up {
  0% { transform: translateY(140%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner-message {
  max-width: 760px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  padding: 10px 20px;
  border-radius: 16px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background: var(--primary);
  color: var(--accent);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.cookie-btn.settings {
  background: #dad7c0;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn.reject {
  background: #E1E1E1;
  color: #6D6D6D;
  border: 1px solid #aaa;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d1c599;
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0;
  width: 100vw;
  height: 100vh;
  background: rgba(46,50,73,0.18);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.33s;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
.cookie-modal {
  background: var(--accent);
  border-radius: var(--border-radius);
  padding: 38px 32px 24px 32px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 10px 44px 0 rgba(34,40,49,0.18);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-slide 0.28s cubic-bezier(.66, .3, .5, 1.1);
}
@keyframes modal-slide {
  from {transform:translateY(30px); opacity:0;}
  to {transform:translateY(0); opacity:1;}
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
}
.cookie-category label {
  font-weight: 600;
  font-size: 1.03rem;
}
.cookie-category .info {
  font-size: 0.96rem;
  color: #888888;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 17px;
  justify-content: flex-end;
}

/* Hide by default */
.cookie-banner, .cookie-modal-overlay {
  display: none;
}
.cookie-banner.active {
  display: flex;
}
.cookie-modal-overlay.active {
  display: flex;
}

/* ===================
  RESPONSIVE DESIGN
==================== */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 850px) {
  .features-grid {
    flex-direction: column;
    gap: 26px;
  }
  .properties-list {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-nav {
    gap: 12px;
  }
  .features-grid, .properties-list, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-section {
    padding-top: 32px;
    padding-bottom: 32px;
    border-radius: 0 0 22px 22px;
  }
  .section {
    margin-bottom: 38px;
    padding: 26px 8px;
  }
  .testimonial-card {
    padding: 13px 12px 12px 11px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px 13px 10px;
    gap: 16px;
    font-size: 0.96rem;
  }
  .cookie-btn {
    font-size: 0.98rem;
    padding: 8px 16px;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 1.5vw;
    padding-right: 1.5vw;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .main-nav > a.cta-btn,
  .cta-btn {
    font-size: 0.98rem;
    padding: 10px 18px;
  }
  .cookie-modal {
    padding: 20px 7vw 16px 7vw;
    min-width: 182px;
    gap: 12px;
  }
}

/* ===================
 UX MICRO-INTERACTIONS
====================== */
.cta-btn, .cookie-btn {
  transition: box-shadow 0.18s, background 0.18s, color 0.18s;
}
.cta-btn:active,
.cookie-btn:active {
  box-shadow: 0 3px 8px rgba(34,40,49,.11);
  transform: translateY(1px) scale(0.97);
}
div[role="dialog"], .cookie-modal {
  outline: none;
}

/* ======= UTILITY CLASSES ======= */
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* =============== Z-INDEX SAFETY ================== */
header { z-index: 25; position: sticky; top: 0; }
.mobile-menu { z-index: 99; }
.cookie-banner { z-index: 160; }
.cookie-modal-overlay { z-index: 200; }

/* =============== ENSURE NO CONTENT OVERLAP =============== */
section, .section, .container, .content-wrapper, .card, .feature-item, .testimonial-card, .properties-list > div, section .content-wrapper > div > article {
  margin-bottom: 20px;
}

/* ======= END OF STYLE ======= */
