/* ========================================================
   CSS RESET & NORMALIZATION
======================================================== */
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 { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }

body {
  min-height: 100vh;
  color: #373640;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root {
  --primary: #373640;
  --secondary: #F89E54;
  --accent: #F5F3ED;
  --brand-blue: #405C78;
  --brand-gray: #F1F3F6;
  --border-radius: 12px;
  --shadow-elev-1: 0 1px 6px 0 rgba(40, 48, 67, 0.07);
  --shadow-elev-2: 0 3px 18px 0 rgba(40, 48, 67, 0.15);
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.75rem; margin-bottom: 22px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.38rem; margin-bottom: 12px; }
h4 { font-size: 1.18rem; margin-bottom: 10px; }

p, li, dl, dd {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 600;
}
a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: var(--secondary);
  outline: none;
}

ul, ol {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

/* Generic containers & layout patterns */
.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1100px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  margin-top: 8px;
  margin-bottom: 10px;
}

/* CRITICAL spacing/alignment patterns (do NOT change class names) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elev-1);
  padding: 28px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-elev-2);
  transform: translateY(-4px) scale(1.02);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.testimonial-card {
  background: #fff;
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elev-1);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.15rem;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-elev-2);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* More structure tweaks */
.header-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  position: relative;
  z-index: 101;
}

/* Main header/nav */
header {
  background: #fff;
  border-bottom: 1px solid #E4E7EA;
  box-shadow: 0 1px 10px rgba(64,92,120,0.02);
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 0 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  border-bottom: 2px solid var(--secondary);
  color: var(--brand-blue);
}

/* Primary Button Styles */
.btn-primary, .main-nav .btn-primary, .content-wrapper .btn-primary {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: var(--brand-blue);
  color: #fff;
  font-size: 1rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-elev-1);
  letter-spacing: 0.03em;
  transition: background 0.22s, box-shadow 0.22s, color 0.12s;
  cursor: pointer;
  margin-top: 16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: #fff !important;
  box-shadow: var(--shadow-elev-2);
  outline: none;
}

/* Footer Styles */
footer {
  background: #2B2A33;
  color: #e3e6eb;
  box-shadow: 0 0 8px rgba(64,92,120,0.08);
  font-size: 0.98rem;
  margin-top: 60px;
}
.footer-flex {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px 0 22px 0;
}
footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s;
}
footer a:hover, footer a:focus {
  color: var(--secondary);
}
.footer-contact p, .footer-contact a {
  font-size: 0.96rem;
  color: #e3e6eb;
  margin-bottom: 9px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- HERO SECTIONS ---------- */
section > .container > .content-wrapper > h1, section > .container > .content-wrapper > h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
section > .container > .content-wrapper > h1 {
  font-size: 2.6rem;
  color: var(--brand-blue);
}
section > .container > .content-wrapper > h2 {
  font-size: 2rem;
}
section > .container > .content-wrapper > p {
  max-width: 680px;
  font-size: 1.17rem;
  color: var(--primary);
}

/* ---------- LISTS, FAQ, DETAILS ---------- */
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 2px;
  line-height: 1.65;
}
dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.08rem;
}
dd {
  margin-left: 0;
  margin-bottom: 14px;
}
dl {
  margin-bottom: 16px;
}

/* ---------- SPECIAL CARDS ---------- */
.card, .testimonial-card {
  border: 1px solid #E4E7EA;
}

/* Testimonial specific styling for contrast */
.testimonial-card {
  background: #fff;
  color: #1B2330;
  font-size: 1.12rem;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--brand-blue);
  font-size: 1.02rem;
}

/* ---------- FORM, LINKS, INLINE ELEMENTS ---------- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #C7CCD2;
  padding: 10px 14px;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--brand-blue);
  padding: 6px 10px;
  cursor: pointer;
  z-index: 201;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--secondary);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #23243C;
  z-index: 1500;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.5,.25,.1,1);
  flex-direction: column;
  padding: 0;
  justify-content: flex-start;
  align-items: stretch;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 30px 0 0;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.22s;
  z-index: 1505;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 36px 0 36px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  padding: 13px 0;
  letter-spacing: 0.02em;
  width: 100%;
  border-radius: 8px;
  transition: background 0.16s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-blue);
  color: var(--secondary);
  outline: none;
}

/* Show/hide triggers for mobile nav */
@media (max-width: 1020px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .header-flex, .footer-flex {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-flex {
    gap: 32px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.48rem; }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 20px 6px;
    margin-bottom: 36px;
  }
  .footer-flex, .header-flex {
    gap: 14px;
    padding: 22px 0 18px 0;
  }
  .card {
    padding: 16px 8px;
    font-size: 0.97rem;
  }
  .content-wrapper, .text-section {
    gap: 8px;
  }
}

/* Ensure min spacing between cards! */
.card, .testimonial-card, .content-wrapper {
  margin-bottom: 20px;
}
.content-grid > * {
  margin-bottom: 20px;
}

