/* ==========================
   HelvAero Genf — style.css
   Design: modern_bold (bold, bright, geometric, high contrast)
   Layout: FLEXBOX ONLY (no CSS Grid/Columns)
   ========================== */

/* ========== CSS Reset & Normalize (mobile-first) ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { 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 12px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #2A9D8F; outline-offset: 2px; }

/* ========== Brand Tokens ========== */
:root {
  --color-primary: #0B2545; /* deep navy */
  --color-secondary: #2A9D8F; /* vibrant teal */
  --color-accent: #EAF4F8; /* airy light */
  --color-dark: #091a33;
  --color-light: #ffffff;
  --color-muted: #6b7a90;
  --shadow-1: 0 6px 16px rgba(11,37,69,0.12);
  --shadow-2: 0 10px 24px rgba(11,37,69,0.18);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --container-max: 1200px;
}

/* ========== Typography ========== */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  background: var(--color-light);
  font-size: 16px; line-height: 1.6;
}
h1, h2, h3 { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-weight: 800; letter-spacing: 0.3px; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.3; }
.subheadline { color: var(--color-dark); font-size: 18px; font-weight: 600; opacity: 0.95; }
.text-muted { color: var(--color-muted); }
.note, .quality-note { color: var(--color-dark); font-weight: 600; }
.rating-summary { font-weight: 800; color: var(--color-secondary); }

/* ========== Core Layout Helpers (FLEX ONLY) ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* flex-only policy */
  flex-direction: column; /* mobile-first */
  gap: 20px;
}
.content-wrapper {
  display: flex; /* flex-only */
  flex-direction: column;
  gap: 20px;
}
section { margin-bottom: 60px; padding: 40px 0; display: flex; }
section > .container { justify-content: flex-start; }

/* Mandatory spacing/align patterns (included verbatim) */
.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; }

/* ========== Header & Navigation ========== */
header { position: sticky; top: 0; z-index: 1000; background: var(--color-light); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  color: var(--color-primary); font-weight: 800; text-transform: uppercase; font-size: 13px; padding: 10px 12px; border-radius: var(--radius-s);
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.main-nav a[aria-current="page"], .main-nav a:hover { background: var(--color-accent); color: var(--color-secondary); }
.header-cta { display: none; align-items: center; gap: 12px; }

/* Mobile menu button */
.mobile-menu-toggle {
  color: var(--color-light); background: var(--color-secondary); border-radius: 10px; padding: 10px 12px; font-size: 20px; line-height: 1; box-shadow: var(--shadow-1);
  transition: transform .2s ease, background-color .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #238c82; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; background: var(--color-primary); color: var(--color-light);
  display: flex; flex-direction: column; padding: 20px; gap: 20px;
  transform: translateX(100%); transition: transform .35s ease; z-index: 1200;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; color: var(--color-light); font-size: 22px; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.06);
}
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a {
  padding: 14px 12px; border-radius: var(--radius-s); font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; background: rgba(255,255,255,0.06);
}
.mobile-nav a[aria-current="page"], .mobile-nav a:hover { background: var(--color-secondary); color: var(--color-light); }

/* ========== Hero ========== */
.hero { position: relative; background: var(--color-accent); overflow: hidden; padding: 50px 0; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0; opacity: 0.08; pointer-events: none;
}
.hero::before { width: 140%; height: 220px; left: -20%; top: -40px; background: var(--color-secondary); transform: rotate(-6deg); }
.hero::after { width: 120%; height: 180px; left: -10%; bottom: -60px; background: var(--color-primary); transform: rotate(5deg); }
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }
.hero h1 { font-size: 34px; }
.hero .subheadline { font-size: 18px; max-width: 800px; }

/* CTA Group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; border-radius: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.6px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--color-secondary); color: var(--color-light); box-shadow: var(--shadow-1); }
.btn.primary:hover { background: #238c82; box-shadow: var(--shadow-2); }
.btn.secondary { background: var(--color-light); color: var(--color-primary); border-color: var(--color-primary); }
.btn.secondary:hover { color: var(--color-light); background: var(--color-primary); border-color: var(--color-primary); }

/* ========== Feature grids / cards ========== */
.feature-grid, .service-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.text-section {
  flex: 1 1 260px; background: #ffffff; border: 2px solid var(--color-accent); border-radius: var(--radius-m);
  padding: 18px; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.text-section:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--color-secondary); }
.text-section h3 { margin-bottom: 6px; }
.text-section ul { margin: 0; padding-left: 1.1rem; }

/* Trust badges */
.trust-badges { display: flex; flex-direction: column; gap: 8px; }
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-left: 0; list-style: none; }
.trust-badges li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--color-accent); padding: 8px 12px; border-radius: 999px; font-weight: 700; color: var(--color-primary); }
.trust-badges img { width: 18px; height: 18px; }

