/* ==========================================
   Brilliance Cove Immobilien – Vintage Retro CSS
   ==========================================
   ✦ Luxurious, vintage, and retro-inspired design
   ✦ Flexbox only – mobile-first, NO grid, NO columns
   ✦ Brand: #16253D (primary), #BFB48F (secondary), #F8F7F1 (accent)
   ✦ Fonts: 'Playfair Display' (display), 'Roboto' (body)
   ========================================== */

/* -------------------------------------------
   CSS Reset & Base Styling
   ------------------------------------------- */
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,
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;
}
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F8F7F1;
  color: #473628;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #6A4B2A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #16253D;
  text-decoration: underline;
}
ul, ol {
  margin: 0 0 1.5em 1.25em;
  padding: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

/* Vintage/Retro Typography */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,400italic,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #1B1717;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  font-weight: 700;
  text-shadow: 0 1px 0 #fffbe6, 0 2px 6px #d5c39b22;
}
h1 { font-size: 2.5rem; margin-bottom: 22px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p, li, address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #473628;
}
address {
  font-style: normal;
  font-size: 0.98rem;
  color: #50423b;
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
  color: #4e2711;
}

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

/* Section, container, content-wrapper layouts */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #ffffffee;
  border-radius: 18px;
  box-shadow: 0 2px 18px #e6dcc271;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 14px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* -------------------------------------------
   Navigation/Header
   ------------------------------------------- */
header {
  background: #fffbe6;
  border-bottom: 3px solid #bfb48f33;
  box-shadow: 0 2px 12px #d9b87e15;
  position: relative;
  z-index: 30;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 18px 0;
  justify-content: space-between;
}
header nav img {
  height: 48px;
  margin-right: 18px;
  min-width: 40px;
}
header nav ul {
  display: flex;
  list-style: none;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}
header nav ul li a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #16253D;
  background: transparent;
  padding: 7px 18px;
  font-size: 1rem;
  border-radius: 22px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 1;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #BFB48F22;
  color: #6A4B2A;
}
/* CTA Button */
.cta-btn {
  background: #BFB48F;
  color: #16253D;
  font-family: 'Playfair Display', serif;
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 10px 32px;
  letter-spacing: 1.2px;
  cursor: pointer;
  box-shadow: 0 2px 7px #bfb48f30;
  transition: background 0.22s, color 0.2s, box-shadow 0.2s;
  text-shadow: 0 1px 0 #fff7d7;
  margin-left: auto;
}
.cta-btn:hover, .cta-btn:focus {
  background: #16253D;
  color: #fffbe6;
  box-shadow: 0 2px 14px #bfb48f50;
}

/* -------------------------------------------
   Responsive Navigation & Mobile Menu
   ------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  padding: 6px 20px 6px 6px;
  color: #16253d;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  top: 18px;
  right: 14px;
  border-radius: 14px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #BFB48F44;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fffbeef9;
  box-shadow: 0 8px 80px #47362845;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.7,.18,.53,1.02);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.05rem;
  color: #16253D;
  cursor: pointer;
  margin: 22px 22px 0 0;
  transition: color 0.2s;
  border-radius: 12px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #BFB48F;
  background: #16253d17;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 32px 32px;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  color: #16253D;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #BFB48F44;
  color: #614234;
}
@media (max-width: 1020px) {
  header nav ul {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .cta-btn {
    padding: 9px 20px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  header nav ul,
  header nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .mobile-menu, .mobile-menu-close { display: none !important; }
}

/* -------------------------------------------
   Footer
   ------------------------------------------- */
footer {
  background: #16253D;
  color: #F8F7F1;
  font-size: 0.98rem;
  padding: 50px 0 24px 0;
}
footer .container {
  max-width: 1150px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}
footer nav a {
  color: #BFB48F;
  font-family: 'Playfair Display', serif;
  font-size: 1.04rem;
  padding: 4px 0;
  transition: color 0.2s;
}
footer nav a:hover {
  color: #F8F7F1;
}
footer .text-section {
  color: #b7a881;
  font-size: 0.92rem;
  margin-top: 12px;
}
footer img {
  height: 42px;
  margin-bottom: 15px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 0;
  }
  footer img { margin-bottom: 8px; }
  footer nav { margin-bottom: 3px; }
}

/* -------------------------------------------
   Main Section Patterns & Spacing
   ------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 12px;
  background: #fffdf7;
  box-shadow: 0 2px 16px #c2b39718;
}
@media (max-width: 800px) {
  section {
    padding: 28px 7px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.card {
  background: #fffef9;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 12px #bfb48f22;
  transition: box-shadow 0.2s, transform 0.18s;
  padding: 28px 18px;
  min-width: 280px;
  flex: 1 1 308px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover {
  box-shadow: 0 6px 28px #c2b39755;
  transform: translateY(-3px) scale(1.03);
  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;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .content-grid { flex-direction: column; gap: 16px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe9;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 10px #cabea940, 0 5px 20px #16253d0d;
  border-left: 6px solid #BFB48F;
  max-width: 800px;
  transition: box-shadow 0.24s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px #bcad8a48;
  border-left-color: #16253D;
}
.testimonial-card blockquote {
  color: #2b2222;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0;
}
.testimonial-card footer {
  color: #998050;
  font-family: 'Roboto', sans-serif;
  font-size: 0.99rem;
  margin-top: 16px;
  text-align: right;
}

.feature-grid,
.content-wrapper > ul, .content-wrapper > ol  {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 18px 0 8px 0;
  padding: 0;
}
.feature-grid li, .feature-item, .content-wrapper > ul li, .content-wrapper > ol li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f7f3e9;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 1.06rem;
  color: #463931;
  min-width: 200px;
  position: relative;
  margin-bottom: 0;
  box-shadow: 0 2px 7px #bfb48f14;
  transition: box-shadow 0.16s, background 0.13s;
}
.feature-grid li img, .feature-item img { width: 36px; margin-right: 10px; opacity: 0.85; }
.feature-grid li:hover, .feature-item:hover { background: #EFE3C4; box-shadow: 0 3px 16px #bfb48f57; }

.content-wrapper > ul li > .price {
  display: block;
  color: #6a4b2a;
  font-size: 0.98rem;
  margin-top: 5px;
}

ol {
  list-style: decimal inside none;
  padding-left: 2px;
  margin-left: 10px;
}

/* -------------------------------------------
   Buttons & Interactive Elements
   ------------------------------------------- */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  padding: 9px 28px;
  background: #BFB48F;
  color: #16253D;
  font-weight: 700;
  letter-spacing: 0.9px;
  cursor: pointer;
  transition: background 0.19s, color 0.18s, box-shadow 0.14s;
  margin: 0 6px 0 0;
  box-shadow: 0 1px 7px #bfb48f23;
}
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #16253D;
  color: #fffbe6;
  box-shadow: 0 4px 18px #bfb48f50;
}

