/* =======================================================
   CSS RESET & BASELINE NORMALIZATION 
   ======================================================= */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, hr, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
:focus {
  outline: 2px solid #165267;
  outline-offset: 2px;
}

/* =======================================================
   BRAND COLORS & FONTS : Custom properties for fallback
   ======================================================= */
:root {
  --color-primary: #165267;
  --color-secondary: #54A883;
  --color-accent: #F5FAF7;
  --color-bg-gradient-start: #F5FAF7;
  --color-bg-gradient-mid: #ECF8F2;
  --color-bg-gradient-end: #DAE7E4;
  --color-white: #fff;
  --color-black: #191A1A;
  --color-grey: #4A565B;
  --color-neutral: #e8f1f1;
  --shadow-light: 0 2px 12px 0 rgba(22,82,103,0.08);
  --shadow-card: 0 4px 18px 0 rgba(22,82,103,0.10);
  --shadow-strong: 0 6px 32px 0 rgba(22,82,103,0.15);
  --radius: 14px;
  --radius-card: 18px;
  --transition: 0.18s cubic-bezier(.4,0,.03,1);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-mid) 55%, var(--color-bg-gradient-end) 100%);
  color: var(--color-black);
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
}
h1 { font-size: 2.4rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; }

p, li {
  font-size: 1rem;
  color: var(--color-grey);
  margin-bottom: 0.65em;
}
p:last-child, li:last-child { margin-bottom: 0; }

section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* ================= HEADER & NAV =================== */
header {
  width: 100%;
  background: var(--color-white);
  border-bottom: 1px solid #e0ecf0;
  box-shadow: 0 2px 10px rgba(22, 82, 103, 0.05);
  position: sticky;
  top: 0; left: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  height: 52px;
}
.logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

.cta-button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  margin-left: 8px;
  background: var(--color-secondary);
  color: var(--color-white);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  box-shadow: var(--shadow-light);
  cursor: pointer;
  letter-spacing: .01em;
  border: none;
}
.cta-button.primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-strong);
  transform: translateY(-1px) scale(1.03);
}
.cta-button:active { opacity: 0.92; }

/* ================= MOBILE NAVIGATION =================== */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 2.1rem;
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  margin-left: 20px;
  transition: background var(--transition);
  border: none;
  z-index: 1200;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 60px;
  padding-left: 16px;
  transform: translateX(-100vw);
  transition: transform 0.30s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-strong);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.9rem;
  border-radius: 50%;
  padding: 6px 10px;
  cursor: pointer;
  border: none;
  z-index: 1220;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 85vw;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  padding: 12px 0;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  width: 100%;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.header--mobile-active {
  overflow: hidden;
}

/* ================= HERO =================== */
.hero {
  background: linear-gradient(120deg, var(--color-bg-gradient-start) 0%, var(--color-accent) 95%, #cff5e4 100%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
  padding-top: 60px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  min-height: 320px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
  margin-bottom: 8px;
  line-height: 1.15;
}
.hero p {
  font-size: 1.22rem;
  margin-bottom: 24px;
}

/* ================= FEATURES =================== */
.features {
  background: var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.features .content-wrapper {
  gap: 24px;
}
.feature-grid, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-item, .solution-item, .service-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item img, .solution-item img {
  height: 42px;
  width: 42px;
  margin-bottom: 6px;
}
.feature-item:hover, .solution-item:hover, .service-item:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.03);
}

/* ================= CONTENT GRIDS =================== */
.card-container, .solution-list, .service-packages, .latest-articles-list, .topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================= TESTIMONIALS =================== */
.testimonials {
  background: linear-gradient(92deg,var(--color-accent) 70%, #f6fff6 100%);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding-bottom: 56px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 1px 12px 0 rgba(22,82,103,0.09);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 480px;
  color: var(--color-black);
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-black);
  margin-bottom: 10px;
}
.testimonial-meta {
  font-size: 0.95rem;
  color: var(--color-secondary);
  font-style: italic;
  margin-top: 4px;
}
.partner-logos, .industry-awards {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}
.partner-logos img { height: 38px; }
.industry-awards img { height: 34px; }

/* ================= CTA SECTION =================== */
.cta {
  background: linear-gradient(95deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-card);
  text-align: left;
  padding: 40px 20px 48px 20px;
  box-shadow: var(--shadow-card);
}
.cta h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}
.cta p { color: #e6f8f1; font-size: 1.1rem; }
.cta .cta-button {
  margin-top: 18px;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}
.cta .cta-button:hover, .cta .cta-button:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ================= SERVICE/ARTICLE LISTS =================== */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list li, .feature-list li {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-list li:hover, .feature-list li:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.03);
}
.latest-articles-list {
  gap: 24px;
}
.latest-articles-list article {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.latest-articles-list article:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.03);
}
.topics-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 28px;
  justify-content: flex-start;
}
.topics-grid h4 {
  color: var(--color-secondary);
  margin-bottom: 6px;
}
.topics-grid ul {
  padding-left: 18px;
}
.topics-grid li {
  position: relative;
  color: var(--color-primary);
  font-size: 1.01rem;
  margin-bottom: 8px;
}
.topics-grid li:before {
  content: "• ";
  color: var(--color-secondary);
}

