/* ================================================================== */
/* Reset & Base (mobile-first, luxury_premium aesthetic)               */
/* ================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #1F2A36;
  background-color: #FAFBFC;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus { outline: 2px solid #FFC20E; outline-offset: 2px; }

/* ================================================================== */
/* Theme Variables (with fallbacks)                                    */
/* ================================================================== */
:root {
  --color-primary: #0E2A47;
  --color-primary-700: #0B2238;
  --color-secondary: #5C6B7A;
  --color-text: #1F2A36;
  --color-muted: #8A97A5;
  --color-bg: #FAFBFC;
  --color-panel: #FFFFFF;
  --color-panel-tint: #F6F4EE;
  --color-gold: #FFC20E; /* brand accent, luxury gold */
  --shadow-soft: 0 6px 16px rgba(14, 42, 71, 0.08);
  --shadow-elevated: 0 10px 24px rgba(14, 42, 71, 0.14);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --container-max: 1160px;
  --transition-fast: 180ms ease;
  --transition-med: 260ms ease;
}

/* ================================================================== */
/* Typography                                                         */
/* ================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  color: var(--color-primary);
  margin: 0 0 12px 0;
  letter-spacing: 0.2px;
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.35; }
p { margin: 0 0 16px 0; }
ul, ol { margin: 0 0 16px 22px; padding: 0; }
strong { font-weight: 700; }
em { font-style: italic; }
blockquote {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-gold);
  color: #0E2A47;
}

details { background: #FFFFFF; border: 1px solid #E4E8EE; border-radius: var(--radius-s); padding: 12px 14px; box-shadow: var(--shadow-soft); }
summary { cursor: pointer; font-weight: 600; color: var(--color-primary); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '\203A'; margin-left: 8px; transition: transform var(--transition-fast); display: inline-block; transform: rotate(90deg); }
details[open] summary::after { transform: rotate(270deg); }

/* ================================================================== */
/* Layout Primitives (Flex-only)                                       */
/* ================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;           /* flex-only requirement */
  flex-direction: column;  /* mobile-first */
  align-items: stretch;
}
.content-wrapper {
  display: flex;           /* flex-only requirement */
  flex-direction: column;  /* stack on mobile */
  gap: 16px;
}
.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(--color-panel); border: 1px solid #E8EBF0; border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-soft); }
.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; background: #FFFDF7; color: #0E2A47; border: 1px solid #F0E4B2; border-radius: var(--radius-m); box-shadow: var(--shadow-soft); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

.text-section { display: flex; flex-direction: column; gap: 12px; }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

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