/* ------------- Forms, Inputs, Addresses -------------- */
input, textarea, select {
  border-radius: 14px;
  border: 1px solid #bfb48f71;
  padding: 10px 16px;
  outline: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background: #fffde7;
  color: #473628;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #16253d;
  box-shadow: 0 2px 8px #bfb48f38;
}

/* -------------------------------------------
   Cookie Consent Banner & Modal
   ------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe9fa;
  color: #473628;
  border-top: 3px solid #BFB48F;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px 14px 18px 14px;
  z-index: 1350;
  box-shadow: 0 -4px 30px #6a4b2a37;
  font-family: "Roboto", Arial, sans-serif;
  animation: fadeInCookie 0.7s cubic-bezier(.49,.96,.69,1.05);
}
@keyframes fadeInCookie {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  font-size: 1rem;
  color: #463931;
  margin-right: 18px;
  flex: 1 1 160px;
}
.cookie-banner .cookie-btn {
  margin: 0 8px 0 0;
  padding: 8px 24px;
  border-radius: 20px;
  background: #BFB48F;
  color: #16253D;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #16253D;
  color: #fffbe6;
}
.cookie-banner .cookie-btn.settings {
  background: #F8F7F1;
  color: #16253D;
  border: 1.5px solid #bfb48f85;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #BFB48F;
  color: #16253D;
  border-color: #16253D;
}
.cookie-banner .cookie-btn.reject {
  background: #E1D7BC;
  color: #473628;
  border: 1.5px solid #bfb48f85;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #BFB48F;
  color: #16253D;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #00000088;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal .modal-content {
  background: #FFFBE5;
  padding: 36px 30px 28px 30px;
  border-radius: 20px;
  max-width: 450px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 3px 60px #6a4b2a39;
  animation: popInModal 0.4s cubic-bezier(.47,1.32,.57,.98);
}
@keyframes popInModal {
  from { transform: scale(0.92) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .modal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}
.cookie-category label {
  color: #473628;
  font-weight: 400;
}
.cookie-category input[type="checkbox"] {
  accent-color: #BFB48F;
  width: 18px;
  height: 18px;
  margin-right: 3px;
}
.cookie-category .always-on {
  color: #998050;
  font-size: 0.98em;
  margin-left: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .close-modal-btn {
  background: #F8F7F1;
  border: 2px solid #bfb48f99;
  color: #16253D;
}
.cookie-modal .close-modal-btn:hover {
  background: #BFB48F;
  color: #16253D;
}
@media (max-width: 540px) {
  .cookie-modal .modal-content { padding: 22px 7vw 18px 7vw; }
}

/* -------------------------------------------
   Responsive Layout & Spacing
   ------------------------------------------- */
@media (max-width: 1080px) {
  .container, .footer .container {
    max-width: 96vw;
  }
  section {
    margin-bottom: 40px;
  }
}
@media (max-width: 580px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.22rem; }
  section, .section { padding: 18px 2px; }
  .card { padding: 18px 7px; min-width: unset; flex: 1 1 98vw; }
  .testimonial-card { padding: 14px 8px; font-size: 1rem; }
  body { font-size: 15px; }
}

/* -------------------------------------------
   Microinteractions & Misc
   ------------------------------------------- */
.card, .feature-grid li, .testimonial-card, .cta-btn, .cookie-banner, .cookie-modal .modal-content {
  transition: box-shadow 0.22s, background 0.18s, border-color 0.14s, transform 0.13s, color 0.16s;
}
.card:active, .feature-grid li:active, .cta-btn:active {
  transform: scale(0.98);
}

/* Decorative Retro Patterns */
.card:before, .feature-grid li:before, .testimonial-card:before {
  content: "";
  display: block;
  position: absolute;
  top: -12px; left: -12px;
  width: 38px; height: 38px;
  border-radius: 70% 25% 75% 30%;
  background: #BFB48F20;
  z-index: 0;
  pointer-events: none;
}
.feature-grid li:before { background: #BFB48F33; }
.testimonial-card:before { background: #F8F7F133; }

/* Remove for mobile for better touch targets */
@media (max-width: 580px) {
  .card:before, .feature-grid li:before, .testimonial-card:before {
    display: none;
  }
}

/* -------------------------------------------
   Accessibility/Contrast for testimonials
   ------------------------------------------- */
.testimonial-card, .testimonial-card blockquote, .testimonial-card footer {
  color: #212020;
  background: #fffbe9;
}

/* -------------------------------------------
   Print
   ------------------------------------------- */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
