/* --- CSS RESET & NORMALIZE --- */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #181818;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
ul, ol {
  list-style: inside disc;
  margin: 0 0 20px 18px;
  padding-left: 0;
}
li + li {
  margin-top: 8px;
}

/* ------ MONOCHROME SOPHISTICATED PALETTE ------ */
:root {
  --black: #181818;
  --gray900: #23272a;
  --gray800: #2d2f32;
  --gray700: #44474c;
  --gray600: #676b71;
  --gray300: #CED4DA;
  --gray200: #F3F3F4;
  --white: #fff;
  --primary: #181818;
  --secondary: #D7E7F1;
  --accent: #F6C244;
  --border: #E4E4E4;
  --shadow: 0 4px 24px 0 rgba(30,30,40,.04);
  --shadow-card: 0 4px 16px 0 rgba(30,30,40,0.09);
  --radius: 16px;
}

/* ------------ TYPOGRAPHY ------------- */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.17;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray900);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--gray800);
}
p {
  font-size: 1rem;
  margin-bottom: 18px;
}
strong {
  font-weight: 600;
  color: var(--black);
}
small {
  font-size: 0.95rem;
  color: var(--gray600);
}

.text-section h2, .text-section h1 {
  max-width: 700px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.05rem;
  }
}

/* ------------ LAYOUT CONTAINERS ------------- */
.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 18px;
  margin-left: auto;
  margin-right: auto;
}
main {
  min-height: 70vh;
}

.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section, section {
    margin-bottom: 40px;
    padding: 28px 5px;
  }
}

/* Content Wrapper for Spacing & Visual Order */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  border-radius: var(--radius);
  margin-bottom: 0; /* override section margin instead */
}

.text-section {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .text-section {
    padding: 20px 6px;
  }
}

/* ------------ FEATURE GRID ------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--gray200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px 24px 28px;
  flex: 1 1 250px;
  min-width: 230px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.23s, transform .2s;
  border: 1px solid var(--border);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px 0 rgba(24,24,28,0.14);
  transform: translateY(-4px) scale(1.015);
}
.feature-grid img {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  opacity: 0.85;
}
@media (max-width: 995px) {
  .feature-grid {
    gap: 24px;
  }
  .feature-grid > div {
    padding: 24px 14px 20px 14px;
    min-width: 160px;
    max-width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
  }
}

/* ------------ CARD CONTAINERS & FLOW ------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--gray200);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform .19s;
  position: relative;
  flex: 1 1 260px;
  padding: 28px 20px 20px 24px;
}
.card:hover {
  box-shadow: 0 12px 36px rgba(24,24,28,0.12);
  transform: translateY(-5px) scale(1.03);
}

.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;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ------------ BUTTONS & CTA ------------- */
.cta-primary, .feature-grid a.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 13px 36px;
  border-radius: 36px;
  background: var(--black);
  color: var(--white);
  border: 0;
  outline: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  cursor: pointer;
  margin-top: 14px;
  transition: background .2s, color .2s, box-shadow .21s, transform .16s;
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .feature-grid a.cta-primary:hover,
.cta-primary:focus {
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 8px 30px rgba(20,20,24,0.17);
  transform: scale(1.04);
}

button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: transparent;
}

a.button, button.button {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  padding: 13px 26px;
  background: var(--black);
  color: var(--white);
  border-radius: 28px;
  border: none;
  box-shadow: var(--shadow-card);
  transition: background .19s, color .19s, box-shadow .18s;
  text-align: center;
}
a.button:hover, button.button:hover {
  background: var(--accent);
  color: var(--black);
}

/* ------------- TESTIMONIAL CARDS -------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1.5px solid var(--gray300);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  max-width: 740px;
}
.testimonial-card p {
  color: var(--black);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--gray700);
  font-size: 16px;
  margin-top: 0;
  margin-left: 20px;
  font-weight: 500;
}
@media (max-width: 670px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    max-width: 100%;
  }
  .testimonial-card strong {
    margin-left: 0;
  }
}

/* ------------- NAVIGATION --------------- */
header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 16px 0;
  background: var(--white);
  position: relative;
  z-index: 10;
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 12px rgba(24,24,28,0.04);
}
header img {
  height: 46px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-left: 24px;
}
header nav a {
  color: var(--gray800);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .14s, color .14s;
  position: relative;
}
header nav a:hover, header nav a.active {
  background: var(--gray300);
  color: var(--black);
}
header nav a.cta-primary {
  margin-left: 20px;
  padding: 12px 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(24,24,28,0.08);
}
header nav a.cta-primary:hover {
  background: var(--accent);
  color: var(--black);
}
@media (max-width: 995px) {
  header nav {
    gap: 8px;
    margin-left: 8px;
  }
  header nav a.cta-primary {
    margin-left: 10px;
    padding: 11px 20px;
  }
}

