/* ================================
   Quanta Fuse – style.css
   Playful Dynamic • Flexbox-Only • Responsive • Cookie Banner & Mobile Nav
   ================================ */

/* ===== CSS RESET & NORMALIZE ====== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F4F7FA;
  color: #233E6E;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== ROOT VARIABLES & COLORS ===== */
:root {
  --primary: #233E6E;
  --secondary: #27B8A0;
  --accent: #F4F7FA;
  --warning: #FFD14E;
  --danger: #FF5E70;
  --accent2: #FFBB1C;
  --hover: #1d315a;
  --light: #fff;
  --shadow: 0 6px 28px 0 rgba(44, 188, 148, 0.11);
  --radius: 16px;
}

/* ============ TYPOGRAPHY ============= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  text-shadow: 3px 5px 0 var(--accent2), 0 1px 8px rgba(39, 184, 160, 0.12);
  line-height: 1.16;
}
h2 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 16px;
  text-shadow: 1px 3px 0 #CEE7E1;
}
h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}
h4 {
  font-size: 1.17rem;
  color: var(--primary);
}
p, li, blockquote {
  font-size: 1rem;
  margin-bottom: 8px;
  font-family: 'Roboto', Arial, sans-serif;
}
blockquote {
  background: var(--accent);
  border-left: 6px solid var(--secondary);
  padding: 16px 24px;
  font-style: italic;
  border-radius: var(--radius);
  color: var(--primary);
  margin: 0 0 16px 0;
  box-shadow: var(--shadow);
}
blockquote span {
  display: block;
  font-weight: bold;
  color: var(--secondary);
  margin-top: 12px;
}
strong {
  color: var(--primary);
  font-weight: 700;
}

/* =========== LAYOUT SPACING ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  background: var(--light);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  z-index: 1;
  transition: box-shadow 0.2s, transform 0.25s;
}
.card:hover {
  box-shadow: 0 10px 40px rgba(39,184,160,0.21);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  margin-bottom: 24px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px 0 rgba(35,62,110,0.09);
  border: 2px dashed var(--secondary);
  max-width: 420px;
  min-width: 0;
  transition: box-shadow 0.26s, border-color 0.22s;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #19284a;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card:hover {
  border-color: var(--accent2);
  box-shadow: 0 6px 36px rgba(255,190,28,.12);
  animation: bounce-fun 0.4s;
}
@keyframes bounce-fun {
  0% { transform: scale(1); }
  25% { transform: scale(1.05) rotate(2deg); }
  50% { transform: scale(1.02) rotate(-1deg); }
  100% { transform: scale(1); }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  width: 100%;
  background: var(--light);
  box-shadow: 0 3px 16px 0 rgba(39,184,160,0.06);
  position: sticky;
  top: 0;
  z-index: 98;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  font-size: 1.28rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: bolder;
  letter-spacing: -1.5px;
  color: var(--primary);
  transition: transform 0.18s;
}
.logo:hover {
  transform: scale(1.055) rotate(-2deg);
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
nav ul li {
  list-style: none;
}
nav ul li a {
  color: var(--primary);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.21s, color 0.205s;
  font-size: 1rem;
  background: none;
}
nav ul li a:hover,
nav ul li a:focus {
  background: var(--secondary);
  color: var(--light);
  outline: none;
}
.cta-button {
  display: inline-block;
  background: var(--secondary);
  color: var(--light);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  border-radius: 60px;
  padding: 12px 34px;
  box-shadow: var(--shadow);
  transition: background 0.21s, transform 0.18s, box-shadow 0.19s;
  margin-left: 12px;
  position: relative;
  outline: none;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--primary);
  color: var(--light);
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 10px 32px rgba(44, 188, 148, 0.15);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(95deg, #F4F7FA 60%, #e3ffe6 100%);
  padding: 56px 0 48px 0;
  margin-bottom: 34px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.9rem;
  margin-bottom: 14px;
  animation: hero-pop 0.92s cubic-bezier(.42,1.6,.37,.68);
}
@keyframes hero-pop {
  0% { opacity:0; transform: translateY(36px) scale(0.95); }
  100% { opacity:1; transform: none }
}
.hero p {
  font-size: 1.21rem;
  color: #233E6E;
  margin-bottom: 18px;
}


/* =========== CARD & FEATURE ICONS ============= */
ul li img, .content-wrapper img[src$='.svg'] {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 13px;
  border-radius: 9px;
  background: var(--accent2);
  box-shadow: 0 6px 24px 0 rgba(39,184,160,0.07);
}

