/* ===================================================================
   BrightBreeze – Vibrant & Energetic CSS (Mobile-first, Flex-only)
   Brand: Primary #1F3A56, Secondary #C4733A, Accent #F4F1EC
   Fonts: Trebuchet MS (display), Verdana (body)
   =================================================================== */

/* ------------------------------
   0) CSS Reset / Normalize
--------------------------------*/
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding-left: 1.2rem; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 16px 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #00E5FF; outline-offset: 2px; }

/* ------------------------------
   1) Design Tokens
--------------------------------*/
:root {
  --primary: #1F3A56;
  --secondary: #C4733A;
  --accent: #F4F1EC;
  /* Energetic accent sparks */
  --energy-cyan: #00E5FF; /* electric cyan */
  --energy-pink: #FF2D55; /* vibrant pink */
  --energy-lime: #7CFF4E; /* neon lime */
  --text: #0E1B27; /* dark readable */
  --muted: #5B6A79;
  --white: #FFFFFF;
  --shadow-1: 0 6px 16px rgba(31,58,86,0.12), 0 2px 6px rgba(31,58,86,0.10);
  --shadow-2: 0 10px 28px rgba(31,58,86,0.18);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
}

/* ------------------------------
   2) Base Typography & Body
--------------------------------*/
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--text);
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }

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

p, li { font-size: 16px; color: var(--text); }
.small, .microcopy { font-size: 14px; color: var(--muted); }
strong { font-weight: 800; }
em { font-style: italic; }

/* Headline energy underline */
h1, h2 { position: relative; padding-bottom: 8px; }
h1::after, h2::after {
  content: "";
  position: relative;
  display: block;
  height: 4px;
  width: 68px;
  margin-top: 8px;
  background: var(--energy-pink);
  border-radius: 2px;
}

/* ------------------------------
   3) Layout Primitives (Flex-only)
--------------------------------*/
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;             /* Flex-only */
  flex-direction: column;    /* Mobile-first */
  gap: 0;
}

