/* ================================
   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, ul, ol, 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.5;
  background: #fff;
  color: #1a2530;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F2F5F7;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img, svg {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* =========================================
   Brand Colors & Typography
   ========================================= */
:root {
  --primary: #124364;
  --secondary: #F2F5F7;
  --accent: #FFB156;
  --bg: #fff;
  --bg-alt: #F2F5F7;
  --heading: #124364;
  --text: #293645;
  --gray: #e1e7eb;
  --border: #e5e8eb;
  --shadow: 0 2px 12px 0 rgba(18, 67, 100, 0.06);
  --transition: 0.18s cubic-bezier(.3,1,.4,1);
  --radius: 12px;
  --footer-bg: #f5f7f9;
  --cookie-bg: #fffdfa;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--heading);
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.375rem; font-weight: 700; margin-bottom: 24px; }
h2 { font-size: 1.75rem; font-weight: 600; margin-bottom: 18px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight: 500; }
p, li, span, label {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.7;
  letter-spacing: 0;
}
strong { font-weight: 600; }
small { font-size: 0.93em; }

/* ========================================
   Layout & Containers
   ======================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* For sections that are meant to have only white bg: fix box-shadow glitch */
.section:last-child {
  margin-bottom: 0;
}

/* ========================================
   Header, Navigation, and Branding
   ======================================== */
header {
  width: 100%;
  background: var(--bg);
  box-shadow: 0 2px 14px 0 rgba(18, 67, 100, 0.04);
  z-index: 16;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  min-height: 70px;
  gap: 0;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 12px;
  border-radius: 0;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
nav a:hover,
nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}
nav a.cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius);
  margin-left: 8px;
  box-shadow: 0 2px 14px 0 rgba(255,177,86, 0.09);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
nav a.cta:hover, nav a.cta:focus {
  background: #e19925;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(255,177,86, 0.14);
}

/* =========================
   MOBILE MENU
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2.3rem;
  color: var(--primary);
  border: none;
  margin-left: 20px;
  padding: 5px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 52;
}
.mobile-menu-toggle:hover { color: var(--accent); }
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 36px 0 rgba(18,67,100,0.13);
  z-index: 99;
  transform: translateX(-105vw);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 28px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  color: var(--primary);
  padding: 12px 22px 16px 0;
  cursor: pointer;
  border: none;
  transition: color 0.2s;
  z-index: 102;
}
.mobile-menu-close:hover { color: var(--accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding: 22px 32px;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--primary);
  padding: 14px 0 14px 0;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* Hide navigation in header on mobile */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width: 540px) {
  .mobile-menu {
    padding-top: 12px;
  }
  .mobile-nav {
    padding: 16px 14px;
  }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 30px auto 42px auto;
  padding: 56px 0 52px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero .container { flex-direction: column; align-items: center; }
.hero .content-wrapper {
  max-width: 650px;
  align-items: flex-start;
  gap: 8px;
  margin: 0 auto;
  text-align: left;
}
.hero h1 {
  font-size: 2.125rem;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 0;
}
.hero p {
  color: var(--text);
  font-size: 1.13rem;
  margin-bottom: 20px;
  margin-top: 0;
}
.hero .cta {
  margin-top: 12px;
}

/* ========================================
   Feature Grid & Cards
   ======================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature-grid li {
  flex: 1 1 260px;
  min-width: 240px;
  background: var(--bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 30px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid li:hover {
  box-shadow: 0 4px 32px 0 rgba(18, 67, 100, 0.12);
  transform: translateY(-3px) scale(1.02);
}
.feature-grid img {
  height: 42px;
  width: 42px;
  margin-bottom: 9px;
  object-fit: contain;
}
.feature-item { /* Used if needed elsewhere */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================================================
   Reusable Card and Flex Containers
   ================================================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px 24px 22px;
  min-width: 210px;
  max-width: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 36px 0 rgba(18, 67, 100, 0.17);
  transform: translateY(-3px) scale(1.02);
}
.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;
  margin-bottom: 32px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--bg-alt);
  padding: 20px 26px 18px 26px;
  border-radius: var(--radius);
  box-shadow: 0 2px 24px 0 rgba(18, 67, 100, 0.07);
  margin-bottom: 22px;
  min-width: 260px;
  max-width: 400px;
  transition: box-shadow var(--transition), transform var(--transition);
  font-size: 1.1rem;
  color: #1a2530;
}
.testimonial-card p {
  color: #222f39;
  font-size: 1.04rem;
  text-align: left;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--heading);
}
.testimonial-card:hover { box-shadow: 0 8px 30px 0 rgba(18,67,100,0.14); }

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 10px;
}