/* ================= FOOTER =================== */
footer {
  width: 100%;
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 48px 0 30px 0;
  font-size: 0.99rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 38px;
  margin-top: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 170px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.07rem;
  padding: 4px 4px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:focus, .footer-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact img {
  vertical-align: middle;
  height: 18px;
  margin-right: 7px;
}
.footer-contact p {
  margin-bottom: 0;
  color: var(--color-accent);
  font-size: 1rem;
}

/* ================= CONTACT DETAILS/LOCATION =================== */
.contact-details, .office-location {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.contact-details img, .office-location img {
  vertical-align: middle;
  height: 19px;
  margin-right: 6px;
}

/* ================= COOKIE CONSENT BANNER =================== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: 0 -2px 24px 0 rgba(22,82,103,.12);
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 22px 16px;
  font-size: 1.01rem;
  animation: fadeInCookie 0.6s ease;
}
@keyframes fadeInCookie {
  0% { transform: translateY(70px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}
.cookie-consent-banner button {
  font-family: var(--font-display);
  font-size: 0.99rem;
  padding: 9px 20px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-light);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  margin-right: 5px;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-strong);
}
.cookie-consent-banner button.settings {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,82,103,0.33);
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .38s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-strong);
  padding: 32px 24px 26px 24px;
  min-width: 320px;
  max-width: 97vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideInModal .32s cubic-bezier(.4,.2,0,1);
  position: relative;
}
@keyframes slideInModal {
  from {transform: translateY(40px); opacity: 0;}
  to   {transform: translateY(0);   opacity: 1;}
}
.cookie-modal-content h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.cookie-modal-content .cookie-category {
  padding: 12px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-modal-content .cookie-category input[type="checkbox"] {
  height: 18px;
  width: 18px;
  accent-color: var(--color-secondary);
}
.cookie-modal-content .cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-black);
}
.cookie-modal-content .cookie-category .always-on {
  color: var(--color-grey);
  font-size: .98rem;
  margin-left: 8px;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  flex-wrap: wrap;
}
.cookie-modal-content .close-modal {
  position: absolute;
  right: 16px; top: 10px;
  background: none;
  font-size: 1.7rem;
  color: var(--color-secondary);
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 4;
}
.cookie-modal-content .close-modal:focus,
.cookie-modal-content .close-modal:hover {
  color: var(--color-primary);
}
.cookie-modal-content button {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 23px;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.cookie-modal-content button:focus,
.cookie-modal-content button:hover {
  background: var(--color-secondary);
}

/* ================= UTILITY & SPACING =================== */
.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; }

/* ================= RESPONSIVE DESIGN =================== */
@media (max-width: 1020px) {
  .container { max-width: 93vw; padding: 0 10px; }
  footer .container { gap: 30px; }
  .features .content-wrapper, .feature-grid, .feature-list, .solution-list, .service-packages, .latest-articles-list { flex-wrap: wrap; gap: 18px; }
  .feature-item, .solution-item, .service-item, .service-list li, .feature-list li, .latest-articles-list article, .testimonial-card { min-width: 200px; max-width: 402px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { min-width: 100vw; padding: 0 6px; }
  header .container {
    min-height: 56px;
    flex-direction: row;
    gap: 14px;
  }
  .main-nav { display: none !important; }
  .cta-button { padding: 11px 18px; font-size: 1rem; }
  .mobile-menu-toggle {
    display: block;
  }
  .section, section {
    padding: 27px 5px;
    margin-bottom: 40px;
  }
  .hero {
    padding: 30px 0 30px 0;
    min-height: 210px;
    border-radius: var(--radius);
  }
  .features, .testimonials, .cta {
    border-radius: var(--radius); 
    padding: 22px 7px;
  }
  .feature-grid, .feature-list, .solution-list, .service-list, .service-packages,.latest-articles-list,.content-grid  {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .solution-item, .service-item, .service-list li, .feature-list li, .latest-articles-list article, .testimonial-card {
    min-width: 0; max-width: 100%; width: 100%;
  }
  .content-wrapper, .text-section {
    gap: 10px;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
  .partner-logos, .industry-awards { gap: 14px; margin-top: 16px; }
  .footer-nav, .footer-contact, .footer-logo {
    min-width: 0;
    margin-bottom: 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 0 5px;
  }
  .cookie-modal-content { min-width: 90vw; max-width: 99vw; }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
  .container { padding: 0 2vw; }
  header .container { gap: 5px; }
}

/* ================= MICRO-INTERACTIONS/ANIMS =================== */
.cta-button, .feature-item, .service-item, .card, .testimonial-card, .latest-articles-list article {
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition), color var(--transition);
}
.cta-button:active, .feature-item:active, .service-item:active, .card:active {
  transform: scale(.98);
}

/* ================= MISC (TYPOGRAPHY, HELPER UTILS) =================== */
strong { font-weight: 600; color: var(--color-primary); }
hr { color: #cae4e0; background-color: #cae4e0; border: 0; height: 1px; margin: 25px 0; }

details, summary {
  font-family: var(--font-body);
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 1rem;
}
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 9px; background: #e7f0e8; border-radius: 8px; }
::-webkit-scrollbar-thumb { background: #aecfc3; border-radius: 8px; }

/* ================= END OF STYLE.CSS =================== */
