/*
  Zénith Occasions — style.css
  Design: monochrome_sophisticated (black/white/gray, dramatic contrast, elegant typography)
  Layout: Mobile-first, ONLY flexbox (no CSS Grid/Columns)
  Includes: mobile burger menu + cookie consent banner + responsive typography
*/

/* ------------------------------
   0) Reset & Base
------------------------------- */
/* Normalize-style reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1,h2,h3,h4,h5,h6,p,ul,ol,figure { margin: 0; padding: 0; }
ul,ol { padding-left: 1.2rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

/* ------------------------------
   1) Design tokens (CSS variables with fallbacks)
------------------------------- */
:root {
  /* Brand */
  --brand-primary: #1F2937; /* dark slate */
  --brand-secondary: #0EA5E9; /* accent (used sparingly) */
  --brand-accent: #F5F7FA; /* light */

  /* Mono palette */
  --g-50: #FAFAFA;
  --g-100: #F5F5F5;
  --g-200: #E5E7EB;
  --g-300: #D1D5DB;
  --g-400: #9CA3AF;
  --g-500: #6B7280;
  --g-700: #374151;
  --g-800: #1F2937;
  --g-900: #111827;

  /* Ink & surfaces */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0B0B0B;
  --ink-muted: #4B5563;
  --divider: var(--g-200);

  /* Effects */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-2: 0 6px 20px rgba(0,0,0,0.10);
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-12: 12px;
  --focus: 2px solid var(--brand-secondary);

  /* Sizing */
  --container-max: 1160px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

::selection { background: var(--brand-secondary); color: #fff; }

/* Typography scale */
h1 { font-family: Montserrat, Inter, system-ui, sans-serif; font-weight: 800; font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-family: Montserrat, Inter, system-ui, sans-serif; font-weight: 700; font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.3; }
p, li { font-size: 16px; }
.small { font-size: 14px; color: var(--ink-muted); }

/* Headings spacing */
section h1, section h2, section h3 { margin-bottom: var(--space-16); }

/* Links */
a { color: var(--g-800); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration: underline; }
a:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Lists */
ul li, ol li { margin-bottom: 8px; }

/* ------------------------------
   2) Layout primitives (Flex-only)
------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: flex;           /* Flex container as required */
  justify-content: center; /* Center inner wrapper */
}

.content-wrapper {
  width: 100%;
  display: flex;           /* Flex everywhere */
  flex-direction: column;  /* Mobile-first */
  gap: var(--space-20);
}

main section { padding: var(--space-40) 0; border-bottom: 1px solid var(--divider); }
main section:last-child { border-bottom: none; }

/* MANDATORY SPACING AND 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; }

/* Avoid overlapping */
section > .container > .content-wrapper > * { margin-bottom: 0; }

/* ------------------------------
   3) Header & Navigation
------------------------------- */
header { background: var(--surface); border-bottom: 1px solid var(--divider); position: sticky; top: 0; z-index: 50; }
header .container { align-items: center; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); padding: var(--space-12) 0; }

.logo img { height: 38px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a { color: var(--g-800); padding: 8px 10px; border-radius: 6px; transition: color .2s ease, background-color .2s ease; }
.main-nav a:hover { background: var(--g-100); }
.main-nav a:focus-visible { outline: var(--focus); }

.header-cta { display: none; align-items: center; gap: var(--space-12); }

/* Mobile hamburger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--divider); background: #fff; box-shadow: var(--shadow-1); transition: background .2s, transform .2s; }
.mobile-menu-toggle:hover { background: var(--g-100); transform: translateY(-1px); }
.mobile-menu-toggle:focus-visible { outline: var(--focus); }

/* Mobile menu (off-canvas) */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 86%; max-width: 360px; background: #0F1115; color: #fff; transform: translateX(100%); transition: transform .35s ease; z-index: 999; display: flex; flex-direction: column; padding: var(--space-20); gap: var(--space-20); box-shadow: -10px 0 30px rgba(0,0,0,.3); }
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); color: #fff; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a { display: flex; align-items: center; padding: 12px 10px; border-radius: 6px; color: #E5E7EB; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.mobile-nav a:hover { background: rgba(255,255,255,.06); }

/* Optional backdrop if toggled by JS */
.mobile-menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 998; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mobile-menu-backdrop.open, .mobile-menu-backdrop.active { opacity: 1; pointer-events: auto; }