/* HIDE desktop nav on mobile */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
}

/* ------------ MOBILE MENU ------------ */
.mobile-menu-toggle {
  display: none;
  background: var(--black);
  color: var(--white);
  font-size: 1.7rem;
  border-radius: 9px;
  padding: 7px 17px;
  margin-left: 10px;
  z-index: 101;
  transition: background .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--gray700);
}
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(24,24,24,0.88);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.33,1,.68,1);
  display: flex;
  height: 100vh;
  width: 100vw;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  margin: 22px 18px 0 0;
  align-self: flex-start;
  font-size: 2.2rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: color .18s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 64px auto 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(24,24,24,0.24);
  padding: 34px 32px 22px 32px;
  min-width: 220px;
}
.mobile-nav a {
  color: var(--black);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  margin: 0;
  padding: 12px 8px;
  border-radius: 8px;
  font-weight: 500;
  transition: background .14s;
}
.mobile-nav a:hover {
  background: var(--gray200);
  color: var(--black);
}
@media (max-width: 400px) {
  .mobile-nav {
    padding: 20px 7px 12px 7px;
    min-width: 0;
  }
}

/* ------------- FOOTER ------------- */
footer {
  background: var(--white);
  padding: 32px 0 20px 0;
  border-top: 1.5px solid var(--border);
  box-shadow: 0 -2px 14px rgba(24,24,28,0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 48px;
}
footer nav {
  display: flex;
  gap: 22px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--gray700);
  font-size: 1rem;
  transition: color .16s;
}
footer nav a:hover {
  color: var(--black);
  text-decoration: underline;
}
footer small {
  color: var(--gray600);
}
@media (max-width: 700px) {
  footer {
    padding: 22px 0 11px 0;
    margin-top: 24px;
  }
  footer nav {
    gap: 10px;
    font-size: .95em;
    flex-wrap: wrap;
  }
}

/* ------------- LINKS ------------- */
a {
  cursor: pointer;
  color: var(--primary);
  transition: color .17s;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.text-section a {
  color: var(--primary);
  border-bottom: 1.5px dotted var(--accent);
  transition: border-color .18s, color .18s;
}
.text-section a:hover {
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
}

/* ------------- LISTS ------------- */
ul {
  margin-bottom: 14px;
}
ul li {
  color: var(--gray900);
  margin-bottom: 5px;
  padding-left: 2px;
}
.text-section ul li {
  margin-bottom: 10px;
  list-style-type: disc;
}

/* ------------- SPECIAL CONTENT: BLOG FILTER & FEATURED ------------- */
.categories-filter {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0 12px 0;
}
.categories-filter span {
  color: var(--gray700);
  font-weight: 500;
  margin-right: 8px;
}
.categories-filter a {
  color: var(--gray800);
  background: var(--gray200);
  border-radius: 12px;
  padding: 4px 16px;
  font-size: 0.98rem;
  transition: background .12s, color .12s;
}
.categories-filter a:hover {
  background: var(--accent);
  color: var(--black);
}

.featured-post {
  border-left: 5px solid var(--accent);
  background: var(--gray200);
  padding: 20px 28px;
  margin: 28px 0 0 0;
  border-radius: var(--radius);
}

/* ------------- TEAM PAGE ------------- */
.team-group-photo-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gray200);
  border-radius: var(--radius);
  box-shadow: 0 4px 28px rgba(24,24,28,0.03);
  padding: 36px 0;
  margin-bottom: 16px;
}

