/*--- 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;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { display: block; }
body { line-height: 1; }
ol,ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { vertical-align: middle; border-style: none; }
button, input, textarea, select { font: inherit; }

/*--- ROOT VARIABLES ---*/
:root {
  /* Monochrome sophisticated palette */
  --brand-primary: #2C6E3F;
  --brand-secondary: #104761;
  --brand-accent: #F0F6ED;
  --black: #171717;
  --near-black: #222;
  --gray-dark: #484848;
  --gray: #888;
  --gray-light: #E5E5E5;
  --white: #fff;
  --overlay-bg: rgba(16, 16, 16, 0.92);
  --border-radius: 12px;
  --card-shadow: 0 2px 16px 0 rgba(0,0,0,0.09);
  --card-shadow-strong: 0 4px 32px 0 rgba(0,0,0,0.16);
  --transition: all .23s cubic-bezier(.4,.1,.22,1);
}

/*--- FONTS ---*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, .cta, .main-nav a, .footer-nav a { font-family: 'Montserrat', 'Roboto', sans-serif; font-weight: 700; }
h1 { font-size: 2.5rem; line-height: 1.2; letter-spacing: -0.02em; color: var(--black); margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 24px; color: var(--near-black); }
h3 { font-size: 1.3rem; font-weight: 600; color: var(--black); margin-bottom: 14px; }
h4 { font-size: 1.05rem; color: var(--gray-dark); }
p, ul, li { color: var(--gray-dark); font-size: 1rem; }
strong { color: var(--black); }

/*--- CONTAINER SYSTEM ---*/
.container {
  width: 100%;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Sections - strong spacing and sophistication */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--border-radius);
}
section:last-child, .section:last-child { margin-bottom: 0; }

.hero {
  background: var(--white);
  border-bottom: 2px solid var(--gray-light);
  box-shadow: 0 2px 18px 0 rgba(0,0,0,0.035);
  min-height: 340px;
  display: flex;
  align-items: center;
  padding-bottom: 0;
}
.hero h1 { color: var(--black); }
.hero p { font-size: 1.22rem; color: var(--gray-dark); margin-bottom: 18px; }

.cta-highlight {
  background: var(--black);
  color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow-strong);
}
.cta-highlight h2,
.cta-highlight p { color: var(--white); }

