/*-----------------------------------------------------
  CSS RESET & BASELINE
-----------------------------------------------------*/
html,
body,
div,
section,
header,
main,
footer,
nav,
ul,
ol,
li,
h1, h2, h3, h4, h5, h6,
p,
figure,
blockquote,
input,
button,
table,
th,
td,
tr,
caption,
fieldset,
dl,
dt,
dd,
form,
label {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  color: #2D3C64;
  background: #FAFAFA;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}

a {
  color: #2D3C64;
  text-decoration: none;
  transition: color 0.25s;
}

a:hover, a:focus {
  color: #F7CB4D;
  text-decoration: underline;
  outline: none;
}

ul, ol {
  list-style: none;
}

button, .cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

/*-----------------------------------------------------
  SCANDINAVIAN CLEAN COLOR PALETTE & TOKENS
-----------------------------------------------------*/
:root {
  --color-primary: #2D3C64;
  --color-primary-80: #465483;
  --color-secondary: #F7CB4D;
  --color-secondary-65: #FFDF8F;
  --color-accent: #F8F9FA;
  --color-bg: #FAFAFA;
  --color-light: #FFFFFF;
  --color-border: #E4E7EB;
  --color-shadow: rgba(45, 60, 100, 0.06);
  --color-neutral: #A3A7B3;
  --color-success: #3B9656;
  --color-error: #BA4450;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

/* Font face for Montserrat & Lato for self hosting
You can use Google Fonts CDN in HTML as alternative */

/*-----------------------------------------------------
  TYPOGRAPHY SCALE & HEADINGS
-----------------------------------------------------*/
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--color-primary-80);
  margin-bottom: 12px;
  line-height: 1.25;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary-80);
  margin-bottom: 10px;
}
h5, .h5, h6, .h6 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
}

p, .text-section p, .content-wrapper p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.text-section {
  margin-bottom: 10px;
}

blockquote {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-primary);
  font-style: italic;
  padding-left: 18px;
  border-left: 3px solid var(--color-secondary);
  background: var(--color-accent);
  margin-bottom: 10px;
}

strong, b {
  font-family: var(--font-display);
  font-weight: 600;
}

small {
  font-size: 0.9375rem;
}

/*-----------------------------------------------------
  CONTAINER & GENERIC LAYOUTS
-----------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 2px 12px var(--color-shadow);
}

@media (min-width: 960px) {
  .content-wrapper {
    gap: 24px;
  }
  .section {
    margin-bottom: 60px;
    padding: 50px 32px;
  }
}

/*-----------------------------------------------------
  HEADER & NAVIGATION
-----------------------------------------------------*/
header {
  background: var(--color-light);
  box-shadow: 0 2px 12px var(--color-shadow);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}
header a img {
  height: 44px;
  width: auto;
}

header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

header nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary-65);
  color: var(--color-primary);
}

.cta-btn {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 11px 24px;
  font-size: 1.05rem;
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: 28px;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  margin-left: 16px;
  letter-spacing: .03em;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 4px 18px var(--color-shadow), 0 0px 0px var(--color-accent);
  outline: none;
}

/* Hamburger button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 2px 12px var(--color-shadow);
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Navigation hide on mobile */
@media (max-width: 1023px) {
  header nav,
  .cta-btn {
    display: none !important;
  }
}