/* ------------- CONTACT / INFO ICONS ------------- */
.text-section > div, .content-wrapper > div {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.text-section img, .content-wrapper img {
  width: 26px;
  min-width: 22px;
  opacity: .76;
  background: none;
  border-radius: 0;
}

/* ------------- COOKIE CONSENT BANNER & MODAL ------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25000;
  background: var(--gray900);
  color: var(--white);
  padding: 26px 12px 18px 12px;
  box-shadow: 0 -4px 32px rgba(24,24,28,0.17);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(.36,1.01,.56,.98), opacity .28s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner .cookie-btn {
  background: var(--white);
  color: var(--black);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  padding: 11px 22px;
  margin-left: 8px;
  box-shadow: 0 2px 12px rgba(20,20,24,0.10);
  transition: background .16s, color .15s;
  cursor: pointer;
}
.cookie-banner .cookie-btn:hover {
  background: var(--accent);
  color: var(--black);
}
.cookie-banner .cookie-settings-btn {
  background: var(--gray300);
  color: var(--black);
  margin-left: 0;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--accent);
  color: var(--black);
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 96vw;
  max-width: 420px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 12px 48px rgba(24,24,28,0.18);
  padding: 36px 24px 24px 24px;
  border-radius: 20px;
  z-index: 25001;
  transform: translate(-50%, calc(-50% + 50px));
  transition: opacity .21s, transform .28s;
  display: none;
}
.cookie-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%);
}
.cookie-modal h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 13px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--gray700);
  cursor: pointer;
}
.cookie-modal .cookie-category {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05em;
}
.cookie-modal label {
  font-size: 1em;
  cursor: pointer;
}
.cookie-modal .toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray300);
  border-radius: 24px;
  transition: background .16s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--accent);
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 2px rgba(24,24,28,0.15);
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .category-desc {
  color: var(--gray600);
  font-size: .95em;
  margin-left: 3px;
}
.cookie-modal .cookie-save-btn {
  margin-top: 18px;
  background: var(--black);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  border: none;
  box-shadow: 0 2px 8px rgba(24,24,28,0.08);
  transition: background .15s;
}
.cookie-modal .cookie-save-btn:hover {
  background: var(--accent);
  color: var(--black);
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 20px 6px 16px 6px;
  }
}

/* ------------- FORM ELEMENTS / INPUTS ------------- */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 13px;
  border-radius: 7px;
  border: 1.3px solid var(--border);
  background: var(--white);
  color: var(--black);
  box-shadow: 0 2px 8px rgba(24,24,28,0.02);
  margin-bottom: 16px;
  transition: border-color .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--black);
  outline: none;
}

label {
  font-size: 1.03rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 7px;
}

/* ------------- RESPONSIVE ------------- */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
  }
  .text-section, .card, .featured-post {
    padding: 10px 3px;
  }
}

/* ------ VISUAL EFFECTS FOR SOPHISTICATION ------ */
section, .card, .testimonial-card, .feature-grid > div {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

/* MICRO-INTERACTIONS */
.feature-grid > div, .card, .cta-primary, .button, .categories-filter a, .mobile-nav a, .cookie-btn {
  transition: box-shadow 0.23s, transform 0.18s, background 0.18s, color 0.18s;
}

/* Z-INDEX MANAGEMENT (ensure overlays work) */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 1000; }
.mobile-menu { z-index: 9999; }
.cookie-banner, .cookie-modal { z-index: 25000; }

/* ----------- ACCESSIBLE FOCUS ----------- */
a:focus, button:focus, .cta-primary:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  background: var(--gray200);
  color: var(--black);
}

/* ----------- CUSTOM SCROLLBAR ----------- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--gray200);
}
::-webkit-scrollbar-thumb {
  background: var(--gray300);
  border-radius: 12px;
}

/* ----------- PREVENT OVERLAP/NO ABSOLUTE FOR CONTENT ----------- */
.card, .feature-grid > div, .testimonial-card, .content-wrapper, .text-section {
  position: relative;
  z-index: 1;
}

/* SCRIM/OVERLAY for modals if needed */
.modal-scrim {
  background: rgba(24,24,28,0.50);
  position: fixed;
  z-index: 24999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: all;
  opacity: 1;
  transition: opacity .19s;
  display: none;
}
.modal-scrim.open {
  display: block;
  opacity: 1;
}

/* ============== UTILITY CLASSES ============== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.pt-0 { padding-top: 0 !important; }

/* Hide visually but keep for screen readers */
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  border: 0; 
}

/* ========== END ========== */
a.cta-primary {
  color: white;
}
a.cta-primary:hover {
  color: black;
}