/* ===== CSS RESET & NORMALIZE (Safe for all browsers) ===== */
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #fff;
  color: #2c2c2c;
  font-family: 'Lora', Georgia, 'Times New Roman', Times, serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  min-height: 100vh;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #283593;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #00BFAE;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
strong {
  font-weight: 600;
}

/* ===== BODY TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, 'Times New Roman', Times, serif;
  color: #202142;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #333;
  letter-spacing: 0.01em;
}
.text-section ul, .content-wrapper ul {
  padding-left: 24px;
  margin-bottom: 18px;
}
.text-section li {
  margin-bottom: 9px;
  font-size: 1rem;
}


/* ===== BRAND & LAYOUT COLORS ===== */
:root {
  --color-primary: #283593;
  --color-primary-dark: #1b254c;
  --color-secondary: #00BFAE;
  --color-accent: #F5F7FA;
  --color-bg: #faf9f6;
  --color-white: #fff;
  --color-grey-light: #ecedf3;
  --color-grey-mid: #a4a7b5;
  --color-grey-dark: #43475a;
  --color-shadow: rgba(40,53,147,0.07);
  --color-border: #dcdfe5;
  --color-error: #d32f2f;
  --color-success: #00824d;
}


/* ===== CONTAINER & SECTION SPACING ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 900px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section, section {
    padding: 28px 6px;
    margin-bottom: 40px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.text-section {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* ===== FLEXBOX LAYOUTS ===== */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.feature-grid > div, .card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 320px;
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: box-shadow 0.24s, transform 0.18s;
}
.feature-grid > div:hover, .card:hover {
  box-shadow: 0 6px 22px rgba(40,53,147,0.11);
  transform: translateY(-4px) scale(1.018);
  z-index: 1;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 2px 16px var(--color-shadow);
  transition: box-shadow 0.24s, transform 0.18s;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 16px;
}
.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: 900px) {
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
  .feature-grid > div, .card {
    min-width: 180px;
    padding: 18px 8px 14px 8px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 22px;
  }
  .feature-grid > div, .card {
    max-width: 100%;
    min-width: unset;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}


/* ===== HEADER, NAV, FOOTER ===== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 30;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 78px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Lora', Georgia, serif;
  color: #394263;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 3px 2px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #f5f7fa;
  color: var(--color-primary);
}

.cta-btn {
  background: var(--color-primary);
  color: #fff;
  font-family: 'Lora', Georgia, serif;
  border: none;
  padding: 12px 30px;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 1px 6px var(--color-shadow);
  cursor: pointer;
  display: inline-block;
  transition: background 0.21s, color 0.19s, box-shadow 0.17s, transform 0.15s;
  letter-spacing: 0.02em;
  margin-left: 20px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 18px rgba(0,191,174,0.10);
}

footer {
  background: #f8f8f9;
  color: #2c2c2c;
  border-top: 1px solid var(--color-border);
  margin-top: 60px;
  padding: 38px 0 20px 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}
footer nav a {
  color: #3a3e57;
  font-family: 'Lora', serif;
  font-size: 1rem;
  padding: 3px 2px;
  transition: color 0.19s;
}
footer nav a:hover { color: var(--color-primary); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.97rem;
  line-height: 1.5;
  color: #3a3a3a;
}
.footer-contact img {
  width: 19px;
  margin-right: 7px;
  vertical-align: middle;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 20px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 2px 11px var(--color-shadow);
  font-size: 1.1rem;
  font-style: italic;
  color: #22213c;
  position: relative;
  transition: box-shadow 0.28s, border 0.2s;
}
.testimonial-card:hover {
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 7px 22px rgba(40,53,147,0.09);
  z-index: 1;
}
.testimonial-card p {
  margin-bottom: 0;
  font-style: italic;
  color: #23244c;
  font-size: 1.1rem;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-style: normal;
  color: var(--color-primary-dark);
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.99rem;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 18px 12px;
  }
  .testimonial-card span {
    margin-top: 2px;
  }
}

/* ===== BUTTONS & INTERACTIVE ===== */
button, .btn {
  font-family: 'Lora', serif;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  font-size: 1.04rem;
  font-weight: 500;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.16s;
  margin-right: 9px;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.028);
  outline: none;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 18px;
  z-index: 97;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,53,147,0.92);
  z-index: 120;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 22px 12px 22px;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.64,1.39,.25,.93);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  animation: menu-fade-in 0.27s ease;
}
@keyframes menu-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  padding: 12px 6px;
  border-radius: 4px;
  transition: background 0.2s, color 0.19s;
  letter-spacing: 0.01em;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.07);
  color: var(--color-secondary);
}
@media (max-width: 1050px) {
  header .container nav, header .container .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1051px) {
  .mobile-menu { display: none !important; }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #f8f8f9;
  color: #252632;
  padding: 18px 24px 22px 24px;
  box-shadow: 0 -2px 17px rgba(40,53,147,0.10);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  z-index: 3000;
  animation: cookie-slide-in 0.38s cubic-bezier(.65,1.2,.31,1.02);
}
@keyframes cookie-slide-in {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
.cookie-banner button {
  padding: 10px 22px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 22px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.18s, color 0.12s, transform 0.12s;
  border: none;
  margin-right: 0;
}
.cookie-banner button.accept {
  background: var(--color-success);
}
.cookie-banner button.reject {
  background: var(--color-error);
}
.cookie-banner button.settings {
  background: var(--color-secondary);
  color:#fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32,33,66,0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  animation: cookie-modal-fade 0.32s ease;
}
@keyframes cookie-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .cookie-modal-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 40px rgba(40,53,147,0.14);
  padding: 34px 28px 23px 28px;
  max-width: 470px;
  width: 94%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px; right: 18px;
  background: none;
  color: #444;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Lora', serif;
}
.cookie-switch {
  width: 40px;
  height: 22px;
  background: var(--color-grey-light);
  border-radius: 20px;
  position: relative;
  margin-right: 7px;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-switch input {
  display: none;
}
.cookie-switch span {
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: left 0.2s;
}
.cookie-switch input:checked + span {
  left: 20px;
  background: var(--color-secondary);
}
.cookie-category.essential .cookie-switch {
  background: var(--color-success);
}
.cookie-category.essential label { opacity: 0.6; }
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .cookie-modal .cookie-modal-box {
    padding: 22px 8px 17px 8px;
    max-width: 97vw;
  }
}
@media (max-width: 600px) {
  .cookie-banner {
    font-size: 0.97rem;
    padding: 14px 7px 16px 7px;
  }
  .cookie-modal .cookie-modal-box {
    font-size: 0.98rem;
  }
}


