/* ================================
   CSS RESET & BASE (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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  height: 100%;
  line-height: 1.5;
  min-height: 100vh;
  background: #FAFBFC;
  color: #183153;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ================================
   BRAND COLORS & FONTS
================================== */
:root {
  --primary: #183153;
  --secondary: #FAFBFC;
  --accent: #FFAC30;
  --accent-bright: #FFD55C;
  --highlight: #1D90FF;
  --attention: #FF3988;
  --card-bg: #FAFBFC;
  --text-main: #183153;
  --text-light: #FFFFFF;
  --shadow-main: 0 4px 20px 0 rgba(24,49,83, 0.07), 0 1.5px 7px 0 rgba(255,172,48,0.17);

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ================================
   TYPOGRAPHY
================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}
p, ul, ol, li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 10px;
}
strong {
  font-weight: 900;
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--primary);
  margin: 0 0 10px 0;
  line-height: 1.4;
}
blockquote span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

/* ================================
   LAYOUT CONTAINERS
================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.header-container,
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}

/* ================================
   HEADER & NAVIGATION
================================== */
header {
  background: var(--primary);
  padding: 0;
}
.header-container {
  min-height: 70px;
}
header img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  padding: 6px 10px;
  transition: color 0.16s;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  border-radius: 1.5px;
  background: var(--accent);
  transition: width 0.24s;
  position: absolute;
  left: 0;
  bottom: 0;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  padding: 12px 28px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 3px 12px 0 rgba(255,172,48, 0.13), 0 1.5px 6px 0 rgba(24,49,83, 0.10);
  cursor: pointer;
  outline: none;
  letter-spacing: 0.4px;
  margin-left: 10px;
  transition: background 0.2s, color 0.2s, transform 0.16s;
  position: relative;
  z-index: 2;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 6px 16px 0 rgba(255,172,48,0.15), 0 1.5px 12px 0 rgba(24,49,83, 0.11);
}

/* ================================
   MOBILE NAVIGATION
================================== */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: 50%;
  padding: 8px 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  z-index: 1030;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  box-shadow: 0 6px 40px 0 rgba(24, 49, 83, 0.24);
  display: flex;
  flex-direction: column;
  transform: translateX(-110vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.7, 0.01, 0.23, 1), opacity 0.24s;
  z-index: 2000;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 18px 14px 8px auto;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1.5px 7px 0 rgba(255,172,48,0.22);
  z-index: 10;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--primary);
  padding: 15px 34px;
  border-radius: 40px;
  background: none;
  transition: background 0.16s, color 0.16s;
  box-shadow: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}
