/* =============================
   Frozen Gleam Akademi – style.css
   Industrial Modern aesthetic
   Mobile-first • Flexbox-only • Brand-compliant
   ============================= */

/* -------- CSS RESET & NORMALIZE -------- */
* { box-sizing: border-box; }
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1.5; }
ol, ul { list-style: disc; padding-left: 1.25rem; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ""; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; height: auto; display: inline-block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* -------- THEME TOKENS -------- */
:root {
  /* Brand */
  --brand-primary: #153E75; /* deep steel-blue */
  --brand-secondary: #2FA58A; /* teal */
  --brand-accent: #F3F6FB; /* light accent */

  /* Industrial Modern Neutrals */
  --ink: #0C0F12;            /* near-black */
  --charcoal: #11161B;       /* page background */
  --gunmetal: #1B2127;       /* sections, header/footer */
  --steel: #2B333B;          /* panels, nav */
  --smoke: #C9D2DB;          /* light text accents */
  --concrete: #E6EBF1;       /* borders on light areas */
  --metal-edge: #3A434B;     /* metallic edge line */

  /* Typography */
  --font-display: "Trebuchet MS", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --font-body: Verdana, system-ui, -apple-system, Segoe UI, Arial, sans-serif;

  /* Effects */
  --radius-s: 6px;
  --radius-m: 10px;
  --shadow-soft: 0 4px 14px rgba(0,0,0,0.25);
  --shadow-crisp: 0 2px 0 rgba(255,255,255,0.04) inset, 0 1px 0 rgba(0,0,0,0.35);

  /* Spacing scale */
  --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-20: 20px;
  --space-24: 24px; --space-32: 32px; --space-40: 40px; --space-60: 60px;
}

/* -------- BASE -------- */
html { scroll-behavior: smooth; }
body {
  background: var(--charcoal);
  color: #E9EEF5;
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: var(--font-display); color: #F5F8FB; }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0.4px; }
h2 { font-size: 24px; line-height: 1.3; letter-spacing: 0.6px; text-transform: uppercase; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: 0.3px; }

p { margin-bottom: var(--space-16); color: #DCE3EA; }
strong { color: #FFFFFF; font-weight: 700; }
em { font-style: italic; }

/* Links */
a { color: var(--brand-secondary); text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: #25c3a8; }
a:focus { outline: 2px dashed var(--brand-secondary); outline-offset: 3px; }

/* Lists */
ul, ol { margin: 0 0 var(--space-16) 1.25rem; }
li { margin-bottom: 8px; }

/* Utility */
.hr-line { height: 1px; background: var(--metal-edge); width: 100%; }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* -------- LAYOUT CONTAINERS (Flex-only) -------- */
.container {
  display: flex; flex-direction: column; flex-wrap: nowrap;
  gap: var(--space-20);
  width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--space-20);
}

.content-wrapper {
  display: flex; flex-direction: column; flex-wrap: nowrap;
  gap: var(--space-20);
}

/* Ensure sections have breathing room */
section { margin-bottom: var(--space-60); padding: var(--space-40) var(--space-20); background: transparent; }

/* Metallic section frames for visual hierarchy */
main section .container { border-left: 1px solid var(--metal-edge); padding-left: var(--space-20); }

/* Headline accents */
h2 { position: relative; padding-left: 14px; }
h2:before { content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 4px; background: var(--brand-primary); border-radius: 2px; }

/* Text blocks */
.text-section { margin-bottom: var(--space-20); }
.text-section:last-child { margin-bottom: 0; }
.text-section a { text-decoration: underline; text-underline-offset: 3px; }

/* Inline icons inside text */
.text-section p img { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; filter: invert(86%) sepia(4%) saturate(355%) hue-rotate(179deg) brightness(99%) contrast(92%); }

/* -------- HEADER & NAV -------- */
header { background: var(--gunmetal); border-bottom: 1px solid var(--metal-edge); position: sticky; top: 0; z-index: 50; }
header > .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: var(--space-12); padding-bottom: var(--space-12); }

.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.06)); }

