/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
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,
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.6;
}
ol, ul {
  list-style: none;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
}
img {
  border: 0;
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
  box-sizing: border-box;
}

/* =====================================================
   CSS VARIABLES & BRAND
   ===================================================== */
:root {
  --brand-primary: #174B5C;
  --brand-secondary: #90B4CE;
  --accent: #FFFFFF;
  --gray-900: #111216;
  --gray-800: #202126;
  --gray-700: #32333b;
  --gray-600: #44454d;
  --gray-400: #8C8D93;
  --gray-200: #E5E6EA;
  --border: #dadbdd;
  --shadow: rgba(32,34,38,0.08);
  --shadow-strong: rgba(32,34,38,0.20);
  --radius: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --transition: 0.25s cubic-bezier(.7,.3,.2,1);
  /* Typography */
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
  --fs-xs: 14px;
  --fs-s: 16px;
  --fs-m: 18px;
  --fs-l: 24px;
  --fs-xl: 32px;
  --fs-xxl: 48px;
  /* Spacing */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 40px;
  --space-xxl: 60px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-s);
  color: var(--gray-900);
  background: var(--accent);
  min-height: 100vh;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Typography Hierarchy */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xxl);
  color: var(--gray-900);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: var(--space-s);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--gray-800);
  margin-bottom: var(--space-xs);
  line-height: 1.15;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-l);
  color: var(--gray-700);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--gray-700);
}

p, ul, ol, li, small {
  font-size: var(--fs-s);
  color: var(--gray-800);
  line-height: 1.65;
}

small { font-size: var(--fs-xs); color: var(--gray-600);}
b, strong { font-weight: 600;}

.section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) var(--space-s);
  background: var(--accent);
  box-sizing: border-box;
}
.container {
  max-width: 1128px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-m);
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
  align-items: flex-start;
}

/* =====================================================
   NAVIGATION STYLES (Desktop & Mobile)
   ===================================================== */
header {
  background: var(--accent);
  box-shadow: 0 2px 12px var(--shadow);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  height: 80px;
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 var(--space-m);
  font-family: var(--font-display);
  font-size: var(--fs-m);
  font-weight: 500;
}
.main-nav img {
  height: 38px;
  width: auto;
  margin-right: var(--space-m);
  flex-shrink: 0;
}
.main-nav a {
  color: var(--gray-900);
  padding: 8px 15px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a:not(.cta):hover, .main-nav a:focus {
  background: var(--gray-200);
  color: var(--brand-primary);
  outline: none;
}
.main-nav .cta {
  font-weight: 700;
  background: var(--gray-900);
  color: var(--accent);
  border-radius: var(--radius-md);
  padding: 8px 22px;
  margin-left: var(--space-s);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 4px var(--shadow);
  border: none;
}
.main-nav .cta.primary, .cta.primary {
  background: var(--brand-primary);
  color: var(--accent) !important;
  box-shadow: 0 2px 8px var(--shadow-strong);
}
.main-nav .cta.primary:hover, .cta.primary:hover,
.main-nav .cta.primary:focus, .cta.primary:focus {
  background: var(--gray-900);
  color: var(--accent) !important;
  box-shadow: 0 4px 16px var(--shadow-strong);
}

/* Burger menu toggle */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 80;
  width: 44px;
  height: 44px;
  background: var(--gray-900);
  color: var(--accent);
  border-radius: 50%;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus {
  box-shadow: 0 0 0 2px var(--gray-800);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--gray-900);
  color: var(--accent);
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  padding: var(--space-l) var(--space-m) var(--space-l) var(--space-l);
  z-index: 200;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(.6,0,.3,1), opacity 0.22s var(--transition);
  box-shadow: 8px 0 32px var(--shadow-strong);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--accent);
  position: absolute;
  top: 22px; right: 32px;
  font-size: 2rem;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--gray-700);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  gap: var(--space-m);
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-weight: 600;
  padding: 14px 0;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--gray-900);
}
/* ---------------------
  Responsive Nav Switch
-----------------------*/
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 991px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* =====================================================
   MAIN CONTENT & SECTIONS
   ===================================================== */
