/* =========================================================
   Flara Cienia — Industrial Modern UI
   Single stylesheet for all pages
   Mobile-first • Flexbox-only layouts • No CSS Grid/Columns
   ========================================================= */

/* -------------------------
   RESET / NORMALIZE
-------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; line-height: 1.6; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding-left: 1.2rem; }

/* -------------------------
   THEME TOKENS (fallbacks + CSS vars)
-------------------------- */
:root {
  /* Brand */
  --color-primary: #1A1333;   /* brand primary */
  --color-secondary: #FF5A3D; /* brand secondary */
  --color-accent: #F5F3FF;    /* brand accent (light) */

  /* Industrial neutrals */
  --iron-900: #0E1014;        /* deep iron */
  --iron-800: #13161C;        /* page bg */
  --iron-700: #171B22;        /* surface */
  --iron-600: #1C2129;        /* elevated */
  --iron-500: #242B35;        /* border-darker */
  --iron-400: #2D3542;        /* border */
  --iron-300: #3A4452;        /* lines */
  --iron-200: #6C7785;        /* muted text */
  --iron-100: #C8CFD8;        /* subtle text */
  --iron-050: #E7EBF0;        /* light surface */

  --text-high: #E9EDF3;       /* high-emphasis text on dark */
  --text-mid: #C1C7D0;        /* mid-emphasis on dark */
  --text-invert: #0F1216;     /* text on light cards */

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;

  --shadow-1: 0 6px 18px rgba(0,0,0,0.22);
  --shadow-2: 0 12px 28px rgba(0,0,0,0.28);
  --ring: 0 0 0 3px rgba(255,90,61,0.35);
}

/* -------------------------
   BASE TYPOGRAPHY
-------------------------- */
body {
  background: var(--iron-800);
  color: var(--text-high);
  font-family: 'Verdana', 'Geneva', Tahoma, sans-serif;
  font-size: 16px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px 0;
  color: #FFFFFF;
  font-family: 'Impact', 'Haettenschweiler', 'Arial Black', sans-serif;
  letter-spacing: 0.5px;
}

h1 { font-size: 40px; line-height: 1.1; }
h2 { font-size: 28px; line-height: 1.2; border-left: 4px solid var(--color-secondary); padding-left: 12px; }
h3 { font-size: 20px; line-height: 1.3; color: var(--text-high); }

p { margin: 0 0 12px 0; color: var(--text-mid); }
small { color: var(--iron-100); }
strong { color: var(--text-high); }

.subheadline { font-size: 18px; color: var(--iron-100); }

/* Links */
a { color: var(--color-secondary); text-decoration: none; position: relative; }
a:hover { color: #ff6c53; }
a:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* Lists */
ul, ol { margin: 0 0 12px 0; }
ul li, ol li { margin-bottom: 6px; }
ul li { list-style-type: square; }

/* -------------------------
   LAYOUT PRIMITIVES (Flex-only)
-------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;               /* flex container */
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;               /* flex container */
  flex-direction: column;      /* mobile-first */
  gap: 20px;
}

section { margin-bottom: 60px; padding: 40px 0; }

/* Mandatory spacing class (also available on any custom section) */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Card/collection patterns (flex-only) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; background: var(--iron-700); border: 1px solid var(--iron-400); border-radius: var(--radius-sm); 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; border-radius: var(--radius-sm); border: 1px solid #D7DAE0; background: var(--color-accent); color: var(--text-invert); box-shadow: 0 6px 18px rgba(8,10,14,0.12); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* General text block styled as industrial card */
.text-section {
  display: flex;               /* flex container to stack content */
  flex-direction: column;
  gap: 10px;
  background: var(--iron-700);
  border: 1px solid var(--iron-400);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.text-section:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); transition: all .25s ease; }