/* ================================
   HERO SECTION
================================== */
.hero {
  background: linear-gradient(90deg, var(--accent) 0% ,#FFD55C 100%);
  padding: 58px 0 44px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  max-width: 700px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.hero p {
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--primary);
}
.hero .btn-primary {
  margin-top: 10px;
  font-size: 1.1rem;
  box-shadow: 0 6px 24px 0 rgba(255,172,48,0.21);
  font-weight: 900;
}

/* ================================
   MAIN SPACING & SECTION PATTERNS
================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: var(--shadow-main);
  transition: transform 0.14s, box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 10px 28px 0 rgba(24,49,83,0.12);
}
.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 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(24,49,83,0.09), 0 1.5px 7px 0 rgba(255,172,48,0.12);
  margin-bottom: 20px;
  position: relative;
  min-width: 0;
  max-width: 700px;
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.07rem;
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.4;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent-bright);
  border-radius: 13px;
  padding: 20px 22px;
  min-width: 190px;
  flex: 1 1 220px;
  box-shadow: 0 2px 10px 0 rgba(24,49,83,0.05);
  margin-bottom: 20px;
  transition: transform 0.14s, box-shadow 0.18s;
}
.feature-item:hover, .feature-item:focus-within {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 7px 20px 0 rgba(255,172,48, 0.15), 0 1.5px 8px 0 rgba(24,49,83, 0.10);
}
.feature-item img {
  height: 44px;
  width: 44px;
  margin-bottom: 8px;
}
.feature-item h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
}
.feature-item p {
  margin-bottom: 0;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

/* ================================
   TEXT SECTIONS, LISTS, & OL
================================== */
ol, ul {
  padding-left: 22px;
  margin-bottom: 12px;
}
.text-section ul, .text-section ol {
  padding-left: 22px;
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 5px;
  list-style: disc inside;
  font-size: 1rem;
}
.text-section li strong {
  color: var(--primary);
}
.text-section a {
  color: var(--highlight);
  border-bottom: 1.5px solid var(--highlight);
  transition: color 0.2s, border-bottom 0.2s;
}
.text-section a:hover, .text-section a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ================================
   FOOTER
================================== */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 0;
}
.footer-container {
  padding: 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
footer img {
  height: 42px;
  width: auto;
}
.footer-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font-display);
  transition: color 0.16s;
  font-weight: 700;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--text-light);
}
.copyright {
  font-size: 0.96rem;
  color: #FFF;
  opacity: 0.88;
  font-family: var(--font-body);
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 36px;
  z-index: 9000;
  box-shadow: 0 -2px 24px 0 rgba(24, 49, 83, 0.17);
  font-size: 1rem;
  gap: 20px;
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-message {
  flex: 1 1 340px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 4px;
  box-shadow: 0 1px 5px rgba(255,172,48,0.08);
  transition: background 0.2s, color 0.2s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #fff;
  color: var(--accent);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,49,83, .61);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 400px;
  width: 94vw;
  box-shadow: 0 10px 40px 0 rgba(24,49,83,0.18);
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  color: var(--primary);
}
.cookie-modal-content h2 {
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 900;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-toggle {
  appearance: none;
  width: 34px;
  height: 20px;
  background: #ddd;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}
.cookie-toggle:checked:before {
  left: 16px;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.55rem;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

/* ================================
   ANIMATIONS
================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .content-wrapper > * {
  animation: fadeInUp 0.7s;
}
.section .content-wrapper > * {
  animation: fadeInUp 0.75s;
}

.feature-item, .testimonial-card, .card {
  animation: fadeInLeft 0.78s;
}

/* ================================
   RESPONSIVE DESIGN – MOBILE-FIRST
================================== */
@media (max-width: 1050px) {
  .container {
    max-width: 97vw;
  }
  .hero .container {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-item {
    min-width: unset;
    width: 100%;
  }
  .footer-container, .header-container {
    gap: 14px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 2.05rem;
  }
  h2, .h2 {
    font-size: 1.45rem;
  }
  .hero {
    padding: 38px 0 32px 0;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 4px;
  }
  .content-wrapper {
    gap: 22px;
  }
  .footer-container,
  .header-container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .hero .container {
    padding: 0 4px;
  }
  .hero .content-wrapper {
    max-width: 100%;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 15px 10px;
    max-width: 99vw;
    font-size: 0.98rem;
  }
  .feature-item {
    padding: 16px 14px;
    border-radius: 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1, .h1 {
    font-size: 1.35rem;
  }
  h2, .h2 {
    font-size: 1.07rem;
  }
  .btn-primary,
  .cookie-btn {
    font-size: 0.99rem;
    padding: 9px 16px;
  }
  .hero {
    padding: 22px 0 14px 0;
  }
  .section {
    margin-bottom: 26px;
    padding: 12px 2px;
  }
  .footer-container {
    padding: 18px 6px;
    gap: 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 6px;
  }
  .cookie-banner-message {
    font-size: 0.99rem;
  }
}

/* ================================
   UTILITIES & EXTRAS
================================== */
::-webkit-scrollbar {
  width: 7px;
  background: #faebc1;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

/* Clearly style focus for a11y */
:focus-visible {
  outline: 2.5px solid var(--highlight);
  outline-offset: 1.5px;
  border-radius: 3px;
}

/* Extra spacing for section titles */
.content-wrapper > h2:not(:first-child),
.content-wrapper > h3:not(:first-child) {
  margin-top: 20px;
}

/* ================================
   DEBUG & LINTING
================================== */
/* No display: grid, grid-*, column-*, clamp() used. Flexbox spacing only. All cards/sections min 20px margin/gap. */
