/* =====================================================
   Kelle & Kante — Minimalist Flexbox Design System
   Author: Senior CSS Developer & UI Designer
   Notes: Mobile-first, ONLY Flexbox layouts (no grid/columns)
   ===================================================== */

/* -----------------------------
   Reset & Normalize (lean)
------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body { line-height: 1.6; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
ul, ol { margin: 0 0 16px 24px; padding: 0; }
li { margin: 6px 0; }
blockquote { margin: 0; }
*:focus-visible { outline: 2px solid #C86A2C; outline-offset: 2px; }

/* -----------------------------
   Theme Tokens
------------------------------ */
:root {
  --color-primary: #2F3A3F; /* slate */
  --color-secondary: #C86A2C; /* earthy orange */
  --color-accent: #F4F1EA; /* sand */
  --color-muted: #E9ECEE; /* light grey border */
  --color-bg: #FFFFFF;
  --color-text: #2F3A3F;
  --shadow-soft: 0 6px 20px rgba(0,0,0,0.06);
  --shadow-tiny: 0 2px 8px rgba(0,0,0,0.05);
  --radius-s: 8px;
  --radius-m: 12px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
  --maxw-content: 1100px;
  --transition-fast: 160ms ease;
  --transition-med: 260ms ease;
}

/* -----------------------------
   Base Typography
------------------------------ */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body */
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: "Trebuchet MS", Tahoma, sans-serif; /* brand display */
  margin: 0 0 12px 0;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p { margin: 0 0 16px 0; }

small { font-size: 14px; color: #52636B; }

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { text-decoration: underline; }
a.btn-primary:hover, a.btn-secondary:hover { text-decoration: none; }

/* -----------------------------
   Layout Primitives (Flex-only)
------------------------------ */
.container {
  width: 100%;
  padding: 0 20px;
  margin: 0 auto;
  display: flex; /* flex-only requirement */
  justify-content: center;
}

.content-wrapper {
  width: 100%;
  max-width: var(--maxw-content);
  display: flex; /* flex-only requirement */
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-20);
}

/* Default section spacing (element) */
section { padding: 40px 0; margin-bottom: 60px; }

/* Mandatory spacing pattern class (as required) */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Utility content grids (flex-only) */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.content-grid > * { flex: 1 1 280px; min-width: 240px; }

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

/* -----------------------------
   Header & Navigation
------------------------------ */
header {
  position: relative;
  z-index: 50;
  display: flex; /* flex-only */
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-muted);
  background: var(--color-bg);
}

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

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { padding: 8px 10px; border-radius: 6px; }
.main-nav a:hover { background: var(--color-accent); }

/* Mobile menu toggle */
.mobile-menu-toggle {
  font-size: 22px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--color-primary);
  border: 1px solid var(--color-muted);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-menu-toggle:hover { background: var(--color-accent); box-shadow: var(--shadow-tiny); }

/* Mobile full-screen menu (slides in) */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  display: flex; /* flex-only */
  flex-direction: column;
  padding: 18px;
  gap: 10px;
  transform: translateX(100%);
  transition: transform var(--transition-med);
  z-index: 1000;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  font-size: 22px;
  padding: 8px 10px;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  color: var(--color-primary);
}

.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-muted);
  background: #fff;
  color: var(--color-primary);
}
.mobile-nav a:hover { background: var(--color-accent); }

/* Optional body lock when menu open */
body.nav-open { overflow: hidden; }

/* -----------------------------
   Buttons
------------------------------ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  box-shadow: var(--shadow-tiny);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  font-weight: 600;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-accent); }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* -----------------------------
   Lists, Text blocks & Details
------------------------------ */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section p, .text-section ul, .text-section ol { max-width: 70ch; }

address { font-style: normal; line-height: 1.7; }
address a { color: var(--color-primary); text-decoration: underline; }

