/* ========================
  CSS RESET & BASE
======================== */
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 { scroll-behavior: smooth; }
body, html { height: 100%; font-family: 'Roboto', Arial, sans-serif; color: #223B5A; background: #FAFAFA; min-height: 100vh; }
*, *:before, *:after { box-sizing: inherit; }
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display:block; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
input, button, select, textarea { font-family: inherit; font-size: inherit; }

/* ========================
  BRAND COLORS & TYPOGRAPHY
======================== */
:root {
  --color-primary: #223B5A;
  --color-secondary: #F2D16B;
  --color-accent: #FFFFFF;
  --color-bg: #F7F9FA;
  --color-muted: #ECECEC;
  --color-border: #E4E9EE;
  --color-text: #223B5A;
  --color-heading: #223B5A;
  --color-link-hover: #B89B3F;
  --color-error: #C9402F;
  --color-success: #51A553;
  --card-shadow: 0 4px 16px 0 rgba(34,59,90,0.07);
  --card-radius: 18px;
  --container-max: 1260px;
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  margin-bottom: 16px;
  font-weight: 700;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 700px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}
p, li, label, input, select, textarea {
  font-family: var(--font-body);
  color: var(--color-text);
}
strong, b {
  font-weight: bold;
}
small {
  color: #637087;
}

/* ========================
  CONTAINER & SPACING
======================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* ========================
  HEADER & NAVIGATION
======================== */
header {
  width: 100%;
  padding: 0;
  background-color: var(--color-accent);
  box-shadow: 0 1px 0 var(--color-border);
}
header nav {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-right: 8px;
  transition: color 0.15s;
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: 4px;
}
header nav a:last-child { margin-right: 0; }
header nav a:hover,
header nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
header nav .btn-primary {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 6px 22px;
  border-radius: 999px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-left: auto;
  transition: background 0.16s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 6px rgba(34, 59, 90, 0.07);
  border: none;
  cursor: pointer;
  text-align: center;
}
header nav .btn-primary:hover, header nav .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(34, 59, 90, 0.14);
}
header nav img {
  height: 36px;
  width: auto;
  margin-right: 20px;
}

/* =========================
  MOBILE MENU
========================= */
.mobile-menu-toggle {
  display: flex;
  position: fixed;
  top: 24px;
  right: 22px;
  z-index: 1100;
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 2px 12px rgba(34,59,90,0.08);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  outline: 2px solid var(--color-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,59,90,0.94);
  color: var(--color-accent);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.67,0,0.33,1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.1rem;
  position: absolute;
  top: 26px;
  right: 32px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 88px;
  gap: 24px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.2rem;
  font-family: var(--font-display);
  padding: 12px 24px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  width: 220px;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (min-width: 1121px) {
  .mobile-menu-toggle { display: none !important; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 1120px) {
  header nav a { display: none; }
  header nav a.btn-primary { display: none !important; }
}

/* =====================
  SECTION & SPACING PATTERNS
===================== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.features, .services, .about, .about-mission, .team, .blog-list, .legal, .cta, .contact-info, .thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-accent);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  padding: 32px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px #223B5A12;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #FFF;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 10px #223B5A14;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.14s, transform 0.16s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 34px #223B5A20;
  transform: translateY(-3px) scale(1.013);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Ratings summary for testimonials */
.ratings-summary {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 600;
  background: #F7F3E6;
  padding: 12px 24px;
  border-radius: 22px;
  box-shadow: 0 1px 4px #223B5A10;
}

/* =======================
  HERO SECTION (Landing, etc)
======================= */
.hero {
  background: #F7F9FA;
  padding: 56px 0 40px 0;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.18rem;
  color: #374354;
  max-width: 600px;
}

@media (min-width: 700px) {
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.23rem; }
}

/* ==========================
 BUTTONS / LINKS
========================== */
.btn-primary, a.btn-primary, button.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 10px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 8px #223B5A08;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.17s, box-shadow 0.19s;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 8px 32px #223B5A18;
  transform: translateY(-2px) scale(1.018);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 8px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px #B89B3F09;
  transition: background 0.16s, color 0.15s;
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FAE7A4;
  color: var(--color-primary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-link-hover);
}

