/* ==========================================================  
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, main, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
  background: #F9FBFD;
  min-height: 100vh;
  color: #17406A;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ==========================================================
Font Imports (Google Fonts via @import for CSS demo)
========================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

:root {
  --primary: #17406A;
  --secondary: #10A285;
  --accent: #F7C948;
  --bg-gradient-light: linear-gradient(135deg, #F9FBFD 0%, #E9F3F8 100%);
  --bg-gradient-main: linear-gradient(135deg, #10A285 0%, #17406A 100%);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Helvetica, Arial, sans-serif;
  --radius: 16px;
  --card-shadow: 0 6px 32px rgba(23, 64, 106, 0.08), 0 1.5px 4px rgba(16,162,133,0.07);
  --card-shadow-dark: 0 8px 28px rgba(23, 64, 106, 0.12);
  --transition: 0.2s cubic-bezier(0.45,0.09,0.18,1);
  --header-height: 72px;
}

/* ==========================================================
STRUCTURE: Layout & Containers
========================================================== */
body {
  font-family: var(--font-body);
  background: var(--bg-gradient-light);
  color: var(--primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ==========================================================
TYPOGRAPHY
========================================================== */
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
}
p, li, cite, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: #18416b;
}
strong {
  font-weight: 600;
}
blockquote {
  font-style: italic;
  color: #18416b;
  background: #F4F9F8;
  border-left: 4px solid var(--secondary);
  padding: 16px 20px;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(23,64,106,0.03);
}
cite {
  display: block;
  color: #666e7a;
  font-size: 0.95rem;
  margin-top: 8px;
  margin-left: 2px;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
}
ul li strong, ol li strong {
  color: var(--primary);
}

/* ==========================================================
HEADER & NAVIGATION
========================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 64, 106, 0.07);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center
}
header {
  min-height: var(--header-height);
  padding: 0 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: var(--header-height);
}
header > a img {
  max-height: 44px;
  width: auto;
  margin: 14px 0 14px 24px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 0 0 0 10px;
}
header nav a {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1rem;
  padding: 3px 0;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--accent);
}
.cta-primary {
  background: var(--bg-gradient-main);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  font-size: 1.05rem;
  padding: 12px 32px;
  border-radius: calc(var(--radius) * 1.1);
  box-shadow: var(--card-shadow);
  margin-left: 12px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-block;
  letter-spacing: .01em;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(135deg, #1ea687 0%, #285285 100%);
  box-shadow: 0 6px 28px rgba(23,64,106,0.16);
  transform: translateY(-2px) scale(1.03);
}
.cta-link {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
  position: relative;
  transition: color var(--transition);
}
.cta-link:after {
  content: '';
  display: block;
  height: 2.5px;
  width: 70%;
  background: var(--accent);
  transition: width .15s;
  margin-top: 2px;
  border-radius: 2px;
}
.cta-link:hover, .cta-link:focus {
  color: var(--accent);
}
.cta-link:hover:after, .cta-link:focus:after {
  width: 100%;
}

/* Mobile nav */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--primary);
  margin-right: 20px;
  cursor: pointer;
  z-index: 2001;
  padding: 6px 12px;
  transition: color 0.15s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent);
  color: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.48,0.13,0.26,1);
  box-shadow: 4px 0 24px rgba(20,32,38,.10);
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px 32px;
  gap: 28px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 18px;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--primary);
  padding: 12px 0;
  border-radius: 8px;
  display: block;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover {
  background: var(--bg-gradient-light);
  color: var(--secondary);
  text-decoration: underline;
}

/* Hide desktop nav/show mobile nav on mobile */
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 540px) {
  .mobile-menu {
    padding: 18px 8px 16px 12px;
  }
}

/* ==========================================================
FOOTER
========================================================== */
footer {
  background: #fff;
  padding: 30px 0 20px 0;
  box-shadow: 0 -2px 12px rgba(23, 64, 106, 0.06);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 14px;
}
footer nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.80;
  transition: color var(--transition), opacity 0.07s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  opacity: 1;
}
footer small {
  display: block;
  color: #818997;
  font-size: 0.98rem;
  text-align: center;
  margin-top: 2px;
}

