/* Vivid ImmoKompass – style.css
   Luxury Premium theme: gold accents, premium typography, sophisticated colors
   Mobile-first, flexbox-only layouts. No CSS Grid or Columns. */

/* -----------------------------
   CSS RESET / NORMALIZE
------------------------------ */
* { box-sizing: border-box; }
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: inherit; vertical-align: baseline; }

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }

html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; }
ol, ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* -----------------------------
   THEME VARIABLES & FALLBACKS
------------------------------ */
:root {
  --primary: #1E2A38; /* deep slate */
  --secondary: #D06B2E; /* warm accent from brand */
  --accent: #F3F6FA; /* light surface */
  --gold: #C7A75B; /* refined gold accent */
  --gold-deep: #9C8241; /* darker gold for borders */
  --text: #1C1C1C;
  --muted: #5A6470;
  --bg: #FFFFFF;
  --surface: #FBFCFE;
  --shadow: rgba(10, 20, 30, 0.12);
}

/* -----------------------------
   BASE TYPOGRAPHY
------------------------------ */
body {
  background: var(--surface, #FBFCFE);
  color: var(--text, #1C1C1C);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary, #1E2A38);
  line-height: 1.25;
}

h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; }

p { color: var(--text, #1C1C1C); }
strong { font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-deep);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }

.subheadline { font-size: 18px; color: var(--muted); margin-top: 10px; }

/* Typography scale bump on larger screens */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .subheadline { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* -----------------------------
   GLOBAL LAYOUT HELPERS (Flex-only)
------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* Mandatory spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure mobile column for text-image sections */
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* Apply consistent spacing to raw <section> too */
main > section { margin-bottom: 60px; padding: 40px 0; }

/* -----------------------------
   HEADER & NAVIGATION
------------------------------ */
header {
  background: var(--primary, #1E2A38);
  color: #F5F7FA;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img { height: 36px; width: auto; }

header nav {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 18px;
}
header nav a {
  color: #E8EDF3;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 8px 6px;
  position: relative;
}
header nav a:hover { color: var(--gold, #C7A75B); }
header nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: auto;
  width: 0%; height: 2px; background: var(--gold);
  transition: width 0.25s ease;
}
header nav a:hover::after { width: 100%; }

/* CTAs in header */
header .cta-primary, header .cta-secondary { display: none; }

/* Mobile toggle */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  margin: 0 12px 12px auto;
  background: transparent;
  color: #F5F7FA;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.06); color: var(--gold); transform: translateY(-1px); }
.mobile-menu-toggle:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; /* top/right/bottom/left */
  background: rgba(30,42,56,0.98);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 9999;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: #F5F7FA;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
}
.mobile-menu-close:hover { color: var(--gold); background: rgba(255,255,255,0.06); }
.mobile-nav {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 20px; width: 100%;
}
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 10px;
  color: #E8EDF3;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 16px;
}
.mobile-nav a:hover { color: var(--gold); }

/* Desktop nav visibility */
@media (min-width: 992px) {
  header nav { display: flex; }
  header .cta-primary, header .cta-secondary { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
}

/* -----------------------------
   CTA BUTTONS
------------------------------ */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.cta-primary, .cta-secondary, .newsletter-signup button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  font-weight: 700;
}

.cta-primary {
  background: var(--gold, #C7A75B);
  color: #1D1D1D;
  border: 1px solid var(--gold-deep, #9C8241);
  box-shadow: 0 8px 20px rgba(199,167,91,0.25);
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(199,167,91,0.35); }
.cta-primary:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

.cta-secondary {
  background: transparent;
  color: var(--gold, #C7A75B);
  border: 1px solid var(--gold, #C7A75B);
}
.cta-secondary:hover { background: rgba(199,167,91,0.12); }

/* -----------------------------
   HERO / INTRO SECTIONS
------------------------------ */
main > section:first-of-type {
  background: linear-gradient(0deg, var(--accent, #F3F6FA), var(--accent, #F3F6FA));
  border-bottom: 1px solid rgba(30,42,56,0.08);
}
main > section:first-of-type .content-wrapper h1 {
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(199,167,91,0.35);
}

.trust-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.trust-badges img { height: 28px; width: auto; filter: saturate(85%); opacity: 0.9; }

.supporting-points { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.supporting-points li {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid rgba(199,167,91,0.35);
  background: #FFFFFF;
  border-radius: 10px;
}

/* -----------------------------
   FEATURES, LISTS & CARDS
------------------------------ */
.feature-list { display: flex; flex-wrap: wrap; gap: 18px; }
.feature-list li {
  display: flex; flex-direction: column; gap: 8px;
  flex: 1 1 260px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(30,42,56,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.feature-list li:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(10,20,30,0.18); }
.feature-list li h3 { color: var(--primary); font-size: 18px; }
.feature-list li p, .feature-list li strong { color: var(--text); }

.service-steps { display: flex; flex-direction: column; gap: 12px; }
.service-steps li {
  background: #FFFFFF;
  border: 1px solid rgba(30,42,56,0.08);
  border-left: 3px solid var(--gold);
  padding: 14px 14px 14px 16px;
  border-radius: 10px;
}

.card-list { display: flex; flex-wrap: wrap; gap: 18px; }
.card-list li { flex: 1 1 240px; }
.card-list a {
  display: flex; flex-direction: column; justify-content: center; min-height: 120px;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(30,42,56,0.08);
  border-radius: 14px;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}
.card-list a h3 { color: var(--primary); }
.card-list a:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 28px rgba(10,20,30,0.18); }

/* -----------------------------
   BREADCRUMBS & META ELEMENTS
------------------------------ */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: var(--gold); }

.progress-indicator { display: flex; }
.progress-indicator ul { display: flex; flex-wrap: wrap; gap: 10px; }
.progress-indicator li {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: 16px;
  background: var(--accent);
  border: 1px solid rgba(199,167,91,0.35);
  color: var(--primary);
  font-size: 14px;
}

.timeline-list { display: flex; flex-wrap: wrap; gap: 12px; }
.timeline-list li {
  padding: 10px 12px; background: #FFFFFF; border: 1px solid rgba(30,42,56,0.08);
  border-radius: 10px;
}

.case-snippet { display: flex; align-items: center; padding: 14px; background: var(--accent); border-left: 3px solid var(--gold); border-radius: 10px; }
.case-snippet a { color: var(--secondary); font-weight: 700; }

/* -----------------------------
   TESTIMONIALS (Readable contrast)
------------------------------ */
.testimonial-card {
  background: #FFFFFF; /* Ensure light background */
  color: var(--text);
  border: 1px solid rgba(30,42,56,0.08);
  border-radius: 12px;
  box-shadow: 0 10px 22px var(--shadow);
}
.testimonial-card p { font-style: italic; color: #222; }
.testimonial-card span { color: var(--muted); }

.rating-summary { display: flex; align-items: center; justify-content: center; padding: 14px; background: #FFFFFF; border: 1px solid rgba(30,42,56,0.08); border-radius: 12px; color: #1E2A38; font-weight: 700; }

/* -----------------------------
   CONTACT / INFO LISTS
------------------------------ */
.content-wrapper ul { gap: 10px; }
.content-wrapper ul li { display: flex; align-items: center; gap: 10px; }
.content-wrapper ul li img { width: 18px; height: 18px; }
.privacy-note { font-size: 13px; color: var(--muted); }
.privacy-note a { color: var(--secondary); }

/* -----------------------------
   FORMS & INPUTS
------------------------------ */
input[type="email"], input[type="text"], select {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid rgba(30,42,56,0.12);
  border-radius: 10px;
  color: var(--text);
  min-width: 240px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,167,91,0.25); }

.location-filter-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.location-filter-controls label { color: var(--muted); font-size: 14px; }

/* -----------------------------
   FOOTER
------------------------------ */
footer {
  background: var(--primary);
  color: #DDE6EF;
  border-top: 1px solid rgba(255,255,255,0.08);
}
footer .container { padding-top: 32px; padding-bottom: 32px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 18px; }

footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
footer nav a { color: #E6EDF7; font-size: 14px; }
footer nav a:hover { color: var(--gold); }

.brand-snippet { display: flex; align-items: center; gap: 10px; color: #F3F6FA; }
.brand-snippet img { width: 28px; height: 28px; }

.contact-snippet p { display: flex; flex-direction: column; gap: 6px; }
.contact-snippet img { width: 16px; height: 16px; display: inline-block; margin-right: 6px; }

.legal-links { display: flex; flex-wrap: wrap; gap: 8px; color: #C8D3E0; font-size: 13px; }
.legal-links a { color: #C8D3E0; }
.legal-links a:hover { color: var(--gold); }

.newsletter-signup { display: flex; flex-direction: column; gap: 10px; }
.newsletter-signup form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-signup button { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.newsletter-signup button:hover { background: rgba(199,167,91,0.12); }

/* -----------------------------
   RESPONSIVE LAYOUT TWEAKS
------------------------------ */
@media (min-width: 768px) {
  .container { gap: 24px; }
  .content-wrapper { gap: 20px; }
  .cta-group { gap: 14px; }
}

@media (min-width: 1024px) {
  /* Enhance spacing on desktop */
  main > section { padding: 60px 0; }
  .feature-list { gap: 20px; }
  .card-list { gap: 20px; }
}

/* -----------------------------
   LUXURY DETAILS & MICRO-INTERACTIONS
------------------------------ */
section h2 {
  position: relative; padding-bottom: 8px;
}
section h2::after {
  content: ""; display: block; height: 3px; width: 56px;
  background: var(--gold); margin-top: 10px; border-radius: 2px;
}

/* Link focus/hover */
a:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
a:hover { color: var(--secondary); }

/* -----------------------------
   PAGE-SPECIFIC SMALL ENHANCEMENTS
------------------------------ */
.rating-summary p { text-align: center; }

/* -----------------------------
   COOKIE CONSENT (Banner + Modal)
------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #0F1520;
  color: #E9EEF5;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 16px 20px;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 24px rgba(0,0,0,0.22);
  transform: translateY(110%);
  transition: transform 0.35s ease;
  z-index: 9998;
}
.cookie-banner.show { transform: translateY(0%); }
.cookie-banner p { flex: 1 1 260px; font-size: 14px; color: #E9EEF5; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 700; }
.cookie-actions .btn-accept { background: var(--gold); color: #1D1D1D; border-color: var(--gold-deep); }
.cookie-actions .btn-reject { background: transparent; color: #F0F4FA; border-color: rgba(255,255,255,0.25); }
.cookie-actions .btn-settings { background: transparent; color: var(--gold); border-color: var(--gold); }
.cookie-actions .btn:hover { transform: translateY(-1px); }

/* Cookie settings modal */
.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal-content {
  background: #FFFFFF;
  color: var(--text);
  width: 92%; max-width: 680px;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  border: 1px solid rgba(30,42,56,0.12);
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(30,42,56,0.08); }
.cookie-row .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-row .label small { color: var(--muted); }
.cookie-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* -----------------------------
   ACCESSIBILITY / STATES
------------------------------ */
button:focus, .btn:focus, .cta-primary:focus, .cta-secondary:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* -----------------------------
   VISUAL SAFETY: prevent overlap
------------------------------ */
.content-wrapper > * + * { margin-top: 0; }

/* -----------------------------
   DESKTOP COMPOSITION
------------------------------ */
@media (min-width: 992px) {
  .content-wrapper { gap: 22px; }
  .supporting-points { gap: 16px; }
  .testimonial-card { padding: 24px; }
}

/* -----------------------------
   PRINT (minimal)
------------------------------ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
