/* =====================================
   Pretty Arc Academie — style.css
   Vibrant + Energetic, Flexbox-only, Mobile-first
   ===================================== */

/* -------------------------
   1) RESET & BASELINE
-------------------------- */
@charset "utf-8";
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2rem; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus { outline: 2px solid #00E0FF; outline-offset: 2px; }

/* -------------------------
   2) THEME TOKENS
-------------------------- */
:root {
  --c-primary: #0B3D5D;  /* deep energetic blue */
  --c-secondary: #E69A2D;/* warm orange */
  --c-accent: #F7F4EE;   /* soft light */
  --c-ink: #0E1B2A;      /* base text */
  --c-muted: #6B7C93;    /* muted text */
  --c-bg: #FFFFFF;       /* base bg */
  --c-neon: #00E0FF;     /* electric cyan */
  --c-pink: #FF3D81;     /* energetic pink */
  --c-lime: #B5FF3B;     /* pop lime */

  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;

  --shadow-s: 0 2px 10px rgba(11,61,93,0.08);
  --shadow-m: 0 10px 24px rgba(11,61,93,0.16);
  --shadow-l: 0 16px 40px rgba(11,61,93,0.22);

  --fw-bold: 700;
  --fw-semi: 600;
  --fw-med: 500;
}

/* -------------------------
   3) TYPOGRAPHY
-------------------------- */
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: Montserrat, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; font-weight: var(--fw-bold); line-height: 1.2; }

h1 { font-size: 32px; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 20px; }
.lead { font-size: 18px; color: var(--c-ink); }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  .lead { font-size: 20px; }
}

/* High-energy heading accent */
h1, h2 { position: relative; }
h1::after, h2::after {
  content: "";
  display: block;
  height: 4px;
  width: 72px;
  background: var(--c-secondary);
  margin-top: 10px;
}

/* -------------------------
   4) LAYOUT PRIMITIVES (FLEX-ONLY)
-------------------------- */
.container {
  display: flex;           /* Flex-only */
  justify-content: center; /* center inner wrapper */
  width: 100%;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;           /* Flex-only */
  flex-direction: column;  /* Mobile-first */
  gap: 24px;               /* ensures ≥20px spacing between items */
  width: 100%;
  max-width: 1200px;
  padding: 28px 0;
}

section { margin-bottom: 60px; padding: 40px 0; background: transparent; }
section:first-of-type { background: var(--c-accent); }

/* MANDATORY spacing classes */
.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; }

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

/* -------------------------
   5) HEADER & NAV
-------------------------- */
header { background: var(--c-primary); color: #FFFFFF; position: sticky; top: 0; z-index: 999; box-shadow: var(--shadow-s); }
header .container { padding: 0 16px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }

.logo img { height: 34px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: #fff !important; padding: 8px 10px; border-radius: 8px; transition: background-color .25s ease, color .25s ease, transform .2s ease; font-weight: var(--fw-med); }
.main-nav a:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

.header-ctas { display: none; align-items: center; gap: 10px; }
.header-ctas a { background: var(--c-secondary); color: var(--c-ink); padding: 10px 14px; border-radius: 12px; font-weight: var(--fw-semi); box-shadow: 0 6px 14px rgba(230,154,45,0.35); transition: transform .2s ease, box-shadow .25s ease; }
.header-ctas a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(230,154,45,0.45); }
.header-ctas a:nth-child(2) { background: #FFFFFF; color: var(--c-primary); box-shadow: 0 6px 14px rgba(255,255,255,0.35); }
.header-ctas a:nth-child(3) { background: var(--c-neon); color: #092433; box-shadow: 0 6px 14px rgba(0,224,255,0.4); }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  font-size: 22px; line-height: 1;
  color: #fff; background: rgba(255,255,255,0.1);
  border: 0; border-radius: 10px;
  transition: background-color .25s ease, transform .2s ease;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px;
  background: rgba(14,27,42,0.6);
  transform: translateX(100%);
  transition: transform .35s ease;
  pointer-events: none;
}
.mobile-menu.open { transform: translateX(0); pointer-events: auto; }
.mobile-menu-close {
  align-self: flex-end;
  margin: 14px 14px 0 0;
  width: 44px; height: 44px; font-size: 20px;
  color: #fff; background: rgba(255,255,255,0.15);
  border: 0; border-radius: 10px; cursor: pointer;
  transition: background-color .25s ease, transform .2s ease;
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }
.mobile-nav {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--c-primary);
  color: #fff;
  padding: 20px; border-top-left-radius: 16px; border-top-right-radius: 16px;
  margin-top: auto; /* start from bottom for dynamic feel */
}
.mobile-nav a {
  padding: 14px 12px; border-radius: 12px; font-weight: var(--fw-semi);
  background: rgba(255,255,255,0.06);
  transition: background-color .25s ease, transform .2s ease;
  color: white;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.14); transform: translateX(4px); }

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

/* -------------------------
   6) GLOBAL ELEMENTS & UTILITIES
-------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--c-muted); }
.badges span { background: #fff; color: var(--c-primary); padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-s); font-weight: var(--fw-med); }

ul, ol { display: flex; flex-direction: column; gap: 10px; }
li { font-size: 16px; }
li img { width: 18px; height: 18px; margin-right: 8px; }

/* Icon lists: tighten layout */
ul li, ol li { display: flex; align-items: center; gap: 10px; }

/* Trust strip */
.trust { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius-m); background: #fff; box-shadow: var(--shadow-s); }
.trust strong { color: var(--c-primary); }

