/* ================= RESET & NORMALIZATION ================= */
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,
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 {
  background: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
*, *:before, *:after { box-sizing: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 16px; text-align: left; font-family: 'Roboto', Arial, sans-serif; }

/* ==================== BRAND COLORS & VARIABLES =================== */
:root {
  --color-primary: #1A237E;
  --color-secondary: #F9A825;
  --color-accent: #FFFFFF;
  --color-bg-light: #FAFAFF;
  --color-bg-card: #FFF8E1;
  --color-bg-card-accent: #E8EAF6;
  --color-shadow: rgba(26,35,126,0.08);
  --color-table-header: #F9A825;
  --color-table-row-odd: #FFFDE7;
  --color-table-row-even: #FFF8E1;
}

/* =================== 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, .cta-button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 16px;
}
h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}
strong { font-weight: 700; }
p, ul li, ol li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
}
.hero h1,
.hero h2 {
  color: var(--color-accent);
  text-shadow: 1px 2px 4px rgba(30,30,60,0.13);
}

/* Fun font for key action labels (occasional, not overused) */
.cta-button, .mobile-menu-toggle, .mobile-menu-close {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 1px;
}

/* ================== LAYOUT CONTAINERS ================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: 24px;
  box-shadow: 0 6px 32px -8px var(--color-shadow);
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-card);
  border-radius: 18px;
  margin-bottom: 20px;
  padding: 28px 26px;
  box-shadow: 0 4px 24px -4px var(--color-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.card:hover {
  box-shadow: 0 10px 36px -5px var(--color-primary), 0 2px 6px 0px var(--color-shadow);
  transform: translateY(-4px) scale(1.018);
}
.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 22px;
  margin-bottom: 20px;
  background: var(--color-bg-card-accent);
  color: #222;
  border-radius: 18px;
  box-shadow: 0 2px 10px -2px rgba(26,35,126,0.11);
  border-left: 8px solid var(--color-secondary);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0px var(--color-secondary);
  transform: translateY(-4px) scale(1.015);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==================== HEADER & NAVBAR =================== */
header {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 2px 8px -4px var(--color-shadow);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 15px;
  align-items: center;
}
header nav a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s, transform 0.15s;
  font-weight: 700;
  position: relative;
  outline: none;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.08);
}
.cta-button {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 1.18rem;
  box-shadow: 0 4px 24px -4px var(--color-secondary);
  font-weight: 900;
  border: none;
  cursor: pointer;
  outline: none;
  margin-left: 16px;
  margin-right: 0;
  transition: background 0.18s, color 0.18s, box-shadow 0.23s, transform 0.2s;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 8px 36px -6px var(--color-primary);
  transform: scale(1.07) rotate(-2.5deg);
}
header img {
  height: 42px;
  width: auto;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 12px;
  font-size: 2.1rem;
  padding: 4px 16px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px -3px var(--color-secondary);
  transition: background .18s, color .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* ============= MOBILE MENU ============= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 40px 0 var(--color-shadow);
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.76,0,0.24,1);
  padding: 28px 22px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 6px 21px 7px 21px;
  box-shadow: 0 2px 10px -4px var(--color-secondary);
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.27rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  background: none;
  padding: 10px 0;
  border-radius: 6px;
  min-width: 120px;
  transition: background 0.12s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Hide main nav on mobile */
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* Hide mobile menu by default on desktop */
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============= HERO ============= */
.hero {
  background: linear-gradient(95deg, var(--color-primary) 75%, var(--color-secondary) 100%);
  color: var(--color-accent);
  padding: 60px 0 55px 0;
  border-radius: 0 0 48px 48px;
  margin-bottom: 60px;
  box-shadow: 0 12px 68px -18px var(--color-shadow), 0 2px 14px 0px var(--color-secondary);
  position: relative;
  overflow: hidden;
}
.hero .container {
  justify-content: center;
  align-items: center;
  min-height: 180px;
}
.hero .content-wrapper {
  align-items: center;
  gap: 12px;
}
.hero h1 {
  font-size: 2.6rem;
  color: #fff;
  text-align: center;
}
.hero h2 {
  font-size: 1.45rem;
  color: #ffe;
  text-align: center;
  font-weight: 700;
}
.hero .cta-button {
  margin-top: 24px;
}

