/* ===================
   CSS RESET & NORMALIZE
   =================== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}
:focus {
  outline: 2px solid #f2c849;
  outline-offset: 2px;
}

/* ===================
   BRAND & TYPOGRAPHY
   =================== */
:root {
  --color-primary: #15396B;
  --color-secondary: #F2C849;
  --color-accent: #FFFFFF;
  --color-grey-100: #f9fafb;
  --color-grey-200: #ececf0;
  --color-grey-300: #d1d5db;
  --color-grey-800: #20232c;
  --color-black: #111111;
  --color-text: #1a2233;
  --color-muted: #4d5566;
  --shadow-main: 0 4px 20px 0 rgba(21,57,107,0.06);
  --shadow-card: 0 2px 10px 0 rgba(21,57,107,0.10);
  --transition-smooth: 0.2s cubic-bezier(.4,0,.2,1);
  --radius-large: 16px;
  --radius-med: 10px;
  --radius-small: 6px;
  --font-display: 'Merriweather', serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}
@media (max-width: 900px) {
  :root {
    --radius-large: 10px;
    --radius-med: 7px;
    --radius-small: 4px;
  }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-accent);
  min-height: 100vh;
  line-height: 1.7;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.08rem; }
}
p, ul, ol, li, .text-section p {
  color: var(--color-text);
  font-size: 1rem;
  margin-bottom: 14px;
  font-weight: 400;
}
strong { font-weight: 700; }
.text-section {
  margin-bottom: 20px;
}

/* ===================
CONTAINER & SECTION LAYOUTS
=================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-large);
}
@media (max-width: 900px) {
  .section, section { padding: 32px 8px; margin-bottom: 36px; }
  .container { padding: 0 8px; }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===================
   HEADER STYLES
   =================== */
