/* ----------- 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;
  box-sizing: border-box;
  font-size: 100%;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #f8f9fb;
  color: #23395d;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s;
}
input, textarea, select {
  font-family: inherit;
}

/* ----------- BRAND VARIABLES ----------- */
:root {
  --primary: #23395d;
  --secondary: #f6ba60;
  --accent: #ffffff;
  --gray-900: #1a2330;
  --gray-700: #40536f;
  --gray-400: #93a2b8;
  --gray-100: #f1f4f8;
  --shadow-card: 0 2px 12px rgba(35, 57, 93, 0.08);
  --radius: 12px;
  --transition-main: 0.2s cubic-bezier(.4,0,.2,1);

  /* Font stacks as fallback */
  --font-display: 'Merriweather', 'Georgia', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ----------- TYPOGRAPHY ----------- */
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

p, li, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-900);
}

strong {
  font-weight: 700;
  color: var(--primary);
}

/* Typography scale for responsiveness */
@media (min-width: 576px) {
  h1, .hero h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}

@media (min-width: 992px) {
  h1, .hero h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

/* ----------- CONTAINER & LAYOUT ----------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  flex-direction: row;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.rating-summary, .star-ratings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--gray-700);
  font-family: var(--font-body);
  background: var(--gray-100);
  border-radius: 8px;
  padding: 9px 16px;
  font-weight: 600;
}

ul li, .content-wrapper ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
}
ul li img {
  width: 24px;
  height: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

/* ----------- HERO / CALL TO ACTION ----------- */
.hero {
  background: linear-gradient(90deg, #23395d 75%, #f6ba60 100%);
  color: var(--accent);
  padding: 60px 0 50px 0;
  margin-bottom: 0px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.hero .content-wrapper {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 4px 24px rgba(35, 57, 93, 0.10);
}
.hero h1, .hero p {
  color: var(--accent);
}
.hero .cta-main {
  margin-top: 8px;
}

/* ----------- BUTTONS & LINKS ----------- */
.cta-main, .content-wrapper a.cta-main, a.cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 14px 34px;
  margin-top: 16px;
  box-shadow: 0 2px 12px rgba(246,186,96,0.07);
  cursor: pointer;
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
}
.cta-main:hover, .cta-main:focus {
  background: #ffe1a2;
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 26px rgba(246,186,96,0.19);
}
nav a {
  padding: 8px 18px;
  color: var(--primary);
  border-radius: 6px;
  font-size: 1rem;
  transition: background var(--transition-main), color var(--transition-main);
}
nav a:hover, nav a:focus {
  background: var(--gray-100);
  color: var(--secondary);
}

/* ----------- HEADER & NAVIGATION ----------- */
header {
  background: var(--accent);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 9px rgba(35, 57, 93, 0.06);
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  min-height: 74px;
}
header nav img {
  height: 48px;
  margin-right: 18px;
}
header nav a.cta-main {
  margin-left: auto;
  margin-right: 0;
}

/* HIDE mobile menu toggle and mobile menu on desktop */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--accent);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 2rem;
  line-height: 1;
  margin-left: 10px;
  transition: background .19s;
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  display: none;
}

/* ----------- FOOTER ----------- */
footer {
  margin-top: 40px;
  background: #e9ecf2;
  color: var(--primary);
  box-shadow: 0 -2px 9px rgba(35, 57, 93, 0.03);
  padding-top: 30px;
  padding-bottom: 16px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
}
.footer-main nav a {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
  border-radius: 4px;
  padding: 5px 9px;
}
.footer-main nav a:hover { background: var(--gray-400); color: var(--accent); }
.footer-main > a img {
  height: 54px;
  margin-bottom: 8px;
  margin-right: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gray-700);
}
.contact-info img { width: 22px; height: 22px; }

/* ----------- COMPONENTS: TESTIMONIALS ----------- */
.testimonial-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  line-height: 1.6;
  color: var(--gray-900);
}
.testimonial-card p {
  color: var(--gray-900);
  font-size: 1.06rem;
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.98rem;
}

/* ----------- CARD and GRID PATTERNS ----------- */
.card-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 992px) {
  .footer-main {
    gap: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  header nav {
    flex-wrap: wrap;
    padding: 0 12px;
    min-height: 55px;
  }
  .section {
    padding: 32px 12px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .footer-main, .content-grid, .features {
    flex-direction: column;
    gap: 20px;
  }
  .card-container, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
  .hero .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .hero {
    padding: 44px 0 32px 0;
  }
  .hero .content-wrapper {
    padding: 24px 11px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 13px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }
  .text-image-section { flex-direction: column; gap: 15px; }
}
@media (max-width: 600px) {
  h1, .hero h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.12rem; }
  .footer-main > a img { height: 36px; }
}

/* ----------- MOBILE NAV MENU ----------- */
@media (max-width: 992px) {
  header nav > a:not(:first-child),
  header nav > .cta-main {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    border: none;
    position: relative;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--primary);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.33s cubic-bezier(.39,.58,.57,1);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    align-self: flex-end;
    font-size: 2.2rem;
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 8px;
    margin: 20px 20px 0 0;
    cursor: pointer;
    transition: background .15s, color .15s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background: var(--accent);
    color: var(--primary);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 36px;
    gap: 18px;
    margin-top: 32px;
  }
  .mobile-nav a {
    color: var(--accent);
    font-size: 1.25rem;
    padding: 12px 9px;
    border-radius: 8px;
    width: 100%;
    transition: background .19s, color .19s;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--secondary);
    color: var(--primary);
  }
}

