/* --------------------------------
   CSS RESET & BASELINE (Normalize)
----------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #FFF9F2;
  font-family: 'Roboto', Arial, sans-serif;
  color: #263150;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}
li {
  margin-bottom: 0.5em;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 18px;
  text-align: left;
}
th {
  background: #FEE9BD;
  color: #263150;
  font-weight: 700;
}
tr {
  background: #fff;
}
tr:nth-child(even) {
  background: #FFF3DF;
}
/* -------------------------------
   FONT SETTINGS (Brand)
-------------------------------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #263150;
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.6em;
  line-height: 1.2;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}
p, ul, ol {
  font-size: 1rem;
}
.subtitle {
  color: #4E77B6;
  font-weight: 500;
  margin-bottom: 1.8em;
}

/* -------------------------------
   LAYOUT CONTAINERS & FLEXBOX
-------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}
.section {
  background: #fff;
  border-radius: 22px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 4px 24px 0 rgba(251, 188, 89, 0.08);
}

/* -------------------------------
   NAVIGATION & HEADER
-------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(251,188,89,0.05);
  position: sticky;
  top: 0;
  z-index: 1099;
}
header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 18px 0;
  justify-content: flex-start;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #263150;
  padding: 6px 18px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
header nav a.cta {
  background: #FFD54A;
  color: #263150;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(251,188,89,.17);
  border-radius: 30px;
  margin-left: 24px;
  transition: background 0.18s, color 0.18s, box-shadow .2s;
}
header nav a.cta:hover,
header nav a.cta:focus {
  background: #FFCD1C;
  color: #263150;
  box-shadow: 0 8px 24px rgba(251,188,89,.22);
}
header nav a:hover:not(.cta),
header nav a:focus:not(.cta) {
  background: #FFF3DF;
  color: #4E77B6;
}
header nav img {
  height: 34px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
}

/* MOBILE BURGER */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 24px;
  background: #FFD54A;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: #263150;
  cursor: pointer;
  transition: box-shadow .18s;
  z-index: 1200;
  box-shadow: 0 2px 12px rgba(251,188,89,.16);
}
.mobile-menu-toggle:active {
  box-shadow: 0 0 0 2px #FFD54A;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1202;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF9F2;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.87,0,.13,1);
  box-shadow: 8px 0 44px rgba(38,49,80, .13);
  padding: 38px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #FFD54A;
  border: none;
  border-radius: 50%;
  color: #263150;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  position: absolute;
  right: 22px;
  top: 22px;
  cursor: pointer;
  transition: background 0.11s;
  z-index: 1203;
}
.mobile-menu-close:hover {
  background: #FFCD1C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 80px 36px 0 36px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #263150;
  padding: 15px 0;
  border-radius: 13px;
  width: 100%;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFD54A;
  color: #4E77B6;
}

/* Hide standard nav on mobile, show burger */
@media (max-width: 1023px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------------------------
   HERO / HEADINGS / SECTION LAYOUT
-------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
section > .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* -------------------------------
   FLEX CONTAINERS (MANDATORY LAYOUTS)
-------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(251,188,89,0.08);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  min-width: 0;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF3DF;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(38,49,80,.06);
  margin-bottom: 24px;
  font-size: 1.05rem;
  max-width: 600px;
  color: #263150;
}
.testimonial-card p {
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURES LIST (used in many pages) */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  list-style: none;
  margin-bottom: 12px;
}
.features-list li {
  background: #FFFDF6;
  border-radius: 16px;
  box-shadow: 0 1px 7px rgba(251,188,89,.06);
  padding: 36px 27px 28px 27px;
  flex: 1 1 260px;
  min-width: 210px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .18s;
}
.features-list li:hover {
  box-shadow: 0 4px 24px 0 rgba(251, 188, 89, 0.15);
  transform: translateY(-2px) scale(1.013);
}
.features-list img {
  height: 46px;
  margin-bottom: 6px;
}
.features-list h3 {
  font-size: 1.21rem;
}
.features-list p {
  font-size: .98rem;
}