/* ============= FEATURES / GRIDS ============= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-bg-card-accent);
  border-radius: 18px;
  box-shadow: 0 2px 16px -4px var(--color-shadow);
  padding: 32px 22px 25px 22px;
  flex: 1 1 260px;
  max-width: 320px;
  min-width: 220px;
  transition: box-shadow 0.17s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  margin-bottom: 20px;
  border-left: 7px solid var(--color-secondary);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0px var(--color-secondary);
  transform: translateY(-5px) scale(1.03) rotate(-2deg);
}
.feature-grid img {
  width: 50px;
  height: 50px;
  margin-bottom: 2px;
}
.feature-grid h3 {
  font-size: 1.13rem;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-weight: 700;
}
.feature-grid p {
  color: #222;
  margin-bottom: 0;
}

/* ========== TABLE ========== */
table {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px -6px var(--color-shadow);
  font-size: 1.02rem;
}
thead, th {
  background: var(--color-table-header);
  color: var(--color-primary);
  font-weight: 900;
  font-family: 'Montserrat', Arial, sans-serif;
}
tr {
  border-bottom: 1px solid #f3e788;
}
td {
  border-bottom: 1px solid #f3e788;
}
tbody tr:nth-child(odd) { background: var(--color-table-row-odd); }
tbody tr:nth-child(even) { background: var(--color-table-row-even); }