/* ============== MAIN LISTS / TABLES ============== */
ul {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section ul {
  margin-bottom: 0;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 20px;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
thead {
  background: var(--secondary);
}
th, td {
  padding: 16px 10px;
  text-align: left;
}
th {
  color: var(--light);
  font-weight: bold;
  font-size: 1.04rem;
  letter-spacing: 0.025em;
  border-top-left-radius: var(--radius);
}
tbody tr:nth-child(odd) {
  background: #F8FBFC;
}
tbody tr:nth-child(even) {
  background: #ECFAF7;
}
td {
  color: var(--primary);
}
tr {
  border-bottom: 1px solid #e2f4ea;
}
table tr:last-child td {
  border-bottom: none;
}

/* ============== FOOTER STYLES =============== */
footer {
  background: var(--primary);
  color: var(--light);
  padding: 32px 0 24px 0;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 44px;
  align-items: flex-start;
  justify-content: space-between;
}
footer ul {
  flex-direction: column;
  gap: 10px;
}
footer ul li a {
  color: var(--light);
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  padding: 6px 2px;
  border-radius: 6px;
  transition: background 0.14s, color 0.13s;
}
footer ul li a:hover {
  background: var(--accent2);
  color: var(--primary);
}
.brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.96rem;
}
.brand-info img {
  width: 60px;
  height: 60px;
  margin-bottom: 5px;
}

/* ============= MOBILE NAVIGATION ================= */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--light);
  font-size: 2.1rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 110;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,62,110,0.96);
  z-index: 120;
  transform: translateX(-120vw);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.4rem;
  color: var(--light);
  align-self: flex-end;
  margin: 22px 26px 10px 0;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  padding: 34px 32px 12px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  color: var(--light);
  background: none;
  border-radius: 16px;
  padding: 12px 12px 10px 12px;
  width: 100%;
  transition: background 0.17s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 1120px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  nav ul {
    gap: 12px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.1rem;
  }
}
@media (max-width: 820px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  nav ul, nav .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .section {
    padding: 22px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .footer .content-wrapper {
    gap: 14px;
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px !important;
    align-items: stretch;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 14px 9px;
  }
  .card-container {
    gap: 13px;
  }
}

/* ============== BUTTONS & INTERACTIONS =============== */
button, .cta-button, .mobile-menu-close, .mobile-menu-toggle {
  transition: background 0.15s, color 0.14s, box-shadow 0.18s, transform 0.18s;
  outline: none;
}
button:focus, .cta-button:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  box-shadow: 0 0 0 3px var(--warning), 0 6px 28px 0 rgba(44, 188, 148, 0.09);
}
a:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