/* -------------------------------
   CARDS, BADGES, CTAs
-------------------------------- */
.card {
  margin-bottom: 20px;
}
.best-value {
  background: #FFF3DF!important;
  position: relative;
}
.best-value-badge {
  display: inline-block;
  background: #FFD54A;
  color: #263150;
  font-size: 0.92em;
  font-weight: 700;
  border-radius: 12px;
  padding: 2px 10px;
  margin-left: 8px;
}
.pricing-table {
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(251,188,89,0.09);
  overflow: hidden;
  margin-bottom: 30px;
}
.pricing-table tr {
  border-bottom: 1px solid #FDE6A0;
}
.pricing-table tr:last-child {
  border-bottom: none;
}

/* CTA BUTTONS */
.cta,
button.cta {
  display: inline-block;
  background: #FFD54A;
  color: #263150;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  border: none;
  border-radius: 26px;
  padding: 13px 38px;
  box-shadow: 0 3px 18px 0 rgba(251, 188, 89, 0.13);
  cursor: pointer;
  margin: 16px 0 0 0;
  transition: background 0.18s, color 0.18s, box-shadow .19s, transform .13s;
  text-align: center;
  outline: none;
}
.cta:hover,
button.cta:hover,
.cta:focus {
  background: #FFCD1C;
  color: #263150;
  box-shadow: 0 8px 26px 0 rgba(251, 188, 89, 0.24);
  transform: translateY(-2px) scale(1.03);
}

/* DISTINCTIVE BUTTONS (cookie banner, etc) */
.button,
.cookie-banner button {
  padding: 10px 28px;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s, transform .13s;
  font-size: 1rem;
  outline: none;
  border: none;
}
.button.accept,
.cookie-banner .accept {
  background: #FFD54A;
  color: #263150;
  margin-right: 16px;
}
.button.accept:hover,
.cookie-banner .accept:hover {
  background: #FFCD1C;
}
.button.reject,
.cookie-banner .reject {
  background: #fff;
  color: #263150;
  border: 2px solid #FFD54A;
}
.button.reject:hover,
.cookie-banner .reject:hover {
  background: #FFF3DF;
}
.button.settings,
.cookie-banner .settings {
  background: #4E77B6;
  color: #fff;
  margin-left: 17px;
}
.button.settings:hover,
.cookie-banner .settings:hover {
  background: #263150;
  color: #FFD54A;
}

/* -------------------------------
   FOOTER
-------------------------------- */
footer {
  background: #FFF7E2;
  margin-top: 36px;
  padding: 30px 0 26px 0;
  border-radius: 28px 28px 0 0;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
}
footer nav.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
footer nav.footer-nav a {
  font-size: .98rem;
  color: #263150;
  opacity: 0.84;
  border-radius: 10px;
  padding: 4px 8px;
  margin-bottom: 3px;
}
footer nav.footer-nav a:hover,
footer nav.footer-nav a:focus {
  background: #FFD54A;
  color: #263150;
  opacity: 1;
}
footer img {
  height: 32px;
  margin-bottom: 10px;
}
footer > .container > .content-wrapper > div > p, 
footer > .container > .content-wrapper > div > p > img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
footer > .container > .content-wrapper > div > p {
  margin-bottom: 5px;
  font-size: .98rem;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: center;
  }
}

/* -------------------------------
   CARDS, TEXT SECTIONS
-------------------------------- */
.text-section {
  background: none;
  border-radius: 18px;
  padding: 0 0 5px 0;
  display: flex;
  flex-direction: column;
  gap: 21px;
  color: #263150;
}
.text-section ul, .text-section ol {
  margin-left: 1.2em;
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 5px;
  font-size: 1rem;
}
.text-section a {
  color: #4E77B6;
  font-weight: 500;
  border-bottom: 1.5px solid #FFD54A;
  padding-bottom: 0.07em;
  transition: color 0.16s;
}
.text-section a:hover {
  color: #263150;
}

input[type="search"] {
  width: 100%;
  border: 1.5px solid #FFD54A;
  border-radius: 16px;
  padding: 12px;
  font-size: 1.09rem;
  margin: 10px 0 16px 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: #263150;
  background: #FFFDF6;
  transition: border 0.16s, box-shadow 0.13s;
  box-shadow: 0 2px 6px 0 rgba(251,188,89,0.06);
}
input[type="search"]:focus {
  border-color: #4E77B6;
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(78,119,182,0.16);
}