.article-list, .blog-preview, .blog-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.article-list article, .blog-preview article, .blog-posts article {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  min-width: 240px;
  flex: 1 1 290px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-list article:hover, .blog-preview article:hover, .blog-posts article:hover {
  box-shadow: 0 6px 24px 0 rgba(18, 67, 100, 0.10);
  transform: translateY(-2px) scale(1.01);
}

/* =====================================
  CTA Buttons & Links
  ===================================== */
.cta, a.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 13px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: 0.004em;
  transition: background 0.15s, box-shadow 0.18s, transform var(--transition);
  box-shadow: 0 2px 14px 0 rgba(18,67,100,0.04);
  margin-top: 8px;
}
.cta:hover, .cta:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 6px 24px 0 rgba(255,177,86,0.16);
  transform: translateY(-2px) scale(1.02);
}
.cta-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  padding: 6px 0;
  margin-top: 8px;
  transition: color 0.18s;
}
.cta-link:hover, .cta-link:focus {
  color: var(--accent);
  text-decoration: none;
}
.secondary-link {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.0rem;
  text-decoration: none;
  margin-top: 3px;
  transition: color 0.15s;
}
.secondary-link:hover, .secondary-link:focus {
  text-decoration: underline;
  color: var(--primary);
}

.filter {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-right: 8px;
  padding: 6px 16px;
  border: none;
  transition: background .15s, color .15s;
  cursor: pointer;
  display: inline-block;
}
.filter:hover, .filter:focus {
  background: var(--primary);
  color: #fff;
}

/* =====================================
   Other Lists (tip/benefits/contact/faq)
  ===================================== */