/* CTA buttons */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-group a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: 14px; font-weight: var(--fw-bold);
  background: var(--c-secondary); color: var(--c-ink);
  box-shadow: 0 10px 24px rgba(230,154,45,0.35);
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.cta-group a:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(230,154,45,0.45); }
.cta-group a:nth-child(2) { background: var(--c-neon); color: #062130; box-shadow: 0 10px 24px rgba(0,224,255,0.4); }
.cta-group a:nth-child(3) { background: #111827; color: #fff; box-shadow: 0 10px 24px rgba(17,24,39,0.35); }

/* Text blocks as energetic cards */
.text-section {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border-radius: var(--radius-l);
  padding: 18px 18px 18px 18px;
  box-shadow: var(--shadow-s);
}
.text-section::before { /* decorative energy bar */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-top-left-radius: var(--radius-l); border-bottom-left-radius: var(--radius-l); background: var(--c-pink);
}

/* Cards and testimonials - light background for readability */
.testimonial-card {
  background: #FFFFFF; color: var(--c-ink);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  border-left: 6px solid var(--c-neon);
}
.testimonial-card p strong { color: var(--c-primary); }

/* Content cards pattern */
.card { background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-s); padding: 18px; }

/* Links */
a { color: var(--c-primary); font-weight: var(--fw-med); }
a:hover { color: #072C43; }

/* -------------------------
   7) PAGE-SPECIFIC ACCENTS
-------------------------- */
/* Hero headings on first sections */
main > section:first-of-type h1 { color: var(--c-primary); }
main > section:first-of-type .lead { color: #1B2A3A; }

/* Index badges edit */
.badges span:nth-child(1) { background: var(--c-neon); color: #062130; }
.badges span:nth-child(2) { background: var(--c-secondary); color: #231C12; }
.badges span:nth-child(3) { background: var(--c-pink); color: #fff; }

/* Pricing sections: emphasize plans (using text-section blocks already) */

/* -------------------------
   8) FOOTER
-------------------------- */
footer { background: var(--c-primary); color: #E6EEF5; }
footer .content-wrapper { gap: 24px; padding: 28px 0; }
footer img { height: 30px; width: auto; filter: brightness(1.1) contrast(1.1); }
footer nav a { color: #E6EEF5 !important; opacity: .9; }
footer nav a:hover { opacity: 1; }
footer .cta-group a { background: #fff; color: var(--c-primary) !important; box-shadow: 0 10px 24px rgba(255,255,255,0.25); }
footer .text-section {
background-color: transparent !important;}
footer a {
color: white !important;}

/* -------------------------
   9) RESPONSIVE BEHAVIOR
-------------------------- */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .content-wrapper { gap: 28px; }
}

@media (min-width: 1024px) {
  .content-wrapper { flex-direction: column; }
  /* Footer multi-column look via flex-wrap */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; }
  footer .content-wrapper > .text-section { flex: 1 1 260px; }
}

/* -------------------------
   10) ACCESSIBILITY & UTILITIES
-------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--c-muted); }

/* -------------------------
   11) COOKIE CONSENT (banner + modal)
-------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 16px; background: #0E1B2A; color: #FFFFFF; box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1200px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: var(--fw-bold); border: none; cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease; }
.cookie-actions .btn-accept { background: var(--c-secondary); color: #231C12; box-shadow: 0 10px 24px rgba(230,154,45,0.35); }
.cookie-actions .btn-accept:hover { transform: translateY(-2px); }
.cookie-actions .btn-reject { background: #FFFFFF; color: var(--c-primary); box-shadow: var(--shadow-s); }
.cookie-actions .btn-settings { background: var(--c-neon); color: #062130; box-shadow: 0 10px 24px rgba(0,224,255,0.4); }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 2100;
  display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(14,27,42,0.7);
}
.cookie-modal.show { display: flex; }
.cookie-modal .modal-content {
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 680px;
  background: #FFFFFF; color: var(--c-ink);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow-l);
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .close { border: 0; background: #F2F5F8; color: var(--c-ink); border-radius: 10px; padding: 8px 12px; cursor: pointer; }

/* Cookie toggles (checkbox look) */
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #E6EAF0; border-radius: 12px; }
.cookie-toggle .switch { position: relative; width: 44px; height: 26px; background: #D1D6DC; border-radius: 999px; transition: background-color .25s ease; }
.cookie-toggle input { position: absolute; opacity: 0; }
.cookie-toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-s); transition: transform .25s ease; }
.cookie-toggle input:checked + .switch { background: var(--c-primary); }
.cookie-toggle input:checked + .switch::after { transform: translateX(18px); }

/* -------------------------
   12) FORMS (generic)
-------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #E3E7EE; background: #fff; color: var(--c-ink);
}
input:focus, textarea:focus { border-color: var(--c-neon); box-shadow: 0 0 0 3px rgba(0,224,255,0.2); }

/* -------------------------
   13) TABLES (if any)
-------------------------- */
.table { display: flex; flex-direction: column; gap: 10px; }
.table-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 10px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-s); }

/* -------------------------
   14) FLEX-ONLY ENFORCEMENT HELPERS
-------------------------- */
/* Ensure common wrappers are flex */
nav { display: flex; flex-wrap: wrap; gap: 10px; }
main { display: flex; flex-direction: column; gap: 0; }
header, footer, section { display: block; }

/* -------------------------
   15) HIGH-ENERGY MICRO-INTERACTIONS
-------------------------- */
/* Button pulse on focus-visible */
.cta-group a:focus-visible, .header-ctas a:focus-visible, .cookie-actions .btn:focus-visible { box-shadow: 0 0 0 4px rgba(0,224,255,0.35); }

/* Lift on hover for cards */
.text-section:hover, .card:hover, .testimonial-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); transition: transform .18s ease, box-shadow .25s ease; }

/* -------------------------
   16) PRINT BASIC
-------------------------- */
@media print {
  .mobile-menu-toggle, .mobile-menu, .header-ctas, .cta-group, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
