/* --- 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 {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: #fff;
  color: #14213D;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: #14213D;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
  font-weight: 600;
}
a:focus {
  outline: 2px solid #FCA311;
  outline-offset: 2px;
}
a:hover, a:active {
  color: #FCA311;
}

:root {
  --primary: #14213D;
  --secondary: #FCA311;
  --accent: #E5E5E5;
  --white: #fff;
  --black: #1a202c;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  color: var(--primary);
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 28px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.text-section p,
.text-section ul,
.text-section ol {
  font-size: 1.125rem;
  color: var(--black);
  margin-bottom: 16px;
}

strong {
  font-weight: bold;
}

ul, ol {
  margin-left: 22px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }
  h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .text-section p, .text-section ul, .text-section ol {
    font-size: 1rem;
    margin-bottom: 12px;
  }
}

/* --- LAYOUT CONTAINERS --- */
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(20,33,61,0.11);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
  max-width: 350px;
  border: 2px solid var(--accent);
  transition: box-shadow 0.26s cubic-bezier(.4,0,.2,1), border-color 0.26s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 12px 32px rgba(20,33,61,0.17);
  border-color: var(--secondary);
  z-index: 2;
}

.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;
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .content-grid,
  .card-container,
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- NAVIGATION --- */
header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 32px;
  height: 70px;
  background: transparent;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.1rem;
}
.main-nav .logo {
  margin-right: 34px;
  display: flex;
  align-items: center;
  height: 44px;
}
.main-nav img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav a {
  color: var(--white);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.19s;
}
.main-nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}
.main-nav .cta.primary {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 800;
  padding: 10px 19px;
  border-radius: 24px;
  margin-left: auto;
  margin-right: 0;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(252,163,17,0.09);
  transition: background 0.25s;
}
.main-nav .cta.primary:hover, .main-nav .cta.primary:focus {
  background: #fcb300;
  color: var(--white);
}

