/* ===== 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #F7F7F4;
  color: #203864;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}
/* ===== CUSTOM FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Merriweather:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
:root {
  --primary: #203864;
  --secondary: #39998E;
  --accent: #F7F7F4;
  --surface: #FFFFFF;
  --text-main: #203864;
  --text-dark: #172240;
  --text-light: #6b7b98;
  --border: #e4e4e1;
  --shadow: rgba(32, 56, 100, 0.07) 0px 6px 24px 0px, rgba(32,56,100,0.08) 0px 1.5px 3px 0px;
  --radius-card: 10px;
  --radius-btn: 6px;
  --font-display: 'Merriweather', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0.2, 0.6, 1.2);
}
/* ===== TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-main);
  background: var(--accent);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}
h4, h5, h6 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}
p, ul, ol, .text-section p, .text-section ul {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 14px;
}
strong, b {
  font-weight: bold;
}
.text-light { color: var(--text-light); }
/* Links */
a {
  color: var(--secondary);
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}
/* ====== CONTAINER & LAYOUT ====== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* == HEADER, NAVIGATION == */
header {
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(32,56,100,0.04);
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding-top: 6px;
  padding-bottom: 6px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-main);
  opacity: 0.88;
  padding: 8px 10px;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  background: #eef6f4;
}
.button-primary {
  font-family: var(--font-body);
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  padding: 10px 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(32,56,100,0.09);
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-left: 8px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.button-primary:hover, .button-primary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(32,56,100,0.13);
  transform: translateY(-2px) scale(1.03);
}
.button-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-btn);
  font-weight: 600;
  padding: 9px 22px;
  transition: background var(--transition), color var(--transition);
}
.button-secondary:hover, .button-secondary:focus {
  background: var(--secondary);
  color: #fff;
}
/* ===== FLEX LAYOUT MANDATORY CLASSES ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  margin-bottom: 20px;
  position: relative;
  box-shadow: var(--shadow);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}
.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(--radius-card);
  box-shadow: 0 2px 10px rgba(32,56,100,0.11);
  margin-bottom: 22px;
  border: 1.2px solid #ebedef;
  min-width: 220px;
  max-width: 520px;
}
.testimonial-card p {
  color: var(--text-main);
  font-size: 1.1em;
  font-family: var(--font-display);
  font-style: italic;
}
.testimonial-card span {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.98em;
  font-family: var(--font-body);
  margin-top: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* == GRID-LIKE FLEX FOR FEATURE/POSTS == */
