/* RayShadow Explorer - Industrial Modern CSS (Flexbox-only) */
/* RESET & NORMALIZE */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; background: transparent; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
p { margin: 0; }

/* THEME TOKENS */
:root {
  --color-bg: #0E1216;
  --color-surface: #151A1F;
  --color-elev-1: #1B2127;
  --color-elev-2: #222A31;
  --color-metal: #8A939C;
  --color-line: #2C343C;
  --color-primary: #0A3D62; /* brand primary */
  --color-secondary: #B45309; /* brand accent warm */
  --color-accent: #F4F7FA; /* brand light */
  --text-high: #E8EEF3;
  --text-mid: #C6D0D9;
  --text-low: #9AA3AC;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-1: 0 6px 18px rgba(0,0,0,0.35);
  --shadow-2: 0 10px 28px rgba(0,0,0,0.45);
  --focus: 0 0 0 3px rgba(180,83,9,0.45);
}

/* BASE TYPOGRAPHY */
body {
  background: var(--color-bg);
  color: var(--text-mid);
  font-family: Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5 {
  color: var(--text-high);
  font-family: 'Trebuchet MS', Verdana, 'Segoe UI', Tahoma, Geneva, sans-serif;
  letter-spacing: 0.2px;
  margin: 0 0 12px 0;
}
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; }
p, li { font-size: 16px; }
small { font-size: 14px; color: var(--text-low); }

/* LINKS */
a { color: var(--color-secondary); text-underline-offset: 2px; }
a:hover { color: #cf6a1c; text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* LAYOUT PRIMITIVES (Flexbox-only) */
.container { display: flex; width: 100%; justify-content: center; padding: 0 16px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1200px; }
main { display: flex; flex-direction: column; gap: 40px; }
section { display: flex; }
footer { display: flex; }

/* 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; display: flex; flex-direction: column; gap: 12px; background: var(--color-elev-1); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-1); }
.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: var(--color-accent); color: #0F1418; border: 1px solid #D7DEE6; border-left: 5px solid var(--color-secondary); border-radius: var(--radius-md); box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* HEADER */
header { position: sticky; top: 0; z-index: 1000; background: linear-gradient(0deg, rgba(10,15,19,0.95), rgba(10,15,19,0.98)); border-bottom: 1px solid var(--color-line); backdrop-filter: blur(4px); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; }
.logo img { height: 36px; width: auto; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.05)); }

/* NAVIGATION */
.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: var(--text-mid); padding: 8px 10px; border-radius: 6px; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.main-nav a:hover { color: var(--text-high); background: var(--color-elev-1); transform: translateY(-1px); }
.main-nav a:last-child { background: var(--color-secondary); color: #fff; padding: 10px 14px; font-weight: bold; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25); }
.main-nav a:last-child:hover { background: #cf6a1c; }

/* MOBILE MENU BUTTON */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text-high); background: var(--color-elev-1); border: 1px solid var(--color-line); border-radius: 8px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: var(--color-elev-2); transform: translateY(-1px); }