header {
  background: var(--color-accent);
  box-shadow: 0 2px 12px rgba(21,57,107,0.06);
  padding: 0;
  position: relative;
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header a img {
  height: 46px;
  width: auto;
  margin-right: 28px;
}
@media (max-width: 600px) {
  header a img { height: 35px; }
}

/* MAIN NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-black);
  position: relative;
  padding: 7px 3px;
  border-radius: var(--radius-small);
  transition: background var(--transition-smooth), color var(--transition-smooth);
}
.main-nav a:not(.btn-primary):hover, .main-nav a.active {
  background: var(--color-grey-100);
  color: var(--color-primary);
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-med);
  padding: 10px 28px;
  margin-left: 14px;
  box-shadow: 0px 2px 8px 0 rgba(242,200,73,0.11);
  cursor: pointer;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth), color var(--transition-smooth);
  letter-spacing: 0.03em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #e0b337;
  color: #513C14;
  box-shadow: 0px 2px 16px 0 rgba(242,200,73,0.18);
}
.btn-secondary {
  background: var(--color-primary);
  color: var(--color-accent);
  border: none;
  border-radius: var(--radius-med);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 26px;
  margin-top: 8px;
  cursor: pointer;
  transition: background var(--transition-smooth), color var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: 0px 1px 6px 0 rgba(21,57,107,0.08);
  letter-spacing: 0.02em;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #234F87;
  color: var(--color-secondary);
  box-shadow: 0px 2px 15px 0 rgba(21,57,107,0.13);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  display: none;
  cursor: pointer;
  margin-left: 20px;
}
@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================
   MOBILE MENU STYLES
   =================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,57,107,0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 34px;
  padding-left: 32px;
  padding-right: 32px;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.42,0,.58,1);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--color-secondary);
  border: none;
  font-size: 2.2rem;
  margin-bottom: 34px;
  cursor: pointer;
  transition: color var(--transition-smooth);
}
.mobile-menu-close:hover { color: #fff8db; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 0;
  border-radius: var(--radius-small);
  transition: background 0.19s, color 0.19s;
  text-align: left;
}
.mobile-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #fffbe7;
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============
   HERO SECTION
   ============= */
.hero-section {
  background: linear-gradient(135deg, #15396B 70%, #F2C849 100%);
  color: var(--color-accent);
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  box-shadow: 0 8px 30px -9px rgba(21,57,107,0.12);
  margin-bottom: 60px;
  padding-bottom: 48px;
}
.hero-section h1,
.hero-section p {
  color: var(--color-accent);
}
.hero-section .btn-primary {
  margin-top: 22px;
  box-shadow: 0px 3px 16px 0 rgba(242,200,73,0.15);
}

/* FEATURES/GRID SECTIONS */
.feature-grid, .service-grid, .team-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature, .service, .team-member, .card {
  flex: 1 1 250px;
  background: var(--color-accent);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-med);
  padding: 24px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow 0.16s;
}
.feature img, .service img, .team-member img {
  height: 44px;
  margin-bottom: 18px;
}
.feature h3, .service h3, .team-member h3 {
  margin-bottom: 10px;
}
.feature:hover, .service:hover, .card:hover, .team-member:hover {
  box-shadow: 0px 8px 32px 0 rgba(21,57,107,0.13);
  transform: translateY(-6px) scale(1.015);
}

/* BLOG ARTICLES LIST */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-list article {
  background: var(--color-grey-100);
  border-radius: var(--radius-med);
  padding: 24px 24px 18px 24px;
  box-shadow: 0 1px 4px 0 rgba(21,57,107,0.06);
  transition: box-shadow 0.16s;
  border-left: 4px solid var(--color-secondary);
}
.blog-list article:hover {
  box-shadow: 0px 4px 20px 0 rgba(21,57,107,0.11);
}

/* BLOG SEARCH */
.blog-search-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.blog-search-filter input[type="text"] {
  padding: 9px 12px;
  border-radius: var(--radius-med);
  border: 1.5px solid var(--color-grey-300);
  font-size: 1rem;
  width: 220px;
  transition: border-color 0.15s;
}
.blog-search-filter input[type="text"]:focus {
  border-color: var(--color-secondary);
}

/* TESTIMONIALS */
.testimonial-card {
  background: var(--color-grey-200);
  color: var(--color-black);
  border-radius: var(--radius-large);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 9px 0 rgba(21,57,107,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-left: 5px solid var(--color-secondary);
}
.testimonial-card p {
  color: var(--color-black);
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-meta {
  color: var(--color-muted);
  font-size: 0.98rem;
  font-family: var(--font-body);
}

/* CONTACT BOX & DETAILS */
.contact-box, .contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--color-grey-100);
  border-radius: var(--radius-med);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 9px 0 rgba(21,57,107,0.06);
}
.contact-box img, .contact-details img {
  margin-right: 10px;
  vertical-align: middle;
  height: 20px;
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 54px 0 26px 0;
  border-radius: var(--radius-large) var(--radius-large) 0 0;
  box-shadow: 0 -2px 22px rgba(21,57,107,0.12);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 18px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: var(--color-accent);
  font-size: 1rem;
  transition: color var(--transition-smooth);
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-grey-200);
  font-size: 0.97rem;
}
.footer-contact img {
  height: 19px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-top: 16px;
}
.footer-social img {
  height: 30px;
  filter: grayscale(25%) brightness(1.08);
  transition: filter 0.18s;
  border-radius: 50%;
}
.footer-social img:hover {
  filter: none;
  background: var(--color-secondary);
}

/* FAQ, ONLINE TOOLS, DOC UPLOAD */
.faq-section,
.online-tools-overview,
.doc-upload-info {
  margin-bottom: 22px;
  background: var(--color-grey-100);
  padding: 18px 22px;
  border-radius: var(--radius-med);
  box-shadow: 0 2px 9px 0 rgba(21,57,107,0.05);
}
.faq-section ul,
.online-tools-overview ul {
  padding-left: 22px;
  margin-top: 8px;
}
.faq-section li strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* TEAM GRID */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.team-member {
  background: var(--color-accent);
  border-radius: var(--radius-med);
  padding: 24px 18px;
  box-shadow: var(--shadow-card);
  min-width: 220px;
  max-width: 300px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
  align-items: flex-start;
}

/* CARDS / GENERAL CARD-CONTAINER */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { background: var(--color-accent); border-radius: var(--radius-med); box-shadow: var(--shadow-card); padding: 22px 18px; 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; }

/* MAP SNIPPET */
.map-snippet {
  background: var(--color-grey-100);
  border-radius: var(--radius-med);
  padding: 16px 18px;
  box-shadow: 0 2px 7px rgba(21,57,107,0.06);
  margin-bottom: 18px;
}

/* OL & UL LISTS STYLES */
ul, ol {
  margin-left: 18px;
  margin-bottom: 18px;
  color: var(--color-text);
}
ul li, ol li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 12px;
  font-size: 1rem;
}
ul li:before {
  content: '•';
  color: var(--color-secondary);
  font-size: 1.03em;
  margin-right: 7px;
  position: absolute;
  left: 0;
}
ol li {
  list-style: decimal;
  counter-increment: item;
  padding-left: 0;
}

