/* FRONT-1 | style.css — CSS variables & reset */

:root {
  /* Brand palette — driven by per-site data (globals.css_file → --css_*),
     with the original FRONT-1 values kept as fallbacks.

     Surfaces are derived from the PAGE background (--bg-base) plus a neutral
     elevation, rather than from the separate content background. This keeps
     content blocks tonally consistent with the page (e.g. a blue page yields
     blue cards instead of stray white panels) and — crucially — lets the
     page-level text colors (--css_main_*) stay readable on every surface,
     since they are chosen to contrast the page background. Header keeps its
     own brand surface + link colour. */
  --bg-base:       var(--css_main_background_color, #0d0d14);
  --bg-surface:    color-mix(in srgb, var(--bg-base) 93%, #808080);
  --bg-elevated:   color-mix(in srgb, var(--bg-base) 90%, #808080);
  --bg-card:       color-mix(in srgb, var(--bg-base) 86%, #808080);
  --bg-hover:      color-mix(in srgb, var(--bg-base) 78%, #808080);

  --accent:        var(--css_main_primary_button_background_color, #c9a84c);
  --accent-hover:  var(--css_main_primary_second_button_background_color, #e2c06a);
  --accent-dim:    color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-border: color-mix(in srgb, var(--accent) 32%, transparent);

  --text-primary:   var(--css_main_heading_color, #f0f0f5);
  --text-secondary: var(--css_main_text_color, #c2c2d2);
  --text-muted:     color-mix(in srgb, var(--css_main_text_color, #9595c4) 70%, var(--bg-base));
  --text-on-accent: var(--css_main_primary_button_text_color, #0d0d14);

  /* Header is a distinct brand surface with its own readable link colour. */
  --header-bg:     var(--css_header_background_color, #13131f);
  --header-link:   var(--css_header_link_color, var(--text-secondary));

  --border:        color-mix(in srgb, var(--text-secondary) 20%, transparent);
  --border-strong: color-mix(in srgb, var(--text-secondary) 34%, transparent);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow-card: 0 2px 16px rgba(0,0,0,.40);

  --container-w: 1200px;
  --header-h:    64px;

  --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Defensive: generated SEO content can leak a full document with its own
     `body { max-width: 1200px; margin: 0 auto; padding: 20px }` <style> block,
     which would otherwise constrain the whole page. Force the page body's own
     geometry so a leaked style can never cap or indent it. */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

/* Container */
.xjlamxatjv5 {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Section spacing */
/* Item 7: every section is a full-bleed band — its background spans the whole
   viewport while the inner .xjlamxatjv5 keeps the content within the wrapper.
   width:100% + the block flow guarantees the colour reaches both screen edges
   even if an ancestor ever becomes a shrink-wrapping flex/grid context. */
.xrurje8ydzh,
.xnubop883wd,
.xgcqf5tkshw,
.x6q4p6j5rkw { width: 100%; }
.xrurje8ydzh { padding: 48px 0; }
.x4f5sr88b3e { padding: 28px 0; }
.x7mtt9om0s0 { background: var(--bg-surface); }

/* Buttons */
.x6ysdad0o88 {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.x0s945j4zar {
  background: var(--accent);
  color: var(--text-on-accent);
}
.x0s945j4zar:hover { background: var(--accent-hover); }

.xut8sgeyxx3 {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.xut8sgeyxx3:hover { border-color: var(--accent); color: var(--accent); }

.xn6232x44xn {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}
.xn6232x44xn:hover { color: var(--text-primary); }

.x3v3bnksezc { padding: 7px 16px; font-size: 13px; }

/* Section heading */
.xe2ji9vfdij {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.xfiz2bge7d6 {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Gold divider */
.xpzhwzb1f80 {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin: 8px 0 0;
}

/* Show-more button */
.x6xo9pfqmo6 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px auto 0;
  padding: 9px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 13px;
  transition: border-color var(--transition), color var(--transition);
}
.x6xo9pfqmo6:hover { border-color: var(--accent); color: var(--accent); }
.x6xo9pfqmo6 svg { transition: transform var(--transition); }
.x6xo9pfqmo6.open svg { transform: rotate(180deg); }

/* Chip / badge */
.x55uzh6h1y4 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  margin-bottom: 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.x1a9y9stve9 {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.xsv5dwhxfgh {
  background: rgba(34,197,94,.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.25);
}
.xygth6kjdi5 {
  background: rgba(220,38,38,.18);
  color: #f87171;
  border: 1px solid rgba(220,38,38,.3);
}

/* Star rating */
.xnav159nd0x {
  display: flex;
  gap: 2px;
  color: var(--accent);
  font-size: 13px;
}

/* Utility */
.no-scroll { overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .xrurje8ydzh { padding: 32px 0; }
  .xjlamxatjv5 { padding: 0 16px; }
}
@media (max-width: 600px) {
  .xrurje8ydzh { padding: 24px 0; }
}