/* ===================
  FEATURES & SERVICES
=================== */
.features ul, .services ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 0;
}
.features ul li, .services ul li {
  font-size: 1rem;
  color: #425377;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.5;
}
.features ul li img, .services ul li img {
  width: 28px; height: 28px;
}

/* ===========
CTA
============ */
.cta {
  background: #F2D16B22;
  border-radius: var(--card-radius);
  margin-bottom: 60px;
}
.cta .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.cta h2 {
  font-size: 2rem;
}

/* ============== 
   BLOG
============== */
.blog-list article {
  background: #FFF;
  border-radius: var(--card-radius);
  box-shadow: 0 2px 8px #223B5A07;
  margin-bottom: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.13s, transform .16s;
}
.blog-list article:hover { box-shadow: 0 6px 22px #223B5A17; transform: translateY(-2px); }

input[type="search"] {
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 1rem;
  background: #F1F2EE;
  border: 1px solid var(--color-border);
  margin: 8px 0 0 0;
  transition: border 0.16s, box-shadow 0.19s;
}
input[type="search"]:focus {
  border: 1.5px solid var(--color-secondary);
  outline: none;
  box-shadow: 0 2px 8px #F2D16B20;
}

/* =============
TESTIMONIALS
============= */
.testimonials .testimonial-card {
  background: #FBFBF8;
  border-radius: var(--card-radius);
  color: var(--color-text);
  font-size: 1.12rem;
  box-shadow: 0 3px 16px #223B5A10;
  max-width: 640px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.testimonials .testimonial-card strong {
  color: var(--color-primary);
  font-size: 1.03rem;
  margin-top: 2px;
  font-family: var(--font-display);
}
.testimonials h2, .testimonials h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
}

/* =============
  FOOTER
============== */
footer {
  background: #FFF;
  border-top: 1.5px solid var(--color-border);
  margin-top: 60px;
  padding: 40px 0 16px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-primary);
}
.footer-brand img {
  width: 48px; height: 48px;
  border-radius: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 1rem;
}
.footer-nav a { color: #425377; }
.footer-nav a:hover, .footer-nav a:focus { color: var(--color-secondary); }
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 8px;
  color: #223B5A;
}
.footer-contact li a {
  color: var(--color-primary);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social a img {
  width: 29px; height: 29px;
  background: #F7F9FA;
  border-radius: 50%;
  transition: background 0.15s, box-shadow 0.13s;
  box-shadow: 0 1px 3px #223B5A12;
}
.footer-social a:hover img, .footer-social a:focus img {
  background: var(--color-secondary);
}

@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
  }
  .footer-brand { margin-bottom: 8px; }
}

/* ===============================
 COOKIE CONSENT BANNER
=============================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1400;
  background: #FFF;
  color: var(--color-text);
  box-shadow: 0 -2px 24px #223B5A17;
  border-top: 2px solid var(--color-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 26px 24px;
  width: 100vw;
  animation: fadeInBanner 0.36s cubic-bezier(.66,.01,.36,1);
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(80px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #374354;
  max-width: 740px;
  text-align: center;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-btn {
  background: var(--color-primary);
  color: #FFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 9px 24px;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.18s, color 0.14s, box-shadow 0.15s;
  box-shadow: 0 2px 8px #223B5A11;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.cookie-btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.cookie-btn-secondary:hover, .cookie-btn.cookie-btn-secondary:focus {
  background: #F7F3E6;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 60%);
  z-index: 1500;
  background: #FFF;
  border-radius: 22px;
  box-shadow: 0 10px 44px #223B5A33;
  padding: 36px 28px 28px 28px;
  min-width: 315px;
  max-width: 90vw;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.6,0,.39,1), opacity .18s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0%);
}
.cookie-modal h3 { color: var(--color-primary); font-family: var(--font-display); }
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle[disabled] {
  opacity: 0.7;
  pointer-events: none;
}
.cookie-toggle {
  appearance: none;
  width: 46px;
  height: 26px;
  background: #E7EBEF;
  border-radius: 18px;
  position: relative;
  outline: none;
  transition: background 0.14s;
  border: none;
  margin-left: 14px;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 0.15s;
}
.cookie-toggle:checked:before { transform: translateX(20px); }
.cookie-modal .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
}

/* Cookie modal close (X) */
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 22px;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  cursor: pointer;
  outline: none;
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: var(--color-secondary);
}