.feature-grid, .service-teaser-grid, .team-member-grid, .blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div,
.service-teaser-grid > div,
.team-member-grid > div,
.blog-post-list > div {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius-card);
  border: 1.2px solid #ebecee;
  padding: 28px 24px 22px 24px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.2s;
}
.feature-grid > div:hover,
.service-teaser-grid > div:hover,
.team-member-grid > div:hover,
.blog-post-list > div:hover {
  box-shadow: 0 6px 24px rgba(32,56,100,0.11),0 1.5px 3px 0 rgba(32,56,100,.10);
  transform: translateY(-4px) scale(1.012);
}
/* == Call to Action == */
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  padding: 32px 8px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 2px 18px rgba(32,56,100,.05);
}
.cta .button-primary {
  margin-top: 18px;
}
/* == Contact Info == */
.contact-info-box {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 210px;
  max-width: 520px;
}
.contact-info-box p,
.contact-info-box a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1em;
  color: var(--text-main);
  line-height: 1.6;
}
.contact-info-box a {
  color: var(--secondary);
  font-weight: 600;
}
.contact-info-box a:hover, .contact-info-box a:focus {
  color: var(--primary);
  text-decoration: underline;
}
/* == Specials for FAQ, Download, Categories == */
.faq-list,
.downloads-list {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 24px;
}
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1em;
  margin-bottom: 18px;
  align-items: center;
}
.categories-filter a {
  font-weight: 600;
  padding: 6px 16px;
  color: var(--text-main);
  background: var(--accent);
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.categories-filter a:hover, .categories-filter a.active {
  background: var(--secondary);
  color: #fff;
}
/* == Star ratings == */
.star-ratings {
  display: flex;
  align-items: center;
  gap: 4px;
}
.star-ratings img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(32,56,100,.08));
}
/* == Footer == */
footer {
  padding: 34px 0 24px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  margin-bottom: 6px;
}
.footer-nav a {
  color: var(--text-light);
  font-size: 0.97em;
  transition: color 0.13s;
}
.footer-nav a:hover { color: var(--secondary); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.04em;
  color: var(--text-main);
  opacity: .87;
  letter-spacing: 0.03em;
}
.footer-brand img {
  width: 32px;
  height: 32px;
  margin-right: 5px;
}
/* == HERO section == */
.hero {
  padding: 58px 0 38px 0;
  background: linear-gradient(120deg, #F7F7F4 90%, #eaf8f6 100%);
}
.hero .container {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 600px;
  text-align: left;
  gap: 26px;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
  margin-bottom: 10px;
}
.hero p {
  color: var(--text-light);
  font-size: 1.15rem;
}
.hero .button-primary {
  margin-top: 16px;
}
/* == Blog & Legal (policy) sections == */
.legal, .about, .services, .features {
  background: none;
}
.legal .text-section p, .legal .text-section ul {
  margin-bottom: 14px;
}
.legal .text-section ul {
  padding-left: 16px;
  list-style: disc;
}
/* == Cookie Consent Banner == */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 10020;
  background: #fff;
  color: var(--text-main);
  box-shadow: 0 -2px 8px rgba(32,56,100,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 8vw 18px 8vw;
  align-items: flex-start;
  font-size: 1em;
  transition: transform var(--transition), opacity var(--transition);
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .banner-text {
  color: var(--text-dark);
  margin-bottom: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-body);
  border-radius: var(--radius-btn);
  padding: 8px 22px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  border: none;
  margin-right: 2px;
  background: #eef6f4;
  color: var(--primary);
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: #dedede;
  color: #444a54;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  border: 1px solid var(--secondary);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}
/* == Cookie Modal == */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(32, 56, 100, 0.19);
}
.cookie-modal-backdrop.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeinModalBg 0.30s linear;
}
@keyframes fadeinModalBg { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(32,56,100,0.13);
  min-width: 320px;
  max-width: 97vw;
  width: 420px;
  padding: 34px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideDownModal 0.22s cubic-bezier(0.45, 0.25, 0.7, 1.1);
}
@keyframes slideDownModal { from { transform: translateY(-44px); opacity:0; } to { transform: translateY(0); opacity:1; } }
.cookie-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 9px;
}
.cookie-modal .modal-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-modal label {
  font-size: 1em;
  user-select: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.cookie-modal .toggle-switch {
  width: 38px;
  height: 22px;
  border-radius: 22px;
  background: #eef6f4;
  position: relative;
  margin-right: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  transition: transform 0.18s;
  transform: translateX(0);
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
  transform: translateX(16px);
}
.cookie-modal .cookie-btn {
  background: var(--primary);
  color: #fff;
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: var(--secondary);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  opacity: .68;
  transition: color 0.13s, opacity 0.11s;
}
.cookie-modal .modal-close:hover {
  color: var(--secondary);
  opacity: 1; 
}
/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 8px;
  border: none;
  padding: 7px 16px;
  z-index: 10101;
  cursor: pointer;
  position: relative;
  margin-left: 8px;
}
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
  header nav, header .button-primary {
    display: none;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 350px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 28px rgba(32,56,100,.13);
  z-index: 12010;
  transform: translateX(100%);
  transition: transform 0.29s cubic-bezier(0.47,0,0.745,0.715);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  border: none;
  padding: 11px 20px 11px 11px;
  cursor: pointer;
  opacity: 0.8;
  margin-top: 12px;
}
.mobile-menu .mobile-menu-close:hover {
  color: var(--secondary);
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 24px;
}
.mobile-nav a {
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.19rem;
  padding: 8px 2px; 
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #eef6f4;
  color: var(--secondary);
}
@media (max-width: 480px) { .mobile-menu { max-width: 100vw; } }
.mobile-menu {
  box-sizing: border-box;
  padding: 0 0 0 0;
}
/* == Utility Classes == */
.text-section {
  margin-bottom: 20px;
}
.text-section ul, .text-section ol { margin-bottom: 12px; padding-left: 24px; }
.text-section ul { list-style: disc; }
.text-section li {margin-bottom: 8px;}
.qualification-list ul { list-style: circle; padding-left: 19px;}
.qualification-list li {margin-bottom: 7px; font-size: 1em;}
.detailed-service-descriptions h3 {margin-top: 16px; font-size:1.08em; color: var(--primary);}
/* == Responsive patterns == */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid > div, .service-teaser-grid > div, .team-member-grid > div, .blog-post-list > div {
    min-width: 180px;
    flex-basis: 220px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 5vw;
  }
  .section {
    padding: 28px 6vw;
    margin-bottom: 40px;
  }
  .hero {
    padding: 36px 0 20px 0;
  }
  .content-wrapper { gap: 14px; }
  .feature-grid,.service-teaser-grid,.team-member-grid,.blog-post-list { gap: 14px; }
  .feature-grid > div, .service-teaser-grid > div, .team-member-grid > div, .blog-post-list > div {
    min-width: 98%;
    flex-basis: 98%;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 19px 12px 16px 12px;
  }
  .testimonial-card, .contact-info-box, .faq-list, .downloads-list {
    min-width: 100%;
    max-width: 100%;
    padding: 14px 8px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  .cta .content-wrapper { padding: 18px 4px; }
  .section { padding: 16px 2vw; }
}
/* == Animations for hover/micro-interactions == */
.button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner .cookie-btn {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.testimonial-card, .contact-info-box, .feature-grid > div, .service-teaser-grid > div, .team-member-grid > div, .blog-post-list > div {
  transition: box-shadow 0.16s, transform 0.16s;
}
/* == Visual Hierarchy Tutorial for LEGAL pages == */
.legal .text-section h3 {
  margin-top: 18px;
  font-size: 1.06em;
  color: var(--primary);
  font-weight: 700;
}
/* ========== END OF CSS FILE ========== */