/* ==========================================================
CARDS, GRIDS, FLEX LAYOUTS
========================================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: var(--card-shadow);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover, .card:focus-within {
  box-shadow: var(--card-shadow-dark);
  transform: translateY(-3px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
/* Special container patterns */
.features-grid,
.service-cards,
.icon-grid,
.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: space-between;
}
.features-grid > div,
.service-cards > div,
.icon-grid > div,
.source-list > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px 20px;
  flex: 1 1 225px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  align-self: stretch;
  transition: box-shadow var(--transition), transform var(--transition);
}
.features-grid > div:hover, .service-cards > div:hover, .icon-grid > div:hover, .source-list > div:hover {
  box-shadow: var(--card-shadow-dark);
  transform: translateY(-3px) scale(1.015);
}
.icon-highlights {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.icon-highlights img {
  height: 44px;
  width: 44px;
}
.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;
  background: #fff;
  padding: 20px 24px 18px 26px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  flex-direction: row;
  transition: box-shadow var(--transition), transform var(--transition);
  color: #18416b;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: var(--card-shadow-dark);
  transform: scale(1.02);
}
.rating-summary {
  margin-top: 14px;
  font-family: var(--font-display);
  color: var(--secondary);
  font-size: 1.15rem;
  font-weight: 600;
  background: #f7fdfb;
  padding: 10px 20px;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(16,162,133,0.09);
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  margin-top: 22px;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: var(--primary);
  background: #F5FBF9;
  padding: 8px 16px;
  border-radius: 9px;
  box-shadow: 0 1.5px 4px rgba(16,162,133,0.04);
}
/* Feature item (for .feature-item usage) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.team-roles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================
RESPONSIVE DESIGN: Flexbox only for layouts
========================================================== */
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
    padding: 0 3vw;
  }
  .features-grid, .service-cards, .icon-grid, .source-list, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .features-grid, .service-cards, .icon-grid, .source-list  {
    flex-direction: column;
  }
  .card-container, .content-grid, .contact-info {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 12px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.12rem; }
  .section { padding: 16px 3px; margin-bottom: 22px; }
  .card { padding: 14px 8px; }
  .features-grid>div, .service-cards>div, .icon-grid>div, .source-list>div { padding: 14px 10px; }
  .contact-info>div { padding: 6px 7px; }
}

/* ==========================================================
FORMS (if any used)
========================================================== */
input, textarea, select {
  border: 1.5px solid #d9e7ef;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 18px;
  outline: none;
  transition: border var(--transition);
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(16,162,133,.09);
}
label {
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--font-display);
}

/* ==========================================================
Buttons & Interactive States
========================================================== */
button, .cta-primary {
  cursor: pointer;
  outline: none;
  border: none;
}
button:focus-visible, .cta-primary:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2.5px;
}

/* ==========================================================
Cookie Consent Banner
========================================================== */
#cookie-consent {
  position: fixed;
  left:0; right:0; bottom:0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 21px rgba(23,64,106,0.17);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 32px;
  z-index: 2200;
  font-family: var(--font-body);
  transition: transform 0.25s cubic-bezier(0.61,0.17,0.26,1);
  transform: translateY(0);
}
#cookie-consent.hide {
  transform: translateY(130%);
  pointer-events: none;
}
#cookie-consent p {
  font-size: 1rem;
  color: var(--primary);
  max-width: 520px;
}
.cookie-btns {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btns button {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 11px 28px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: 11px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(16,162,133,.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.cookie-btns .cookie-accept {
  background: var(--secondary);
}
.cookie-btns .cookie-accept:hover,
.cookie-btns .cookie-accept:focus {
  background: #0e8d73;
}
.cookie-btns .cookie-reject {
  background: #e2e9f0;
  color: var(--primary);
}
.cookie-btns .cookie-reject:hover,
.cookie-btns .cookie-reject:focus {
  background: #f7c948;
  color: #17406a;
}
.cookie-btns .cookie-settings {
  background: #fff;
  border: 2px solid var(--secondary);
  color: var(--secondary);
  box-shadow: none;
}
.cookie-btns .cookie-settings:hover,
.cookie-btns .cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
}
@media (max-width: 700px) {
  #cookie-consent {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 8px 16px 10px;
  }
  #cookie-consent p {
    max-width: 97vw;
  }
}
/* Cookie Modal */
#cookie-modal-bg {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,64,106,.28);
  z-index: 2300;
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-modal-bg.show {
  display: flex;
  animation: modalFadeIn 0.24s;
}
@keyframes modalFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
#cookie-modal {
  background: #fff;
  padding: 36px 32px 30px 32px;
  border-radius: 17px;
  box-shadow: 0 8px 36px rgba(16,162,133,0.13);
  width: 95vw;
  max-width: 420px;
  font-family: var(--font-body);
}
#cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--primary);
  margin-bottom: 18px;
}
.cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 23px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.cookie-cat label {
  color: var(--primary);
}
.cookie-cat input[type=checkbox] {
  accent-color: var(--secondary);
  width: 18px; height: 18px;
  margin: 0 1px 0 0;
}
.cookie-cat.essential label {
  color: #17406a;
  font-weight: 600;
}
#cookie-modal .cookie-btns {
  margin-top: 15px;
}
#cookie-modal .cookie-close {
  display: inline-block;
  cursor: pointer;
  background: none;
  border: none;
  color: #888;
  font-size: 2rem;
  position: absolute;
  top: 23px; right: 19px;
  transition: color var(--transition);
}
#cookie-modal .cookie-close:hover,
#cookie-modal .cookie-close:focus {
  color: var(--secondary);
}

@media (max-width: 520px) {
  #cookie-modal {
    padding: 18px 6vw 20px 6vw;
    max-width: 98vw;
  }
}

/* ==========================================================
MEDIA & MISC STYLE
========================================================== */
.features-grid img,
.service-cards img,
.icon-grid img,
.source-list img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  margin-bottom: 2px;
}
.section ul, .section ol {
  margin-bottom: 0;
}
.section ul li, .section ol li {
  margin-bottom: 8px;
}

/* Hide cookie modal close button on tiny devices */
@media (max-width: 340px) {
  #cookie-modal .cookie-close {
    display:none;
  }
}

/* ========================== End of CSS =================== */