/*-----------------------------------------------------
  MOBILE MENU OVERLAY
-----------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-light);
  box-shadow: 0 6px 34px rgba(45,60,100,0.22);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(.77,0,.18,1), opacity 0.28s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 28px 28px 0 0;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 2020;
  box-shadow: none;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 50px 0 0 36px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 14px 6px;
  border-radius: 7px;
  transition: background 0.22s, color 0.22s;
  width: 90vw;
  max-width: 320px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary-65);
  color: var(--color-primary);
  outline: none;
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/*-----------------------------------------------------
  HERO SECTION
-----------------------------------------------------*/
.hero {
  background: linear-gradient(135deg,#F8F9FA 80%,#FFEFBC 100%);
  padding: 56px 0 36px 0;
  border-radius: 0 0 28px 28px;
  margin-bottom: 44px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: min(320px, 65vw);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 750px;
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  box-shadow: 0 6px 28px var(--color-shadow);
  padding: 24px 20px;
  gap: 10px;
}
.hero h1, .hero p {
  margin-bottom: 16px;
}
@media (min-width: 1024px) {
  .hero .content-wrapper {
    padding: 32px 38px;
    gap: 16px;
  }
}

/*-----------------------------------------------------
  CARDS & FLEX CONTAINERS
-----------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 22px 24px 22px;
  min-width: 210px;
  flex: 1 1 230px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 6px 34px rgba(45,60,100,0.15);
  transform: translateY(-4px) scale(1.03);
}

/* Content grid */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Features */
.features-grid,
.services-list,
.property-highlights,
.property-summary-cards,
.team-profiles,
.filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.features-grid > li,
.services-list > li,
.property-highlights > li,
.property-summary-cards > li,
.team-profiles > li {
  background: var(--color-light);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 22px 18px 22px 18px;
  flex: 1 1 250px;
  max-width: 340px;
  transition: box-shadow 0.22s, transform 0.22s;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features-grid > li:hover,
.services-list > li:hover,
.property-highlight > li:hover,
.property-summary-cards > li:hover,
.team-profiles > li:hover {
  box-shadow: 0 6px 34px rgba(45,60,100,0.15);
  transform: translateY(-4px) scale(1.025);
}
.features-grid img,
.services-list img {
  height: 54px;
  margin-bottom: 13px;
  border-radius: 7px;
}

.property-summary-cards .details-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-secondary-65);
  border-radius: 7px;
  padding: 7px 14px;
  margin-top: 7px;
  transition: background 0.2s, color 0.2s;
}
.property-summary-cards .details-link:hover,
.property-summary-cards .details-link:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.filters-list {
  gap: 12px;
  margin-top: 10px;
}
.filters-list button {
  background: var(--color-light);
  color: var(--color-primary);
  font-family: var(--font-display);
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.filters-list button:hover,
.filters-list button:focus {
  background: var(--color-secondary-65);
  color: var(--color-primary);
  outline: none;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

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

/* Spacing guarantee */
.section + .section {
  margin-top: 20px;
}

/*-----------------------------------------------------
  TABLES
-----------------------------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-light);
  margin-top: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border-radius: 13px;
  overflow: hidden;
}
thead {
  background: var(--color-accent);
}
th, td {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 18px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
}
caption {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--color-primary-80);
  margin-bottom: 12px;
}

tr:last-child td {
  border-bottom: none;
}

/*-----------------------------------------------------
  SEARCH BAR
-----------------------------------------------------*/
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 12px 0 18px 0;
}
.search-bar input[type="text"] {
  flex: 1;
  font-family: var(--font-body);
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: border 0.15s;
}
.search-bar input[type="text"]:focus {
  border: 1.5px solid var(--color-secondary);
  outline: none;
}

/*-----------------------------------------------------
  TESTIMONIAL CARD
-----------------------------------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-accent);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--color-primary);
  flex: 1 1 280px;
  transition: box-shadow 0.19s, background 0.25s;
}
.testimonial-card blockquote {
  color: var(--color-primary);
  border-left: 3px solid var(--color-secondary);
  background: transparent;
  padding-left: 15px;
}
.testimonial-card p {
  font-size: 0.98rem;
  margin-bottom: 0;
}
.testimonial-card:hover {
  background: #fffde4;
  box-shadow: 0 8px 24px rgba(80,90,120,0.13);
}

/*-----------------------------------------------------
  CTA SECTION
-----------------------------------------------------*/
.cta {
  background: var(--color-secondary-65);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 32px 14px;
  text-align: center;
  margin-bottom: 60px;
}
.cta .content-wrapper {
  align-items: center;
  gap: 12px;
}
.cta h2 {
  color: var(--color-primary-80);
}

/*-----------------------------------------------------
  FOOTER
-----------------------------------------------------*/
footer {
  background: var(--color-light);
  box-shadow: 0 -3px 15px var(--color-shadow);
  padding: 0;
}
footer .container {
  padding: 24px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .content-wrapper > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
footer .info {
  color: var(--color-neutral);
  font-size: 0.97rem;
}
footer a img {
  height: 34px;
}
@media (min-width: 900px) {
  footer .content-wrapper {
    flex-direction: row;
    align-items: center;
  }
}

/*-----------------------------------------------------
  CONTACT INFO & ICONS
-----------------------------------------------------*/
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 18px 0;
}
.contact-info p,
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-info img,
.text-section ul img {
  height: 21px;
  width: auto;
  margin-right: 4px;
  border-radius: 4px;
}

/*-----------------------------------------------------
  RESPONSIVE DESIGN (Mobile-first)
-----------------------------------------------------*/
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .section,
  .cta {
    margin-bottom: 32px;
    padding: 24px 8px;
  }
  .card,
  .features-grid > li,
  .services-list > li,
  .property-highlights > li,
  .property-summary-cards > li,
  .team-profiles > li,
  .testimonial-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    padding: 18px 8px 18px 10px;
  }
  .content-grid,
  .features-grid,
  .services-list,
  .property-highlights,
  .property-summary-cards,
  .team-profiles {
    flex-direction: column;
    gap: 16px;
  }
}