section {
  margin-bottom: var(--space-xxl);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin: var(--space-s) 0;
}
.text-section ul, .text-section ol {
  padding-left: var(--space-m);
  margin-top: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--gray-700);
}
.text-section li {
  margin-left: 0.8em;
}

ul, ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-style: italic;
  color: var(--brand-primary);
  border-left: 4px solid var(--gray-700);
  padding-left: var(--space-m);
  margin-bottom: 8px;
}

/* =====================================================
   FEATURE / CARD / CONTENT LAYOUTS
   ===================================================== */
.feature-grid, .service-grid, .card-container, .content-grid, .team-list, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  justify-content: flex-start;
  margin-top: var(--space-m);
}
.feature-grid > div, .service-grid > div, .team-profile, .article-list > article, .card {
  background: var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px var(--shadow);
  border: 1px solid var(--border);
  padding: var(--space-l) var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  min-width: 240px;
  max-width: 330px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), border var(--transition);
}
.feature-grid > div:hover, .service-grid > div:hover, .card:hover,
.team-profile:hover, .article-list > article:hover {
  box-shadow: 0 6px 32px var(--shadow-strong); border: 1.5px solid var(--brand-primary);
}
.feature-grid > div img, .service-grid > div img {
  width: 38px; height: 38px;
  margin-bottom: var(--space-xs);
}

/* Cards: spacing and layout */
.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;
  margin-bottom: 20px;
  background: var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 3px 18px var(--shadow);
  border: 1px solid var(--border);
  flex-direction: row;
}
.testimonial-card blockquote {
  color: var(--gray-900);
  font-size: var(--fs-m);
  font-style: italic;
  border-left: 3px solid var(--brand-primary);
  margin: 0; padding-left: var(--space-s);
  line-height: 1.5;
}
.testimonial-card .testimonial-meta {
  font-size: var(--fs-xs);
  color: var(--gray-700);
  margin-left: var(--space-m);
  font-weight: 500;
}
.article-list {
  width: 100%;
}
.article-list > article {
  flex: 1 1 260px;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}
.team-profile {
  min-width: 210px;
  max-width: 320px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.contact-details {
  margin-bottom: var(--space-m);
  font-size: var(--fs-s);
  color: var(--gray-800);
}

/* =====================================================
   BUTTONS & CTAS
   ===================================================== */
.cta, a.cta, button.cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-m);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  background: var(--gray-900);
  color: var(--accent);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: none;
  outline: none;
  box-shadow: 0 2px 4px var(--shadow);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}
.cta:hover, .cta:focus {
  background: var(--brand-primary);
  color: var(--accent);
  box-shadow: 0 4px 14px var(--shadow-strong);
}
.cta.primary, a.cta.primary {
  background: var(--brand-primary);
  color: var(--accent);
  box-shadow: 0 2px 8px var(--shadow-strong);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--gray-900);
  color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow-strong);
}

/* =====================================================
   TABLES & LISTS (policies, legal pages)
   ===================================================== */