/* ============== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--light);
  color: var(--primary);
  box-shadow: 0 -2px 18px rgba(35,62,110,0.07);
  padding: 14px 10vw 14px 5vw;
  z-index: 1500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
  border-top: 3px solid var(--secondary);
  animation: cookie-slideup 0.6s cubic-bezier(.19,1,.22,1);
}
@keyframes cookie-slideup {
  from { transform: translateY(110%); opacity:0; }
  to { transform: none; opacity:1; }
}
.cookie-banner p {
  flex: 1 1 180px;
  margin: 0 0 8px 0;
  color: var(--primary);
}
.cookie-btn, .cookie-settings-btn {
  background: var(--secondary);
  color: var(--light);
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-right: 8px;
  margin-bottom: 0;
  border: none;
  transition: background 0.16s, transform 0.14s;
  box-shadow: 0 4px 18px 0 rgba(39,184,160,0.08);
}
.cookie-btn.accept {
  background: var(--secondary);
}
.cookie-btn.reject {
  background: var(--danger);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #d71235;
}
.cookie-settings-btn {
  background: var(--accent2);
  color: var(--primary);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #ffe490;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,62,110,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal {
  background: var(--light);
  min-width: 320px;
  max-width: 92vw;
  border-radius: 18px;
  box-shadow: 0 8px 48px 0 rgba(39,184,160,0.18);
  padding: 36px 16px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  animation: modal-pop 0.36s cubic-bezier(.18,.89,.42,1.43);
}
@keyframes modal-pop {
  0% { opacity:0; transform: scale(0.8); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-modal h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--secondary);
  font-size: 1.24rem;
  font-weight: bold;
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 9px 0;
}
.cookie-modal label {
  font-size: 1.06rem;
  color: var(--primary);
}
.cookie-toggle {
  width: 48px;
  height: 24px;
  background: #e3f5ee;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: background 0.17s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  transition: left 0.25s cubic-bezier(.77,0,.18,1), background 0.21s;
}
.cookie-toggle input:checked + span {
  left: 24px;
  background: var(--primary);
}
.cookie-modal .cookie-btn {
  margin-top: 8px;
}
.cookie-modal .cookie-btn.accept {
  background: var(--secondary);
  margin-right: 0;
  width: 100%;
}
.cookie-modal .cookie-btn.reject {
  background: var(--danger);
  margin-right: 0;
  width: 100%;
}

/* ===== GENERAL PLAYFUL DYNAMIC DESIGN =========== */
.section {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 3px 16px 0 rgba(39,184,160,.035);
  margin-bottom: 60px;
  padding: 40px 20px;
  animation: funfade-in .92s cubic-bezier(.21,1.51,.49,.91);
}
@keyframes funfade-in {
  from { opacity: 0; transform: translateY(36px) scale(0.98)}
  to { opacity: 1; transform: none;}
}
.card {
  border: 3px solid #cee7e1;
  background: linear-gradient(95deg, var(--accent2) 2%, #fff 80%);
  color: var(--primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.07rem;
  transition: background 0.26s, border-color 0.185s;
}
.card:hover {
  border-color: var(--secondary);
  background: linear-gradient(95deg, #ffe490 2%, #fff 80%);
}

/* ===================== VISUAL ELEMENTS ==================== */
ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 1.09rem;
}
ul li a.cta-button {
  margin: 0;
  display: inline-block;
}

ol {
  padding-left: 18px;
  margin-bottom: 12px;
}
ol li {
  list-style-type: decimal;
  margin-bottom: 7px;
  font-size: 1.02rem;
}

.text-section {
  background: transparent;
  box-shadow: none;
  border: none !important;
  padding: 0 !important;
}

/* ============== MICRO-ANIMATION CLASSES ============= */
.link-animated {
  position: relative;
  transition: color 0.15s;
}
.link-animated:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.22s, background 0.15s;
}
.link-animated:hover:after,
.link-animated:focus:after {
  transform: scale(1);
}

/* ================== ACCESSIBILITY & FOCUS ================== */
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

/* ================ RESPONSIVE - MOBILE FIRST ================ */
@media (max-width: 600px) {
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1.05rem; }
  h3 { font-size: 1rem; }
  .testimonial-card {
    padding: 12px 5px;
  }
  .section {
    padding: 14px 2px;
  }
  .container {
    padding: 0 2px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 11px 5vw 11px 3vw;
    gap: 10px;
  }
}

/* ====== BADGE / FUN VISUALS (OPTIONAL DECOR) ====== */
.badge-fun {
  background: var(--accent2);
  color: var(--primary);
  display: inline-block;
  border-radius: 22px;
  padding: 4px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.05em;
  animation: badge-inpop 1s both cubic-bezier(.37,1.82,.47,-0.13);
}
@keyframes badge-inpop {
  0% {transform: scale(.8) rotate(-5deg); opacity:0;}
  100% {transform: scale(1) rotate(2deg); opacity:1;}
}

/* ====== END BLOCK ====== */