/* Custom spacing for small screens */
@media (max-width: 500px) {
  h1, .h1 { font-size: 1.65rem; }
  h2, .h2 { font-size: 1.34rem; }
  .hero { padding: 28px 0 22px 0; }
  .hero .content-wrapper { padding: 12px 1px; }
}

/*-----------------------------------------------------
  BUTTONS & INTERACTIVES
-----------------------------------------------------*/
button, input[type="submit"], input[type="button"] {
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-light);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.19s, box-shadow 0.2s, color 0.15s, transform 0.18s;
}
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
input[type="button"]:hover, input[type="button"]:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 18px var(--color-shadow);
  outline: none;
}

/*-----------------------------------------------------
  COOKIE CONSENT BANNER (Fixed Bottom)
-----------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: var(--color-light);
  color: var(--color-primary);
  box-shadow: 0 -2px 18px var(--color-shadow);
  padding: 20px 12px 20px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.22s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner__message {
  font-family: var(--font-body);
  font-size: 1rem;
  flex: 1 1 0%;
  margin-right: 10px;
}
.cookie-banner__buttons {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 21px;
  border: none;
  cursor: pointer;
  margin-left: 4px;
  margin-right: 0;
  transition: background 0.19s, color 0.14s, box-shadow 0.18s;
}
.cookie-btn.accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #38904F;
}
.cookie-btn.reject {
  background: var(--color-error);
  color: #fff;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #A63038;
}
.cookie-btn.settings {
  background: var(--color-primary-80);
  color: #fff;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    min-height: unset;
    padding: 18px 8px;
  }
  .cookie-banner__message {
    margin-right: 0;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 3100;
  background: rgba(45,60,100,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal.active {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal__dialog {
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(45,60,100,0.20);
  max-width: 430px;
  width: 92vw;
  padding: 36px 23px 28px 23px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  animation: cookie-modal-in 0.35s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-modal-in {
  0% { transform: translateY(80px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal__title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-accent);
  border-radius: 11px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 10px 13px;
}
.cookie-toggle {
  width: 40px;
  height: 23px;
  border-radius: 20px;
  background: var(--color-border);
  cursor: pointer;
  position: relative;
  border: none;
  outline: none;
  appearance: none;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--color-success);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.23s;
}
.cookie-toggle:checked::before {
  transform: translateX(15px);
}
.cookie-modal__desc {
  font-size: 0.98rem;
  color: var(--color-primary-80);
}
.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal__close {
  margin-left: auto;
  font-size: 1.6rem;
  background: none;
  color: var(--color-primary-80);
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: var(--color-error);
  outline: none;
}

/*-----------------------------------------------------
  SELECTION & MICRO-INTERACTIONS
-----------------------------------------------------*/
::selection {
  background: var(--color-secondary-65);
  color: var(--color-primary);
}
::-webkit-selection {
  background: var(--color-secondary-65);
  color: var(--color-primary);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: 2px solid var(--color-secondary-65);
}

/*-----------------------------------------------------
  UTILITY & HELPER CLASSES
-----------------------------------------------------*/
.d-none { display: none !important; }
.text-center { text-align: center !important; }
.flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-center { align-items: center !important; }
.gap-20 { gap: 20px !important; }

/*-----------------------------------------------------
  END OF STYLE.CSS
-----------------------------------------------------*/
