/* =====================
 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, menu, 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.5;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Roboto', Arial, sans-serif;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  border: 0;
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* =====================
  CUSTOM PROPERTIES
====================== */
:root {
  --primary: #183153;
  --secondary: #48A9A6;
  --accent: #F5F5F5;
  --dark: #111216;
  --gray: #666;
  --light: #fff;
  --black: #000;
  --shadow: 0 4px 16px rgba(24, 49, 83, 0.09), 0 1.5px 5px rgba(34,34,34,0.09);
  --radius: 12px;
  --radius-lg: 24px;
  --duration: 0.28s;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --fz-xs: 0.88rem;
  --fz-sm: 1rem;
  --fz-base: 1.125rem;
  --fz-lg: 1.5rem;
  --fz-xl: 2.25rem;
  --fz-xxl: 2.75rem;
  --gap: 20px;
  --gap-lg: 32px;
}

/* =====================
  GENERAL TYPOGRAPHY
====================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--black);
  font-weight: 700;
  letter-spacing: -0.03em;
}
h1 {
  font-size: var(--fz-xxl);
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: var(--fz-xl);
  margin-bottom: 20px;
  line-height: 1.18;
}
h3 {
  font-size: var(--fz-lg);
  line-height: 1.22;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.25rem;
}
p, ul li, address {
  font-family: var(--font-body);
  font-size: var(--fz-base);
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.7;
}
p:last-child, ul li:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 600;
}
em {
  font-style: italic;
  color: var(--gray);
}
blockquote {
  font-size: var(--fz-lg);
  color: var(--primary);
  font-family: var(--font-display);
  background: var(--accent);
  border-left: 4px solid var(--primary);
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  font-style: italic;
}

/* =====================
    LAYOUT CONTAINERS
====================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}
.text-section {
  max-width: 770px;
  margin:auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow var(--duration);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--duration), transform var(--duration);
  padding: 24px 20px;
  flex: 1 1 300px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(24,49,83,0.17);
  transform: translateY(-2px) scale(1.025);
}
.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;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 0;
}
.testimonial-card p {
  color: #151515;
  font-size: var(--fz-base);
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
} 
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}
.quick-links a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  background: var(--accent);
  border-radius: 30px;
  padding: 10px 24px;
  box-shadow: var(--shadow);
  transition: background var(--duration), color var(--duration), box-shadow var(--duration);
}
.quick-links a:hover, .quick-links a:active {
  background: var(--primary);
  color: var(--light);
  box-shadow: 0 8px 32px rgba(24, 49, 83, 0.23);
}

/* =====================
    NAVIGATION HEADER
====================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(24, 49, 83, 0.04);
  z-index: 100;
  position: sticky;
  top: 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 0 0;
  min-height: 64px;
}
header nav > a {
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: var(--fz-base);
  color: var(--primary);
  font-weight: 500;
  line-height: 64px;
  border-radius: 99px;
  transition: color var(--duration), background var(--duration);
  display: flex;
  align-items: center;
  height: 48px;
}
header nav a img {
  height: 34px;
  width: auto;
  margin-right: 4px;
}
header nav a.cta-btn {
  background: var(--primary);
  color: var(--light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 0 28px;
  margin-left: 8px;
  height: 44px;
  line-height: 44px;
  min-width: 140px;
  border-radius: 32px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: background var(--duration), color var(--duration);
  letter-spacing: .01em;
  display: flex;
  align-items: center;
}
header nav a.cta-btn:hover, header nav a.cta-btn:focus {
  background: var(--secondary);
  color: var(--black);
}
header nav > a:not(.cta-btn):hover, header nav > a:not(.cta-btn):focus {
  background: var(--accent);
  color: var(--dark);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--primary);
  background: #fff;
  margin-left: auto;
  border-radius: 5px;
  padding: 6px 16px;
  z-index: 252;
  line-height: 1;
  transition: background var(--duration);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
}

/* Mobile nav overlay */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.23);
  transform: translateX(100%);
  transition: transform var(--duration) cubic-bezier(.86,.01,.24,1);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--dark);
  background: transparent;
  padding: 18px 24px 6px 0;
  align-self: flex-end;
  cursor: pointer;
  border-radius: 0 0 0 20px;
  z-index: 1010;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 0 48px;
  margin-top: 28px;
  width: calc(100vw - 80px);
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  padding: 10px 10px 10px 0;
  border-radius: 0;
  position: relative;
  transition: color var(--duration), background var(--duration);
  min-width: 180px;
}
.mobile-nav a:active, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* =====================
    HERO SECTION