/* ------------------------------
   4) Hero section (dramatic monochrome)
------------------------------- */
.hero { background: var(--g-900); color: #fff; padding: var(--space-48) 0; }
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { color: #fff; }
.hero p { color: #D1D5DB; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: #9CA3AF; font-size: 13px; }
.subhead { font-size: 18px; color: #E5E7EB; }

.cta-group { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }

/* Trust badges (works if .trust-badges is a wrapper or the list itself) */
.trust-badges, .trust-badges ul { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.trust-badges li, ul.trust-badges li { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-8); color: #E5E7EB; background: rgba(255,255,255,.03); }
.trust-badges img { width: 18px; height: 18px; }

.legend { display: flex; flex-direction: column; gap: var(--space-12); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); padding: var(--space-16); border-radius: var(--radius-8); }
.legend h3 { color: #fff; font-size: 16px; }
.legend ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding-left: 0; }
.legend li { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #F3F4F6; font-size: 14px; }

/* In hero, invert primary/secondary for better contrast */
.hero .btn-primary { background: #fff; color: #111; border: 1px solid #fff; }
.hero .btn-primary:hover { background: #E5E7EB; border-color: #E5E7EB; }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.08); }

/* ------------------------------
   5) Buttons & micro-interactions
------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-8); border: 1px solid var(--g-300); background: #fff; color: var(--g-900); font-weight: 600; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; box-shadow: var(--shadow-1); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: var(--focus); outline-offset: 2px; }

.btn-primary { background: var(--g-900); color: #fff; border-color: var(--g-900); }
.btn-primary:hover { background: #000; border-color: #000; }

.btn-secondary { background: transparent; color: var(--g-900); border-color: var(--g-400); }
.btn-secondary:hover { background: var(--g-100); }

/* ------------------------------
   6) Content sections
------------------------------- */
.text-section { display: flex; flex-direction: column; gap: var(--space-16); max-width: 820px; }
.text-section h3 { margin-top: var(--space-8); color: var(--g-900); }
.text-section a { color: var(--brand-secondary); }
.text-section a:hover { text-decoration: underline; }

/* Testimonial cards (light background for readability) */
.testimonial-card { background: #fff; border: 1px solid var(--divider); border-radius: var(--radius-12); box-shadow: var(--shadow-1); color: var(--ink); }
.testimonial-card p { margin: 0; }

/* Map placeholder */
.map-placeholder { display: flex; align-items: center; justify-content: center; padding: var(--space-24); background: var(--brand-accent); border: 1px dashed var(--g-300); border-radius: var(--radius-8); color: var(--g-700); }

/* Social & brand badge */
.social-links { display: flex; align-items: center; gap: 14px; }
.social-links a { display: inline-flex; padding: 8px; border-radius: 8px; border: 1px solid var(--divider); background: #fff; }
.social-links img { width: 18px; height: 18px; }
.brand-badge { display: flex; align-items: center; gap: 10px; color: var(--g-700); }
.brand-badge img { width: 22px; height: 22px; }

/* Privacy note */
.privacy-note { display: flex; flex-direction: column; padding: var(--space-16); border: 1px solid var(--divider); border-radius: var(--radius-8); background: var(--g-50); color: var(--g-700); }

/* Generic card style for potential reuse */
.card { background: #fff; border: 1px solid var(--divider); border-radius: var(--radius-12); box-shadow: var(--shadow-1); padding: var(--space-20); }

/* ------------------------------
   7) Footer (contrasting dark)
------------------------------- */
footer section { background: #0F1115; color: #E5E7EB; border-top: 1px solid #1A1D22; }
footer .content-wrapper { gap: var(--space-16); }
footer a { color: #E5E7EB; }
footer a:hover { color: #fff; text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------
   8) Cookie Consent (banner + modal)
------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #111; color: #fff; border-top: 1px solid rgba(255,255,255,.12); display: flex; }
.cookie-banner .container { padding: var(--space-16); }
.cookie-banner .content-wrapper { flex-direction: column; gap: var(--space-12); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.06); transition: background .2s, transform .2s; }
.cookie-btn:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.cookie-btn.accept { background: #fff; color: #000; border-color: #fff; }
.cookie-btn.reject { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cookie-btn.settings { background: rgba(255,255,255,.06); }

/* Preferences modal */
.cookie-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1001; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cookie-backdrop.open { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); transform-origin: center; z-index: 1002; width: min(680px, 92%); background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 30px 70px rgba(0,0,0,.25); display: flex; flex-direction: column; max-height: 86vh; }
.cookie-modal.open { transform: translate(-50%, -50%) scale(1); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--divider); }
.cookie-modal-body { display: flex; flex-direction: column; gap: 16px; padding: 16px 18px; overflow: auto; }
.cookie-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--divider); }

/* Toggle switch for cookie categories */
.toggle { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--divider); border-radius: 10px; padding: 12px; }
.switch { width: 42px; height: 24px; border-radius: 999px; background: var(--g-300); position: relative; display: inline-flex; align-items: center; padding: 2px; transition: background .2s ease; }
.switch::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transform: translateX(0); transition: transform .2s ease; }
.switch.on { background: var(--brand-secondary); }
.switch.on::after { transform: translateX(18px); }

/* ------------------------------
   9) Media queries (responsive, flex-only)
------------------------------- */
@media (min-width: 480px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
}

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

  .text-image-section { flex-direction: row; }
}

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

  .content-grid > * { flex: 1 1 calc(50% - 10px); }
}

/* ------------------------------
   10) Accessibility & utilities
------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.muted { color: var(--ink-muted); }
.divider { height: 1px; background: var(--divider); width: 100%; }

/* ------------------------------
   11) Page-specific minor tweaks
------------------------------- */
/* Article-like sections are already using .text-section; ensure spacing */
section .cta-group .btn { min-width: 0; }

/* Ordered lists in guide */
ol { padding-left: 1.25rem; }
ol li { margin-bottom: 8px; }

/* Ensure adequate spacing between repeated testimonial-card blocks */
.testimonial-card + .testimonial-card { margin-top: 14px; }

/* Navigation bullets in footers' inline navs use separators provided in HTML */
footer nav a { padding: 4px 0; }

/* Ensure no overlap and proper spacing across sections */
section .content-wrapper > * + * { margin-top: 0; }

/* ------------------------------
   12) Form/inputs baseline (for potential future forms)
------------------------------- */
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid var(--divider); border-radius: 8px; padding: 10px 12px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* ------------------------------
   13) Visual hierarchy helpers
------------------------------- */
.kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.lead { font-size: 18px; color: var(--g-700); }

/* ------------------------------
   14) Prevent absolute positioning for content blocks (decoratives only)
------------------------------- */
/* We do not absolutely position cards or text blocks. Fixed is used for overlays/menus only. */

/* ------------------------------
   15) Ensure consistent gaps/margins per requirement
------------------------------- */
.card-container, .content-grid, .cta-group, .text-image-section, .testimonial-card, .feature-item, .main-nav, .mobile-nav, .social-links { gap: 20px; }

/* ------------------------------
   16) Print basics (optional)
------------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-backdrop, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
