/* ===========================
   Subtiler Glanz Rhetorik – Luxury Premium Theme
   Author: Senior CSS Developer & UI Designer
   Notes:
   - Mobile-first, flexbox-only layouts
   - No CSS Grid or CSS Columns used
   - Gold accents, deep navy, refined spacing, premium typography
   =========================== */

/* ---------------------------
   CSS Reset & Base Normalize
   --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body { margin: 0; }
img, picture, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0; padding-left: 1.2em; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(200,169,107,0.9); outline-offset: 2px; }

/* ---------------------------
   Theme Variables & Fallbacks
   --------------------------- */
:root {
  --primary: #0B1F3A;  /* Deep Navy */
  --secondary: #2F6F4F; /* Deep Green */
  --accent: #F5F1E8;    /* Warm Light */
  --gold: #C8A96B;      /* Refined Gold */
  --gold-strong: #B8944A; /* Darker Gold for hover */
  --ink: #0A0F14;       /* Near-Black for text */
  --text: #1C2430;      /* Body text */
  --muted: #6B7280;     /* Muted text */
  --surface: #FFFFFF;   /* Card surface */
  --surface-alt: #FBF8F2; /* Slightly warm surface */
  --shadow: 0 8px 24px rgba(11,31,58,0.08), 0 2px 6px rgba(11,31,58,0.06);
}

/* Fallbacks (in case variables are not supported) */
body { color: var(--text, #1C2430); background: var(--accent, #F5F1E8); }

/* ---------------------------
   Typography
   --------------------------- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body font */
  font-size: 16px; line-height: 1.6; letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", Times, serif; /* brand display font */ color: var(--ink); }

h1 { font-size: 32px; line-height: 1.2; font-weight: 700; }
h2 { font-size: 24px; line-height: 1.3; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 700; }

p { margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--ink); line-height: 1.65; }
small, .small { font-size: 14px; color: var(--muted); }

/* Elegant heading detail */
h2 { position: relative; padding-top: 6px; }
h2::before { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 12px; }

/* Lists with refined gold markers */
ul { display: flex; flex-direction: column; gap: 10px; }
ul li { position: relative; list-style: none; padding-left: 16px; color: var(--text); }
ul li::before { content: ""; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; position: absolute; left: 0; top: 0.65em; }

ol { display: flex; flex-direction: column; gap: 10px; }

/* Links */
a { color: var(--primary); transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--secondary); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Text inline icons */
.text-section img[alt], .text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; height: 20px; width: auto; }

/* ---------------------------
   Global Layout Structure
   --------------------------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; display: flex; flex-direction: column; gap: 20px; }

.container {
  display: flex; justify-content: center; align-items: stretch; width: 100%; padding: 0 16px;
}
.content-wrapper {
  display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1120px;
}

/* Section spacing – applies also to .section class as required */
section, .section { margin-bottom: 60px; padding: 40px 20px; background: var(--surface); border: 1px solid rgba(11,31,58,0.06); border-radius: 14px; box-shadow: var(--shadow); }

/* ---------------------------
   Header & Navigation
   --------------------------- */
header { position: sticky; top: 0; z-index: 1000; background: var(--primary); box-shadow: 0 6px 16px rgba(11,31,58,0.25);
  border-bottom: 1px solid rgba(200,169,107,0.35); }
header .container { padding: 10px 16px; }
header .content-wrapper { flex-direction: row; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.1)); }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: #E9EDF5; padding: 10px 8px; border-radius: 8px; position: relative; }
.main-nav a::after { content: ""; display: block; height: 2px; width: 0; background: var(--gold); position: absolute; left: 8px; right: 8px; bottom: 6px; transition: width .25s ease; }
.main-nav a:hover::after { width: calc(100% - 16px); }

.header-cta { display: none; margin-left: auto; }

/* Mobile burger */
.mobile-menu-toggle { color: #F7FAFF; font-size: 22px; line-height: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); transition: background .2s ease, border-color .2s ease; }
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(11,31,58,0.96);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 24px;
  transform: translateX(100%); transition: transform .35s ease; z-index: 1200; padding: 20px; 
}
.mobile-menu.open, .mobile-menu.is-open, body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; color: #FFFFFF; font-size: 22px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { color: #FFFFFF; background: rgba(255,255,255,0.06); padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.14); transition: background .2s ease, transform .2s ease; }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); transform: translateX(4px); }

/* Prevent background scroll when menu is open */
body.menu-open { overflow: hidden; }

/* ---------------------------
   Buttons
   --------------------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--gold); color: var(--primary); background: transparent; font-weight: 600; transition: background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease; }
.button:hover { background: rgba(200,169,107,0.12); box-shadow: 0 10px 20px rgba(200,169,107,0.18); }

.button-primary { background: var(--gold); color: var(--primary); border-color: var(--gold); }
.button-primary:hover { background: var(--gold-strong); border-color: var(--gold-strong); color: #0B1F3A; box-shadow: 0 12px 24px rgba(184,148,74,0.3); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------------------------
   Content Blocks
   --------------------------- */
.text-section { display: flex; flex-direction: column; gap: 14px; color: var(--text); }
.proof-points, .trust-badges { display: flex; flex-direction: column; gap: 10px; background: var(--surface-alt); padding: 14px 16px; border: 1px solid rgba(11,31,58,0.08); border-radius: 12px; }

/* Testimonials – light background, dark text for readability */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; color: var(--ink); border: 1px solid rgba(11,31,58,0.08); border-left: 4px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 20px; }
.testimonial-card p { margin: 0; }