/* Overlay fade for mobile menu (darken background behind menu) */
.mobile-menu.open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(35,57,93,0.19);
  z-index: 1999;
  pointer-events: none;
  animation: fadeIn 0.33s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ----------- COOKIE CONSENT BANNER ----------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 16px 16px 16px;
  z-index: 9999;
  box-shadow: 0 -3px 16px rgba(35, 57, 93, 0.16);
  border-radius: 16px 16px 0 0;
  font-size: 1rem;
  animation: slideUpBanner 0.4s;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  margin-top: 6px;
}
.cookie-banner button {
  border-radius: 7px;
  padding: 9px 19px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 2px;
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .2s;
  box-shadow: 0 2px 6px rgba(35,57,93,.05);
}
.cookie-banner .btn-accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #ffe2ac;
  color: var(--primary);
}
.cookie-banner .btn-reject {
  background: #fff;
  color: var(--primary);
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  color: var(--secondary);
  background: var(--gray-100);
}
.cookie-banner .btn-settings {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: var(--accent);
  color: var(--primary);
}

/* ----------- COOKIE PREFERENCES MODAL ----------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(35, 57, 93, 0.58);
  z-index: 10010;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}
.cookie-modal {
  background: var(--accent);
  color: var(--primary);
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(35,57,93,0.16);
  padding: 32px 24px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10020;
  animation: slideDownModal 0.37s;
}
@keyframes slideDownModal {
  from { transform: translateY(-32px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal .modal-title {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 7px;
}
.cookie-modal .modal-section {
  margin-bottom: 13px;
}
.cookie-modal .modal-categories {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cookie-modal .toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal label {
  font-size: 1rem;
}
.cookie-modal .cookie-switch {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--gray-400);
  position: relative;
  display: inline-block;
  margin-left: 11px;
  vertical-align: middle;
  transition: background .21s;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .cookie-switch .slider {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 19px;
  height: 19px;
  background: var(--accent);
  border-radius: 50%;
  transition: left .17s, background .17s;
  box-shadow: 0 2px 6px rgba(35,57,93,.10);
}
.cookie-modal .cookie-switch input:checked ~ .slider {
  left: 20.5px;
  background: var(--secondary);
}
.cookie-modal .cookie-switch input:checked ~ .slider:after {
  background: var(--secondary);
}
/* Essential cookies locked */
.cookie-modal .toggle-row.essential label {
  font-weight: 600;
}
.cookie-modal .cookie-switch.locked {
  background: var(--gray-400);
}
.cookie-modal .cookie-switch.locked .slider {
  background: var(--gray-100);
  opacity: 0.7;
}
.cookie-modal .cookie-switch.locked:after {
  content: '\1f512';
  position: absolute;
  right: -28px;
  top: 2px;
  font-size: 1rem;
  color: var(--gray-400);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 5px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 17px;
  font-size: 1.7rem;
  color: var(--gray-700);
  background: transparent;
  border-radius: 5px;
  padding: 4px 6px;
  cursor: pointer;
  border: none;
  transition: background .13s;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  background: var(--gray-100);
}
.cookie-modal .btn-save {
  background: var(--primary);
  color: var(--accent);
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .17s, color .17s;
}
.cookie-modal .btn-save:hover, .cookie-modal .btn-save:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .btn-cancel {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--gray-400);
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 1rem;
}
.cookie-modal .btn-cancel:hover, .cookie-modal .btn-cancel:focus {
  background: var(--gray-100);
}

/* ----------- MICROINTERACTIONS & TRANSITIONS ----------- */
a, .cta-main, button, .mobile-nav a, nav a, .cookie-banner button, .cookie-modal .btn-save {
  transition: background 0.18s, color 0.15s, transform 0.17s, box-shadow 0.17s;
}
.card, .testimonial-card, .section, .footer-main {
  transition: box-shadow .24s;
}
.card:hover, .testimonial-card:hover, .section:hover {
  box-shadow: 0 4px 32px rgba(35,57,93,0.11);
  z-index: 2;
}

/* ----------- ADDITIONAL SPACING FOR SECTIONS & CARDS ----------- */
.content-wrapper > * + * {
  margin-top: 0;
}

/* ----------- HIGHLIGHT ACCESSIBILITY & CONTRAST ----------- */
.testimonial-card, .rating-summary, .star-ratings {
  background: #f5f7fa;
  color: #232a36;
}
.testimonial-card p, .testimonial-card span {
  color: #232a36;
}
.testimonial-card strong, .rating-summary strong, .star-ratings strong {
  color: var(--primary);
}

/* ----------- UTILITIES ----------- */
.hide { display: none !important; }

/* ----------- END OF CSS ----------- */