.tip-list, .benefits-list, .contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.tip-list li, .benefits-list li, .contact-details li {
  background: var(--bg-alt);
  border-radius: 7px;
  padding: 12px 16px 12px 16px;
  color: var(--text);
  font-size: 1rem;
}
.tip-highlight {
  background: #fff6e3;
  color: #985900;
  padding: 13px 17px;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-list h3 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.faq-list p {
  color: var(--text);
  margin-bottom: 0;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.team-member {
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  border-radius: var(--radius);
  min-width: 180px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ========================================
   Footer
   ======================================== */
footer {
  width: 100%;
  background: var(--footer-bg);
  border-top: 1.5px solid var(--gray);
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  justify-content: flex-start;
  padding: 38px 18px 22px 18px;
}
footer nav {
  order: 1;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--primary);
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 12px;
  margin-bottom: 6px;
  transition: color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  order: 2;
  font-size: 0.98rem;
  color: var(--text);
  flex-direction: row;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  margin-right: 3px;
}
.footer-credits {
  font-size: 0.92rem;
  margin-top: 13px;
  color: #8493a9;
  order: 3;
}

/* ========================================
   Cookie Consent Banner & Modal
   ======================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--cookie-bg);
  color: var(--primary);
  box-shadow: 0 -2px 22px 0 rgba(18,67,100,0.14);
  z-index: 1200;
  padding: 22px 12px 20px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  gap: 22px;
  transition: transform 0.4s cubic-bezier(.7,0,.22,1);
}
.cookie-banner.hide {
  transform: translateY(150%);
}
.cookie-banner-text {
  flex: 1 0 320px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  margin-right: 16px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  padding: 9px 18px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  margin-right: 3px;
  transition: background 0.15s, color 0.16s, box-shadow 0.14s;
  font-weight: 600;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
  border: none;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ff9d1d;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #7e97ad;
  border: 1.2px solid #adc8de;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  border-color: var(--primary);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--secondary);
  border: 1px solid #d2dbeb;
  color: var(--primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e8f2ff;
  color: var(--accent);
  border-color: var(--accent);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2000;
  background: rgba(18,67,100,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 0;
}
.cookie-modal.open {
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  padding: 38px 34px 32px 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 95vw;
  width: 390px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  position: relative;
  z-index: 2222;
  animation: fadeInPop .48s;
}
@keyframes fadeInPop {
  from { opacity: 0; transform: scale(0.99) translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal-title {
  font-size: 1.26rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 8px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 2102;
  padding: 7px 9px;
  border-radius: 6px;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: var(--accent);
  background: var(--secondary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-category label {
  flex: 1 0 170px;
  color: #25506f;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  accent-color: var(--primary);
  width: 34px;
  height: 20px;
  cursor: pointer;
}
.cookie-desc {
  color: #6c88a3;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 7px;
  justify-content: flex-end;
}

/* ========================================
   Responsive Breakpoints
   ======================================== */
@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
    padding: 0 9px;
  }
  .feature-grid, .testimonial-slider, .team-list, .article-list, .blog-posts, .blog-preview {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 5px;
  }
  .hero {
    padding: 36px 0 36px 0;
  }
  .section {
    padding: 26px 8px;
    margin-bottom: 42px;
  }
  .feature-grid li, .team-member, .card {
    min-width: 155px;
    padding: 18px 12px 16px 12px;
  }
  .testimonial-card {
    padding: 14px 12px 13px 12px;
    min-width: 160px;
    max-width: none;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.49rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.04rem; }
  nav a, .mobile-nav a { font-size: 1rem; }
  .content-wrapper { gap: 10px; }
  .feature-grid { gap: 8px; }
  .feature-grid li {
    padding: 14px 7px 10px 7px;
    min-width: 120px;
  }
  .section {
    padding: 12px 2px;
    margin-bottom: 29px;
  }
  .testimonial-slider {
    gap: 10px;
  }
  .article-list, .blog-preview, .blog-posts {
    gap: 8px;
  }
  .tip-list li, .benefits-list li, .contact-details li {
    padding: 9px 8px;
    font-size: 0.97rem;
  }
}
@media (max-width: 430px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.96rem;
    padding: 14px 5px 14px 7px;
  }
  .cookie-actions {
    flex-direction: column;
    gap: 6px;
  }
  .cookie-modal-content {
    padding: 24px 7px 20px 7px;
    width: 97vw;
  }
}

/* ================== Animations =============== */
.section, .card, .hero, .testimonial-card, .feature-grid li, .article-list article, .blog-preview article, .blog-posts article, .team-member {
  animation: fadeUp 1s cubic-bezier(.54,1.5,.53,1) 1;
  opacity: 1;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* =========================================
  Utilities (for spacing/layout/colored text)
  ========================================= */
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2px !important; }
.mb-6 { margin-bottom: 6px !important; }
.mb-12 { margin-bottom: 12px !important; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); font-weight: 600; }
.bg-secondary { background: var(--secondary); }
.bg-alt { background: var(--bg-alt); }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/* =====================
   Misc/Overrides
   ===================== */
.cta-hint {
  padding: 8px 11px;
  border-radius: 7px;
  background: #ffe7b6;
  color: #af7203;
  font-size: 0.99rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 11px;
}
.thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 50px 0 70px 0;
}
.thankyou h1 { color: var(--primary); }
.thankyou p { color: var(--text); margin-bottom: 10px; }

/* Hide scroll when mobile menu or cookie modal open */
body.menu-open, body.cookie-modal-open {
  overflow-y: hidden;
}