/* Utility Flex Patterns (Mandatory) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid rgba(11,31,58,0.08); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.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; }

/* Breadcrumbs inside text sections */
.text-section nav[aria-label="Breadcrumb"] { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #3E4B5C; }
.text-section nav[aria-label="Breadcrumb"] a { color: #3E6C9A; }

/* Links that appear inline following icons */
.text-section a { text-decoration: underline; text-underline-offset: 3px; }
.text-section a.button, .text-section .button { text-decoration: none; }

/* ---------------------------
   Footer
   --------------------------- */
footer section { background: var(--primary); color: #E8ECF2; border: 1px solid rgba(200,169,107,0.25); }
footer a { color: #E8ECF2; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
footer a:hover { color: #FFFFFF; border-color: var(--gold); }
footer .text-section { color: #E8ECF2; }
footer h3,footer button { color: white !important;}

/* ---------------------------
   Hero and Primary Sections
   --------------------------- */
/* Make the first section slightly elevated */
main > section:first-of-type { background: var(--surface-alt); border-color: rgba(11,31,58,0.08); }

/* ---------------------------
   Mobile Navigation Visibility
   --------------------------- */
/* Mobile-first: show burger, hide desktop nav */
.header-cta { display: none; }
.main-nav { display: none; }
.mobile-menu-toggle { display: inline-flex; }

/* ---------------------------
   Cookie Consent Banner & Modal
   --------------------------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1400;
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px;
  background: #FFFFFF; color: var(--ink); border: 1px solid rgba(11,31,58,0.1); box-shadow: var(--shadow);
  transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .cookie-text { display: flex; flex-direction: column; gap: 8px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-accept { background: var(--gold); color: var(--primary); border: 1px solid var(--gold); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.cookie-reject { background: transparent; color: var(--primary); border: 1px solid var(--gold); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.cookie-settings { background: var(--surface-alt); color: var(--primary); border: 1px solid rgba(11,31,58,0.12); padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.cookie-accept:hover { background: var(--gold-strong); }
.cookie-reject:hover { background: rgba(200,169,107,0.12); }
.cookie-settings:hover { background: #fff; }

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(11,31,58,0.6); z-index: 1500;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: #FFFFFF; color: var(--ink); width: 100%; max-width: 680px; border-radius: 16px;
  border: 1px solid rgba(11,31,58,0.1); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
}
.cookie-modal .modal-header { display: flex; justify-content: space-between; align-items: center; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(11,31,58,0.1); }
.cookie-modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Toggle (pure CSS look) */
.toggle { position: relative; width: 44px; height: 26px; background: #E6E3DB; border-radius: 999px; border: 1px solid rgba(11,31,58,0.15); transition: background .2s ease; }
.toggle::after { content: ""; position: absolute; top: 50%; left: 3px; width: 20px; height: 20px; background: #FFFFFF; border-radius: 50%; border: 1px solid rgba(11,31,58,0.15); transform: translate(0, -50%); transition: transform .2s ease; }
.toggle.on { background: rgba(200,169,107,0.45); }
.toggle.on::after { transform: translate(18px, -50%); }

/* ---------------------------
   Micro-interactions & Helpers
   --------------------------- */
hr { border: 0; border-top: 1px solid rgba(11,31,58,0.1); margin: 16px 0; }
::selection { background: rgba(200,169,107,0.25); color: var(--ink); }
.shadow-subtle { box-shadow: var(--shadow); }
.gold-divider { height: 2px; background: var(--gold); width: 72px; border-radius: 2px; }

/* Ensure adequate spacing between content blocks */
.text-section > * + * { margin-top: 6px; }

/* ---------------------------
   Responsive Layout
   --------------------------- */
@media (min-width: 576px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}

@media (min-width: 768px) {
  .content-wrapper { gap: 24px; }
  .text-image-section { flex-direction: row; }
  .cta-group { gap: 14px; }
  h1 { font-size: 40px; }
}

@media (min-width: 992px) {
  header .content-wrapper { gap: 20px; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Section layout breathing room */
  section, .section { padding: 48px 28px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
}

/* ---------------------------
   Accessibility color contrast rules for testimonials (explicit)
   --------------------------- */
section .testimonial-card, .testimonial-card * { color: #0B1F3A; }

/* ---------------------------
   Additional Components (optional patterns)
   --------------------------- */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--surface-alt); border: 1px solid rgba(11,31,58,0.08); color: var(--primary); }

/* ---------------------------
   Header spacing with CTA in desktop
   --------------------------- */
header .content-wrapper { justify-content: flex-start; }
.main-nav { margin-left: 8px; }
.header-cta { margin-left: auto; }

/* ---------------------------
   Strong and Emphasis
   --------------------------- */
strong { color: var(--ink); font-weight: 700; }
em { color: var(--secondary); }

/* ---------------------------
   Forms (in case they appear later)
   --------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(11,31,58,0.18); border-radius: 12px; background: #FFFFFF; color: var(--text);
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,107,0.2); }

/* ---------------------------
   Cards & Feature lists (generic)
   --------------------------- */
.feature-item h3 { margin-bottom: 2px; }
.card .card-title { font-family: Georgia, "Times New Roman", Times, serif; font-weight: 700; color: var(--ink); }

/* ---------------------------
   Images within text sections
   --------------------------- */
.text-section > img:first-child { height: 44px; width: auto; margin-bottom: 6px; }

/* ---------------------------
   Visual separators for luxurious feel
   --------------------------- */
section { position: relative; }
section::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: -30px; height: 1px; background: rgba(200,169,107,0.35); border-radius: 1px; }
section:last-of-type::after { display: none; }

/* ---------------------------
   Ensure no overlap and consistent gaps
   --------------------------- */
section > .container > .content-wrapper > * { margin-bottom: 20px; }
section > .container > .content-wrapper > *:last-child { margin-bottom: 0; }

/* ---------------------------
   Print tweaks (optional, minimal)
   --------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  section, .section { box-shadow: none; border-color: #CCC; }
}