.content-wrapper {
  display: flex;             /* Flex-only */
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.text-section {
  display: flex;             /* Flex-only */
  flex-direction: column;
  gap: 10px;
}

/* Mandatory spacing & 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; }

/* Ensure default sections (no .section class) breathe */
main > section { margin: 28px 0; }
@media (min-width: 768px) { main > section { margin: 36px 0; } }

/* Lists: energetic bullets + icon rows */
ul { display: flex; flex-direction: column; gap: 10px; }
ul li { display: flex; align-items: center; gap: 10px; }
ul li img { width: 18px; height: 18px; flex: 0 0 18px; }
ol { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; }

/* Details / summary */
details { background: #FBFBFB; border: 1px solid #E6ECF2; border-radius: var(--radius-s); padding: 14px 16px; }
summary { cursor: pointer; font-weight: 700; color: var(--primary); }

/* ------------------------------
   4) Header & Navigation
--------------------------------*/
header { position: sticky; top: 0; z-index: 1000; background: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
header .container { padding-top: 14px; padding-bottom: 14px; gap: 14px; }

/* Header bar layout */
header .container { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; gap: 16px; align-items: center; }
.main-nav a {
  color: var(--primary);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.main-nav a:hover {
  background: var(--white);
  color: var(--secondary);
  transform: translateY(-1px);
}
.main-nav a[aria-current="page"] { color: var(--secondary); background: #FFF2EA; }

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

/* Mobile menu button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: none; border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, background-color .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #244766; }

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

/* ------------------------------
   5) Buttons & Links
--------------------------------*/
.btn-primary, .btn-secondary, .mobile-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 800; letter-spacing: .2px;
  border-radius: 12px; padding: 12px 16px; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn-primary { background: var(--secondary); color: var(--white); box-shadow: 0 6px 14px rgba(196,115,58,0.28); border: 2px solid transparent; }
.btn-primary:hover { background: #D48145; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); box-shadow: 0 4px 10px rgba(31,58,86,0.10); }
.btn-secondary:hover { background: #EEF3F8; color: #173046; transform: translateY(-2px); }

/* Inline links */
.content-wrapper a:not(.btn-primary):not(.btn-secondary) {
  color: var(--secondary); font-weight: 700; position: relative;
}
.content-wrapper a:not(.btn-primary):not(.btn-secondary):hover { color: #DA7C42; }

/* ------------------------------
   6) Mobile Menu Overlay (Hamburger)
--------------------------------*/
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; /* right-side drawer */
  width: 86%; max-width: 360px;
  background: var(--white);
  box-shadow: -10px 0 24px rgba(0,0,0,0.15);
  transform: translateX(110%);
  transition: transform .35s ease;
  z-index: 1200;
  display: flex;               /* Flex-only */
  flex-direction: column;
  padding: 16px;
}
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open, body.menu-open .mobile-menu { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  border: none; border-radius: 10px;
  background: var(--primary); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-1);
}
.mobile-nav {
  display: flex;               /* Flex-only */
  flex-direction: column;
  gap: 12px; margin-top: 10px;
}
.mobile-nav a {
  background: #F7FAFD;
  color: var(--primary);
  padding: 12px 14px; border: 2px solid #E6ECF2;
}
.mobile-nav a:hover { background: #EEF3F8; }

/* Optional full-screen dim when menu open */
body.menu-open::after {
  content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  z-index: 1100;
}

/* ------------------------------
   7) Cards, Testimonials, Panels
--------------------------------*/
.card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  padding: 20px;
}

/* Testimonials: Light background, dark text for high readability */
.testimonial-card {
  background: #FAFDFF;
  border: 1px solid #E7F6FF;
  border-left: 6px solid var(--energy-cyan);
  border-radius: var(--radius-m);
  box-shadow: 0 6px 14px rgba(0,229,255,0.10);
}
.testimonial-card p { margin: 0; color: var(--text); }
.testimonial-card strong { color: var(--primary); }

/* Energetic separators for sections with metrics/lists */
.content-wrapper ul li::marker { color: var(--energy-pink); }

/* ------------------------------
   8) Footer
--------------------------------*/
footer { background: var(--primary); color: var(--white); margin-top: 40px; }
footer .container { padding-top: 24px; padding-bottom: 24px; }
footer .content-wrapper {
  background: transparent; box-shadow: none; padding: 0; border-radius: 0; color: var(--white);
}
footer a { color: #D7E7F7; }
footer a:hover { color: var(--energy-cyan); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.06); }
.footer-nav a[aria-current="page"] { background: rgba(0,229,255,0.15); color: var(--white); }

/* ------------------------------
   9) Responsive: Text-Image / Grids (Flex-only)
--------------------------------*/
.text-image-section { justify-content: center; }
.text-image-section > * { flex: 1 1 320px; }

.content-grid { justify-content: flex-start; }
.content-grid > * {
  flex: 1 1 260px; min-width: 260px; max-width: 100%;
}

.card-container > .card { flex: 1 1 280px; min-width: 260px; }

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

/* ------------------------------
   10) Accessibility & Micro-interactions
--------------------------------*/
[aria-current="page"] { font-weight: 800; }

/* Hover lift for cards */
.card, .content-wrapper { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .content-wrapper:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

/* Energetic focus rings for key actions */
.btn-primary:focus-visible, .btn-secondary:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible { outline: 3px solid var(--energy-lime); outline-offset: 2px; }

/* ------------------------------
   11) Utilities & Misc
--------------------------------*/
.microcopy { background: #F7FAFD; padding: 10px 12px; border-radius: 10px; border: 1px dashed #D7E7F7; }

/* Make icons in paragraphs align nicely */
.text-section p img { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 6px; }

/* Alternate section vibe using subtle bars (solid colors) */
main > section:nth-of-type(odd) .content-wrapper { border-top: 6px solid var(--energy-pink); }
main > section:nth-of-type(even) .content-wrapper { border-top: 6px solid var(--energy-cyan); }

/* ------------------------------
   12) Cookie Consent (banner + modal)
--------------------------------*/
/* Banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--white);
  z-index: 1400;
  display: flex;               /* Flex-only */
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.cookie-banner.show, body.cookies-open .cookie-banner { transform: translateY(0); }
.cookie-banner .cookie-text { font-size: 14px; }
.cookie-banner .cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 10px; font-weight: 800; border: 2px solid transparent;
}
.cookie-banner .btn-accept { background: var(--energy-lime); color: #05330F; }
.cookie-banner .btn-accept:hover { filter: brightness(1.05); }
.cookie-banner .btn-reject { background: var(--white); color: var(--primary); border-color: var(--primary); }
.cookie-banner .btn-settings { background: var(--secondary); color: var(--white); }

/* Modal */
.cookie-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1500; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cookie-overlay.show { opacity: 1; pointer-events: auto; }
.cookie-modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -40%);
  width: min(700px, 92%);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  z-index: 1600;
  opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
}
.cookie-modal.show { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .cookie-groups { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .group { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #E6ECF2; border-radius: 10px; }
.cookie-modal .group .label { font-weight: 700; color: var(--primary); }
.cookie-modal .group .desc { font-size: 14px; color: var(--muted); }
.cookie-modal .actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Toggle switch (button-based) */
.toggle {
  display: inline-flex; align-items: center; width: 54px; height: 30px; padding: 3px; border-radius: 30px; background: #E6ECF2; border: 2px solid #D3DFEA; cursor: pointer; transition: background-color .2s ease;
}
.toggle::after {
  content: ""; width: 22px; height: 22px; border-radius: 50%; background: #9FB2C4; transition: transform .2s ease, background-color .2s ease;
}
.toggle.is-on { background: rgba(124,255,78,0.25); border-color: var(--energy-lime); }
.toggle.is-on::after { transform: translateX(24px); background: var(--energy-lime); }
.toggle.is-locked { background: #DDE6EE; cursor: not-allowed; }
.toggle.is-locked::after { background: #A2B3C3; }

/* ------------------------------
   13) Page-specific niceties
--------------------------------*/
/* Hero paragraphs larger for first section */
main > section:first-of-type .content-wrapper p:first-of-type { font-size: 18px; color: #223C56; }

/* KPI / metrics lists */
.content-wrapper ul li { position: relative; }

/* Emphasize ordered steps */
ol > li { font-weight: 700; color: var(--primary); }
ol > li + li { border-top: 1px dashed #E6ECF2; padding-top: 8px; }

/* Contact rows */
.text-section a[href^="tel:"], .text-section a[href^="mailto:"] { font-weight: 800; }

/* ------------------------------
   14) Desktop spacing refinements
--------------------------------*/
@media (min-width: 768px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .content-wrapper { padding: 28px; gap: 18px; }
}
@media (min-width: 1200px) {
  .content-wrapper { padding: 36px; }
}

/* ------------------------------
   15) Print basics
--------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-overlay { display: none !important; }
  body { background: #fff; }
  .content-wrapper { box-shadow: none; border: 1px solid #ddd; }
}

/* ------------------------------
   16) Final checks & helpers
--------------------------------*/
/* Ensure adequate gaps between adjacent content wrappers */
.content-wrapper + .content-wrapper { margin-top: 20px; }

/* Prevent overlap by allowing natural flow and spacing */
main, header, footer { display: block; }

/* Flex alignment helpers */
.align-center { display: flex; align-items: center; justify-content: center; gap: 12px; }
.align-start { display: flex; align-items: flex-start; gap: 12px; }

/* Visual energy borders for CTAs */
.cta-rail { border-left: 6px solid var(--energy-cyan); padding-left: 12px; }

/* No absolute positioning on content cards - rule by convention only */
/* (We keep position: relative only where needed for decorative elements) */