/* -------------------------
   HEADER / NAVIGATION
-------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(0deg, var(--iron-800), var(--iron-800)); /* solid-like */
  border-bottom: 1px solid var(--iron-500);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.site-header .content-wrapper {
  flex-direction: row;
  align-items: center;          /* vertical centering */
  justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.brand img { width: 140px; height: auto; }

.main-nav { display: none; gap: 16px; align-items: center; }
.main-nav a {
  color: var(--text-mid);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
}
.main-nav a:hover { color: #FFFFFF; border-color: var(--iron-400); background: var(--iron-700); }

.header-ctas { display: none; gap: 10px; align-items: center; }

/* Mobile Burger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--iron-700);
  color: #fff; border: 1px solid var(--iron-400);
  cursor: pointer;
}
.mobile-menu-toggle:hover { background: var(--iron-600); }
.mobile-menu-toggle:focus-visible { box-shadow: var(--ring); outline: none; }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0; right: 0; left: auto;
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--iron-900);
  border-left: 1px solid var(--iron-500);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 1200;
  padding: 20px;
  gap: 16px;
}
.mobile-menu.open,
.mobile-menu.active,
.mobile-menu[data-open=true],
.mobile-menu[aria-hidden=false] { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--iron-400);
  background: var(--iron-700); color: #fff; cursor: pointer;
}
.mobile-menu-close:hover { background: var(--iron-600); }

.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  padding: 14px 12px; border-radius: var(--radius-xs);
  color: #fff; background: var(--iron-700);
  border: 1px solid var(--iron-400);
}
.mobile-nav a:hover { background: var(--iron-600); }

/* -------------------------
   HERO SECTION
-------------------------- */
.hero {
  background: var(--iron-800);
  border-bottom: 1px solid var(--iron-500);
}
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { font-size: 44px; }
.hero .subheadline { max-width: 65ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------
   BUTTONS
-------------------------- */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; 
  gap: 10px; padding: 12px 16px; 
  border-radius: 10px; border: 1px solid var(--iron-400);
  color: #FFFFFF; background: var(--iron-600);
  text-decoration: none; cursor: pointer; 
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--iron-500); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-primary {
  background: var(--color-secondary);
  color: #111111; border-color: #ff785f;
  font-weight: 700;
}
.btn-primary:hover { background: #ff6c53; }

/* -------------------------
   TESTIMONIALS (light for contrast)
-------------------------- */
.testimonial-card p { color: var(--text-invert); margin: 0; }
.testimonial-card strong { color: #111; }

/* -------------------------
   FOOTER
-------------------------- */
.site-footer {
  background: #0B0D12;
  border-top: 1px solid var(--iron-500);
  padding: 40px 0; color: var(--text-mid);
}
.site-footer .content-wrapper { flex-wrap: wrap; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer a { color: var(--iron-100); }
.site-footer a:hover { color: #fff; }

/* -------------------------
   ICON INLINE ALIGNMENT
-------------------------- */
img[alt^=''], .text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* -------------------------
   COOKIE CONSENT (Banner & Modal)
-------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--iron-900);
  border-top: 1px solid var(--iron-500);
  box-shadow: 0 -10px 24px rgba(0,0,0,0.35);
  color: var(--text-high);
  padding: 18px 16px; z-index: 1500;
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container { gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; }
.cookie-actions .btn-accept { background: var(--color-secondary); color: #111; border-color: #ff785f; }
.cookie-actions .btn-accept:hover { background: #ff6c53; }
.cookie-actions .btn-reject { background: var(--iron-700); }
.cookie-actions .btn-settings { background: var(--iron-600); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1600;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-modal-content {
  display: flex; flex-direction: column; gap: 16px;
  width: 94%; max-width: 720px;
  background: #FFFFFF; color: #111;
  border-radius: var(--radius-sm);
  border: 1px solid #D8DDE5; padding: 20px; box-shadow: var(--shadow-2);
}
.cookie-modal .cookie-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid #E5E9F0; border-radius: 10px; padding: 12px; background: #FAFBFD; }
.cookie-modal .cookie-note { font-size: 14px; color: #333; }

/* Simple toggle visual (non-functional CSS) */
.switch { display: inline-flex; align-items: center; gap: 8px; }
.switch .knob { width: 42px; height: 24px; border-radius: 24px; background: #D1D6DE; border: 1px solid #BFC7D3; position: relative; display: inline-flex; align-items: center; }
.switch .dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-left: 3px; box-shadow: 0 1px 2px rgba(0,0,0,0.15); transition: margin-left .2s ease; }
.switch.on .knob { background: #A7F3D0; border-color: #34D399; }
.switch.on .dot { margin-left: 21px; }

/* -------------------------
   RESPONSIVE (Mobile-first)
-------------------------- */
@media (min-width: 576px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

@media (min-width: 768px) {
  .content-wrapper { flex-direction: row; flex-wrap: wrap; }
  .hero .content-wrapper { flex-direction: column; }
  .text-image-section { flex-direction: row; }

  /* Make text sections flow as flexible cards */
  .content-wrapper > .text-section {
    flex: 1 1 300px; min-width: 280px; max-width: 100%;
  }

  .main-nav { display: none; }
  .header-ctas { display: none; }
}

@media (min-width: 992px) {
  .site-header .content-wrapper { gap: 20px; }
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -------------------------
   ACCESSIBILITY & STATES
-------------------------- */
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* -------------------------
   UTILITIES
-------------------------- */
.muted { color: var(--iron-100); }
.hide { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------
   PAGE-SPECIFIC POLISH
-------------------------- */
/* Elevate first hero heading for impact */
.hero h1 { text-transform: none; letter-spacing: 0.6px; }

/* Inline nav in footer column */
.site-footer nav a { padding: 8px 10px; border-radius: 8px; border: 1px solid transparent; }
.site-footer nav a:hover { border-color: var(--iron-400); background: var(--iron-700); }

/* Spacing consistency for testimonials group */
section .testimonial-card { margin-bottom: 20px; }

/* Ensure minimum separation between any content blocks */
.content-wrapper > * { margin-bottom: 20px; }

/* Maintain readable width on long text pages (policies) */
main .text-section p, main .text-section ul, main .text-section ol { max-width: 75ch; }

/* -------------------------
   COMPLIANCE: Flex-only verification helpers
-------------------------- */
/* All major layout wrappers already set to display:flex. Avoid grid/columns entirely. */
