/* =====================================================================
   AiryFall Engelska Online – style.css
   Design style: creative_artistic (vibrant colors, creative layouts, artistic details)
   Brand: colors + fonts from guidelines; Mobile-first; Flexbox-only
   ===================================================================== */

/* ============================
   RESET & NORMALIZE (Light)
   ============================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
:focus { outline: 2px solid #0E7666; outline-offset: 2px; }

/* ============================
   THEME VARIABLES (with fallbacks)
   ============================ */
:root {
  --color-primary: #1E3A8A; /* brand blue */
  --color-secondary: #0E7666; /* brand teal */
  --color-accent: #F5F7FA; /* brand accent light */
  --color-ink: #0B1220; /* dark text */
  --color-ink-soft: #334155; /* soft text */
  --color-white: #FFFFFF;
  --color-pop: #E11D48; /* artistic pop (raspberry) used sparingly for accents */
  --color-sun: #F59E0B; /* warm highlight accent */

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 6px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 6px 24px rgba(2, 8, 23, 0.12);
  --shadow-lg: 0 12px 40px rgba(2, 8, 23, 0.18);

  --container-max: 1120px;
}

/* ============================
   GLOBAL TYPOGRAPHY
   ============================ */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body */
  color: var(--color-ink);
  background: var(--color-accent);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Lucida Grande", Arial, sans-serif; /* brand display */
  color: var(--color-primary);
}

h1 { font-size: 34px; line-height: 1.15; letter-spacing: 0.2px; }
h2 { font-size: 26px; margin-bottom: 16px; letter-spacing: 0.2px; }
h3 { font-size: 20px; margin-top: 8px; letter-spacing: 0.1px; color: var(--color-secondary); }

p, li { font-size: 16px; color: var(--color-ink); }
.small { font-size: 14px; color: var(--color-ink-soft); }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  p, li { font-size: 17px; }
}

/* ============================
   LINKS & INTERACTIONS
   ============================ */
a:hover { color: var(--color-secondary); }

/* ============================
   LAYOUT PRIMITIVES (Flexbox-only)
   ============================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;           /* FLEX ONLY */
  flex-direction: column;  /* mobile-first */
  gap: 20px;               /* spacing between children */
}

.content-wrapper {
  display: flex;           /* FLEX ONLY */
  flex-direction: column;
  gap: 20px;
}

section { padding: 40px 0; }

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

/* Responsive rule requested */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* ============================
   HEADER & NAVIGATION
   ============================ */
header {
  background: var(--color-white);
  border-bottom: 4px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  min-height: 68px;
  display: flex;              /* FLEX ONLY */
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.main-nav { display: none; gap: 18px; align-items: center; }
.main-nav a {
  color: var(--color-primary);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.main-nav a:hover { background: var(--color-accent); color: var(--color-secondary); transform: translateY(-1px); }

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

/* MOBILE MENU */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #25459e; }

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;       /* right-side drawer */
  width: 100%;             /* full overlay */
  background: rgba(15, 23, 42, 0.45);
  display: flex;           /* FLEX ONLY */
  align-items: stretch;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1200;
}
/* inner panel */
.mobile-menu > .mobile-nav,
.mobile-menu > div.mobile-nav { /* safety */
  background: var(--color-white);
  width: 84%; max-width: 340px; height: 100%;
  padding: 24px;
  display: flex;           /* FLEX ONLY */
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open,
.mobile-menu.open,
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-ink);
  margin-bottom: 8px;
}
.mobile-nav a {
  padding: 14px 12px;
  border-radius: 12px;
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-accent);
  transition: background 0.2s ease, transform 0.2s ease;
}
.mobile-nav a:hover { background: #E8EEF6; transform: translateX(3px); }

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

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}
.btn.primary { background: var(--color-primary); color: var(--color-white); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #25459e; }

.btn.secondary { background: var(--color-white); color: var(--color-secondary); border-color: var(--color-secondary); }
.btn.secondary:hover { background: var(--color-secondary); color: var(--color-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* CTA rows */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ============================
   HERO SECTION (creative_artistic embellishments)
   ============================ */
.hero {
  background: var(--color-accent);
  position: relative;
}
/* decorative, purely aesthetic */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 120px; height: 120px;
  border-radius: 24px;
  opacity: 0.15;
}
.hero::before { background: var(--color-secondary); top: 18px; right: 12px; transform: rotate(8deg); }
.hero::after { background: var(--color-pop); bottom: 12px; left: 10px; transform: rotate(-6deg); }

.hero .container { position: relative; z-index: 1; }
.hero h1 {
  display: inline-flex; align-items: center;
  padding-bottom: 8px;
  border-bottom: 6px solid var(--color-sun); /* artistic underline */
}
.subheadline { color: var(--color-ink-soft); max-width: 60ch; }

/* Tag-like list chips in hero */
.hero ul { display: flex; flex-wrap: wrap; gap: 10px; }
.hero li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid #E2E8F0;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero .cta-row { margin-top: 4px; }

/* ============================
   GENERAL TEXT SECTIONS
   ============================ */
.text-section {
  display: flex;            /* FLEX ONLY */
  flex-direction: column;
  gap: 14px;
  background: var(--color-white);
  border: 1px solid #E6EAF0;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.text-section ul { display: flex; flex-direction: column; gap: 10px; }
.text-section li { display: flex; align-items: center; gap: 10px; }
.text-section img { width: 18px; height: 18px; }

/* ============================
   TRUST & KEY STATS (index)
   ============================ */
.trust, .key-stats { display: flex; flex-direction: column; gap: 12px; }
.trust ul, .key-stats ul { display: flex; flex-wrap: wrap; gap: 10px; }
.trust li, .key-stats li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; background: var(--color-white);
  border: 1px dashed var(--color-secondary);
}

/* ============================
   TESTIMONIALS (readable: dark text on light bg)
   ============================ */
.testimonial-card {
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: var(--radius-md);
  border: 2px solid #E6EAF0;
  box-shadow: var(--shadow-sm);
  position: relative;
}
/* creative bookmark edge */
.testimonial-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--color-pop); border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md);
}
.testimonial-card p strong { color: var(--color-primary); }

