/* ==== CSS RESET & BASE STYLES ==== */
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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body { line-height: 1; }
ol,ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }
input,select,textarea,button { font-family: inherit; font-size: inherit; }

:root {
  --color-primary: #1e5287;
  --color-secondary: #21303c;
  --color-accent: #fbf5ef;
  --color-white: #fff;
  --color-black: #181b21;
  --color-grey: #f4f6fa;
  --color-success: #2eb872;
  --color-danger: #e14d4d;
  --color-warning: #fab120;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --border-radius: 18px;
  --shadow: 0 4px 20px rgba(30,82,135,0.14), 0 2px 4px rgba(33,48,60,0.05);
  --transition: 0.22s cubic-bezier(.77,0,.175,1);
}

@media (max-width: 480px) {
  :root {
    --border-radius: 12px;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-secondary);
  background: var(--color-accent);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

/* ==== TYPOGRAPHY ====*/
h1, .hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1px;
  margin-bottom: 10px;
  line-height: 1.16;
}
@media (min-width: 768px) {
  h1, .hero h1 { font-size: 3.5rem; }
}

h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 16px;
  line-height: 1.25;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-secondary);
}
p, li, blockquote {
  font-size: 1rem;
  color: var(--color-secondary);
  font-family: var(--font-body);
  line-height: 1.7;
}
strong {
  font-weight: 700;
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-primary);
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 8px;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
}
ul li img, ol li img {
  vertical-align: middle;
  margin-right: 8px;
  width: 22px; height: 22px;
}
.text-section { display: flex; flex-direction: column; gap: 16px; }

/* ==== HEADER ==== */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(33,48,60,0.07);
  border-bottom: 4px solid var(--color-primary);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 0;
}
header a img {
  height: 48px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-secondary);
  font-weight: 700;
  position: relative;
  padding: 8px 0 8px 0;
  transition: color var(--transition);
}
header nav a:hover,
header nav a.active {
  color: var(--color-primary);
}
header nav .cta-btn {
  margin-left: 18px;
}

/* ==== HERO ==== */
.hero {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 60px 0 48px 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 4px 32px 0 rgba(30,82,135,0.11);
  margin-bottom: 40px;
}
.hero .container {
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  color: var(--color-accent);
}
.hero h1 {
  color: var(--color-accent);
}
.hero p {
  color: var(--color-accent);
  font-size: 1.22rem;
  font-weight: 600;
}

/* ==== BUTTONS & CTAS ==== */
.cta-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px 14px 32px;
  border-radius: var(--border-radius);
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 1px;
  border: none;
  box-shadow: 0 2px 8px rgba(30,82,135,0.12);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  gap: 8px;
}
.cta-btn:hover, .btn:hover, .cta-btn:focus, .btn:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(30,82,135,0.13);
}

/* ==== MOBILE MENU (BURGER) ==== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-grey);
}

.mobile-menu {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 40px;
  box-shadow: 8px 0 40px rgba(30,82,135,0.11);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 2rem;
  color: var(--color-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-grey);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 64px;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-secondary);
  padding: 13px 0;
  border-bottom: 1px solid var(--color-grey);
  transition: color var(--transition), background var(--transition);
  width: 90%;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-primary);
  background: var(--color-grey);
  border-radius: var(--border-radius);
}

/* Hide desktop nav on mobile, burger only appears under 1024px */
@media (max-width: 1024px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  header nav { display: flex !important; }
}

/* ==== SECTIONS & SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.section {
  /* already set above */
}