blockquote { color: var(--color-primary); font-size: 16px; }
cite { color: #52636B; font-style: normal; font-size: 14px; }

dl { display: flex; flex-direction: column; gap: 10px; }
dt { font-weight: 700; }
dd { margin: 0 0 8px 0; color: #465358; }

/* Benefits & trust lists */
.benefit-badges { display: flex; flex-wrap: wrap; gap: 10px; color: #59656A; align-items: center; }
.benefit-badges span { background: var(--color-accent); padding: 6px 10px; border-radius: 999px; }
.trust-highlights ul { display: flex; flex-wrap: wrap; gap: 10px 16px; list-style: none; margin-left: 0; }
.trust-highlights li { background: #fff; border: 1px solid var(--color-muted); padding: 8px 12px; border-radius: 999px; }

/* -----------------------------
   Card Patterns (Flex-only)
------------------------------ */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid var(--color-muted); border-radius: var(--radius-m); padding: 18px; box-shadow: var(--shadow-tiny); display: flex; flex-direction: column; gap: 12px; }
.card:hover { box-shadow: var(--shadow-soft); }

.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Testimonials — ensure strong contrast (dark text on light bg) */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--color-muted); background: var(--color-accent); border-radius: var(--radius-m); box-shadow: var(--shadow-tiny); flex-wrap: wrap; }
.testimonial-card blockquote { flex: 1 1 300px; }
.testimonial-card cite { flex: 0 0 auto; }

/* -----------------------------
   Section Variants
------------------------------ */
.section-cta { background: var(--color-accent); border-top: 1px solid var(--color-muted); border-bottom: 1px solid var(--color-muted); }
.section-cta .content-wrapper { align-items: flex-start; }

/* Brand note */
.brand-note { color: #59656A; font-weight: 600; }

/* -----------------------------
   Footer
------------------------------ */
footer {
  border-top: 1px solid var(--color-muted);
  padding: 24px 0;
  background: #FAFAFA;
}
footer .content-wrapper { gap: 16px; }
.footer-nav, .legal-nav, .contact-snippet { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.footer-nav a, .legal-nav a { padding: 6px 8px; border-radius: 6px; }
.footer-nav a:hover, .legal-nav a:hover { background: var(--color-accent); }
.contact-snippet span { color: #556369; }

/* -----------------------------
   Cookie Consent Banner & Modal
------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--color-muted);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.06);
  padding: 16px 20px;
  display: flex; /* flex-only */
  flex-direction: column;
  gap: 12px;
  z-index: 1200;
  transform: translateY(0);
  transition: transform var(--transition-med);
}
.cookie-banner.is-hidden { transform: translateY(110%); }
.cookie-row { display: flex; flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-primary { background: var(--color-secondary); border-color: var(--color-secondary); }
.cookie-actions .btn-primary:hover { filter: brightness(0.95); }
.cookie-actions .btn-secondary { border-color: var(--color-primary); }

/* Cookie modal overlay */
.cookie-modal {
  position: fixed; inset: 0; 
  background: rgba(0,0,0,0.45);
  display: flex; /* flex-only */
  align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition-med), visibility var(--transition-med);
  z-index: 1300;
}
.cookie-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.cookie-modal-content {
  background: #FFFFFF;
  width: 92%; max-width: 720px;
  border-radius: var(--radius-m);
  border: 1px solid var(--color-muted);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--color-muted); border-radius: var(--radius-s); }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle Switch */
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #D0D6DA; transition: background var(--transition-fast); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-tiny); transition: transform var(--transition-fast); }
.switch.is-on { background: var(--color-secondary); }
.switch.is-on::after { transform: translateX(20px); }

/* -----------------------------
   Media Queries (Responsive)
------------------------------ */
@media (min-width: 520px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
}

@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }

  /* Header nav switches */
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Cookie banner row layout */
  .cookie-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }

  .section-cta .content-wrapper { align-items: center; text-align: center; }
}

/* -----------------------------
   Additional Flex Utilities
------------------------------ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }

/* -----------------------------
   Forms (generic – if added later)
------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--color-muted);
  border-radius: 8px;
  background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* -----------------------------
   Page-specific light touches
------------------------------ */
/* Hero spacing refinement */
main > section:first-of-type .content-wrapper { padding-top: 8px; }

/* Pricing badges/lists */
.content-wrapper ul { padding-left: 18px; }
.content-wrapper ol { padding-left: 18px; }

/* Footer groups alignment */
footer .footer-nav, footer .legal-nav { justify-content: flex-start; }

/* -----------------------------
   Accessibility and Motion Prefs
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* -----------------------------
   Strict Flexbox Compliance Helpers
------------------------------ */
/* Ensure no grid/columns anywhere (not used) */
/* All layout blocks already use display:flex when needed */

/* -----------------------------
   Extra: Optional cards/feature layouts if used later
------------------------------ */
.card-content { display: flex; flex-direction: column; gap: 12px; justify-content: center; }

/* Make sure no element overlaps – maintain breathing space */
section + section { margin-top: 0; }

/* -----------------------------
   Link styles inside nav buttons
------------------------------ */
nav .btn-primary, nav .btn-secondary { padding: 10px 14px; }

/* -----------------------------
   Ensure testimonial readability
------------------------------ */
.testimonial-card, .testimonial-card blockquote, .testimonial-card cite { color: var(--color-primary); }

/* -----------------------------
   End of file
------------------------------ */
