/* ==================================================
   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, body {
  height: 100%;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #20274E;
  background: #F6F8FF;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* -- Brand Colors (custom properties for fallback) -- */
:root {
  --color-primary: #20274E;
  --color-secondary: #FFC857;
  --color-accent: #F6F8FF;
  --color-background: #F6F8FF;
  --color-dark: #101428;
  --color-white: #fff;
  --color-grey: #e9eaf3;
  --color-grey-dark: #4d5670;
  --color-shadow: rgba(32, 39, 78, 0.14);
  --brand-font-display: 'Montserrat', Arial, sans-serif;
  --brand-font-body: 'Roboto', Arial, sans-serif;
}

/* ==================================================
   Typography
   ================================================== */
body {
  font-family: var(--brand-font-body);
  font-size: 16px;
  background: var(--color-background);
  color: var(--color-primary);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--brand-font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, ul, ol, li {
  font-family: var(--brand-font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.7;
}
ul, ol {
  margin-left: 1.2em;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
a {
  color: var(--color-secondary);
  font-weight: 700;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-primary);
}

/* ==================================================
   Containers & Layout
   ================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2.5px solid var(--color-shadow);
  padding-top: 28px;
  padding-bottom: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: var(--color-dark);
  font-weight: 700;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-nav a {
  color: var(--color-grey-dark);
  font-size: 1rem;
  font-weight: 700;
  transition: color .18s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-secondary);
}

/* ===================== Sections & Cards ====================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 4px 28px var(--color-shadow);
  padding: 32px 24px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(32,39,78,0.19);
}
.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;
}

.text-section {
  margin-bottom: 32px;
  background: var(--color-accent);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 1px 14px 0 var(--color-shadow);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========== Feature Grid & Cards =============== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
  margin-bottom: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 2px 18px var(--color-shadow);
  padding: 32px 22px 24px;
  width: calc(50% - 16px);
  min-width: 240px;
  max-width: 370px;
  flex: 1 1 260px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item:hover {
  box-shadow: 0 6px 32px 0 rgba(32,39,78,0.20);
  transform: translateY(-4px) scale(1.03);
}
.feature-item img {
  width: 38px;
  height: 38px;
}
.feature-item h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-item p, .feature-item li {
  color: var(--color-grey-dark);
  font-size: 1rem;
  font-weight: 400;
}
.feature-item ul {
  margin-bottom: 0;
}

/* ============ Testimonial Cards ================ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: 12px;
  margin-bottom: 22px;
  box-shadow: 0 1px 12px var(--color-shadow);
  position: relative;
  color: var(--color-primary);
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.18rem;
  margin: 0;
  font-weight: 500;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: var(--color-grey-dark);
  font-weight: 700;
  margin-left: 8px;
}

/* ============ CTA Buttons ================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 40px;
  font-family: var(--brand-font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  padding: 16px 36px;
  margin-top: 18px;
  box-shadow: 0 2px 16px 0 rgba(255,200,87,0.12);
  border: 2.5px solid var(--color-secondary);
  transition: background 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
  text-transform: uppercase;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 4px 28px rgba(32,39,78,0.23);
  border-color: var(--color-primary);
}
.cta-btn.secondary {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 2.5px solid var(--color-primary);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
}

/* ===================================================
   Header & Navigation
   =================================================== */
header {
  width: 100%;
  background: var(--color-accent);
  box-shadow: 0 4px 24px -12px var(--color-shadow);
  position: relative;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--brand-font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  padding: 4px 0;
  transition: color 0.18s, border-bottom 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

/* Hamburger & Mobile Menu */
.mobile-menu-toggle {
  display: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 150;
  box-shadow: 0 2px 16px 0 rgba(255,200,87,0.22);
  transition: background 0.18s, color 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 350px;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-secondary);
  box-shadow: -4px 0 32px 0 rgba(32,39,78,0.17);
  z-index: 2200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.7,0.3,0.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  margin: 26px 0 18px 24px;
  cursor: pointer;
  align-self: flex-start;
  transition: color .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 16px 30px;
}
.mobile-nav a {
  font-family: var(--brand-font-display);
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--color-secondary);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-white);
  background: rgba(255,200,87,0.07);
  border-bottom: 2px solid var(--color-secondary);
}

/* Overlay for backdrop when menu open */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  z-index: 2150;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(32,39,78,0.32);
  backdrop-filter: blur(2.5px);
}
.mobile-menu.open + .mobile-menu-backdrop {
  display: block;
}