.main-nav { display: none; }
.main-nav a { color: #E9EEF5; padding: 8px 12px; border-radius: var(--radius-s); transition: background .25s ease, color .25s ease, transform .25s ease; }
.main-nav a:hover { background: rgba(255,255,255,0.06); }
.main-nav a.cta { background: var(--brand-secondary); color: #0B1318; font-weight: 700; border: 1px solid #1d6e5e; box-shadow: var(--shadow-crisp); }
.main-nav a.cta:hover { background: #28b397; transform: translateY(-1px); }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 38px; border-radius: 6px; background: var(--steel); color: #EEF3F8; border: 1px solid var(--metal-edge); cursor: pointer; transition: background .25s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: #35404a; transform: translateY(-1px); }
.mobile-menu-toggle:focus { outline: 2px dashed var(--brand-secondary); outline-offset: 3px; }

/* Mobile menu overlay (flex-only) */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(12,15,18,0.72);
  display: flex; flex-direction: row; align-items: stretch; justify-content: flex-end;
  transform: translateX(100%); transition: transform .35s ease; z-index: 60;
}
.mobile-menu.open { transform: translateX(0); }

/* Drawer */
.mobile-menu .mobile-nav {
  width: 86%; max-width: 380px; background: var(--gunmetal);
  border-left: 1px solid var(--metal-edge);
  display: flex; flex-direction: column; gap: var(--space-12);
  padding: var(--space-32) var(--space-20) var(--space-20);
  box-shadow: var(--shadow-soft);
}
.mobile-menu-close {
  position: absolute; right: 14px; top: 12px; width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #EEF3F8; border: 1px solid var(--metal-edge);
  border-radius: 6px; cursor: pointer; transition: background .25s ease;
}
.mobile-menu-close:hover { background: #2b333b; }

.mobile-nav a {
  color: #E9EEF5; padding: 12px 10px; border-radius: 6px;
  background: #232a31; border: 1px solid var(--metal-edge);
}
.mobile-nav a:hover { background: #2c343c; }
.mobile-nav a + a { margin-top: 6px; }

/* -------- FOOTER -------- */
footer { background: var(--gunmetal); border-top: 1px solid var(--metal-edge); }
footer .content-wrapper { padding-top: var(--space-24); padding-bottom: var(--space-24); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.footer-nav a { color: #D7DEE6; padding: 6px 10px; border-radius: var(--radius-s); background: rgba(255,255,255,0.03); border: 1px solid var(--metal-edge); }
.footer-nav a:hover { background: rgba(255,255,255,0.07); }

/* -------- CARDS & PANELS -------- */
.card { background: var(--steel); border: 1px solid var(--metal-edge); border-radius: var(--radius-m); padding: var(--space-20); box-shadow: var(--shadow-crisp); margin-bottom: 20px; position: relative; }

/* Testimonial cards – light for readability (critical requirement) */
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px;
  background: var(--brand-accent); color: #0E1216;
  border: 1px solid var(--concrete); border-left: 4px solid var(--brand-secondary);
  border-radius: var(--radius-m); box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  margin-bottom: 20px;
}
.testimonial-card p { color: #0E1216; }
.testimonial-card strong { color: #0B1318; }

/* Feature list items (if used) */
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Content grids (flex-only) */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

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

/* General buttons */
.btn, .button, a.button, .text-section a.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand-primary); color: #F5FAFF; border: 1px solid #0d2747;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow-crisp); transition: transform .2s ease, background .25s ease, box-shadow .25s ease;
}
.btn:hover, .button:hover, a.button:hover { background: #1a4c8e; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Inline CTAs inside copy – style minimal */
.text-section a:not(.button):not(.btn):not(.cta) { color: var(--brand-secondary); }

/* -------- FORMS (basic elements in content) -------- */
input[type="text"], input[type="email"], textarea, select {
  background: #12171d; color: #e9eef5; border: 1px solid var(--metal-edge);
  border-radius: 8px; padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px dashed var(--brand-secondary); outline-offset: 3px; }

/* -------- COOKIE CONSENT -------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; flex-direction: column; gap: 12px; align-items: stretch; justify-content: center;
  background: #0f1419; color: #EAF1F7; border-top: 1px solid var(--metal-edge);
  padding: 14px 16px; transform: translateY(110%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }

.cookie-banner .btn-accept { background: var(--brand-secondary); color: #0B1318; border: 1px solid #1f6f60; padding: 10px 14px; border-radius: 8px; font-weight: 800; }
.cookie-banner .btn-accept:hover { background: #28b397; }
.cookie-banner .btn-reject { background: transparent; color: #EAF1F7; border: 1px solid var(--metal-edge); padding: 10px 14px; border-radius: 8px; }
.cookie-banner .btn-reject:hover { background: #1a222a; }
.cookie-banner .btn-settings { background: var(--brand-primary); color: #F5FAFF; border: 1px solid #0d2747; padding: 10px 14px; border-radius: 8px; }
.cookie-banner .btn-settings:hover { background: #1a4c8e; }

/* Cookie modal overlay */
.cookie-modal {
  position: fixed; inset: 0; z-index: 80; background: rgba(10,14,18,0.75);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content {
  background: var(--gunmetal); color: #E9EEF5; border: 1px solid var(--metal-edge);
  border-radius: 12px; width: 100%; max-width: 720px; padding: 20px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-soft);
}
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--metal-edge); }
.cookie-modal .cookie-row:last-child { border-bottom: 0; }
.cookie-modal .modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* Simple toggle style (if checkboxes used) */
.toggle { width: 40px; height: 24px; background: #2b333b; border: 1px solid var(--metal-edge); border-radius: 20px; position: relative; display: inline-flex; align-items: center; padding: 2px; }
.toggle .dot { width: 18px; height: 18px; border-radius: 50%; background: #b9c4cf; transition: transform .2s ease; }
.toggle.on { background: var(--brand-secondary); border-color: #1f6f60; }
.toggle.on .dot { transform: translateX(16px); background: #07362e; }

/* -------- HIERARCHY & TYPOGRAPHY SCALE (desktop upscaling) -------- */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}
@media (min-width: 768px) {
  .main-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .mobile-menu-toggle { display: none; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  header > .container { gap: var(--space-20); }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }

  .content-wrapper { flex-direction: column; }
}

/* -------- RESPONSIVE ALIGNMENT RULES -------- */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* -------- PAGE-SPECIFIC POLISH -------- */
/* Hero emphasis on first section headings */
main section:first-of-type h1 { color: #FFFFFF; text-shadow: 0 1px 0 rgba(255,255,255,0.06); }
main section:first-of-type .text-section a { font-weight: 700; }

/* Contact details in text blocks */
.text-section p { display: block; }

/* Footer brand block spacing */
footer .text-section strong { display: block; margin-bottom: 6px; }

/* -------- FLEXBOX PATTERNS (MANDATORY) -------- */
.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; }

/* -------- SELECTION, SCROLLBARS (subtle industrial) -------- */
::selection { background: var(--brand-secondary); color: #0B1318; }

/* -------- ACCESSIBILITY STATES -------- */
:focus-visible { outline: 2px dashed var(--brand-secondary); outline-offset: 2px; }

/* -------- MICRO-INTERACTIONS -------- */
.card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.35); transform: translateY(-2px); transition: box-shadow .25s ease, transform .2s ease; }

/* -------- TABLES (if any appear in legal pages) -------- */
table { width: 100%; margin: 16px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--metal-edge); }
th { background: #141a1f; color: #f0f6fc; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* -------- BREADCRUMBS / SMALL NAV (if used later) -------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #C8D0D9; }
.breadcrumbs a { color: #DDE5EE; }

/* -------- PRINT SAFE -------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
  section { padding: 0; margin-bottom: 24px; }
}
