/* ==============================
   Reset & Normalize
   ============================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { padding-left: 1.2rem; }
button { border: none; background: none; font: inherit; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #0DAA7B; outline-offset: 2px; }

/* ==============================
   Theme: Luxury Premium
   ============================== */
:root {
  --navy: #0B3A66;           /* brand primary */
  --green: #0DAA7B;          /* brand secondary */
  --white: #FFFFFF;          /* brand accent */
  --ivory: #F8F6F2;          /* refined light surface */
  --stone: #E9E5DC;          /* subtle separator */
  --ink: #1B2430;            /* body text */
  --gold: #C8A45D;           /* luxury accent */
  --gold-strong: #B8903F;    /* darker hover */
  --shadow: rgba(12, 18, 28, 0.1);
  --shadow-strong: rgba(12, 18, 28, 0.18);
}

/* ==============================
   Base Typography & Body
   ============================== */
body {
  font-family: Verdana, "Segoe UI", Tahoma, sans-serif; /* brand body */
  color: var(--ink);
  background-color: var(--ivory);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif; /* brand display */
  color: var(--navy);
  letter-spacing: 0.2px;
}

h1 { font-size: 32px; line-height: 1.25; margin-bottom: 16px; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; position: relative; }
h3 { font-size: 18px; line-height: 1.4; margin-top: 8px; }

p { margin-bottom: 14px; }
strong { font-weight: 700; }

/* subtly luxurious underline for section headings */
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}

/* ==============================
   Layout Containers (Flex-only)
   ============================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;            /* flex-only requirement */
  flex-direction: column;   /* mobile-first */
  gap: 20px;
}

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

.text-section {
  display: flex;            /* flex-only */
  flex-direction: column;
  gap: 12px;
}

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

.text-image-section {        /* mandatory class */
  display: flex;            /* flex-only */
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.section {                   /* mandatory spacing pattern */
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;            /* flex-only */
  flex-direction: column;
  gap: 20px;
}

.card-container {            /* mandatory pattern */
  display: flex;            /* flex-only */
  flex-wrap: wrap;
  gap: 24px;
}

.card {                      /* mandatory pattern */
  margin-bottom: 20px;
  position: relative;
  display: flex;            /* flex-only */
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 16px var(--shadow);
}

.feature-item {              /* mandatory pattern */
  display: flex;            /* flex-only */
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==============================
   Header & Navigation
   ============================== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  box-shadow: 0 4px 12px var(--shadow);
  position: relative;
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img { height: 36px; }

.main-nav {
  display: none;            /* hidden on mobile */
  gap: 16px;
  align-items: center;
}

.main-nav a {
  color: var(--navy);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.main-nav a:hover {
  color: var(--gold-strong);
  background: #F2EFE8;
  box-shadow: inset 0 -2px 0 0 var(--gold);
}

.header-cta {
  display: none;            /* hidden on mobile */
  gap: 10px;
}

.header-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all .25s ease;
  border: 1px solid var(--gold);
}

.header-cta a:first-child {
  background: var(--gold);
  color: #1F2A36;
}

.header-cta a:first-child:hover { background: var(--gold-strong); }

.header-cta a:last-child { color: var(--navy); background: var(--white); }
.header-cta a:last-child:hover { color: var(--gold-strong); }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  transition: transform .2s ease, background .2s ease;
}

.mobile-menu-toggle:hover { background: #092E50; transform: translateY(-1px); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(11, 58, 102, 0.96);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1000;
  display: flex;               /* flex-only */
  flex-direction: column;
  padding: 20px;
  gap: 20px;
}

.mobile-menu[aria-hidden="false"] { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gold);
  color: #1F2A36;
}

.mobile-nav {
  display: flex;              /* flex-only */
  flex-direction: column;
  gap: 10px;
}

.mobile-nav a {
  color: var(--white);
  background: rgba(255,255,255,0.06);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .2s ease, color .2s ease;
}

.mobile-nav a:hover { background: rgba(255,255,255,0.14); color: #FFF; }

/* ==============================
   Hero Section
   ============================== */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
}

