/* =====================
  NeoCloud Moss Interiors – Professional Corporate CSS
  Author: Senior CSS/UX Developer
  ----------------------------
  Brand Style: Modern, blue/gray, structured, elegant | Flexbox only | Mobile-first responsive
===================== */

/* ==== CSS RESET ==== */
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2B2F36;
  background: #f5f6f0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding: 0;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #25354a;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.125rem;
  color: #496489;
  margin-bottom: 24px;
}
p, ul, ol, blockquote {
  font-size: 1rem;
  margin-bottom: 1.3em;
  color: #2B2F36;
  line-height: 1.6;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}
blockquote {
  font-size: 1.1rem;
  color: #25354a;
  margin: 0 0 8px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  quotes: '\201C''\201D''\2018''\2019';
}
blockquote:before {
  content: open-quote;
  color: #8E9775;
  font-size: 2.5rem;
  line-height: 0.1;
  vertical-align: -0.4em;
}

/* ==== COLORS ==== */
:root {
  --primary: #2B2F36;
  --secondary: #8E9775;
  --accent: #F5F6F0;
  --light: #ffffff;
  --blue-gray: #e8eef3;
  --shadow: rgba(43,47,54,0.07);
  --border-radius: 10px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ==== CONTAINERS & LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  /* Ensures vertical stacking and spacing for sections */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px var(--shadow);
}

.feature-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.card-container {
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 6px 18px rgba(43,47,54,.14);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F5F6F0;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  color: #25354a;
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}
.testimonial-card span {
  font-size: 0.98rem;
  font-style: italic;
  color: #555e6a;
  min-width: 120px;
}

/* === Navigation/Header === */
header {
  background: var(--light);
  box-shadow: 0 1px 7px var(--shadow);
  border-bottom: 1px solid #e8eef3;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 75px;
}
nav > a img {
  height: 42px;
  width: auto;
  margin-right: 18px;
  display: block;
}
nav ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
nav ul li {
  display: flex;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--blue-gray);
  color: var(--secondary);
}
.cta-btn {
  background: var(--secondary);
  color: var(--light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  margin-left: 20px;
  box-shadow: 0 1px 8px var(--shadow);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  border: 0;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #71865A;
  color: var(--light);
  box-shadow: 0 3px 16px rgba(43,47,54, 0.2);
  transform: scale(1.04);
}

/* === Mobile Menu Burger === */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--light);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1101;
  margin-left: 18px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #71865A;
  color: var(--light);
}

/* === Mobile menu overlay === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  background: rgba(43, 47, 54, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  z-index: 1200;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.33s cubic-bezier(.4,0,.2,1), opacity 0.28s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: var(--light);
  font-size: 2.2rem;
  margin: 28px 30px 0 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color var(--transition);
  border: none;
  z-index: 1222;
}
.mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  padding: 66px 30px 0 52px;
  width: 100%;
}
.mobile-nav a {
  color: var(--light);
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: transparent;
  padding: 8px 0 8px 0;
  border-radius: 7px;
  transition: background var(--transition), color var(--transition);
  display: block;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--accent);
}

/* === Section Harmonization (for .section wrappers) === */
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === Feature grid (index) === */
.feature-grid {
  width: 100%;
  gap: 24px;
  flex-wrap: wrap;
  display: flex;
  margin-bottom: 20px;
}
.feature-grid li {
  flex: 1 1 250px;
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
  gap: 10px;
  min-width: 220px;
}
.feature-grid li:hover {
  box-shadow: 0 6px 18px rgba(43,47,54,.12);
  transform: translateY(-3px) scale(1.02);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
}

/* == Text/Image Section Mesh == */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section ul {
  margin-top: 8px;
  margin-left: 18px;
}
.text-section li {
  margin-bottom: 6px;
}

/* ==== Cards, Articles, Category Nav (Blog) ==== */
.categories-nav {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  color: #496489;
  margin: 10px 0 18px 0;
  font-weight: 600;
}
.categories-nav a {
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 7px;
  transition: color var(--transition), background var(--transition);
}
.categories-nav a:hover {
  background: var(--secondary);
  color: var(--accent);
}
article {
  background: var(--light);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 22px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.22s, transform 0.22s;
}
article:hover {
  box-shadow: 0 6px 16px rgba(43,47,54,.14);
  transform: translateY(-3px) scale(1.01);
}
article a {
  font-weight: 600;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  display: inline-block;
  margin-top: 5px;
  transition: color var(--transition), border-bottom var(--transition);
}
article a:hover {
  color: #496489;
  text-decoration: underline;
}