/* ===== FORM ELEMENTS ===== */
input, textarea, select {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #fafafd;
  color: #22213c;
  transition: border-color 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* ==== FEATURE-ITEM (if used) ===== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
  padding: 0;
}

/* ===== ANIMATIONS & HOVER EFFECTS ===== */
section, .card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.14s;
}
.feature-grid img, .card img {
  height: 56px;
  width: 56px;
  margin-bottom: 10px;
  border-radius: 10px;
}
.feature-grid h3, .card h3 {
  margin-bottom: 8px;
  font-size: 1.09rem;
  color: var(--color-primary-dark);
  font-weight: 600;
}
.feature-grid p, .card p {
  font-size: 0.99rem;
  color: #3d3a2f;
  opacity: 0.92;
}

/* ===== MISC & UTILITIES ===== */
::-webkit-scrollbar { width: 8px; background: #f6f6f6; }
::-webkit-scrollbar-thumb { background: #e4e6ef; border-radius: 8px; }

/* Classic micro-interactions */
a, button, .cta-btn {
  transition: color 0.19s, background 0.17s, box-shadow 0.14s, transform 0.14s;
}

/* Accessibility focus */
a:focus-visible, button:focus-visible {
  outline: 2px dashed var(--color-secondary);
  outline-offset: 2px;
}

/* ===== RESPONSIVE TYPOGRAPHY & SPACING ===== */
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1rem; }
}
@media (max-width: 450px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.12rem; }
  .cta-btn { padding: 10px 14px; font-size: 1rem; }
}

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

/* ===== ENFORCED SPACING & ALIGNMENT RULES (MANDATORY) ===== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

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