/* --- 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f8f8f8;
  color: #181818;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*:focus {
  outline: 2px solid #101010;
  outline-offset: 1px;
}
a {
  color: #181818;
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #205539;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 14px;
}
img {
  max-width: 100%;
  display: block;
}
strong {
  font-weight: bold;
}

/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400|Open+Sans:400,600,700&display=swap');

/* ------------------- BRAND COLOR PALETTE (MONOCHROME) ------------------ */
:root {
  --color-bg: #ffffff;
  --color-surface: #f4f4f4;
  --color-card: #f8f8f9;
  --color-hero: #fff;
  --color-accent: #181818; /* nearly black for text */
  --color-muted: #646464;
  --color-link: #101010;
  --color-border: #dadada;
  --color-shadow: rgba(0,0,0,0.04);
  --color-btn: #1c1c1c;
  --color-btn-hover: #383838;
  --color-btn-secondary: #ededed;
  --color-btn-secondary-hov: #222222;
  --color-btn-text: #fff;
  --color-primary-bg: #ececec;
  --color-section: #f6f6f6;
  --color-footer: #191919;
  --brand-primary: #205539; /* for monochrome: use as dark accent */
  --brand-secondary: #679661; /* rarely as subtle accent */
  --brand-accent: #F4F8F3; /* highlight backgrounds only */
}

/* ----------- TYPOGRAPHY (ELEGANT, DRAMATIC CONTRAST, HIERARCHY) ----------- */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.45rem;
  letter-spacing: -0.025em;
  color: var(--color-accent);
  margin-bottom: 20px;
  line-height: 1.1;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.65rem;
  color: var(--color-accent);
  margin-bottom: 18px;
  line-height: 1.13;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-accent);
}
body, p, ul, ol, li, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-accent);
}
p, ul, ol {
  margin-bottom: 16px;
}
.text-muted {
  color: var(--color-muted)!important;
}

@media (max-width: 540px) {
  h1, .h1 {
    font-size: 1.68rem;
  }
  h2, .h2 {
    font-size: 1.22rem;
  }
}

/* --- CONTAINER & SECTIONS --- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 22px;
  padding-right: 22px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section);
  border-radius: 14px;
}
main section {
  margin-bottom: 60px;
  border-radius: 14px;
}

@media (max-width: 680px) {
  .section, main section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
}

/* --- HEADER/NAVIGATION --- */
header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  z-index: 40;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
header img {
  height: 36px;
  margin-right: 18px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.17s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-primary-bg);
  color: #205539;
}
.cta-btn.primary {
  background: var(--color-btn);
  color: var(--color-btn-text);
  border-radius: 26px;
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  font-size: 1.07rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.015em;
  margin-left: 24px;
  transition: background 0.22s, box-shadow 0.2s, color 0.18s;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.03);
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: var(--color-btn-hover);
  color: #ffffff;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10);
}
.cta-btn.secondary {
  background: transparent;
  color: #101010;
  border: 2px solid #202020;
  border-radius: 26px;
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  cursor: pointer;
  margin-top: 14px;
  display: inline-block;
  text-decoration: none;
  letter-spacing: 0.015em;
  transition: background 0.2s, color 0.16s, border 0.17s;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #161616;
  color: #fff;
  border: 2px solid #101010;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #181818;
  cursor: pointer;
  padding: 4px 10px;
  margin-left: 12px;
  transition: color 0.17s;
  z-index: 99;
}
.mobile-menu-toggle:focus {
  color: #205539;
  outline: 2px solid #205539;
  outline-offset: 2px;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(248,248,248,0.96);
  z-index: 1110;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 42px 24px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.25,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #ececec;
  border: none;
  color: #101010;
  font-size: 2.1rem;
  padding: 4px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s, color 0.17s;
  margin-bottom: 28px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #202020;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #101010;
  font-size: 1.2rem;
  padding: 14px 6px;
  text-decoration: none;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #181818;
  color: #fff;
}