@media (max-width: 1023px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===================================================
   Cookie Consent Banner & Modal
   =================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 -3px 28px rgba(32,39,78,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  z-index: 4000;
  flex-wrap: wrap;
  gap: 20px;
  animation: slideUpBanner .55s cubic-bezier(.6,.05,.45,1.17);
}
@keyframes slideUpBanner {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-consent-banner p {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 500;
}
.cookie-consent-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  border: none;
  border-radius: 35px;
  font-family: var(--brand-font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 28px;
  transition: background .17s, color .17s, box-shadow 0.13s;
  box-shadow: 0 1px 6px 0 var(--color-shadow);
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.reject {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,39,78,0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4100;
  animation: fadeInModal .2s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-preferences-content {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 6px 56px rgba(32,39,78,0.18);
  width: 95vw;
  max-width: 440px;
  padding: 36px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popupModal .32s cubic-bezier(.5,.6,.4,1.2);
}
@keyframes popupModal {
  from { transform: scale(.88); opacity: 0.7; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-preferences-content h2 {
  color: var(--color-primary);
  font-size: 1.38rem;
  margin-bottom: 10px;
}
.cookie-preferences-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-preferences-content .cookie-category label {
  font-family: var(--brand-font-body);
  color: var(--color-dark);
  font-weight: 600;
  font-size: 1.04rem;
}
.cookie-preferences-content .cookie-toggle {
  width: 48px;
  height: 28px;
  border-radius: 16px;
  background: var(--color-grey);
  position: relative;
  cursor: pointer;
}
.cookie-preferences-content .cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-preferences-content .cookie-toggle .slider {
  position: absolute;
  top: 3px; left: 5px;
  width: 22px; height: 22px;
  background: var(--color-secondary);
  border-radius: 50%;
  transition: transform .17s, background .13s;
}
.cookie-preferences-content .cookie-toggle input:checked + .slider {
  transform: translateX(16px);
  background: var(--color-primary);
}
.cookie-preferences-content .cookie-desc {
  font-size: 0.93rem;
  color: var(--color-grey-dark);
  margin-left: 3px;
}
.cookie-preferences-content .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

/* Essential always enabled */
.cookie-preferences-content .cookie-category.essential .cookie-toggle {
  background: var(--color-grey-dark);
  pointer-events: none;
  opacity: 0.55;
}

/* ===================================================
   General Utility & Spacing
   =================================================== */
@media (max-width: 1023px) {
  .card-container { gap: 20px; }
  .feature-grid { gap: 20px; }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 8px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
    max-width: 100vw;
  }
  .header-flex, .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .content-wrapper {
    align-items: flex-start;
    padding: 0;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item {
    width: 100%;
    min-width: unset;
    max-width: unset;
    padding: 24px 12px 18px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .card {
    padding: 21px 11px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 10px;
  }
  .section h1, .section h2 {
    font-size: 1.5rem;
  }
  .text-section {
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 18px 10px 18px 12px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.25rem;
  }
  h2 {
    font-size: 1.07rem;
  }
  .cta-btn {
    font-size: 0.99rem;
    padding: 12px 14px;
    margin-top: 12px;
  }
}

/* ===================================================
   Geometric + Modern Decorative Elements
   =================================================== */
/* (Use only for accent, no absolute layout for core content as per rules) */
.feature-item::before {
  content: '';
  display: block;
  width: 46px; height: 6px;
  background: var(--color-secondary);
  border-radius: 10px;
  margin-bottom: 14px;
  opacity: 0.13;
}

/* Remove before-bar for feature-items with icons */
.feature-item img + h3 {
  margin-top: -12px;
}
.feature-item img + h3::before {
  display: none;
}

/* Decorative angle on header (to look modern/bold) */
header::after {
  content: '';
  display: block;
  position: absolute;
  width: 180px; height: 30px;
  bottom: -15px; right: 0;
  background: var(--color-secondary);
  opacity: 0.25;
  border-radius: 20px 50px 0 0;
  z-index: 1;
  pointer-events: none;
}

/* ===================================================
   Scrollbar Styling
   =================================================== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-accent);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
  border: 3px solid var(--color-accent);
}

/* ===================================================
   Focus Styles for Accessibility
   =================================================== */
a:focus, button:focus, .cta-btn:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===================================================
   Miscellaneous / Polishing
   =================================================== */
div[hidden], .mobile-menu[hidden], .cookie-preferences-modal[hidden] {
  display: none !important;
}

hr {
  border: none;
  border-top: 2px solid var(--color-grey);
  margin: 32px 0;
}

/* Accordions & FAQ lists (if using future JS) */
.text-section h3 {
  margin-top: 12px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-primary);
}

.text-section ul, .text-section ol {
  padding-left: 1.4em;
  margin-bottom: 8px;
  color: var(--color-grey-dark);
  font-size: .97rem;
}
.text-section li {
  margin-bottom: 3px;
}

/* Responsive Table (for policy pages if needed) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 1rem;
}
th, td {
  border: 1.5px solid var(--color-grey);
  padding: 8px 12px;
  text-align: left;
}
th {
  background: var(--color-accent);
  font-weight: bold;
}

/* ===================================================
   Animations
   =================================================== */
.cta-btn, .cookie-btn {
  transition: background 0.18s, color 0.17s, transform 0.12s, box-shadow 0.17s;
}
.feature-item, .card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item:hover, .card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 42px 0 rgba(32,39,78,0.19);
}

/* ===================================================
   End of style.css
   =================================================== */