====================== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg);
}
section:last-child {
  margin-bottom: 0;
}

/* =============== 
   BUTTONS & CTA  
================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  padding: 0 32px;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 40px;
  min-height: 48px;
  font-weight: 700;
  font-size: 1.17rem;
  margin-top: 20px;
  margin-bottom: 8px;
  box-shadow: 0 3px 16px rgba(24,49,83,0.14);
  letter-spacing: .03em;
  transition: background var(--duration), color var(--duration), transform var(--duration);
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:active, .cta-btn:focus {
  background: var(--secondary);
  color: var(--black);
  transform: translateY(-2px) scale(1.01);
  outline: none;
}

button, .btn {
  border-radius: var(--radius);
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--fz-base);
  transition: background var(--duration), color var(--duration), box-shadow var(--duration);
  outline: none;
  border: none;
}
button:hover, .btn:hover, button:focus, .btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(24,49,83,0.19);
}

/* =====================
    FEATURE LISTS
====================== */
ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul li {
  line-height: 1.7;
  color: var(--dark);
  font-size: var(--fz-base);
  padding-left: 0;
  display: flex;
  align-items: center;
}
ul li img {
  width: 28px;
  height: 28px;
  margin-right: 12px;
}

/* =====================
      FOOTER
======================= */
footer {
  background: var(--primary) !important;
  color: #fff;
  padding: 48px 0 0 0;
  width: 100%;
  min-height: 100px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  opacity: 0.96;
  padding: 0 6px 0 0;
  transition: color var(--duration), opacity var(--duration);
}
footer nav a:hover,footer nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
footer address {
  font-style: normal;
  color: #e0e4ea;
  font-size: var(--fz-sm);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer address img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  display: inline-block;
}
footer address span {
  color: #b0bacd;
  font-size: 0.95rem;
}