/* ========================
  LEGAL PAGE STYLES
======================== */
.legal h1 { margin-bottom: 18px; }
.legal h2 { margin-top: 28px; margin-bottom: 10px; font-size: 1.25rem; }
.legal ul {
  padding-left: 22px;
  margin-bottom: 18px;
}
.legal li {
  list-style-type: disc;
  margin-bottom: 8px;
  color: #425377;
  font-size: 1rem;
}

/* =========================
   RESPONSIVE/MOBILE STYLES
========================= */
@media (max-width: 1120px) {
  header nav {
    flex-direction: row;
    gap: 12px;
    padding: 14px 0;
  }
  header nav img { margin-right: 10px; height: 29px; }
}
@media (max-width: 800px) {
  .container { padding: 0 14px; }
  section, .section { padding: 30px 6px; }
  .card { padding: 20px 10px; }
  .footer-brand img { width: 38px; height: 38px; }
  .footer-social a img { width: 24px; height: 24px; }
}
@media (max-width: 700px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.17rem; }
  .hero { padding: 32px 0 22px 0; }
  .features ul li img, .services ul li img { width: 22px; height: 22px; }
}
@media (max-width: 560px) {
  .content-wrapper { gap: 12px; }
  .testimonial-card, .cta, .card, .blog-list article, .cookie-modal { padding: 12px; }
  .cookie-modal { width: 95vw; min-width: unset; }
  .mobile-menu-toggle {
    top: 8px; right: 7px;
    width: 38px; height: 38px;
    font-size: 1.23rem;
  }
  .mobile-menu-close { top: 9px; right: 12px; font-size: 1.5rem; }
}

/* Flex Responsive Adjustments for Text-Image section */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .content-grid { flex-direction: column; gap: 16px; }
  .features ul, .services ul { gap: 12px; }
}

/* MINIMUM 20px BETWEEN ALL CARDS */
.card + .card, .testimonial-card + .testimonial-card, .blog-list article + article {
  margin-top: 20px;
}

/* ===============
  MICRO-INTERACTIONS
================= */
.btn-primary, .btn-secondary, .cookie-btn {
  transition: background 0.15s, color 0.14s, box-shadow 0.19s, transform 0.15s;
}
.card, .testimonial-card, .blog-list article {
  transition: box-shadow 0.13s, transform 0.14s;
}

/* ===============
  ACCESSIBILITY
================= */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===============
  THANK-YOU PAGE & MISC
================= */
.thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.thank-you .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Hide mobile menu & mobile menu toggle on desktop, show on small screens only */
@media (min-width: 1121px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
  header nav a,
  header nav a.btn-primary { display: inline-block !important; }
}

/* Hide main navigation on mobile, show only hamburger */
@media (max-width: 1120px) {
  header nav a,
  header nav a.btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* Z-INDEX Stack */
header { z-index: 1000; position: relative; }
footer { z-index: 800; position: relative; }

/* ===============
  UTILITY CLASSES
================= */
.d-none { display: none !important; }
.align-center { align-items: center !important; justify-content: center !important; }
.flex { display: flex !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* End of CSS */
