/* =======================================================================
   Fibrous Dynamics: Style.css (Monochrome_Sophisticated Theme)
   =======================================================================
   Palette: Pure Black #000, Pure White #fff, Mid Gray #ccc|#e5e5e5|#222
   Brand accent: #245430 (deep green - replace with monochrome accent as needed)
   Brand fonts: Montserrat (display), Open Sans (body)
   ======================================================================= */

/* 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, 
main, 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; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #fff;
  color: #111;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
a {color: #111; text-underline-offset: 0.15em; text-decoration-thickness: 1.5px; transition: color 0.2s; }
a:hover, a:focus { color: #245430; text-decoration: underline; }

/* =========================
   TYPOGRAPHY
   ========================= */
:root {
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #000;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.75rem; line-height: 1.1; font-weight: 700; margin-bottom: 24px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 16px; line-height: 1.13; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; line-height: 1.18; }
h4, h5, h6 { font-weight: 600; margin-bottom: 8px; }
.subheadline { font-size: 1.25rem; color: #222; font-family: var(--font-body); margin-bottom: 18px; font-weight: 400; }
p, ul, ol {margin-bottom: 16px;}
strong, b {font-weight: 600; color: #000;}
em {font-style: italic; color: #222;}

/* =========================
   LAYOUT HELPERS
   ========================= */
.container {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
  /* For monochrome {
    background: #fff;
  } */
}
.content-wrapper {
  padding: 0;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06), 0 1.5px 4px rgba(0,0,0,0.08);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  min-width: 0;
  transition: box-shadow 0.2s, transform 0.22s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px rgba(0,0,0,0.12), 0 3px 9px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}
.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;
  background: #fafbfc;
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 20px 28px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  font-size: 1.08rem;
  min-width: 0;
  max-width: 740px;
  position: relative;
  flex: 1 1 330px;
  transition: box-shadow 0.2s, transform 0.23s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.13);
  transform: translateY(-1.5px);
}
.testimonial-content > p {
  margin-bottom: 6px;
  color: #181818;
}
.star-rating {
  color: #111;
  font-size: 20px;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 12px;
}
.faq-item h3 {font-size: 1.17rem; margin-bottom: 7px; color: #1C1C1C;}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: #fff;
  box-shadow: 0 1px 9px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header a img {
  height: 38px;
  width: auto;
  min-width: 32px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-display);
  font-size: 1.04rem;
}
.main-nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.1em;
  position: relative;
  transition: color 0.2s;
  padding: 2px 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: #245430;
  text-decoration: underline;
}
.btn-primary {
  background: #111;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.14rem;
  padding: 13px 28px;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.20s, box-shadow 0.16s, transform 0.16s;
  font-weight: 700;
  box-shadow: 0 1px 9px rgba(0,0,0,0.08);
  letter-spacing: 0.03em;
  margin-left: 28px;
  outline: none;
  position: relative;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #fff;
  color: #111;
  box-shadow: 0 3px 20px rgba(0,0,0,0.18);
  border: 1.2px solid #111;
  transform: translateY(-1.5px) scale(1.03);
}
.btn-secondary {
  background: #fff;
  color: #111;
  font-family: var(--font-display);
  font-size: 1.08rem;
  padding: 10px 24px;
  border-radius: 22px;
  border: 1.5px solid #111;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.20s;
  letter-spacing: 0.03em;
  outline: none;
  margin-top: 8px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
}

/* =========================
   MOBILE NAVIGATION
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #222;
  cursor: pointer;
  margin-left: 16px;
  z-index: 25;
}
.mobile-menu {
  display: none;
}
.mobile-menu.active {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.74);
  z-index: 130;
  justify-content: flex-end;
  align-items: flex-start;
  overflow-y: auto;
  transition: background 0.25s;
}
.mobile-menu > nav, .mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  background: #fff;
  min-width: 220px;
  min-height: 100vh;
  padding: 48px 30px 36px 34px;
  box-shadow: -6px 0 32px rgba(0,0,0,0.09);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.44,0,.06,1);
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.active .mobile-nav {
  transform: translateX(0);
}
.mobile-nav a {
  color: #111;
  text-decoration: none;
  font-size: 1.12rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 0 7px 11px;
  min-width: 120px;
  transition: background 0.17s, color 0.18s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #eee;
  color: #245430;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #111;
  position: absolute;
  top: 16px;
  right: 23px;
  cursor: pointer;
  z-index: 132;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #245430;
}

/* Hide desktop nav & show burger on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* =========================
   SECTIONS & CONTENT
   ========================= */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #fff;
}
ul, ol {padding-left: 25px;}
ul li, ol li {margin-bottom: 10px; line-height: 1.7;}
hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 30px 0;
}
blockquote {
  border-left: 4px solid #222;
  background: #F7F7F7;
  color: #2a2a2a;
  padding: 13px 26px;
  font-style: italic;
  border-radius: 8px;
  margin: 26px 0;
  font-size: 1.18rem;
}

/* Feature/FAQ lists */
.faq-list, .feature-list, .blog-teasers {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 20px;
}