.text-section h2, .text-section h3 {
  margin-top: var(--space-l);
}
.text-section ul, .text-section ol {
  padding-left: 20px;
  margin-bottom: var(--space-s);
}
.text-section li {
  list-style: disc inside;
  color: var(--gray-700);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--gray-900);
  padding: var(--space-l) 0 var(--space-m) 0;
  color: var(--accent);
  border-top: 4px solid var(--brand-primary);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-l);
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}
.footer-nav img {
  height: 24px;
  width: auto;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav nav a {
  color: var(--accent);
  opacity: 0.92;
  font-size: var(--fs-s);
  transition: color var(--transition), opacity var(--transition);
}
.footer-nav nav a:hover, .footer-nav nav a:focus {
  color: var(--brand-secondary);
  opacity: 1;
}
.footer-contact {
  font-size: var(--fs-xs);
  color: var(--gray-400);
  line-height: 1.65;
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
   ===================================================== */
.cookie-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  background: var(--gray-900);
  color: var(--accent);
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  padding: var(--space-m) var(--space-l);
  z-index: 500;
  box-shadow: 0 -2px 22px var(--shadow-strong);
  font-size: var(--fs-s);
  animation: cookie-fade-in 0.6s cubic-bezier(.4,.8,.2,1);
}
@keyframes cookie-fade-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);  }
}
.cookie-banner-content {
  max-width: 650px;
  margin-right: var(--space-l);
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: var(--space-s);
}
.cookie-banner .cta, .cookie-banner button {
  font-size: var(--fs-s);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
}
.cookie-banner .cta {
  background: var(--brand-primary);
  color: var(--accent);
}
.cookie-banner .cta:hover, .cookie-banner .cta:focus {
  background: var(--gray-700);
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: var(--brand-secondary);
  border: 1.5px solid var(--brand-secondary);
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--gray-800);
  color: var(--accent);
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  flex-direction: column;
  gap: var(--space-l);
  max-width: 430px;
  background: var(--gray-900);
  color: var(--accent);
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 600;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-l);
  box-shadow: 0 6px 44px var(--shadow-strong);
  opacity: 0;
  transition: opacity 0.3s var(--transition), transform 0.34s var(--transition);
}
.cookie-modal.open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  color: var(--accent);
  font-size: var(--fs-l);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-bottom: var(--space-s);
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-800);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: var(--fs-s);
}
.cookie-modal .toggle-switch {
  min-width: 40px;
  min-height: 22px;
  width: 40px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-modal .toggle-input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  background: var(--gray-600);
  border-radius: 16px;
  width: 40px; height: 22px;
  transition: background var(--transition);
}
.cookie-modal .toggle-input:checked + .toggle-slider {
  background: var(--brand-secondary);
}
.cookie-modal .toggle-slider:before {
  content: "";
  position: absolute;
  left: 4px; top: 4px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform var(--transition);
}
.cookie-modal .toggle-input:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: var(--space-m);
  justify-content: flex-end;
}
.cookie-modal .cta, .cookie-modal button {
  font-size: var(--fs-s);
  padding: 6px 16px;
  border-radius: var(--radius);
  font-family: var(--font-display);
}
.cookie-overlay {
  display: none;
  position: fixed;
  z-index: 599;
  top: 0;
  left: 0;
  width: 100vw; height: 100vh;
  background: rgba(18,20,22,0.40);
}
.cookie-overlay.open { display: block; }

/* =====================================================
   RESPONSIVE DESIGN: MOBILE FIRST
   ===================================================== */
@media (max-width: 770px) {
  .container, .footer-nav {
    max-width: 100%;
    padding: 0 var(--space-s);
  }
  .main-nav {
    padding: 0 var(--space-s);
  }
  .section {
    margin-bottom: var(--space-xl);
    padding: var(--space-m) var(--space-xs);
  }
  .feature-grid, .service-grid, .team-list, .card-container, .article-list {
    flex-direction: column;
    gap: var(--space-m);
  }
  .feature-grid > div, .service-grid > div, .team-profile, .article-list > article, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .content-wrapper {
    gap: var(--space-m);
  }
  .text-image-section {
    flex-direction: column;
    gap: var(--space-m);
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: var(--space-xs);
    align-items: flex-start;
    padding: var(--space-m);
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
    padding-bottom: var(--space-m);
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
    padding: var(--space-m) var(--space-s);
  }
}

/* Small devices: stack everything */
@media (max-width: 480px) {
  .main-nav, .container, .footer-nav {
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
  }

  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.3rem; }
  h3, .h3 { font-size: 1rem; }
}

/* =====================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ===================================================== */
.card, .team-profile, .feature-grid > div, .service-grid > div {
  transition: box-shadow 0.2s cubic-bezier(.5,.3,.32,1);
}
.cta, .cookie-banner .cta, .cookie-modal .cta, .cookie-banner .cookie-settings-btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s cubic-bezier(.5,.3,.32,1);
}
.testimonial-card {
  transition: box-shadow 0.15s, border 0.16s cubic-bezier(.5,.3,.32,1);
}

/* =====================================================
   ACCESSIBILITY STYLE EXTRAS
   ===================================================== */
a:focus, .cta:focus, .mobile-menu-close:focus {
  outline: 2.5px dashed var(--brand-secondary);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; background: var(--gray-200);}
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 8px;}
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary);}

/* END OF STYLE */