.hero .container {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero .content-wrapper {
  gap: 16px;
}

.hero h1 { color: var(--white); }
.hero p { color: #E6EEF8; }

.hero .content-wrapper > div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  margin-right: 10px;
  margin-top: 6px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all .25s ease;
  border: 1px solid var(--gold);
}

.hero .content-wrapper > div a:first-child { background: var(--gold); color: #1F2A36; }
.hero .content-wrapper > div a:first-child:hover { background: var(--gold-strong); }
.hero .content-wrapper > div a:last-child { background: rgba(255,255,255,0.06); color: var(--white); }
.hero .content-wrapper > div a:last-child:hover { background: rgba(255,255,255,0.16); }

/* Trust badges row */
.trust-badges {
  display: flex;              /* flex-only */
  flex-wrap: wrap;
  gap: 10px;
}

.trust-badges p {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
}

/* ==============================
   Generic Sections & Elements
   ============================== */
main section { margin-bottom: 40px; }
main section .container { padding-top: 20px; padding-bottom: 20px; }

.text-section a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.text-section a:hover { color: var(--gold-strong); }

/* Turn lone CTA links in text-section into buttons */
.text-section > a {
  align-self: flex-start;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1F2A36;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, transform .2s ease;
}

.text-section > a:hover { background: var(--gold-strong); transform: translateY(-1px); }

/* Lists with refined bullets */
ul li::marker, ol li::marker { color: var(--gold); }

/* ==============================
   Testimonial Cards (high contrast)
   ============================== */
.testimonial-card {
  display: flex;              /* flex-only */
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FAF7F0;       /* light background for readability */
  color: #1B2430;            /* dark text */
  border: 1px solid #E8DFCC;
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--shadow);
}

.testimonial-card blockquote {
  font-style: italic;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

/* ==============================
   Footer
   ============================== */
footer {
  background: var(--navy);
  color: var(--white);
  border-top: 3px solid var(--gold);
}

footer .container { padding-top: 24px; padding-bottom: 24px; }

footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
footer nav a { color: #E6EEF8; padding: 6px 8px; border-radius: 8px; }
footer nav a:hover { color: var(--gold); background: rgba(255,255,255,0.06); }

footer .text-section p { color: #E6EEF8; }

/* ==============================
   Buttons Utility (optional classes)
   ============================== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: all .25s ease; }
.btn-primary { background: var(--gold); color: #1F2A36; border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-strong); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--navy); }
.btn-outline:hover { color: var(--gold-strong); }

/* ==============================
   Forms (generic)
   ============================== */
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stone);
  border-radius: 12px;
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,164,93,0.25);
}

/* ==============================
   Cookie Consent Banner
   ============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 24px var(--shadow-strong);
  transform: translateY(110%);
  transition: transform .35s ease;
  z-index: 1100;
  display: flex;               /* flex-only */
  flex-direction: column;
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-inner {
  display: flex;               /* flex-only */
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
}

.cookie-buttons {
  display: flex;               /* flex-only */
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-buttons .btn-accept,
.cookie-buttons .btn-reject,
.cookie-buttons .btn-settings {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 999px; font-weight: 600; letter-spacing: .2px; transition: all .25s ease;
}

.cookie-buttons .btn-accept { background: var(--gold); color: #1F2A36; border: 1px solid var(--gold); }
.cookie-buttons .btn-accept:hover { background: var(--gold-strong); }
.cookie-buttons .btn-reject { background: var(--white); color: var(--navy); border: 1px solid var(--stone); }
.cookie-buttons .btn-reject:hover { border-color: var(--gold); color: var(--gold-strong); }
.cookie-buttons .btn-settings { background: var(--navy); color: var(--white); border: 1px solid var(--navy); }
.cookie-buttons .btn-settings:hover { background: #092E50; }

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none;              /* hidden by default */
  z-index: 1150;
  align-items: center;        /* flex-only */
  justify-content: center;    /* flex-only */
}

.cookie-modal-overlay.is-visible { display: flex; }

.cookie-modal {
  background: var(--white);
  width: 92%; max-width: 640px;
  border-radius: 16px;
  border: 1px solid var(--stone);
  box-shadow: 0 16px 40px var(--shadow-strong);
  display: flex;              /* flex-only */
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Simple toggle style for cookie categories */
.toggle {
  display: inline-flex; align-items: center; gap: 10px;
}
.toggle input { display: none; }
.toggle .switch {
  width: 44px; height: 26px; border-radius: 20px; background: #CBD5E1; position: relative;
}
.toggle .knob { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform .2s ease, background .2s ease; }
.toggle input:checked + .switch { background: var(--green); }
.toggle input:checked + .switch .knob { transform: translateX(18px); }

/* ==============================
   Utilities & Helpers
   ============================== */
.hr { height: 1px; background: var(--stone); width: 100%; }
.muted { color: #667085; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: #F2EFE8; color: #3A3F47; border: 1px solid var(--gold);
}

/* ==============================
   Responsive (Mobile-first)
   ============================== */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}

@media (min-width: 768px) {
  /* Show desktop navigation */
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Text-image sections side-by-side */
  .text-image-section { flex-direction: row; }

  .container { gap: 24px; }
  .content-wrapper { gap: 20px; }
  .text-section { gap: 14px; }

  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }

  .hero .container { padding-top: 72px; padding-bottom: 72px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }

  header .container { padding-top: 16px; padding-bottom: 16px; }
}

/* ==============================
   Accessibility & Micro-interactions
   ============================== */
a, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }

/* Inline icons alignment */
.text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ==============================
   Page-specific fine-tuning
   ============================== */
/* Give hero sections a refined top gold hairline */
.hero::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold);
}

/* Ordered lists spacing in process sections */
ol.text-section { gap: 10px; }
ol.text-section li { margin-left: 18px; padding-left: 6px; }

/* Success metrics emphasis */
.text-section p strong { color: var(--navy); }

/* ==============================
   Safety: Prevent overlaps and ensure spacing
   ============================== */
main section + section { margin-top: 20px; }
.card, .testimonial-card { margin-bottom: 20px; }

/* Ensure z-index layering for overlays */
header { z-index: 500; }

/* ==============================
   Print (optional minimal)
   ============================== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  a { text-decoration: underline; color: #000; }
  header, footer { box-shadow: none; }
}
