/* RESET & NORMALIZE ----------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #F9FAFB;
  font-family: 'Roboto', Arial, sans-serif;
  color: #222;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}
a {
  text-decoration: none;
  color: #1A466B;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E5B12B;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* VARIABLES and BRAND PALETTE ---- */
:root {
  --color-primary: #1A466B;
  --color-primary-dark: #12304a;
  --color-secondary: #E5E8E9;
  --color-accent: #E5B12B;
  --color-accent-dark: #bd8f18;
  --color-neutral: #fff;
  --color-neutral-dark: #F6F8F9;
  --color-body: #222;
  --shadow-elevate: 0 4px 16px 0 rgba(26,70,107,0.12);
  --radius-main: 20px;
  --radius-btn: 22px;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* TYPOGRAPHY & HEADINGS ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  line-height: 1.17;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  text-shadow: 0 2px 6px rgba(229,177,43,0.10);
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
p, ul, ol {
  font-size: 1.125rem;
  font-family: var(--font-body);
  margin-bottom: 15px;
}
strong, b {
  color: var(--color-primary);
}

/* PLAYFUL FONT ACCENTS ----------- */
h1, h2, .btn-primary, .btn-secondary {
  font-family: var(--font-display);
}
h1 {
  font-style: italic;
}
footer .footer-logo img {
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--color-accent-dark, #bd8f18), 0 2px 10px rgba(26,70,107,0.10);
  background: #fff;
  transition: box-shadow 0.3s;
}
footer .footer-logo img:hover {
  box-shadow:0 0 0 14px var(--color-accent), 0 8px 40px rgba(26,70,107,0.08);
}

/* CONTAINER & LAYOUTS ------------ */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.text-section {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section, .content-wrapper {
    flex-direction: column !important;
    gap: 22px !important;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-neutral);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-elevate);
  padding: 28px 22px 28px 22px;
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  min-width: 240px;
  transition: transform 0.18s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.025) rotate(-1.5deg);
  box-shadow: 0 8px 40px 0 #E5B12B55, var(--shadow-elevate);
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fffbe9;
  border-radius: 20px;
  padding: 20px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 #E5B12B22;
  border: 2.2px dashed #E5B12B;
  font-family: var(--font-body);
}
.testimonial-card p {
  color: #222;
  font-size: 1.15rem;
  line-height: 1.5;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card span {
  color: #1A466B;
  font-weight: 700;
  font-size: 1.025rem;
  letter-spacing: 0.01em;
}

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

/* NAVIGATION --------------------- */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 14px rgba(26,70,107,0.08);
  color: #fff;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}
header a {
  color: #fff;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.04rem;
  transition: color 0.2s;
}
header a:hover, header a:focus {
  color: var(--color-accent);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.btn-primary {
  padding: 10px 28px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-btn);
  border: none;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  box-shadow: 0 1px 10px 0 #e5b12b30;
  letter-spacing: 0.05em;
  transition: background 0.18s, box-shadow 0.18s, color 0.2s;
  margin-left: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 4px 18px 0 #E5B12B99;
  transform: translateY(-2px) scale(1.035);
}

/* MOBILE MENU -------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #1A466B;
  border-radius: 50%;
  width: 43px;
  height: 43px;
  font-size: 2.1rem;
  position: relative;
  z-index: 100;
  margin-left: 12px;
  box-shadow: 0 3px 18px #E5B12B55;
  transition: background 0.17s, color 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #fffbe9;
  color: var(--color-accent-dark);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.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: var(--color-secondary);
  box-shadow: 0 16px 70px 4px #1A466B30;
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.61,.2,.1,1.03);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin-top: 24px;
  margin-left: 22px;
  font-size: 2.6rem;
  color: var(--color-primary);
  background: #ffedc0;
  border-radius: 50%;
  width: 45px; height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px #E5B12B40;
  border: 2px solid var(--color-accent-dark);
  transition: background 0.18s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.mobile-nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-size: 1.26rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  padding: 10px 0 10px 0;
  width: 100%;
  border-radius: 9px;
  transition: background 0.15s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ffedc0;
  color: var(--color-accent-dark);
}

/* On mobile, hide main nav, show burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
}

/* HERO & LISTS ------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:nth-child(odd) {
  background: #fff;
  border-radius: 0 0 44px 0;
  box-shadow: 0 4px 30px 0 #1A466B08, 0 0 12px #e5b12b09;
}
section:nth-child(even) {
  background: #f4f7ff;
}
ul li {
  list-style: none;
  position: relative;
  font-size: 1.13rem;
  padding-left: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: #36485a;
}
ul li img {
  margin-right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fffbe9;
  border: 1.3px solid #E5B12B;
  box-shadow: 0 1px 5px 0 #E5B12B33;
}

/* BUTTONS & MICRO-INTERACTION ---- */
.btn-secondary {
  padding: 10px 24px;
  background: #fff;
  color: var(--color-accent-dark);
  border: 1.8px solid var(--color-accent-dark);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 7px;
  transition: background 0.17s, color 0.17s;
  box-shadow: 0 1px 6px #E5B12B15;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* FORMS -------------------------- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1.07rem;
  padding: 12px 16px;
  border: 1.5px solid #C3CBDA;
  border-radius: 15px;
  background: #f6f8ff;
  box-shadow: 0 1px 4px #E5B12B12;
  margin-bottom: 18px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent-dark);
  box-shadow: 0 0 0 2px #e5b12b30;
  outline: none;
}

