/* ===================== 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 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F9F9F9;
  color: #232930;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
*::selection {
  background: #FFD166;
  color: #274472;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #274472;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6C9A8B;
  outline: none;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #274472;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.75rem; margin-top: 0; margin-bottom: 24px; }
h2 { font-size: 2rem;  margin-top: 0; margin-bottom: 20px; }
h3 { font-size: 1.25rem;   margin-bottom: 16px; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, dl { margin-bottom: 16px; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
ul, ol {
  padding-left: 1.4em;
}
dt { font-weight: 700; }
dd { margin-bottom: 12px; }

/* Visual hierarchy with spacing */
.section h1,
.section h2 { margin-bottom: 20px; }

/* ===================== BRAND COLORS & VARIABLES ===================== */
:root {
  --primary: #274472;
  --secondary: #6C9A8B;
  --accent: #FFD166;
  --background: #F9F9F9;
  --surface: #FFFFFF;
  --border: #E3E8EC;
  --shadow: 0 2px 16px 0 rgba(39,68,114,0.07);
  --radius: 12px;
}

/* Fallbacks for variables */
html {
  background: var(--background, #F9F9F9);
}

/* ===================== LAYOUT CONTAINERS ===================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  background: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.section:last-child { margin-bottom: 0; }

/* ===================== HEADER / NAVIGATION ===================== */
header {
  background: var(--surface);
  box-shadow: 0 2px 8px 0 rgba(39,68,114,0.06);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 18px;
}
.logo img {
  height: 42px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.main-nav a {
  color: var(--primary);
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--secondary);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  border-radius: 9999px;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(39,68,114,0.09);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  margin-left: 14px;
  letter-spacing: 0.02em;
  outline: none;
  display: inline-block;
  position: relative;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 3px 14px 0 rgba(108,154,139,0.13);
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.85rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: 22px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(249,249,249,0.96);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 2px 16px 0 rgba(39,68,114,0.07);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 24px 0 0;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { background: var(--accent); color: var(--primary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-end;
  margin: 40px 40px 0 0;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  padding: 12px 0;
  font-weight: 600;
  transition: color 0.22s;
  border-radius: 6px;
  min-width: 200px;
  text-align: right;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

/* Hide main-nav and show burger on mobile */
@media (max-width: 960px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===================== MAIN LAYOUT SECTIONS & FLEX UTILS ===================== */
.section { /* mandatory layout class */ }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.18s, transform 0.13s;
  position: relative;
}
.card:hover, .card:focus-within {
  box-shadow: 0 5px 18px 0 rgba(39,68,114,0.14);
  transform: translateY(-2px) scale(1.01);
}
.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;
  background: #F9FAFB;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px 0 rgba(39,68,114,0.06);
  margin-bottom: 20px;
  position: relative;
  border-left: 4px solid var(--accent);
  color: #232930;
  font-size: 1.06rem;
}
.testimonial-card p {
  color: #232930;
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-card span {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.team-profile {
  background: #F5F6F8;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(39,68,114,0.04);
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-study {
  background: #FAFAFE;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 rgba(39,68,114,0.07);
  padding: 22px 18px;
  margin-bottom: 20px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid var(--secondary);
}

.client-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 24px;
  margin-bottom: 15px;
  background: #fff;
  padding: 8px 15px;
  border-radius: 10px;
  box-shadow: 0 1px 3px 0 rgba(108,154,139,0.12);
}

/* ===================== LISTS & DL ===================== */
ul li, ol li {
  margin-bottom: 12px;
  line-height: 1.6;
}
dt {
  font-weight: 600;
  margin-top: 12px;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: #21252a;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--surface);
  box-shadow: 0 -1px 6px 0 rgba(39,68,114,0.06);
  border-top: 1px solid var(--border);
  padding: 38px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
}

footer p {
  color: #566471;
  font-size: 0.97rem;
  text-align: center;
}

/* ===================== BLOG ARTICLES ===================== */
article {
  background: #F8FAFA;
  border-radius: var(--radius);
  box-shadow: 0 1px 5px 0 rgba(39,68,114,0.05);
  padding: 26px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.14s, transform 0.11s;
  border-left: 3px solid var(--secondary);
}
article a {
  margin-top: 6px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.17s;
}
article a:hover, article a:focus {
  color: var(--accent);
}

/* ===================== BUTTONS & INTERACTIVE STATES ===================== */
button, input[type="submit"], .btn-primary {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border: none;
}
button:focus, .btn-primary:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

input, textarea, select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
  background: #fff;
  color: #232930;
  margin-bottom: 16px;
  transition: border-color 0.16s;
}
input:focus, textarea:focus {
  border-color: var(--primary);
}

/* Accent for blockquotes (if used in blog) */
blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  background: #FAFAF6;
  font-style: italic;
  color: #47505b;
  margin-bottom: 20px;
}

/* ===================== RESPONSIVE DESIGN - MOBILE FIRST ===================== */
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 26px 6px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    width: 100%;
    margin-left: 0;
    padding: 13px 0;
    font-size: 1.07rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .team-profile, .card, .case-study, .testimonial-card, article {
    min-width: 0;
    width: 100%;
  }
  .client-logo {
    margin-right: 12px;
    padding: 7px 11px;
  }
  .mobile-menu {
    align-items: flex-end;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.24rem; }
  .section { padding: 17px 3px; }
  .container { padding-left: 3px; padding-right: 3px; }
}

/* ===================== MICRO-INTERACTIONS / HOVER EFFECTS ===================== */
.card, .team-profile, .case-study, article, .testimonial-card {
  transition: box-shadow 0.14s, transform 0.10s;
}
.card:hover, .team-profile:hover, .case-study:hover, article:hover {
  box-shadow: 0 5px 16px 0 rgba(108,154,139,0.11);
  transform: translateY(-2px) scale(1.013);
}

/* Inputs and form feedback (can be enhanced as needed) */
input:focus, textarea:focus {
  box-shadow: 0 1px 9px 0 rgba(39,68,114,0.06);
  outline: none;
}

/* ===================== COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 300;
  background: var(--surface);
  box-shadow: 0 -4px 22px 0 rgba(39,68,114,0.12);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
  animation: cookieBannerIn 0.32s both;
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner-message {
  flex: 1 1 66%;
  color: #232930; 
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.btn-cookie-accept, .btn-cookie-reject, .btn-cookie-settings {
  border-radius: 9999px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 9px 22px;
  cursor: pointer;
  border: none;
  transition: background 0.16s, color 0.14s, box-shadow 0.11s;
  outline: none;
}
.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
}
.btn-cookie-accept:hover, .btn-cookie-accept:focus {
  background: var(--secondary);
  color: #fff;
}
.btn-cookie-reject {
  background: #F6F8FA;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: var(--accent);
  color: var(--primary);
}
.btn-cookie-settings {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 10px;
    gap: 8px;
  }
  .cookie-banner-actions {
    gap: 9px;
    flex-wrap: wrap;
  }
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(39,68,114,0.14);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.29s cubic-bezier(.25,.8,.25,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 11px 40px 0 rgba(39,68,114,0.22);
  max-width: 420px;
  width: 90%;
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: cookieModalIn 0.32s;
  position: relative;
}
@keyframes cookieModalIn {
  from { transform: translateY(80px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-modal-category:last-child {
  border: none;
}
.cookie-modal-category label {
  font-size: 1.01rem;
  color: #232930;
}
.cookie-modal-toggle {
  margin-left: 12px;
}

.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal button {
  min-width: 110px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 8px;
  transition: background .2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
}

/* ===================== GENERAL UTILITIES & ACCESSIBILITY ===================== */
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* ===================== FOCUS STYLES (Accessibility) ===================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===================== CUSTOM SCROLLBAR ===================== */
body::-webkit-scrollbar {
  width: 10px;
  background: #F2F2F4;
}
body::-webkit-scrollbar-thumb {
  background: #D6DCE2;
  border-radius: 8px;
}

/* ===================== CUSTOM CHECKBOXES/SWITCH (Cookie Settings) ===================== */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #E3E8EC;
  transition: background 0.26s;
  border-radius: 24px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #fff;
  border: 1px solid #BFC8D1;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.switch input:checked + .slider {
  background-color: var(--secondary);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
  background: var(--accent);
  border-color: var(--secondary);
}
.switch input:disabled + .slider {
  opacity: 0.6;
  background: #D6DCE2;
}

/* ===================== END OF LUMINA SPIRE MAIN STYLESHEET ===================== */
