/* === 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, 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, 
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;
}
html {
  line-height: 1.15;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #181818;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  transition: background 0.3s;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* === CSS VARIABLES (with fallbacks) === */
:root {
  --color-primary: #181818;
  --color-brand-primary: #184A63;
  --color-brand-secondary: #EAF2F8;
  --color-brand-accent: #7DC3D8;
  --color-bg: #fff;
  --color-bg-light: #f5f6fa;
  --color-border: #e4e6ec;
  --color-grey: #888a8c;
  --color-black: #000000;
  --color-white: #fff;
  --color-shadow: rgba(4, 10, 17, 0.05);
  --radius: 12px;

  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Lato', 'Arial', sans-serif;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-black);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.12;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.22;
}
h4 {
  font-size: 1.1rem;
}
p, li, span, label, input, select, textarea {
  font-family: var(--font-body);
  color: var(--color-primary);
}
p {
  margin-bottom: 16px;
  font-size: 1.06rem;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
}
.text-section {
  margin-bottom: 26px;
}
.text-section ul, .text-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--color-grey);
}
.text-section ul li {
  list-style: disc;
}
.text-section ol li {
  list-style: decimal;
}

/* === LAYOUT UTILITY CLASSES === */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.header-flex, .footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .step-grid, .blog-list ul, .team ul, .awards ul {
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px var(--color-shadow);
  background: #fff;
  min-width: 260px;
  max-width: 400px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
  color: var(--color-grey);
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-copy {
  margin-top: 12px;
  color: var(--color-grey);
  font-size: 0.97rem;
}
.logo-link, .logo-link-small {
  display: flex;
  align-items: center;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: relative;
  z-index: 101;
}
.header-flex {
  height: 80px;
  gap: 24px;
}
.logo-link img {
  height: 56px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-right: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-black);
  font-size: 1rem;
  opacity: 0.82;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-brand-primary);
  border-bottom: 2px solid var(--color-brand-primary);
  opacity: 1;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 14px 32px;
  font-size: 1.11rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px var(--color-shadow);
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border 0.15s, transform 0.12s;
  cursor: pointer;
  outline: none;
  margin-left: 16px;
  gap: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-brand-primary);
  color: var(--color-white);
  border: 2px solid var(--color-brand-accent);
  transform: translateY(-2px) scale(1.025);
}
.cta-btn.secondary {
  background: #fff;
  color: var(--color-brand-primary);
  border: 2px solid var(--color-brand-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: var(--color-brand-accent);
  color: #fff;
  border-color: var(--color-brand-primary);
}

/* === HERO SECTION === */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 0 48px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
}
.hero h1 {
  color: var(--color-brand-primary);
  font-size: 2.5rem;
}
.hero p {
  color: var(--color-grey);
  font-size: 1.18rem;
  margin-bottom: 30px;
}

/* === FEATURES SECTION === */
.features {
  background: #fff;
  padding: 40px 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  justify-content: flex-start;
}
.feature-grid li {
  background: var(--color-brand-secondary);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 24px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 260px;
  max-width: 300px;
  gap: 12px;
  min-width: 220px;
}
.feature-grid img {
  height: 38px;
  width: 38px;
}
.feature-grid h3 {
  font-size: 1.2rem;
  color: var(--color-brand-primary);
}
.feature-grid p {
  color: var(--color-grey);
  font-size: 1rem;
}

/* === PROCESS STEPS & TIMELINE === */
.process-steps, .step-grid, .timeline, .process-summary {
  margin-bottom: 36px;
}
.step-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.step-grid > div {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 22px 18px 18px 18px;
  flex: 1 1 200px;
  min-width: 220px;
  margin-bottom: 20px;
}
.timeline ul, .process-summary ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 0;
}
.timeline h3, .process-summary h3 {
  color: var(--color-brand-primary);
  margin-bottom: 12px;
}

/* === TESTIMONIALS - SLIDER STYLE === */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--color-shadow);
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 270px;
  max-width: 360px;
  transition: box-shadow 0.18s, transform 0.15s;
  color: #202025;
  margin-bottom: 0;
}
.testimonial-card p {
  font-size: 1.13rem;
  font-style: italic;
  color: #202025;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-grey);
  font-style: normal;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px rgba(24,74,99,0.13);
  transform: translateY(-4px) scale(1.025);
}

/* === CARD STYLES === */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px var(--color-shadow);
  overflow: hidden;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 6px 28px rgba(24,74,99,0.12);
  transform: translateY(-4px) scale(1.015);
}

/* --- BLOG & NEWSLETTER --- */
.blog-list ul {
  gap: 32px;
  flex-wrap: wrap;
}
.blog-list ul li {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  padding: 22px 20px 18px 20px;
  min-width: 260px;
  max-width: 378px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
}
.blog-list ul li h3 {
  color: var(--color-brand-primary);
}
.blog-list ul li p {
  color: var(--color-grey);
  font-size: 1.01rem;
}
.newsletter-cta form {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}
.newsletter-cta input[type="email"] {
  flex: 1 1 200px;
  padding: 14px 16px;
  font-size: 1.02rem;
  border-radius: var(--radius);
  border: 1px solid #ddd;
  background: #f7f7fa;
  transition: border 0.15s;
}
.newsletter-cta input[type="email"]:focus {
  border: 1.5px solid var(--color-brand-primary);
}
.newsletter-cta button {
  padding: 12px 28px;
  font-size: 1.06rem;
  background: var(--color-brand-primary);
  color: #fff;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s, outline 0.12s;
}
.newsletter-cta button:hover, .newsletter-cta button:focus {
  background: #11161a;
  outline: 2px solid var(--color-brand-primary);
}