/*--- MAIN NAV / HEADER ---*/
header {
  background: var(--white);
  box-shadow: 0 1px 20px 0 rgba(0,0,0,0.07);
  position: relative;
  z-index: 40;
  padding-top: 8px;
  padding-bottom: 8px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
header a img { max-height: 46px; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: center;
}
.main-nav a {
  color: var(--near-black);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 2px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus { color: var(--brand-primary); background: var(--gray-light); }
.main-nav .primary {
  background: var(--black);
  color: var(--white);
  border-radius: 6px;
  padding: 10px 24px;
  margin-left: 10px;
  box-shadow: 0 2px 12px #2221;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.main-nav .primary:hover,
.main-nav .primary:focus {
  background: var(--brand-primary);
  color: var(--white);
  box-shadow: 0 4px 24px #2C6E3F33;
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--black);
  color: var(--white);
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 8px 14px 8px 11px;
  cursor: pointer;
  box-shadow: 0 2px 12px #2222;
  margin-left: 10px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--gray-dark);
  color: var(--brand-accent);
}

/*--- MOBILE MENU OVERLAY ---*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--overlay-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .38s cubic-bezier(.7,.2,.2,1), opacity .35s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  font-size: 2rem;
  border: none;
  margin: 24px 34px 0 0;
  cursor: pointer;
  padding: 8px 10px;
  line-height: 1;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  z-index: 10001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 20vh;
  width: 100%;
  padding-right: 34px;
  gap: 12px;
}
.mobile-nav a {
  color: var(--brand-accent);
  font-family: 'Montserrat',sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
  min-width: 210px;
  text-align: right;
}
.mobile-nav a:hover { background: var(--black); color: var(--brand-primary); }

/*--- FLEXBOX PATTERNS / LAYOUTS ---*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.19);
  transform: translateY(-4px) scale(1.015);
  z-index: 2;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--brand-accent);
  color: var(--black);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  font-size: 1.08rem;
  min-width: 0;
  line-height: 1.6;
}
.testimonial-card p { color: var(--black); font-size: 1.1rem; margin-bottom: 0; }
.testimonial-card span { font-size: 1rem; color: var(--gray-dark); font-style: italic; margin-left: 8px; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 32px;
  margin-bottom: 24px;
}
.feature-grid > div {
  flex: 1 1 200px;
  min-width: 250px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 24px 20px 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.12);
  transform: translateY(-2px) scale(1.016);
  z-index: 1;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

/*--- UNIVERSAL UI ---*/
.cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  display: inline-block;
  padding: 12px 32px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  background: var(--brand-primary);
  color: var(--white);
  margin-top: 18px;
  margin-bottom: 8px;
  box-shadow: 0 2px 16px #2C6E3F22;
  letter-spacing: 0.03em;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  outline: none;
  position: relative;
}
.cta.primary { background: var(--brand-primary); color: var(--white); }
.cta.primary:hover,
.cta.primary:focus {
  background: var(--black); color: var(--brand-accent);
  box-shadow: 0 4px 36px #2225;
}
.cta.secondary { background: var(--white); color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.cta.secondary:hover,
.cta.secondary:focus { background: var(--brand-primary); color: var(--white); border: 2px solid var(--brand-primary); }

button, .cta, .main-nav a, .mobile-nav a, .footer-nav a {
  transition: var(--transition);
}

/*--- FORMS / INPUTS (future proofing) ---*/
input, textarea, select {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 1rem;
  margin: 0 0 18px 0;
  width: 100%;
  transition: border var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1px solid var(--brand-primary);
  outline: 2px solid var(--brand-primary);
}

/*--- LISTS & ARTICLE TEXT ---*/
ul {
  margin-left: 22px;
  margin-bottom: 18px;
  color: var(--gray-dark);
  font-size: 1rem;
  line-height: 1.6;
}
ul li {
  list-style: disc inside;
  margin-bottom: 7px;
}
article {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 30px 24px 20px 24px;
  margin-bottom: 22px;
}

/*--- FOOTER ---*/
footer {
  background: var(--black);
  color: var(--white);
  padding: 42px 0 0 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand img { max-height: 52px; margin-bottom: 18px; filter: grayscale(100%) brightness(8); }
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-nav a, .footer-legal a {
  color: var(--brand-accent);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 6px 0;
  opacity: .88;
  border-radius: 2px;
  transition: color var(--transition), background var(--transition);
}
.footer-nav a:hover,.footer-nav a:focus,.footer-legal a:hover,.footer-legal a:focus { color: var(--brand-primary); background: var(--white); }
.footer-contact { font-size: 0.98rem; color: var(--brand-accent); display: flex; flex-direction: column; gap: 6px; }
.footer-contact img { height: 18px; width: 18px; vertical-align: text-bottom; margin-right: 6px; filter: grayscale(100%) brightness(10); }
.footer-brand-statement {
  width: 100%;
  color: var(--gray-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.03rem;
  font-weight: 500;
  text-align: left;
  opacity: .81;
  margin: 30px 0 12px 0;
  letter-spacing: 0.02em;
}

/*--- CONTACT INFO BLOCK ---*/
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-info img { width: 22px; height: 22px; margin-right: 9px; filter: grayscale(100%) brightness(6); }
.contact-details { margin-top: 12px; }
.contact-details ul { margin-left: 12px; }
.contact-details li { list-style-type: disc; }

/*--- RESPONSIVE DESIGN ---*/
@media (max-width: 1100px) {
  .feature-grid { gap: 22px 18px; }
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .footer-nav,.footer-legal { gap: 1px; }
}
@media (max-width: 840px) {
  .feature-grid { flex-direction: column; }
  .feature-grid > div { width: 100%; min-width: 0; }
  .footer-contact,.footer-nav,.footer-legal { font-size: .99rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.38rem; }
  .hero { min-height: 210px; padding: 24px 0 0 0; }
  header .container, footer .container {
    flex-direction: column;
    gap: 18px 0;
    align-items: flex-start;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-brand img { margin-bottom: 4px; }
}
@media (max-width: 640px) {
  .content-wrapper, .hero .container { padding: 0; }
  section, .section { padding: 20px 8px; }
  .card, article { padding: 17px 10px; }
  .feature-grid { gap: 12px; }
  .testimonial-card { flex-direction: column; gap: 7px; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.33rem; }
  h2 { font-size: 1.03rem; }
  .cta { font-size: 1.02rem; padding: 11px 19px; }
}
@media (max-width: 650px) {
  .text-image-section, .content-grid { flex-direction: column; gap: 17px; }
  .container { min-width: 0; }
  footer .container { padding-left: 4px; padding-right: 4px; }
}

/*--- ANIMATION & MICROINTERACTIONS ---*/
.card, .feature-grid > div, article, .testimonial-card, .cta {
  transition: box-shadow var(--transition), transform var(--transition);
}
.cta:active { transform: scale(0.97); }

/*--- COOKIE CONSENT BANNER ---*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: var(--black);
  color: var(--white);
  padding: 22px 18px 20px 18px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  z-index: 9981;
  box-shadow: 0 -2px 24px #1117;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s, transform 0.3s;
  font-size: 1.01rem;
  border-radius: 14px 14px 0 0;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 25px;
  padding: 9px 22px;
  margin: 0 2px;
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 6px #161c;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-primary);
  color: var(--white);
}

.cookie-banner .cookie-settings {
  background: var(--brand-accent);
  color: var(--gray-dark);
  border: 1px solid var(--gray-light);
  font-weight: 500;
}
.cookie-banner .cookie-settings:hover { background: var(--gray-light); color: var(--black); }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 17px 8px 18px 8px;
    gap: 11px; font-size: 0.98rem;
  }
}

/*--- COOKIE MODAL ---*/
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16,20,20,0.75);
  z-index: 10300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: var(--white);
  color: var(--black);
  padding: 36px 26px 28px 26px;
  border-radius: 18px;
  min-width: 325px;
  max-width: 99vw;
  box-shadow: 0 12px 62px 0 rgba(0,0,0,0.23);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn .29s cubic-bezier(.53,.12,.36,.99);
}
@keyframes cookieModalIn { from { opacity: 0; transform: translateY(70px) scale(.97); } to { opacity: 1; transform: none; } }
.cookie-modal .cookie-modal-title { font-family: 'Montserrat',sans-serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 2px; }
.cookie-modal .cookie-modal-section { margin-bottom: 13px; }
.cookie-modal label { font-weight: 500; margin-left: 7px; color: var(--black); }
.cookie-modal-toggle {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.cookie-modal-toggle input[type=checkbox] {
  accent-color: var(--brand-primary);
  width: 1.14em; height: 1.14em;
  border-radius: 2px;
}
.cookie-modal-category { font-weight: 600; margin-bottom: 6px; color: var(--gray-dark); }
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 16px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 22px;
  border: none;
  padding: 9px 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.5px 3px #3332;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-actions button.cookie-cancel {
  background: var(--gray-light);
  color: var(--gray-dark);
}
.cookie-modal-actions button.cookie-cancel:hover { background: var(--gray); color: var(--white); }
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus { background: var(--black); color: var(--brand-accent); }

@media (max-width: 530px) {
  .cookie-modal {
    min-width: 0;
    width: 95vw;
    padding: 19px 8px 19px 8px;
  }
  .cookie-modal-section { font-size: .97rem; }
}

/*--- Z-INDEX UTILITY (to prevent overlap issues) ---*/
body, html {
  position: relative;
  z-index: 1;
}
header { z-index: 41; }
footer { z-index: 10; }

/*--- MICROINTERACTIONS: FOCUS STATE ---*/
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 1px; }

/*--- VISUAL HIERARCHY & SPACING (monochrome_sophisticated) ---*/
.section, .content-wrapper, .feature-grid, .card-container, .content-grid, .testimonial-card {
  margin-bottom: 20px;
  gap: 20px;
}

/*--- VISUAL DETAILS: SHADOWS & ROUNDNESS ---*/
.card, article, .feature-grid > div, .testimonial-card {
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

/*--- BRAND & TABLE COLORS (force monochrome, ignore non-monochrome accents in UI) ---*/
.brand-color-bg { background: var(--brand-accent); color: var(--black); }
.brand-color-fg { color: var(--brand-primary); }
.brand-secondary-fg { color: var(--brand-secondary); }

/*--- HIDE DEFAULT INPUT GLOW/SHADOW ON BUTTONS ---*/
button:focus, .main-nav .cta:focus, .cta:focus { outline: 2px solid var(--brand-primary); box-shadow: none; }

/*--- Typography scaling ---*/
@media (max-width: 420px) { h1 { font-size: 1.08rem; } h2 { font-size: .85rem; } .cta { font-size: .93rem; padding: 8px 11px; } }