/* ============================
   FOOTER
   ============================ */
footer { background: var(--color-primary); color: var(--color-white); margin-top: 20px; }
footer a { color: #E3ECFF; }
footer a:hover { color: #FFFFFF; text-decoration: underline; }
footer .text-section { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #F8FAFF; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px; }
footer .social { display: flex; gap: 10px; }
footer .social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); border-radius: 10px; }

/* ============================
   CARDS & UTILITIES (generic)
   ============================ */
.card {
  background: var(--color-white);
  border: 1px solid #E6EAF0;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.content-grid { align-items: stretch; }
.card-container > .card { flex: 1 1 280px; }

/* ============================
   LISTS WITH ICONS
   ============================ */
li > img[alt] { flex: 0 0 auto; }

/* ============================
   RESPONSIVE TWEAKS FOR DESKTOP
   ============================ */
@media (min-width: 768px) {
  .content-wrapper { flex-direction: column; gap: 24px; }
}

@media (min-width: 992px) {
  .hero .container { flex-direction: row; align-items: center; }
}

/* ============================
   ACCESSIBILITY & STATES
   ============================ */
:focus-visible { outline: 3px solid var(--color-sun); outline-offset: 2px; }

/* ============================
   COOKIE CONSENT BANNER & MODAL
   ============================ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -8px 28px rgba(2, 8, 23, 0.12);
  z-index: 1500;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .container {
  display: flex;            /* FLEX ONLY */
  flex-direction: column; gap: 14px; padding: 16px 20px;
}
.cookie-banner p { color: var(--color-ink); }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { padding: 10px 14px; border-radius: 12px; }
.cookie-buttons .btn.accept { background: var(--color-secondary); color: var(--color-white); border-color: var(--color-secondary); }
.cookie-buttons .btn.reject { background: var(--color-white); color: var(--color-pop); border-color: var(--color-pop); }
.cookie-buttons .btn.settings { background: var(--color-accent); color: var(--color-ink); border-color: #CBD5E1; }
.cookie-buttons .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,0.55);
  display: none;            /* hidden by default */
  align-items: center; justify-content: center; /* FLEX ONLY */
  z-index: 1600;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal .cookie-modal-content {
  width: 94%; max-width: 620px;
  background: var(--color-white);
  border-radius: 18px;
  border: 1px solid #E6EAF0;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px; /* FLEX ONLY */
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: var(--color-accent); }
.cookie-category .label { font-weight: 700; color: var(--color-primary); }
.cookie-toggle { width: 46px; height: 28px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background 0.2s ease; }
.cookie-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--color-white); box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.cookie-toggle.is-on { background: var(--color-secondary); }
.cookie-toggle.is-on::after { transform: translateX(18px); }

/* ============================
   FORMS (basic styling if ever used)
   ============================ */
input, select, textarea {
  width: 100%; border: 1px solid #CBD5E1; border-radius: 12px; padding: 12px; font: inherit; background: var(--color-white);
}
label { font-weight: 700; color: var(--color-primary); }

/* ============================
   ARTISTIC MICRO-ACCENTS
   ============================ */
.emphasis { background: linear-gradient(transparent 60%, rgba(245, 158, 11, 0.35) 60%); }
.highlight { background: linear-gradient(transparent 62%, rgba(14, 118, 102, 0.25) 62%); }
/* Note: used for textual highlights only; not layout */

/* ============================
   PAGE-SPECIFIC NUANCES
   ============================ */
/* Give main content comfortable breathing room between stacked sections */
main > section + section { margin-top: 10px; }

/* Stronger section headers for artistic hierarchy */
.content-wrapper > h2 {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  border-bottom: 4px solid var(--color-secondary);
}

/* Inline footer nav separators already present in HTML – keep spacing readable */
footer nav a { padding: 6px 4px; border-radius: 8px; }

/* ============================
   DESKTOP LAYOUT ENHANCEMENTS
   ============================ */
@media (min-width: 992px) {
  .text-section { padding: 28px; }
  .hero .container { min-height: 420px; }
}

/* ============================
   ENSURE ADEQUATE SPACING BETWEEN ALL CARDS/SECTIONS
   ============================ */
section .text-section + .text-section,
section .testimonial-card + .testimonial-card,
section .text-section + .testimonial-card,
section .testimonial-card + .text-section {
  margin-top: 20px; /* ensure 20px+ gap */
}

/* ============================
   PRINT BASICS (optional)
   ============================ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}

/* ============================
   COMPLIANCE GUARDRAILS
   - Flexbox only layouts in this file
   - No grid / columns used
   ============================ */
/* End of style.css */