.features-grid, .faq-list, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.features-grid > div,
.faq-list > div,
.card-container > div,
.card-grid > div,
.content-grid > div {
  flex: 1 1 240px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 20px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.features-grid > div:hover,
.faq-list > div:hover,
.card-container > div:hover,
.card-grid > div:hover {
  box-shadow: 0 10px 40px rgba(33,48,60,0.17);
  transform: translateY(-4px) scale(1.02);
}
.features-grid img {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative; /* for possible decorative use only */
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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) {
  .text-image-section { flex-direction: column; gap:18px; }
  .content-grid { flex-direction: column; gap: 18px; }
  .features-grid, .card-container, .faq-list { flex-direction: column; gap: 18px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 20px rgba(33,48,60,0.10);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-primary);
  position: relative;
  min-width: 220px;
  max-width: 600px;
  color: var(--color-black);
}
.testimonial-card blockquote {
  color: var(--color-primary);
  border-left: none;
  font-size: 1.1rem;
  background: none;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.star-rating img {
  width: 26px; height: 26px;
  filter: drop-shadow(0 1px 2px #bbb);
}

a {
  transition: color var(--transition), background var(--transition);
}
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==== FAQ ==== */
.faq-list > div {
  border-left: 4px solid var(--color-primary);
  background: var(--color-grey);
}
.faq-list h3 {
  margin-bottom: 4px;
  color: var(--color-secondary);
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-secondary);
  color: var(--color-accent);
  padding: 38px 0 20px 0;
  margin-top: 60px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  box-shadow: 0 -2px 24px rgba(30,82,135,0.07);
}
footer p {
  color: white;
}
footer .container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 19px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  justify-content: center;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition);
}
footer nav a:hover {
  color: var(--color-warning);
}
footer p {
  font-size: 0.96rem;
  letter-spacing: 0.2px;
  opacity: 0.92;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  z-index: 20000;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--color-white);
  box-shadow: 0 -6px 32px rgba(30,82,135,0.09);
  padding: 24px 10px 24px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-top: 4px solid var(--color-primary);
  animation: cookie-banner-slide 0.7s ease;
}
@keyframes cookie-banner-slide {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  color: var(--color-secondary);
  text-align: center;
  font-size: 1.02rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  padding: 10px 22px;
  border-radius: var(--border-radius);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-banner .accept:hover { background: var(--color-success); color: var(--color-white); }
.cookie-banner .reject {
  background: var(--color-danger);
  color: var(--color-accent);
}
.cookie-banner .reject:hover { background: var(--color-primary); color: var(--color-accent); }
.cookie-banner .settings {
  background: var(--color-grey);
  color: var(--color-secondary);
  border: 1px solid var(--color-primary);
}
.cookie-banner .settings:hover { background: var(--color-secondary); color: var(--color-accent); }

/* ==== COOKIE CONSENT MODAL ==== */
.cookie-modal {
  position: fixed;
  z-index: 21000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,82,135,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade 0.33s ease;
}
@keyframes cookie-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .modal-content {
  background: var(--color-white);
  border-radius: var(--border-radius);
  padding: 34px 24px 28px 24px;
  max-width: 370px;
  box-shadow: 0 12px 48px rgba(30,82,135,0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-secondary);
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 20px; height: 20px;
  accent-color: var(--color-primary);
}
.cookie-modal .cookie-category.essential label {
  color: var(--color-success);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}
.cookie-modal button {
  padding: 10px 18px;
  border-radius: var(--border-radius);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .accept {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-modal .accept:hover { background: var(--color-success); color: var(--color-white); }
.cookie-modal .reject {
  background: var(--color-danger);
  color: var(--color-accent);
}
.cookie-modal .reject:hover { background: var(--color-primary); color: var(--color-accent); }
.cookie-modal .close {
  background: var(--color-grey);
  color: var(--color-secondary);
  border: 1px solid var(--color-primary);
}
.cookie-modal .close:hover { background: var(--color-secondary); color: var(--color-accent); }
.cookie-modal .info {
  font-size: 0.96rem;
  color: var(--color-secondary);
  opacity: 0.84;
  margin-top: 4px;
}

/* ==== RESPONSIVE LAYOUTS ==== */
@media (max-width: 1024px) {
  header .container { padding: 0 12px; }
  .container { padding: 0 8px; }
  .hero { padding: 37px 0 30px 0; }
}
@media (max-width: 900px) {
  .features-grid, .faq-list, .card-container, .card-grid, .content-grid {
    flex-wrap: wrap;
    gap: 18px;
  }
  .features-grid > div, .card-container > div, .card-grid > div {
    min-width: 180px;
    max-width: 100%;
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  .container { max-width: 100%; padding: 0 5vw; }
  .features-grid, .card-container, .faq-list, .card-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  section, .section {
    margin-bottom: 36px;
    padding: 23px 0;
  }
  h1, .hero h1 { font-size: 2rem; }
  h2 { font-size: 1.33rem; }
  .hero {
    border-radius: 0 0 16px 16px;
    margin-bottom: 24px;
    padding: 26px 0 23px 0;
  }
}
@media (max-width: 480px) {
  header .container { min-height: 60px; }
  .hero { padding: 13px 0 10px 0; }
}

/* ==== FORMS & INPUTS (for contact forms if present) ==== */
input[type="text"], input[type="email"], textarea {
  background: var(--color-grey);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 11px 16px;
  width: 100%;
  margin-bottom: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
  color: var(--color-secondary);
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* ==== Z-INDEX ENSURANCE ==== */
.mobile-menu { z-index: 7000; }
header { z-index: 8000; position: relative; }

/* ==== ANIMATIONS & INTERACTIONS ==== */
.cta-btn, .btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background var(--transition), transform var(--transition), color var(--transition), box-shadow var(--transition);
}
.card, .testimonial-card, .faq-list > div {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .testimonial-card:hover, .faq-list > div:hover {
  box-shadow: 0 7px 29px rgba(33,48,60,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* === Overwrite native outline for better accessibility === */
.cta-btn:focus, .btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-warning);
}

/* ==== ACCESSIBLE VISIBILITY ==== */
@media (max-width: 600px) {
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    font-size: 0.98rem;
  }
}

/* ==== GEOMETRIC/DECORATIVE SHAPES (BOLD) ==== */
.section::before, .hero::before {
  content: '';
  display: none;
}
@media (min-width:1200px) {
  .hero::before {
    content: '';
    position: absolute;
    left: -80px; top: 40px;
    width: 200px; height: 200px;
    background: rgba(251,245,239,0.245);
    border-radius: 60% 40% 60% 40%/70% 44% 65% 30%;
    z-index: 0;
    pointer-events: none;
    display: block;
  }
}

/* ===== UTILITY CLASSES ===== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.text-center { text-align: center !important; }

/* === Hide visually but keep for screenreaders === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* === FOCUS === */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ======= END OF CSS ======= */