/* --------------------------------------
   Cookie Consent Banner & Modal
-------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #23243C;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(40, 48, 67, 0.07);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s, transform 0.28s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-consent-banner p {
  max-width: 540px;
  margin: 0 18px 0 0;
  color: #fff;
}
.cookie-consent-banner .cookie-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  margin-left: 8px;
  margin-right: 8px;
  transition: background 0.2s, color 0.13s;
}
.cookie-consent-banner .cookie-btn.accept {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-elev-1);
}
.cookie-consent-banner .cookie-btn.accept:hover, .cookie-consent-banner .cookie-btn.accept:focus {
  background: #e49144;
  color: #fff;
}
.cookie-consent-banner .cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid #e4e7ea;
}
.cookie-consent-banner .cookie-btn.reject:hover, .cookie-consent-banner .cookie-btn.reject:focus {
  background: #f3f5f8;
  color: var(--brand-blue);
}
.cookie-consent-banner .cookie-btn.settings {
  background: var(--brand-blue);
  color: #fff;
  border: none;
}
.cookie-consent-banner .cookie-btn.settings:hover, .cookie-consent-banner .cookie-btn.settings:focus {
  background: var(--secondary);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(40,48,67,0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.24s;
}
.cookie-preferences-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-preferences-dialog {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elev-2);
  width: 96%;
  max-width: 420px;
  padding: 28px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-preferences-dialog h3 {
  font-size: 1.21rem;
  color: var(--brand-blue);
}
.cookie-preferences-dialog .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}
.cookie-preferences-dialog label {
  font-weight: 600;
  color: var(--primary);
  margin-left: 2px;
}
/* Switch Toggle for cookies */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  margin-right: 8px;
}
.switch input { display: none; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E4E7EA;
  border-radius: 22px;
  transition: background 0.18s;
}
.switch input:checked + .switch-slider {
  background: var(--brand-blue);
}
.switch-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
  box-shadow: 0 1px 3px rgba(64,92,120,0.08);
}
.switch input:checked + .switch-slider:before {
  transform: translateX(18px);
}
.cookie-preferences-dialog .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-preferences-dialog .modal-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 6px;
  margin-right: 6px;
  transition: background 0.18s, color 0.12s;
}
.cookie-preferences-dialog .modal-btn.save {
  background: var(--secondary);
  color: #fff;
}
.cookie-preferences-dialog .modal-btn.save:hover {
  background: #e49144;
}
.cookie-preferences-dialog .modal-btn.cancel {
  background: #E4E7EA;
  color: var(--primary);
}
.cookie-preferences-dialog .modal-btn.cancel:hover {
  background: #d4dae1;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    padding: 16px 8px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-preferences-dialog {
    padding: 18px 8px 16px 8px;
    max-width: 97vw;
  }
}

/* ------------- ACCESSIBILITY Tweaks -------------- */
:focus-visible {
  outline: 2px dotted var(--secondary);
  outline-offset: 2px;
}

/* --------------------------------------
   Subtle animations & micro-interactions
-------------------------------------- */
.btn-primary, .cookie-btn, .modal-btn {
  transition: background 0.2s, box-shadow 0.2s, color 0.13s, transform 0.12s;
}
.btn-primary:active, .cookie-btn:active, .modal-btn:active {
  transform: scale(0.97);
}
.card {
  transition: box-shadow 0.17s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-elev-2);
  transform: translateY(-3px) scale(1.01);
}
.testimonial-card {
  transition: box-shadow 0.13s;
}

/* ---------------------------------------
   Other minor tweaks for content 
--------------------------------------- */
.text-section strong {
  color: var(--brand-blue);
}
.text-section a {
  color: var(--brand-blue);
}
.text-section a:hover, .text-section a:focus {
  color: var(--secondary);
}

/* ----------------------------------------
   Hide content overflow on mobile menu open
---------------------------------------- */
body.mobile-menu-open {
  overflow: hidden;
  height: 100vh;
}

/* ----------------------------------------
   Print & selection
---------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner {
    display: none !important;
  }
  body {
    background: #fff;
    color: #222;
  }
}

::selection {
  background: var(--brand-blue);
  color: #fff;
}

/* --------------------------------------
   Custom utility classes
-------------------------------------- */
.mt-16 { margin-top: 16px !important; }
.mb-32 { margin-bottom: 32px !important; }
.pb-40 { padding-bottom: 40px !important; }

/* --------------------------------------
   Brand Personality Visual Details
-------------------------------------- */
section, .card, .testimonial-card {
  border-radius: var(--border-radius);
}

/* Cards and content backgrounds */
.card, .testimonial-card, .content-wrapper, .text-section {
  background: #fff;
}

@media (max-width: 440px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1rem; }
  .btn-primary, .cookie-btn, .modal-btn {
    padding: 11px 8px;
    font-size: 0.94rem !important;
  }
}

/* END AUREA LOGIC PROFESSIONAL CORPORATE DESIGN CSS */