/* ==== Footer ==== */
footer {
  background: #f3f5f9;
  padding: 48px 0 24px 0;
  border-top: 1px solid #e8eef3;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 0;
}
.footer-nav {
  font-size: 0.99rem;
  color: #555e6a;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-nav a {
  color: #4c6074;
  font-weight: 600;
  padding: 2px 5px;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--secondary);
}
.brand-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  color: #25354a;
}
.brand-info img {
  height: 36px;
}
.contact-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.97rem;
  color: #444b56;
  margin-bottom: 12px;
}
.contact-details img {
  vertical-align: middle;
  margin-right: 6px;
  height: 18px;
  width: 18px;
}
.social-links {
  display: flex;
  gap: 18px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: var(--blue-gray);
  transition: background var(--transition), box-shadow var(--transition);
}
.social-links a:hover {
  background: var(--secondary);
  box-shadow: 0 2px 6px var(--shadow);
}
.social-links img {
  width: 20px;
  height: 20px;
}

/* ========== Cookie Consent Banner ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #25354a;
  color: #f5f6f0;
  z-index: 2017;
  width: 100%;
  padding: 30px 20px 22px 20px;
  box-shadow: 0 -4px 18px rgba(43,47,54,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  animation: slideUpBanner 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-consent-actions {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--light);
  padding: 10px 22px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  font-size: 1.05rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  margin: 0 6px;
}
.cookie-btn.cookie-settings {
  background: #e8eef3;
  color: var(--primary);
  border: 1px solid #8E9775;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #71865A;
  color: var(--light);
}

/* === Cookie Preferences Modal === */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(1);
  background: var(--light);
  box-shadow: 0 4px 24px rgba(43,47,54,0.19);
  border-radius: 12px;
  z-index: 4020;
  min-width: 320px;
  max-width: 95vw;
  width: 420px;
  padding: 36px 28px 28px 28px;
  display: none;
  flex-direction: column;
  gap: 26px;
  animation: popModal 0.33s cubic-bezier(.4,0,.2,1);
}
@keyframes popModal {
  from { opacity:0; transform: translate(-50%,-55%) scale(0.94); }
  to   { opacity:1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal h2 {
  font-size: 1.26rem;
  color: #25354a;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f5f6f0;
  border-radius: 7px;
  padding: 12px 18px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.01rem;
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-toggle .slider {
  display: inline-block;
  width: 34px; height: 20px;
  background: #dbe2ea;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle .slider:before {
  content: '';
  position: absolute;
  height: 15px; width: 15px;
  left: 3px; top: 2.5px;
  background: var(--secondary);
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-toggle input:checked + .slider {
  background: #8E9775;
}
.cookie-toggle input:checked + .slider:before {
  transform: translateX(14px);
  background: #25354a;
}
.cookie-category.essential .slider,
.cookie-category.essential .slider:before {
  background: #b7bdb1 !important;
}
.cookie-category.essential label {
  opacity: .75;
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 24px;
  background: transparent;
  color: #25354a;
  font-size: 1.65rem;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal-close:hover {
  color: var(--secondary);
}

/* ==== Miscellaneous ==== */
hr {
  border-top: 1px solid #e8eef3;
  margin: 30px 0;
}
.map {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e8eef3;
  border-radius: 10px;
  padding: 18px;
  min-height: 120px;
  margin-bottom: 14px;
}
.location-info {
  background: #e8eef3;
  border-radius: 7px;
  padding: 16px 16px;
  font-size: 0.99rem;
  color: #444b56;
  margin-bottom: 18px;
}

/* ==== RESPONSIVE DESIGN: Mobile First ==== */
@media (max-width: 1024px) {
  .container {
    max-width: 880px;
  }
  nav ul {
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  nav ul {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    z-index: 1101;
    margin-right: 0;
  }
  nav {
    min-height: 67px;
    gap: 18px;
  }
  .section,
  main > section {
    padding: 25px 5px;
    margin-bottom: 36px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li {
    min-width: unset;
    padding: 22px 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  .social-links {
    gap: 14px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 10px;
  }
  .brand-info span {
    display: none;
  }
  footer .content-wrapper {
    gap: 14px;
  }
  .map {
    padding: 7px;
    min-height: 60px;
  }
}
@media (max-width: 400px) {
  .cookie-modal {
    min-width: 0;
    width: 97vw;
    padding: 18px 5px 12px 5px;
  }
  .cookie-modal h2 {
    font-size: 1.01rem;
  }
}
/* ======= Utilities & Helpers ======= */
.text-center { text-align: center !important; }
.d-flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.align-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.mt-32 { margin-top: 32px !important; }

/* Prevent overlapping for all stacked elements */
.section > *,
.card-container > *,
.feature-grid > *,
.content-grid > *,
.text-image-section > *,
.testimonial-card > * {
  margin-bottom: 0 !important; /* flexbox gap handles spacing */
}

/* ======= Smooth Transitions/Micro-interactions ======= */
a, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: 
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.card, .testimonial-card, .feature-grid li, article {
  transition: box-shadow 0.22s, transform 0.22s;
}

.cta-btn:focus-visible,
.cookie-btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ======= Accessibility: High contrast for testimonials ======= */
.testimonial-card {
  color: #25354a;
  background: #f5f6f0;
}
.testimonial-card blockquote,
.testimonial-card span {
  color: #25354a;
}

/* ======= Hide visually but keep in DOM (for accessibility) ======= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* == END OF CSS == */