/* MOBILE MENU OVERLAY */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; background: rgba(6,9,12,0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transform: translateX(100%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; z-index: 1200; }
.mobile-menu .mobile-menu-close { align-self: flex-end; margin: 16px; padding: 8px 12px; background: var(--color-elev-1); color: var(--text-high); border: 1px solid var(--color-line); border-radius: 8px; cursor: pointer; }
.mobile-menu .mobile-nav { display: flex; flex-direction: column; gap: 12px; background: var(--color-surface); border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-line); border-radius: 12px 0 0 0; padding: 24px; margin-left: auto; width: 86%; max-width: 360px; box-shadow: var(--shadow-2); }
.mobile-nav a { padding: 12px 14px; color: var(--text-mid); border-radius: 8px; background: var(--color-elev-1); border: 1px solid var(--color-line); }
.mobile-nav a:hover { color: var(--text-high); background: var(--color-elev-2); }
.mobile-nav a:last-child { background: var(--color-secondary); color: #fff; border-color: transparent; font-weight: bold; }
/* Open states supported (JS can toggle any of these) */
.mobile-menu.open, .mobile-menu.active, body.menu-open .mobile-menu { transform: translateX(0); opacity: 1; pointer-events: auto; }

/* HERO */
.hero { background: var(--color-elev-1); border-bottom: 1px solid var(--color-line); width: 100%; }
.hero .content-wrapper { padding: 28px 0; }
.hero h1 { font-size: 30px; color: #EAF1F6; }
.hero p { color: var(--text-mid); }
.hero .text-section { display: flex; flex-direction: column; gap: 10px; }
.hero a { display: inline-flex; align-items: center; gap: 8px; background: var(--color-primary); color: #fff; border: 1px solid #0a324f; padding: 10px 14px; border-radius: 10px; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25); transition: transform .2s ease, background .2s ease; }
.hero a:hover { background: #0e4c7b; transform: translateY(-1px); }
.hero .text-section a + a { background: var(--color-secondary); border-color: #8d420a; }

/* GENERIC TEXT BLOCKS */
.text-section { display: flex; flex-direction: column; gap: 10px; color: var(--text-mid); }
.text-section p + p { margin-top: 4px; }
.text-section a { color: var(--color-secondary); font-weight: 600; }
.text-section a:hover { color: #cf6a1c; }

/* LISTS - Industrial bullets */
.text-section ul, .content-wrapper ul, .content-wrapper ol { display: flex; flex-direction: column; gap: 8px; }
.text-section ul { list-style: none; padding-left: 0; }
.text-section ul li { position: relative; padding-left: 22px; color: var(--text-mid); }
.text-section ul li::before { content: '▸'; position: absolute; left: 0; top: 0; color: var(--color-secondary); font-weight: 700; }
.content-wrapper ol { padding-left: 18px; }

/* SECTIONS */
section .content-wrapper { padding: 20px 0; }
section h2 { border-left: 4px solid var(--color-primary); padding-left: 12px; }

/* TESTIMONIALS - Light cards for readability */
.testimonial-card p { margin: 0; color: #0F1418; }
.testimonial-card strong { color: #162029; }
.testimonial-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.18); }

/* FOOTER */
footer { background: #0B0F12; border-top: 1px solid var(--color-line); }
footer .content-wrapper { padding: 24px 0; gap: 12px; }
footer a { color: var(--text-low); }
footer a:hover { color: var(--text-mid); text-decoration: underline; }

/* BUTTON UTILITIES (used in cookie banner/modal, optional elsewhere) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--color-line); background: var(--color-elev-1); color: var(--text-high); cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; text-decoration: none; }
.btn:hover { transform: translateY(-1px); background: var(--color-elev-2); }
.btn-primary { background: var(--color-primary); color: #fff; border-color: #0a324f; }
.btn-primary:hover { background: #0e4c7b; }
.btn-accent { background: var(--color-secondary); color: #fff; border-color: #8d420a; }
.btn-accent:hover { background: #cf6a1c; }
.btn-ghost { background: transparent; color: var(--text-high); border-color: var(--color-line); }

/* CARDS (generic, in case used on other pages) */
.card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.4); }

/* FLEX GRIDS */
.content-grid > * { flex: 1 1 260px; min-width: 260px; }
.card-container > .card { flex: 1 1 280px; min-width: 280px; }

/* ALIGNMENT HELPERS */
.align-center { display: flex; align-items: center; justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ACCESSIBILITY & STATES */
::selection { background: rgba(10,61,98,0.5); }
[hidden] { display: none !important; }

/* COOKIE CONSENT BANNER */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400; display: flex; justify-content: center; padding: 12px 16px; background: rgba(9,12,15,0.98); border-top: 1px solid var(--color-line); box-shadow: 0 -10px 30px rgba(0,0,0,0.45); transform: translateY(110%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner .content { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1200px; color: var(--text-mid); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .cookie-actions .btn { flex: 1 1 140px; }
.cookie-banner.show, body.cookies-open .cookie-banner { transform: translateY(0); opacity: 1; }

/* COOKIE MODAL */
.cookie-modal { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.cookie-modal .cookie-modal-content { display: flex; flex-direction: column; gap: 16px; width: 92%; max-width: 680px; background: var(--color-surface); color: var(--text-mid); border: 1px solid var(--color-line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-2); }
.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 var(--color-line); border-radius: 10px; background: var(--color-elev-1); }
.cookie-modal .modal-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-modal.open, .cookie-modal.active, body.cookie-modal-open .cookie-modal { opacity: 1; pointer-events: auto; }

/* Simple toggle (for cookie categories) */
.switch { display: inline-flex; align-items: center; gap: 10px; }
.switch input[type='checkbox'] { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #3a434c; position: relative; outline: none; transition: background .2s ease; border: 1px solid var(--color-line); }
.switch input[type='checkbox']::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #c3ccd6; transition: transform .2s ease; }
.switch input[type='checkbox']:checked { background: var(--color-primary); }
.switch input[type='checkbox']:checked::after { transform: translateX(18px); background: #fff; }

/* RESPONSIVE */
@media (min-width: 480px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
}
@media (min-width: 768px) {
  .hero .content-wrapper { padding: 36px 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .text-image-section { flex-direction: row; align-items: center; }
  .testimonial-card { flex-direction: row; }
}
@media (min-width: 992px) {
  .main-nav { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
  header .content-wrapper { padding: 16px 0; }
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* PAGE-SPECIFIC POLISH */
/* Index highlight lists */
.hero ul li, section ul li { color: var(--text-mid); }
/* Ensure adequate vertical spacing between sections */
main > section { margin-bottom: 28px; }

/* ICON INLINE ALIGNMENT */
.text-section img { display: inline-block; vertical-align: middle; margin-right: 6px; filter: grayscale(40%) brightness(0.9); }

/* BORDERS & METALLIC ACCENTS */
.content-wrapper { border-left: 1px solid rgba(255,255,255,0.02); border-right: 1px solid rgba(255,255,255,0.02); }

/* PRINT FRIENDLY (lighten testimonial readability if printed) */
@media print {
  body { background: #fff; color: #000; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  .testimonial-card { border-color: #999; }
}