/* -------------------------------
   RESPONSIVE (Mobile First)
-------------------------------- */
@media (max-width: 1023px) {
  .features-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .content-wrapper {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.41rem;
  }
  h3 {
    font-size: 1.08rem;
  }
  .container {
    padding: 0 10px;
  }
  section {
    padding: 24px 0 0 0;
    margin-bottom: 38px;
  }
  .card-container,
  .content-grid,
  .features-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    align-items: flex-start;
    max-width: 100%;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .card {
    padding: 18px 10px;
  }
  footer {
    padding: 22px 0 16px 0;
    border-radius: 16px 16px 0 0;
  }
}

/* -------------------------------
   ANIMATIONS & INTERACTIONS
-------------------------------- */
.cta, button, .button, .cookie-banner button {
  transition: background 0.18s, color 0.19s, box-shadow .18s, transform .13s;
}
.card, .testimonial-card, .features-list li {
  transition: box-shadow .16s, transform .16s;
}
.card:active, .testimonial-card:active, .features-list li:active {
  box-shadow: 0 2px 10px 0 rgba(251,188,89,.11);
}
input[type="search"] {
  transition: border 0.16s, box-shadow 0.13s;
}

/* -------------------------------
   COOKIE CONSENT BANNER + MODAL
-------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFF7E2;
  color: #263150;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
  box-shadow: 0 -2px 18px 0 rgba(251, 188, 89, 0.13);
  z-index: 1400;
  padding: 20px 8px 20px 8px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: cookiefadein 0.6s;
}
@keyframes cookiefadein {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-content {
  max-width: 520px;
  margin-right: 32px;
  font-size: 1.06rem;
}
.cookie-banner button {
  margin-right: 8px;
  margin-bottom: 0;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,100vh);
  min-width: 300px;
  max-width: 95vw;
  background: #FFF9F2;
  color: #263150;
  border-radius: 20px;
  box-shadow: 0 6px 56px 0 rgba(78,119,182, .19);
  z-index: 1600;
  padding: 34px 20px 28px 20px;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s, transform 0.36s cubic-bezier(.7,0,.15,1);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #263150;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  padding: 7px 0;
  border-bottom: 1px solid #FDE6A0;
}
.cookie-modal .category:last-child {
  border-bottom: none;
}
.cookie-modal .category label {
  font-weight: 500;
  color: #4E77B6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
}
.cookie-modal .switch {
  margin-left: auto;
  margin-right: 0;
}
/* Switch style (toggle) */
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #FFD54A;
  border-radius: 24px;
  transition: background 0.22s;
}
.cookie-modal .switch input:checked + .slider {
  background: #4E77B6;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  height: 19px; width: 19px;
  left: 2.5px; bottom: 2.5px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .close {
  font-size: 1.9rem;
  border: none;
  background: none;
  color: #263150;
  position: absolute;
  top: 16px; right: 22px;
  cursor: pointer;
  border-radius: 50%;
  width: 33px; height: 33px;
  transition: background .11s;
}
.cookie-modal .close:hover {
  background: #FFD54A;
  color: #263150;
}
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 0;
    padding: 17px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 17px 6px 17px 6px;
  }
  .cookie-banner .cookie-content {
    margin-right: 0;
    max-width: 98vw;
  }
}
/* Ensure cookie banner always on top */
body {
  position: relative; /* triggers stacking context for cookie-banner/modal */
}

/* -------------------------------
   EXTRAS & MICROINTERACTIONS
-------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  background: #FFF3DF;
}
::-webkit-scrollbar-thumb {
  background: #FFD54A;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFCD1C;
}
::-webkit-input-placeholder, ::placeholder {
  color: #BFBEBE;
  opacity: 1;
  font-size: 1rem;
}
/* Smooth intro fade for all sections */
section, .card, .testimonial-card, .features-list li {
  animation: fadeinup 0.6s cubic-bezier(.6,.01,0,1.01);
}
@keyframes fadeinup {
  from {transform: translateY(30px); opacity:0;}
  to {transform: translateY(0);opacity:1;}
}

/* -------------------------------
   ACCESSIBILITY & UTILITIES
-------------------------------- */
:focus {
  outline: 2px solid #FFD54A;
  outline-offset: 2px;
}
[tabindex="0"]:focus {
  outline: 2.5px solid #4E77B6;
  outline-offset: 2px;
}

/* -------------------------------
   PRINT FRIENDLY (minimal)
-------------------------------- */
@media print {
  header, nav, .cta, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  section { background: #fff; color: #000; }
}