@media (max-width: 1100px) {
  header .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 830px) {
  nav {
    display: none;
  }
  .cta-btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO SECTION --- */
.hero-section {
  background: var(--color-hero);
  padding: 72px 0 54px 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 18px 0 var(--color-shadow);
  min-height: 20vh;
  margin-bottom: 38px;
  position: relative;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 650px;
  margin-left: 0;
}
.hero-section h1 {
  color: #101010;
  font-size: 2.7rem;
  letter-spacing: -0.011em;
}
.hero-section p {
  font-size: 1.16rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}
@media (max-width: 680px) {
  .hero-section {
    padding: 38px 0 26px 0;
    border-radius: 0 0 10px 10px;
  }
  .hero-section .content-wrapper {
    max-width: 100%;
  }
  .hero-section h1 {
    font-size: 1.38rem;
  }
}

/* --- CONTENT WRAPPER --- */
.content-wrapper {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 auto;
  align-items: flex-start;
}
.text-section {
  max-width: 680px;
  margin-bottom: 20px;
}

/* --- FLEX LAYOUTS (MANDATORY PATTERNS) --- */
.card-container,
.feature-grid,
.technology-grid,
.testimonial-grid,
.team-leader-profiles,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .feature-item, .team-profile {
  margin-bottom: 20px;
}
.content-grid {
  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: 14px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.04);
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 290px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, border 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px 2px rgba(0,0,0,0.11);
  border: 1px solid #101010;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card);
  border-radius: 12px;
  padding: 26px 22px 16px 22px;
  border: 1px solid var(--color-border);
  min-width: 210px;
  flex: 1 1 233px;
  min-height: 190px;
  transition: box-shadow 0.18s, border-color 0.16s, background 0.18s;
}
.feature-item:hover {
  box-shadow: 0 6px 24px 0 rgba(32,32,32,0.10);
  border-color: #101010;
  background: #fff;
}
.card {
  background: var(--color-card);
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
  padding: 30px 18px 18px 18px;
  border: 1px solid var(--color-border);
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 10px 28px 2px rgba(32,32,32,0.14);
}

@media (max-width: 900px) {
  .feature-grid, .technology-grid, .card-grid, .testimonial-grid, .team-leader-profiles {
    gap: 14px;
  }
}
@media (max-width: 780px) {
  .feature-grid, .technology-grid, .card-grid, .testimonial-grid, .team-leader-profiles, .card-container, .content-grid {
    flex-direction: column;
  }
  .feature-item, .testimonial-card, .card {
    max-width: 95%;
    min-width: 0;
  }
}
@media (max-width: 540px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    gap: 12px;
  }
}