/* ===================
   COOKIE CONSENT BANNER
   =================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: rgba(21, 57, 107, 0.98);
  color: var(--color-accent);
  z-index: 11000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 20px 20px 20px 22px;
  box-shadow: 0 -2px 30px rgba(21,57,107,0.15);
  font-size: 1rem;
  border-top-left-radius: var(--radius-large);
  border-top-right-radius: var(--radius-large);
  animation: cookiebanner-fadein 0.5s;
}
@keyframes cookiebanner-fadein {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-consent-banner p {
  color: var(--color-accent);
  margin-right: 18px;
  font-size: 0.98rem;
  line-height: 1.6;
}
.cookie-consent-banner .cookie-btn {
  margin-left: 10px;
  background: var(--color-secondary);
  color: var(--color-black);
  border: none;
  border-radius: var(--radius-small);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-smooth), color var(--transition-smooth);
  margin-right: 7px;
  box-shadow: 0 1px 7px 0 rgba(242,200,73,0.14);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 1px solid var(--color-secondary);
}
.cookie-consent-banner .cookie-btn:hover {
  background: #f4df99;
  color: #1a2233;
}
.cookie-consent-banner .cookie-btn.settings:hover {
  background: #234F87;
  color: var(--color-secondary);
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    padding: 19px 5px 24px 5px;
    font-size: 0.93rem;
    text-align: center;
  }
  .cookie-consent-banner p {
    margin-right: 0;
    margin-bottom: 6px;
  }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 12000;
  background: rgba(21,57,107,0.60);
  align-items: center;
  justify-content: center;
  animation: cookiemodal-fadein 0.3s;
}
@keyframes cookiemodal-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--color-accent);
  color: var(--color-text);
  border-radius: var(--radius-large);
  max-width: 98vw;
  min-width: 320px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 36px 0 rgba(21,57,107,0.14);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 30px 22px 30px;
  font-size: 1rem;
  position: relative;
  animation: cookiemodal-contentfade 0.32s;
}
@keyframes cookiemodal-contentfade {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-primary);
  transition: color var(--transition-smooth);
}
.cookie-modal-close:hover {
  color: var(--color-secondary);
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.22rem;
  margin-bottom: 3px;
  font-family: var(--font-display);
}
.cookie-categories {
  margin-top: 12px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
  border-radius: 6px;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 19px;
  justify-content: flex-end;
}
.cookie-actions button {
  background: var(--color-secondary);
  color: var(--color-black);
  border: none;
  border-radius: var(--radius-small);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}
.cookie-actions button.settings {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 1px solid var(--color-secondary);
}
.cookie-actions button:hover {
  background: #f4df99;
  color: #1a2233;
}
.cookie-actions button.settings:hover {
  background: #234F87;
  color: var(--color-secondary);
}

/* ===================
   ANIMATIONS
   =================== */
.btn-primary, .btn-secondary, .main-nav a, .feature, .service, .card, .team-member, .testimonial-card, .blog-list article, .footer-social img {
  transition: box-shadow 0.15s, background 0.16s, color 0.16s, transform 0.14s;
}

/* ===================
   RESPONSIVE (MOBILE-FIRST)
   =================== */
@media (max-width: 900px) {
  .feature-grid, .service-grid, .team-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .service, .team-member, .card { min-width: 0; width: 100%; }
  .main-nav { gap: 10px; }
  .footer-nav, .footer-legal { flex-direction: column; gap: 7px; }
  .footer-brand img { height: 34px; }
}
@media (max-width: 700px) {
  .container {
    padding: 0 6px;
  }
  .section, section { padding: 20px 1px; }
  .footer-social { padding-top: 12px; }
  .footer-brand img { height: 28px; }
}
@media (max-width: 600px) {
  .hero-section {
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-radius: 0 0 var(--radius-med) var(--radius-med);
  }
  .feature-grid, .service-grid, .team-grid, .card-container, .content-grid {
    gap: 14px;
  }
  .card, .feature, .service, .team-member {
    padding: 16px 10px;
  }
}
@media (max-width: 550px) {
  .cookie-modal { padding: 18px 8px 16px 8px; min-width: 0; }
}

/* ===================
   UTILITIES
   =================== */
.text-center { text-align: center; }
.hide { display: none !important; }
.visible { display: block !important; }
.mt-2 { margin-top: 18px; }
.mb-2 { margin-bottom: 18px; }

/* ===================
   MICRO-INTERACTIONS
   =================== */
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.96);
}
.main-nav a:active, .mobile-nav a:active {
  background: var(--color-secondary);
  color: var(--color-primary);
}

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