/* === FOOTER === */
footer {
  background: #f9fafd;
  border-top: 1px solid var(--color-border);
  padding: 36px 0 22px 0;
  font-size: 1.01rem;
}
footer .content-wrapper {
  gap: 22px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  color: var(--color-grey);
  font-weight: 500;
  font-size: 1.01rem;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-brand-primary);
}

.logo-link-small img {
  height: 36px;
}

/* === MODAL & OVERLAYS === */
[aria-modal="true"], .modal, .cookie-preferences-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 24, 24, 0.53);
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 501;
  transition: opacity 0.26s;
}
.cookie-preferences-modal {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.cookie-preferences-modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.cookie-preferences-content {
  background: #fff;
  padding: 24px 32px 26px 32px;
  border-radius: 18px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 8px 50px rgba(24,74,99,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.cookie-preferences-content h2 {
  color: var(--color-brand-primary);
  font-size: 1.7rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category-group label {
  font-size: 1.04rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-preferences-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #20252c;
  color: #fff;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  z-index: 501;
  box-shadow: 0 -2px 36px rgba(24,74,99,0.16);
  font-size: 1.1rem;
  flex-wrap: wrap;
  min-height: 80px;
  transition: transform 0.21s cubic-bezier(.6,.02,.7,1.07), opacity 0.15s;
}
.cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  flex: 2 1 260px;
  color: #f4f7fa;
  font-size: 1.1rem;
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-btn, .cookie-settings-btn {
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.06rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.12s, box-shadow 0.12s;
}
.cookie-btn.accept {
  background: var(--color-brand-primary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #000;
}
.cookie-btn.reject {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eee;
  color: var(--color-black);
  border-color: var(--color-black);
}
.cookie-settings-btn {
  background: #fff;
  color: var(--color-brand-primary);
  border: 2px solid var(--color-brand-primary);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--color-brand-accent);
  color: #fff;
  border-color: var(--color-brand-primary);
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-brand-primary);
  cursor: pointer;
  z-index: 500;
  margin-left: auto;
  margin-right: 8px;
  transition: color 0.15s, transform 0.14s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  color: #000;
  outline: 2px solid var(--color-brand-primary);
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  background: #18181c;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.55,.07,.41,.98);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  min-height: 100vh;
  padding: 44px 24px 32px 32px;
  box-sizing: border-box;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 18px;
  margin-right: 5px;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.23rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-brand-accent);
  border-bottom: 2px solid var(--color-brand-accent);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1170px) {
  .container { max-width: 992px; }
  .feature-grid { gap: 24px; }
  .step-grid { gap: 18px; }
}
@media (max-width: 980px) {
  .container { max-width: 820px; }
  .feature-grid { gap: 18px; }
  .content-grid { gap: 12px; }
}
@media (max-width: 860px) {
  h1 { font-size: 2.07rem; }
  .header-flex {
    flex-direction: column;
    height: auto;
    gap: 8px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
    width: 100%;
    min-width: 180px;
    min-height: 48px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header {
    min-height: 60px;
  }
  .hero {
    min-height: 220px;
    padding: 22px 0 34px 0;
  }
  .features, .section {
    margin-bottom: 36px;
    padding: 26px 0 26px 0;
  }
  .feature-grid {
    flex-wrap: wrap;
    gap: 20px;
  }
  .feature-grid li {
    min-width: 150px;
    padding: 16px 10px 14px 10px;
    max-width: 99vw;
  }
  .step-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-slider, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 98vw;
    padding: 18px 12px 16px 12px;
  }
  .blog-list ul {
    gap: 16px;
    flex-direction: column;
  }
  .blog-list ul li, .card {
    min-width: 0;
    max-width: 99vw;
    padding: 18px 10px;
  }
  .footer-contact, .footer-nav, .footer-social {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.07rem; }
  .cookie-banner {
    font-size: .97rem;
    padding: 12px 6px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .cookie-preferences-content {
    padding: 15px 6px;
    min-width: 0;
    max-width: 99vw;
  }
}
/* === ANIMATIONS === */
.cta-btn, .card, .feature-grid li, .testimonial-card, .mobile-menu, .cookie-banner, .cookie-btn, .cookie-settings-btn {
  transition: 
    background 0.18s, 
    color 0.17s, 
    border-color 0.17s, 
    box-shadow 0.15s, 
    transform 0.14s, 
    opacity 0.17s;
}
.cta-btn:active {
  transform: scale(0.98);
}

/* === CUSTOM FORM ELEMENTS === */
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--color-brand-primary);
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0 8px 0 0;
}

/* === SELECT & DETAILS === */
select {
  border-radius: 8px;
  padding: 8px 14px;
  appearance: none;
  border: 1.5px solid var(--color-border);
  font-family: var(--font-body);
  color: var(--color-black);
}
select:focus {
  border-color: var(--color-brand-primary);
}

/* === OFFICE MAP & HOURS (ON CONTACT PAGE) === */
.office-map {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-brand-secondary);
  border-radius: var(--radius);
  padding: 10px 20px;
  margin-bottom: 16px;
  font-size: 1.11rem;
}
.office-map img {
  height: 26px;
}
.office-hours {
  background: #fafbfc;
  border: 1px solid #e0e7f1;
  border-radius: var(--radius);
  padding: 12px 12px;
  font-size: 1rem;
  margin-bottom: 10px;
}
.office-hours h3 {
  font-size: 1.09rem;
  margin-bottom: 8px;
}

/* === HELPERS === */
.gap-top { margin-top: 32px !important; }
.gap-bottom { margin-bottom: 32px !important; }
.mr-16 { margin-right: 16px !important; }
.mb-8 { margin-bottom: 8px !important; }

/* === ACCESSIBILITY === */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-brand-accent);
  outline-offset: 1px;
}

/* === PRINT === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #181818; }
}