/* --- TEAM PROFILES --- */
.team-leader-profiles {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-profile {
  background: var(--color-card);
  border-radius: 10px;
  padding: 22px 18px 12px 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px 1px rgba(0,0,0,0.03);
  min-width: 210px;
  max-width: 330px;
  flex: 1 1 240px;
  margin-bottom: 20px;
}

/* --- TABLES, LISTS, IMAGES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
  background: #fff;
}
th, td {
  padding: 14px 12px;
  border: 1px solid var(--color-border);
}
th {
  background: var(--color-card);
  color: var(--color-accent);
  font-weight: 600;
}
ul li, ol li {
  margin-bottom: 7px;
}

/* --- BUTTONS --- */
button, .cta-btn {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  padding: 9px 26px;
  transition: background 0.19s, color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
button:disabled, .cta-btn:disabled {
  opacity: 0.67;
  cursor: not-allowed;
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer);
  color: #f6f6f6;
  padding: 38px 0 24px 0;
  border-radius: 30px 30px 0 0;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
footer nav {
  display: flex;
  gap: 28px;
  margin-bottom: 8px;
}
footer nav a {
  color: #fff;
  font-weight: 400;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.15s, opacity 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #f2d468;
  opacity: 1;
}
footer p {
  color: #e0e0e0;
  font-size: 0.95rem;
  opacity: 0.88;
}

@media (max-width: 540px) {
  footer .container, footer nav {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

/* --- CONTACT DETAILS --- */
.contact-details ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 8px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}
.contact-details img {
  width: 20px;
  height: 20px;
  filter: grayscale(1) contrast(0.55);
}

/* --- COOKIES CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: #232323;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  z-index: 1900;
  box-shadow: 0 -2px 12px 0 rgba(50,50,50,0.19);
  gap: 28px;
  font-size: 1rem;
  transition: transform 0.32s cubic-bezier(.83,.01,.15,.98);
}
.cookie-banner.hide {
  transform: translateY(200%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  border: none;
  padding: 9px 20px;
  margin: 0 0 0 0;
  transition: background 0.18s, color 0.17s;
}
.cookie-banner .accept {
  background: #181818;
  color: #f7f7f7;
  border: 2px solid #444;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #205539;
  color: #fff;
}
.cookie-banner .reject {
  background: #ededed;
  color: #181818;
  border: 2px solid #dadada;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #232323;
  color: #fff;
}
.cookie-banner .settings {
  background: transparent;
  color: #dedede;
  border: 2px solid #333;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #323232;
  color: #fff;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,36,36,0.78);
  z-index: 1990;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  color: #161616;
  border-radius: 14px;
  max-width: 390px;
  width: 96vw;
  padding: 28px 28px 22px 28px;
  box-shadow: 0 4px 32px 4px rgba(24,24,24,0.20);
  display: flex;
  flex-direction: column;
  gap: 21px;
  z-index: 2000;
  animation: cookieModalIn 0.38s cubic-bezier(.77,.2,.25,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: scale(0.85); }
  70% { opacity: 0.82; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.20rem;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #205539;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 7px;
}
.cookie-modal .cookie-modal-actions button {
  padding: 10px 22px;
  border-radius: 9px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  transition: background 0.18s, color 0.16s;
}
.cookie-modal .accept {
  background: #205539;
  color: #fff;
}
.cookie-modal .accept:hover, .cookie-modal .accept:focus {
  background: #101010;
}
.cookie-modal .reject {
  background: #ececec;
  color: #181818;
}
.cookie-modal .reject:hover, .cookie-modal .reject:focus {
  background: #232323;
  color: #fff;
}
.cookie-modal .close {
  background: transparent;
  color: #205539;
  border: none;
  margin-left: auto;
  margin-bottom: 8px;
  font-size: 1.4rem;
  cursor: pointer;
}
.cookie-modal .close:hover {
  color: #101010;
}

/* --- ANIMATIONS & TRANSITIONS --- */
.card, .testimonial-card, .feature-item {
  transition: box-shadow 0.18s, background 0.15s, border-color 0.18s;
}
a, button, .cta-btn {
  transition: color 0.19s, background 0.18s, border 0.15s;
}

/* --- RESPONSIVE FLEX ADJUSTMENTS --- */
@media (max-width: 780px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 9px;
  background: #e4e4e4;
}
::-webkit-scrollbar-thumb {
  background: #bababa;
  border-radius: 9px;
}

::selection {
  background: #101010;
  color: #fff;
}

/* --- VISUAL DIVIDERS --- */
hr {
  border: none;
  border-bottom: 1px solid #dadada;
  margin: 36px 0 24px 0;
}

/* --- UTILITY CLASSES --- */
.text-center {
  text-align: center!important;
}
.mt-32 {
  margin-top: 32px!important;
}
.mb-32 {
  margin-bottom: 32px!important;
}
.mt-20 {
  margin-top: 20px!important;
}
.mb-20 {
  margin-bottom: 20px!important;
}

/* --- VISUAL ICONS (MONOCHROME) --- */
img[alt*='icon'], .feature-item img, .contact-details img, ul li img {
  filter: grayscale(1) brightness(0.23) opacity(0.85) !important;
  margin-right: 8px;
  width: 25px; height: 25px;
  display: inline-block;
  vertical-align: middle;
}

/* --- OVERRIDE IOS BUTTON/INPUT STYLE --- */
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* --- ENSURE NO ABSOLUTE POSITIONING ON CONTENT ELEMENTS --- */
.card, .feature-item, .testimonial-card, .team-profile {
  position: relative;
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