/* FOOTER ------------------------- */
footer {
  background: var(--color-primary);
  color: #fff;
  border-top-left-radius: 34px;
  margin-top: 42px;
  padding: 36px 0 24px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
}
.footer-logo {
  flex: 1 1 65px;
  margin-right: 35px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  align-items: flex-start;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.035rem;
  border-bottom: 1.5px dotted #E5B12B70;
  padding-bottom: 3px;
  transition: color 0.22s, border 0.25s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.footer-contact {
  flex: 1 1 270px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-top: 6px;
}
.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #e5e8e9;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
}
@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-logo {
    margin-bottom: 12px;
    margin-right: 0;
  }
}


/* COOKIE CONSENT BANNER  --------- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fffef6;
  box-shadow: 0 -2px 24px #E5B12B33;
  border-top: 2px solid #E5B12B;
  z-index: 11110;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 12px 22px 22px;
  gap: 30px;
  animation: fadeinup 0.7s cubic-bezier(.57,1.58,.32,1);
}
@keyframes fadeinup {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: #1A466B;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
}
.cookie-banner button {
  padding: 8px 20px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  transition: background 0.13s, color 0.11s;
}
.cookie-banner .accept {
  background: var(--color-accent);
  color: #1A466B;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-accent-dark);
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-accent-dark);
  border: 1.5px solid var(--color-accent-dark);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ffe6b5;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px dashed var(--color-primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #f1f5ff;
}

/* COOKIE PREFERENCES MODAL --------*/
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  z-index: 12000;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 60px #1A466B15, 0 1px 4px #E5B12B14;
  max-width: 410px;
  width: 97vw;
  padding: 34px 28px 28px 28px;
  animation: modalpop 0.38s cubic-bezier(.52,1.53,.14,1);
}
@keyframes modalpop {
  from { opacity: 0; transform: translate(-50%, 60px) scale(0.7); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 25px;
  font-weight: 700;
}
.cookie-modal__categories {
  margin-bottom: 18px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.cookie-modal__category label {
  margin-left: 10px;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 18px; height: 18px;
}
.cookie-modal__actions {
  display: flex;
  gap: 15px;
}
.cookie-modal__save {
  background: var(--color-accent);
  color: #1A466B;
  padding: 8px 20px;
  border-radius: 18px;
  border: none;
  font-weight: 700;
  font-family: var(--font-display);
  transition: background 0.12s;
}
.cookie-modal__save:hover, .cookie-modal__save:focus {
  background: var(--color-accent-dark);
  color: #fff;
}
.cookie-modal__cancel {
  background: #fff;
  color: var(--color-accent-dark);
  border: 1.5px solid var(--color-accent-dark);
  border-radius: 18px;
  padding: 8px 20px;
  font-family: var(--font-display);
  font-weight: 700;
}
.cookie-modal__cancel:hover, .cookie-modal__cancel:focus {
  background: #fffbe9;
}

/* PLAYFUL ANIMATIONS ------------- */
.card, .btn-primary, .testimonial-card, .mobile-menu, .cookie-modal {
  transition: \
    box-shadow 0.18s,
    transform 0.23s cubic-bezier(.77,.21,.09,.96),
    background 0.14s;
}
.card::after {
  content: '';
  display: block;
  position: absolute;
  right: 14px; bottom: 9px;
  width: 23px; height: 23px;
  background: var(--color-accent);
  border-radius: 98% 40% 60% 55%;
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}

/* RESPONSIVE BREAKPOINTS --------- */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 98vw;
    padding: 7px 6px 7px 6px;
  }
  section {
    padding: 28px 6px;
    border-radius: 0;
  }
  h1 {
    font-size: 1.65rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.20rem;
    margin-bottom: 10px;
  }
  h3 {
    font-size: 1.04rem;
    margin-bottom: 10px;
  }
  .footer-contact p {
    font-size: 0.97rem;
  }
  .footer-logo img {
    width: 54px;
    height: 54px;
  }
  .card-container, .content-grid, .content-wrapper {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .testimonial-card {
    padding: 14px 11px;
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.97rem;
    padding: 18px 5.5vw;
  }
}
@media (max-width: 480px) {
  .card {
    padding: 14px 8px;
  }
  .content-wrapper, .card-container, .content-grid {
    gap: 12px !important;
  }
  .cookie-modal {
    padding: 14px 7px 12px 7px;
  }
}

/* PLAYFUL DETAILS/FUN FONTS ------ */
h1, h2, h3, h4, .btn-primary, header .main-nav a, .mobile-nav a {
  letter-spacing: 0.02em;
}
section h2::after {
  content: '✦';
  color: var(--color-accent);
  margin-left: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  vertical-align: middle;
  opacity: 0.75;
}

/* Z-INDEX LAYERS (no overlap) ---- */
header {
  z-index: 1100;
}
.mobile-menu {
  z-index: 9999;
}
.cookie-banner {
  z-index: 11110;
}
.cookie-modal {
  z-index: 12000;
}

/* ACCESSIBILITY ------------------ */
:focus {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
}

/* SPACING CORRECTIONS & RULES ---- */
section, .section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container, .content-grid {
  gap: 24px !important;
}
.card {
  margin-bottom: 20px !important;
}
.text-image-section, .content-wrapper {
  gap: 30px !important;
}
.testimonial-card {
  gap: 20px !important;
  padding: 20px !important;
}
.feature-item {
  gap: 15px !important;
}

/* ENSURE FLEX ONLY, NO GRID ------ */
/* All above layouts are flexbox only, no forbidden properties. */