/* Responsive Navigation */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
@media (max-width: 1024px) {
  .main-nav {
    padding: 0 12px;
    gap: 12px;
    font-size: 1rem;
  }
  .main-nav .logo {
    margin-right: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav a {
    font-size: 1rem;
    padding: 8px 8px;
  }
  .main-nav {
    gap: 8px;
    padding-right: 0;
  }
  .main-nav .cta.primary {
    padding: 9px 12px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 14px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    font-size: 2.15rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1201;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(252,163,17,0.09);
    transition: background 0.23s;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:hover {
    background: #fcb300;
    color: var(--white);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary);
    z-index: 1300;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(.585,0,.15,1);
    box-shadow: -4px 0 38px rgba(20,33,61,0.25);
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    background: var(--secondary);
    color: var(--primary);
    font-size: 2rem;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    align-self: flex-end;
    margin: 20px 18px 0 0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(252,163,17,0.09);
    transition: background 0.23s;
    z-index: 1302;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #fcb300;
    color: var(--white);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 44px 0 0 24px;
    width: 83vw;
    max-width: 370px;
  }
  .mobile-nav a {
    color: var(--white);
    background: none;
    font-size: 1.15rem;
    padding: 12px 0;
    font-weight: 700;
    border-radius: 0;
    transition: color 0.2s;
    min-width: 90%;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: var(--secondary);
    background: none;
  }
}

/* --- BUTTONS & CTA --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  font-size: 1.13rem;
  font-weight: 900;
  padding: 14px 32px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(252,163,17,0.07);
  margin-top: 14px;
  margin-bottom: 10px;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 18px rgba(20,33,61,0.16);
}
.cta.secondary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--primary);
  color: var(--secondary);
}

button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

@media (max-width: 768px) {
  .cta {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 13px 16px;
  }
}

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

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(20,33,61,0.10);
  margin-bottom: 24px;
  color: #172142;
  font-size: 1.15rem;
  position: relative;
  border-left: 6px solid var(--secondary);
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: 0.3px;
  font-weight: 700;
}
.testimonial-card p {
  color: var(--primary);
  margin: 0 0 7px 0;
}
.testimonial-card:before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--secondary);
  position: absolute;
  left: 14px;
  top: 8px;
  font-family: 'Roboto Slab', serif;
  opacity: 0.15;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 14px;
    font-size: 1rem;
  }
}

/* --- CARDS --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 20px 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--secondary);
  font-weight: bold;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-info {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1rem;
  color: var(--white);
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.93;
}
.footer-info a {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-info a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  footer {
    padding: 22px 0 10px 0;
    gap: 14px;
  }
  .footer-nav {
    gap: 14px;
    font-size: 0.95rem;
  }
  .footer-info {
    font-size: 0.94rem;
    flex-direction: column;
    gap: 4px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: var(--primary);
  color: var(--white);
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 26px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 18px rgba(20,33,61,0.18);
  opacity: 0.97;
  animation: slide-up 0.38s cubic-bezier(.54,0,.34,1);
}
@keyframes slide-up {
  from { transform: translateY(80px); opacity: 0; } 
  to { transform: translateY(0); opacity: 0.97; }
}
.cookie-banner p {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-btn {
  padding: 9px 20px;
  font-weight: bold;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  background: var(--secondary);
  color: var(--primary);
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #fcb300; color: var(--white);
}
.cookie-btn.reject {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-btn.settings {
  background: none;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--secondary); color: var(--primary);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3300;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,33,61, 0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.33s cubic-bezier(.5,0,.2,1);
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: 22px;
  max-width: 390px;
  width: 88vw;
  padding: 40px 26px 30px 26px;
  box-shadow: 0 0 36px rgba(20,33,61,0.19);
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: modal-pop 0.4s cubic-bezier(.55,0,.25,1);
}
@keyframes modal-pop {
  0% { transform: scale(0.83); opacity: 0; }
  80% { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1);   }
}
.cookie-modal h2 {
  font-size: 1.29rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 900;
  font-family: 'Roboto Slab', serif;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 15px;
}
.cookie-modal .category-label {
  flex: 1;
  font-size: 1rem;
  font-weight: bold;
}
.cookie-modal-toggle {
  width: 44px;
  height: 24px;
  border-radius: 16px;
  background: var(--accent);
  position: relative;
  cursor: pointer;
  border: none;
  outline: none;
  margin-right: 0;
  transition: background 0.22s;
}
.cookie-modal-toggle[aria-checked="true"] {
  background: var(--secondary);
}
.cookie-modal-toggle .toggle-knob {
  display: inline-block;
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: left 0.2s cubic-bezier(.5,0,.2,1);
}
.cookie-modal-toggle[aria-checked="true"] .toggle-knob {
  left: 23px;
  background: var(--primary);
}
.cookie-required {
  font-size: 0.96rem;
  font-style: italic;
  color: #4c5267;
}
.cookie-modal .cookie-actions {
  margin-top: 18px;
  gap: 12px;
}
.cookie-modal .cookie-btn {
  min-width: 103px;
  font-size: 1rem;
}

@media (max-width: 550px) {
  .cookie-modal {
    padding: 28px 12px 18px 12px;
    font-size: 0.97rem;
  }
}

/* --- VISUAL EFFECTS & SHADOWS --- */
section, .card, .testimonial-card, .cookie-modal {
  box-shadow: 0 2px 12px rgba(20,33,61,0.04);
}

/* --- SPACING & FLEX GAP OVERRIDES --- */
section + section {
  margin-top: 0;
  margin-bottom: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 32px;
    padding: 22px 6px;
  }
}

.card-container,
.content-grid,
.text-image-section,
.footer-nav,
.footer-info,
.cookie-actions,
.cookie-modal .cookie-actions {
  gap: 20px;
}

.card {
  margin-bottom: 20px;
}

/* --- GENERAL UTILS --- */
::-webkit-input-placeholder { color: #a0a0b3; }
::-moz-placeholder { color: #a0a0b3; }
:-ms-input-placeholder { color: #a0a0b3; }
::placeholder { color: #a0a0b3; }

/* Hide scroll on background when menu or modal is open */
body.overflow-hidden {
  overflow: hidden;
}
/* --- END CSS --- */