/* =====================
   RESPONSIVE DESIGN
====================== */
@media (max-width: 1050px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  .section, section {
    padding: 32px 4vw;
  }
  .testimonial-card, .card {
    padding: 16px 12px;
  }
  .feature-item {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid,
  .card-container,
  .quick-links {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .testimonial-card, .card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 8px;
  }
  .section, section {
    padding: 28px 2vw;
    margin-bottom: 32px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 480px) {
  h1{
    font-size: 1.3rem;
  }
  h2{
    font-size: 1.08rem;
  }
  .section, section {
    margin-bottom: 20px;
    padding: 13vw 2vw;
  }
  .testimonial-card, .card {
    font-size: 0.99rem;
    padding: 10px 4px;
  }
  .quick-links a {
    padding: 8px 14px;
    font-size: 1rem;
    min-width: unset;
  }
}

/* =====================
    MICRO-ANIMATIONS
====================== */
.cta-btn, .card, .testimonial-card, .quick-links a {
  transition: 
    background var(--duration) cubic-bezier(.65,.01,.36,1), 
    color var(--duration), 
    transform var(--duration), 
    box-shadow var(--duration);
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 44px rgba(24,49,83,0.12);
  transform: translateY(-3px) scale(1.03);
}
.cta-btn:active {
  transform: scale(.97);
}
.quick-links a:active {
  transform: scale(.98);
}

/* =====================
   COOKIE CONSENT BANNER
====================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #222;
  color: #f5f5f5;
  font-family: var(--font-body);
  z-index: 3002;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: center;
  padding: 24px 16px 24px 28px;
  box-shadow: 0 -4px 24px 0 rgba(24,49,83,.13);
  transition: transform var(--duration) cubic-bezier(.72,.07,.18,1), opacity var(--duration);
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-text {
  font-size: 1.1rem;
  max-width: 540px;
  line-height: 1.6;
  color: #f5f5f5;
  margin-right: 20px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btns button {
  background: var(--light);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  box-shadow: var(--shadow);
  font-size: 1rem;
  margin: 0;
  transition: background var(--duration), color var(--duration);
}
.cookie-btns button:hover, .cookie-btns button:focus {
  background: var(--secondary);
  color: var(--dark);
}
.cookie-btns .cookie-settings-btn {
  background: transparent;
  border: 2px solid var(--light);
  color: var(--light);
  margin-left: 6px;
  font-size: 1rem;
  padding: 9px 18px;
  font-weight: 500;
}
.cookie-btns .cookie-settings-btn:hover, .cookie-btns .cookie-settings-btn:focus {
  background: var(--primary);
  color: var(--light);
  border-color: var(--secondary);
}
@media (max-width: 850px) {
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 18px 6vw 18px 6vw;
  }
  .cookie-banner .cookie-banner-text {
    margin-right: 0;
    max-width: 98vw;
  }
  .cookie-banner .cookie-btns {
    width: 100%;
    gap: 7px;
  }
}

/* ===== COOKIE MODAL (PREFERENCE) ==== */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24, 49, 83, 0.82);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--duration);
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #fff;
  color: #111;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px rgba(24,49,83,.18);
  width: 98vw;
  max-width: 420px;
  padding: 40px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-dialog h2 {
  font-size: 1.36rem;
  margin-bottom: 6px;
  color: var(--primary);
}
.cookie-modal-dialog .cookie-categories {
  margin: 18px 0 8px 0;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cookie-category-row label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2b2b2b;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  border-radius: 15px;
  background: var(--gray);
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition: background var(--duration);
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #bbb;
  border-radius: 15px;
  transition: background var(--duration);
}
.cookie-toggle input:checked + .slider {
  background: var(--secondary);
}
.cookie-toggle .circle {
  position: absolute;
  top: -2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #eee;
  border-radius: 50%;
  transition: left var(--duration), background var(--duration);
}
.cookie-toggle input:checked + .slider .circle {
  left: 16px;
  background: var(--primary);
}
.cookie-modal-dialog .close-cookie-modal {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 1.5rem;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 3px 6px 6px 6px;
}
.cookie-modal-dialog .close-cookie-modal:hover {
  color: var(--primary);
  background: #eee;
  border-radius: 40px;
}
.cookie-modal-dialog .btn-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-dialog button {
  padding: 10px 26px;
  font-weight: 700;
  border-radius: 19px;
  font-family: var(--font-display);
  font-size: 1rem;
}

@media (max-width: 500px) {
  .cookie-modal-dialog {
    max-width: 97vw;
    padding: 26px 6vw 18px 6vw;
  }
}

/* ================
   ACCESSIBILITY
=================== */
:focus-visible {
  outline: 2px dashed var(--secondary);
  outline-offset: 3px;
}

/* ================
 MONOCHROME MOOD
=================== */
body {
  background: #fff;
}
header, section, .section, footer, .card, .testimonial-card, .cookie-modal-dialog {
  background: #fff;
}
.card, .testimonial-card, .quick-links a, .cookie-banner, .cookie-modal-dialog {
  border-bottom: 1.2px solid rgba(0,0,0,0.055);
}

/* ================
  VISUAL HIERARCHY
================== */
h1, h2 {
  color: var(--primary);
}
h3, h4, h5, h6 {
  color: #111;
}

/* ================
 UTILITY SPACING
================== */
.mt-2 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mt-4 { margin-top: 40px !important; }
.mb-4 { margin-bottom: 40px !important; }
.gap-lg { gap: 32px !important; }
.gap-md { gap: 24px !important; }
.gap-sm { gap: 12px !important; }

/* ================
 PREVENT OVERLAP
================== */
.card:not(:last-child),
.testimonial-card:not(:last-child),
.section:not(:last-child),
section:not(:last-child) {
  margin-bottom: 32px;
}

/* ================
CONTEXTUAL CLASSES
================== */
.text-section h1,
.text-section h2,
.text-section h3 {
  margin-left: 0;
  margin-right: 0;
}
.text-section {
  margin-bottom: 28px;
}
.text-section ul {
  margin-left: 0;
}

/* ================
 PRINT SUPPORT
================== */
@media print {
  header, .mobile-menu, .cookie-banner, footer {
    display: none !important;
  }
  main, section, .section {
    margin: 0;
    padding: 0;
    background: #fff !important;
    box-shadow: none !important;
  }
}