.blog-teasers {
  flex-direction: row;
  gap: 24px;
  margin-top: 13px;
  margin-bottom: 7px;
}
.blog-teasers article {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 1px 9px rgba(0,0,0,0.06);
  padding: 23px 16px 18px;
  flex: 1 1 260px;
  min-width: 0;
  transition: box-shadow 0.21s, transform 0.22s;
}
.blog-teasers article:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.11); transform: translateY(-0.5px) scale(1.01); }

.blog-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.blog-search input[type="search"] {
  padding: 8px 13px;
  border-radius: 22px;
  border: 1px solid #ccc;
  background: #fafbfa;
  font-size: 1em;
  font-family: var(--font-body);
  width: 180px;
  outline: none;
  transition: box-shadow 0.17s;
}
.blog-search input[type="search"]:focus {
  box-shadow: 0 0 0 2px #24543022;
}
.blog-search button {
  padding: 8px 19px;
  border-radius: 20px;
  background: #111;
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.97em;
  transition: background 0.17s, color 0.2s;
  cursor: pointer;
}
.blog-search button:hover, .blog-search button:focus {
  background: #fff;
  color: #111;
  border: 1.2px solid #111;
}

/* Contact Details/Map */
.contact-details {
  margin-bottom: 20px;
  padding: 16px 22px 14px;
  background: #fafbfa;
  border-radius: 9px;
  font-size: 1.04em;
  color: #222;
}
.map-location {
  color: #181818;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.07em;
  margin-bottom: 4px;
}

/* =========================
    FOOTER
   ========================= */
footer {
  background: #f6f6f6;
  border-top: 1.5px solid #e5e5e5;
  color: #444;
}
footer .container {
  padding-top: 38px;
  padding-bottom: 15px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 15px;
}
.footer-flex > div, .footer-nav {
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #181818;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  padding: 2px 0;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #245430;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 17px;
  align-items: center;
  margin-top: 8px;
}
.footer-copy {
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
  font-size: 0.98em;
  color: #888;
  text-align: center;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #222;
  color: #fff;
  box-shadow: 0 -1px 16px rgba(0,0,0,0.16);
  z-index: 4000;
  padding: 18px 10px 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(.56,0,.19,1.04);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner-text { flex: 1 1 280px; max-width: 620px; }
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 20px;
  font-size: 1em;
  border: none;
  margin: 0 2px;
  font-family: var(--font-display);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border 0.14s;
}
.cookie-btn-accept { background: #fff; color: #111; }
.cookie-btn-accept:hover, .cookie-btn-accept:focus { background: #245430; color:#fff; }
.cookie-btn-reject {
  background: #111;
  color: #fff;
  border: 1.2px solid #fff;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #fff;
  color: #111;
}
.cookie-btn-settings {
  background: #222;
  color: #fff;
  border: 1.2px solid #fff;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #fff;
  color: #111;
}
/* Modal Overlay */
.cookie-modal-overlay {
  display: none;
}
.cookie-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.59);
  z-index: 4100;
}
.cookie-modal {
  background: #fff;
  color: #222;
  padding: 38px 28px 30px;
  border-radius: 18px;
  min-width: 310px;
  max-width: 410px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.13);
  font-family: var(--font-body);
  font-size: 1.04em;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUp 0.27s cubic-bezier(.56,0,.19,1.04);
}
.cookie-modal h3 {font-family: var(--font-display); margin-bottom: 8px; font-size: 1.20em;}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #222;
  width: 19px; height: 19px;
  border-radius: 5px;
}
.cookie-modal-close {
  position: absolute;
  right: 15px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.6em;
  color: #222;
  cursor: pointer;
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================
   MICRO-INTERACTIONS & EFFECTS
   ========================= */
.btn-primary, .btn-secondary, .cookie-btn, .blog-search button {
  transition: background 0.22s, color 0.22s, box-shadow 0.16s, border 0.15s, transform 0.15s;
}
.card, .testimonial-card, .blog-teasers article {
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:active, .testimonial-card:active, .blog-teasers article:active {
  transform: scale(0.98);
}
.blog-search input[type="search"]:focus-visible,
.btn-primary:focus-visible, .btn-secondary:focus-visible, .cookie-btn:focus-visible {
  box-shadow: 0 0 0 2.7px #24543055;
  outline: none;
}

/* =========================
   MEDIA QUERIES (RESPONSIVE)
   ========================= */
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.14rem; }
  .content-grid, .card-container, .footer-flex {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .card {
    padding: 14px 10px;
    font-size: 1em;
  }
  .section, section {
    margin-bottom: 34px !important;
    padding: 30px 0 20px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
  .blog-teasers {
    flex-direction: column;
    gap: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
    padding: 13px 10px;
  }
  .btn-primary {
    margin-left: 0;
    margin-top: 9px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cookie-modal {
    min-width: 90vw;
    max-width: 97vw;
    padding: 22px 7vw 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 4vw 12px 4vw;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.05rem; }
  .container { padding: 0 6px; }
}

/* =========================
   UTILS CLASSES
   ========================= */
.mt-24 { margin-top: 24px; }
.mb-20 { margin-bottom: 20px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }
.bg-light { background: #f7f7f7; }
.bg-dark { background: #222; color: #fff; }

/* =========================
   ACCESSIBILITY
   ========================= */
:focus-visible { outline: 2.5px solid #245430; outline-offset: 2px; }

/* =========================
   PRINT
   ========================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
  a { color: #000 !important; text-decoration: underline; }
}