/* =============== GENERAL SECTION SPACING =============== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
}
section:not(.hero):not(.testimonials):not(.contact) {
  background: var(--color-bg-light);
  box-shadow: 0 8px 32px -12px var(--color-shadow);
}
.text-section h2 {
  color: var(--color-primary);
  margin-bottom: 12px;
}
.text-section ul {
  list-style: disc inside;
  margin-left: 18px;
  margin-bottom: 14px;
  color: #222;
}
.text-section ol {
  list-style: decimal inside;
  margin-left: 18px;
  margin-bottom: 12px;
  color: #222;
}
.text-section li {
  margin-bottom: 6px;
}
.text-section h3 {
  margin-top: 18px;
}

/* =============== TESTIMONIALS =================== */
.testimonials {
  background: var(--color-secondary);
  background-image: repeating-linear-gradient(40deg, #fff2ca, #fff2ca 10px, #f9e485 16px, #fff2ca 28px);
  margin-bottom: 60px;
  padding: 44px 0;
  border-radius: 36px 36px 26px 26px;
  box-shadow: 0 6px 32px -8px var(--color-shadow);
  position: relative;
}
.testimonials .container {
  align-items: center;
}
.testimonials h2 {
  color: var(--color-primary);
  margin-bottom: 18px;
  text-align: center;
}
.testimonials .content-wrapper {
  align-items: center;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* =============== CONTACT SECTION ================ */
.contact ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.contact li {
  display: flex;
  align-items: center;
  font-size: 1.09rem;
  color: #222;
  gap: 8px;
}
.contact li img {
  width: 28px;
  height: 28px;
}
.contact a {
  color: var(--color-primary);
  text-decoration: underline dotted 2px;
  font-weight: 700;
  transition: color 0.15s;
}
.contact a:hover { color: var(--color-secondary); }

/* =============== FOOTER =================== */
footer {
  padding: 40px 0 30px 0;
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 -2px 18px -4px var(--color-shadow);
  border-radius: 36px 36px 0 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-logo img {
  height: 58px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 0;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding-left: 10px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 21px;
  height: 21px;
  margin-right: 7px;
}
.footer-socials {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}
.footer-socials a {
  background: var(--color-accent);
  border-radius: 100%;
  padding: 5px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.18s, transform 0.19s;
  box-shadow: 0 2px 12px -2px var(--color-secondary);
}
.footer-socials a:hover {
  box-shadow: 0 8px 28px -5px var(--color-secondary);
  transform: scale(1.15);
  background: var(--color-secondary);
}
.footer-socials img {
  height: 24px;
  width: 24px;
}

/* ============= COOKIE CONSENT BANNER ============= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 10000;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 20px 18px;
  box-shadow: 0 -4px 18px -2px var(--color-shadow);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
  transition: opacity 0.4s, transform 0.4s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0 10px 0 0;
  font-size: 1.03rem;
  flex: 1 1 auto;
  color: white;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  box-shadow: 0 2px 10px -4px var(--color-secondary);
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background 0.15s, color 0.14s, transform 0.16s;
}
.cookie-banner button.cookie-reject {
  background: #e53935;
  color: #fff;
}
.cookie-banner button.cookie-settings {
  background: var(--color-bg-card-accent);
  color: var(--color-primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  transform: scale(1.05) rotate(-1.5deg);
}

/* ==== COOKIE SETTINGS MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,35,126,0.19);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.33s;
}
.cookie-modal.active {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: 27px;
  box-shadow: 0 8px 56px -12px var(--color-primary);
  min-width: 320px;
  max-width: 95vw;
  padding: 32px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalShow 0.43s cubic-bezier(.63,-0.56,.34,1.74);
}
@keyframes cookieModalShow {
  0% { transform: scale(0.95) translateY(60px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  margin-bottom: 13px;
  font-size: 1.35rem;
  color: var(--color-secondary);
  text-align: center;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 1.08rem;
}
.cookie-category label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
.cookie-category.essential label {
  color: #aaa;
  font-style: italic;
}
.cookie-modal-content .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-size: 1.45rem;
  cursor: pointer;
  padding: 2px 16px 3px 16px;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-primary);
  color: var(--color-accent);
}

/* ========== RESPONSIVE BREAKPOINTS & FLEX DIRECTION ========== */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    max-width: 98vw;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .section {
    padding: 32px 6px;
  }
  section {
    margin-bottom: 30px;
    padding: 32px 4px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .hero {
    padding: 37px 0 30px 0;
    border-radius: 0 0 24px 24px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 1.41rem;
    margin-bottom: 6px;
  }
  .hero h2 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  .cta-button {
    width: 100%;
    padding: 12px 0;
    margin-left: 0;
    margin-top: 12px;
  }
  .footer-logo img {
    height: 38px;
  }
}
@media (max-width: 500px) {
  .footer-socials img { height: 19px; width: 19px; }
  .feature-grid > div { padding: 20px 9px; }
  .testimonial-card { padding: 16px 8px; }
  .cookie-modal-content { padding: 15px 7px 20px 7px; }
}

/* =========== ANIMATED/BUBBLY EFFECTS (playful!) =========== */
.cta-button, .feature-grid > div, .testimonial-card, .mobile-menu-toggle, .cookie-banner button, .mobile-menu-close, .footer-socials a {
  transition: box-shadow 0.18s, background 0.16s, color 0.16s, transform 0.17s;
}
.cta-button:active, .mobile-menu-close:active, .cookie-banner button:active, .cookie-banner button.cookie-settings:active, .footer-socials a:active {
  transform: scale(0.97) rotate(1.7deg);
}

/* ================ UTILITIES ================= */
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }
.text-accent { color: var(--color-secondary) !important; }

/* ================= FOCUS STATES (for accessibility) ================= */
a:focus, button:focus, .cta-button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-banner button:focus, .footer-nav a:focus, .footer-socials a:focus {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
  background: #fffde7;
  color: var(--color-primary);
}

/* =================== PLAYFUL DECOR - DYNAMISM =================== */
.feature-grid > div::after {
  content: '';
  display: block;
  position: absolute;
  top: -16px; right: -16px;
  width: 30px; height: 30px;
  background: var(--color-secondary);
  border-radius: 100%;
  opacity: 0.22;
  z-index: 0;
  pointer-events: none;
  animation: floatBubble 5.3s ease-in-out infinite alternate-reverse;
}
@keyframes floatBubble {
  0% { transform: scale(1) translateY(0); }
  70% { transform: scale(1.07) translateY(4px); }
  100% { transform: scale(0.95) translateY(9px); }
}
.testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  left: -20px; top: 15px;
  width: 22px; height: 22px;
  background: var(--color-primary);
  border-radius: 100%;
  opacity: 0.11;
  z-index: 0;
  pointer-events: none;
  animation: floatBubble 6s ease-in-out infinite alternate;
}

/* =================== PRINT OPTIMIZATION =================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; }
}