/* ================================================================== */
/* Header & Navigation                                                 */
/* ================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary-700);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  border-bottom: 2px solid rgba(255, 194, 14, 0.35);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  color: #E9EDF2;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}
.main-nav a[aria-current="page"] { color: var(--color-gold); font-weight: 700; }
.main-nav a:hover { color: var(--color-gold); background: rgba(255, 194, 14, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 194, 14, 0.35); }

.header-cta { display: none; align-items: center; gap: 10px; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  background: transparent;
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.mobile-menu-toggle:active { transform: scale(0.98); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: auto;
  width: 84%; max-width: 420px;
  display: flex;            /* flex-only */
  flex-direction: column;
  background: var(--color-primary);
  padding: 20px;
  box-shadow: -12px 0 24px rgba(0,0,0,0.25);
  transform: translateX(100%);
  transition: transform var(--transition-med);
  z-index: 1200;
  color: #FFFFFF;
}
.mobile-menu[aria-hidden="false"], .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: #FFFFFF;
  cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.mobile-nav a { color: #FFFFFF; padding: 12px; border-radius: 10px; }
.mobile-nav a:hover { background: rgba(255, 194, 14, 0.12); color: var(--color-gold); }

/* ================================================================== */
/* Hero                                                               */
/* ================================================================== */
.hero { background: var(--color-primary); color: #FFFFFF; padding: 40px 0; }
.hero .container { gap: 16px; }
.hero .content-wrapper { gap: 12px; }
.hero h1 { color: #FFFFFF; font-size: 28px; }
.hero p { color: #E5EBF2; }
.hero .text-section p { color: #F3F6FB; }

/* ================================================================== */
/* Buttons                                                            */
/* ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--color-gold);
  color: #231F20;
  box-shadow: 0 8px 18px rgba(255, 194, 14, 0.25);
}
.btn.primary:hover { box-shadow: 0 10px 22px rgba(255, 194, 14, 0.35); transform: translateY(-1px); }
.btn.primary:active { transform: translateY(0); }

.btn.secondary {
  background: transparent;
  color: var(--color-gold);
  border-color: rgba(255, 194, 14, 0.6);
}
.btn.secondary:hover { background: rgba(255, 194, 14, 0.08); }

/* Text links that look like buttons in footer/nav contexts */
footer nav a, header nav a { transition: color var(--transition-fast); }

/* ================================================================== */
/* Cards & Panels                                                      */
/* ================================================================== */
.panel {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--color-panel);
  border: 1px solid #E8EBF0;
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.card:hover { box-shadow: var(--shadow-elevated); }

/* Testimonials - high contrast (dark text on light background) */
.testimonial-card p, .testimonial-card blockquote { color: #0E2A47; }
.testimonial-card strong { color: #0E2A47; }

/* ================================================================== */
/* Footer                                                             */
/* ================================================================== */
footer { background: #0B2238; color: #DCE5EF; padding: 32px 0; border-top: 2px solid rgba(255, 194, 14, 0.35); }
footer .container { gap: 16px; }
footer .content-wrapper { gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
footer nav a { color: #DCE5EF; padding: 6px 8px; border-radius: 8px; }
footer nav a:hover { color: var(--color-gold); background: rgba(255, 194, 14, 0.08); }
footer .text-section p { color: #CFDAE6; }

/* ================================================================== */
/* Sections content tweaks                                             */
/* ================================================================== */
section .container { gap: 16px; }
section h2 { position: relative; padding-bottom: 6px; }
section h2::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin-top: 8px;
}

/* Lists inside text-section for refined bullets */
.text-section ul li, .text-section ol li { margin-bottom: 8px; }

/* ================================================================== */
/* Tables (if any appear)                                             */
/* ================================================================== */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #E8EBF0; text-align: left; }
th { background: #F6F8FA; color: var(--color-primary); }

/* ================================================================== */
/* Cookie Consent Banner & Modal                                       */
/* ================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;               /* flex-only */
  flex-direction: column;
  gap: 12px;
  background: #121821;
  color: #E8EEF5;
  padding: 16px 20px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  z-index: 1100;
  transform: translateY(100%);
  transition: transform var(--transition-med);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; border-radius: 10px; }
.cookie-banner .btn.accept { background: var(--color-gold); color: #231F20; border-color: transparent; }
.cookie-banner .btn.reject { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.5); }
.cookie-banner .btn.settings { background: rgba(255,255,255,0.06); color: #FFFFFF; border-color: rgba(255,255,255,0.2); }

.cookie-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 17, 26, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-med);
  z-index: 1300;
}
.cookie-overlay.active { opacity: 1; pointer-events: auto; }

.cookie-modal {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: 100%; max-width: 720px;
  background: #FFFFFF;
  color: var(--color-text);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
  z-index: 1400;
  transition: transform var(--transition-med);
}
.cookie-modal.active { transform: translate(-50%, 0); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #E8EBF0; border-radius: 10px; background: #FAFAFD; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle input { position: absolute; opacity: 0; }
.switch {
  width: 46px; height: 26px; border-radius: 26px; background: #CBD4DE; position: relative; transition: background var(--transition-fast);
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform var(--transition-fast);
}
.toggle input:checked + .switch { background: var(--color-gold); }
.toggle input:checked + .switch::before { transform: translateX(20px); }

/* ================================================================== */
/* Utilities                                                          */
/* ================================================================== */
.hidden { display: none !important; }
.muted { color: var(--color-muted); }
.centered { display: flex; align-items: center; justify-content: center; }

/* ================================================================== */
/* Responsive (Tablet & Desktop)                                      */
/* ================================================================== */
@media (min-width: 480px) {
  .hero h1 { font-size: 32px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 44px; }

  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  .content-grid { justify-content: flex-start; }
  .text-image-section { flex-wrap: nowrap; }

  /* Section layout breathing */
  section { margin-bottom: 60px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .container { padding: 0 24px; }
  .hero .container { flex-direction: row; align-items: center; }
}

/* ================================================================== */
/* Accessibility & Focus Styling                                      */
/* ================================================================== */
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ================================================================== */
/* Page-specific subtle enhancements                                  */
/* ================================================================== */
/* Hero refined border and shadow for premium feel */
.hero { border-bottom: 1px solid rgba(255, 194, 14, 0.25); box-shadow: 0 8px 24px rgba(14,42,71,0.08) inset; }

/* FAQ details spacing */
.text-section details + details { margin-top: 10px; }

/* Premium dividers between stacked content blocks */
.content-wrapper > h2 + .text-section { padding-top: 6px; border-top: 1px solid #ECEFF4; }

/* Ensure all sections/cards have adequate separation */
section .testimonial-card { margin-top: 10px; }

/* ================================================================== */
/* Print styles (basic)                                               */
/* ================================================================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-overlay, .cta-group { display: none !important; }
  a { text-decoration: underline; }
  body { color: #000; }
}