/* Steps / Timeline */
.steps-timeline { display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none; border-left: 4px solid var(--color-secondary); margin-left: 6px; }
.steps-timeline li { padding-left: 14px; position: relative; }
.steps-timeline li::before {
  content: ""; position: absolute; left: -9px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-secondary);
}

/* Testimonials - dark text on light background for readability */
.testimonial-card { background: #ffffff; border: 2px solid var(--color-accent); border-radius: var(--radius-m); box-shadow: var(--shadow-1); color: var(--color-primary); }
.testimonial-card p { margin: 0; }

/* Footer */
footer { background: var(--color-primary); color: var(--color-light); padding: 40px 0; }
footer .container { gap: 0; }
footer .content-wrapper { gap: 20px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-columns > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; }
footer h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.6px; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer a { color: #e7f1ff; font-weight: 700; }
footer a:hover { color: var(--color-secondary); }

/* Links inside content */
main a { color: var(--color-secondary); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
main a:hover { color: #238c82; }

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* Contact rows with icons */
.content-wrapper p img[alt] { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* Header current CTA highlight */
.header-cta .btn[aria-current="page"] { outline: 3px solid var(--color-secondary); }

/* ========== Cookie Consent (banner + modal) ========== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: var(--color-primary); color: var(--color-light);
  display: flex; align-items: center; justify-content: center; padding: 14px 16px; box-shadow: 0 -8px 20px rgba(0,0,0,0.2);
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { max-width: var(--container-max); width: 100%; padding: 0 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-banner p { flex: 1 1 220px; margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { padding: 10px 14px; border-radius: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; border: 2px solid transparent; }
.cookie-accept { background: var(--color-secondary); color: var(--color-light); }
.cookie-accept:hover { background: #238c82; }
.cookie-reject { background: #ffffff; color: var(--color-primary); border-color: #ffffff; }
.cookie-reject:hover { background: #dfe9ff; }
.cookie-settings { background: transparent; color: #ffffff; border-color: #ffffff; }
.cookie-settings:hover { background: rgba(255,255,255,0.08); }

/* Cookie modal */
.cookie-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; z-index: 1300;
}
.cookie-modal-backdrop.open { display: flex; }
.cookie-modal {
  margin: auto; background: #ffffff; color: var(--color-primary); width: min(92%, 680px); border-radius: 16px; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
}
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; background: transparent; box-shadow: none; position: static; }
.cookie-modal h3 { margin: 0; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; background: var(--color-accent); border: 2px solid var(--color-accent); border-radius: 12px; padding: 12px 14px; }
.cookie-toggle { appearance: none; width: 44px; height: 26px; border-radius: 20px; background: #c7d3e3; position: relative; transition: background .2s ease; }
.cookie-toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cookie-toggle:checked { background: var(--color-secondary); }
.cookie-toggle:checked::after { transform: translateX(18px); }
.cookie-modal .actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ========== Responsiveness ========== */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
}

@media (min-width: 768px) {
  /* Show desktop nav, hide mobile toggle */
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 42px; }
  .subheadline { font-size: 20px; }
  
  .text-image-section { flex-direction: row; }
  .content-grid { justify-content: space-between; }
}

@media (min-width: 992px) {
  header .container { padding: 16px 20px; }
  .footer-columns { gap: 30px; }
  .text-section { padding: 22px; }
  .hero h1 { font-size: 48px; }
}

/* ========== Additional Components & States ========== */
/* Cards (generic) */
.card { background: #fff; border-radius: var(--radius-m); border: 2px solid var(--color-accent); padding: 16px; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

/* Content grid helper spacing */
.content-grid > * { flex: 1 1 280px; }

/* Alignment rules (explicit) */
.text-image-section { align-items: center; }
.card-container, .feature-grid, .service-cards, .content-grid { gap: 24px; }

/* Lists inside content for clarity */
main ul, main ol { display: flex; flex-direction: column; gap: 6px; }

/* Badges and notes */
.quality-note { background: var(--color-accent); padding: 10px 12px; border-radius: 10px; display: inline-flex; }

/* Emphasis strong */
strong { font-weight: 800; }

/* ========== Accessibility & Micro-interactions ========== */
a, .btn, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease; }

/* ========== Ensuring spacing between all content blocks ========== */
main .content-wrapper > * + * { margin-top: 6px; }
section + section { margin-top: 0; }

/* ========== High-contrast blocks where needed ========== */
.highlight { background: var(--color-primary); color: var(--color-light); padding: 16px; border-radius: var(--radius-m); }

/* ========== Prevent overlap with sticky header & cookie banner spacing helper ========== */
body.has-cookie-banner { padding-bottom: 90px; }

/* ========== Specific minor tweaks for lists with stats ========== */
.content-wrapper ul li { color: var(--color-primary); }

/* ========== ARIA current for all navs ========== */
nav a[aria-current="page"] { color: var(--color-secondary); }

/* ========== End of file ========== */