/* =============================================================
   CSS Reset & Normalize - essential baseline for consistent styles
   ============================================================= */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body {
  background: #fff;
  color: #121212;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after { box-sizing: inherit; }
img, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; border: none; background: none; }

/* ===============================================
   Brand variables (fallback for CSS custom props)
   =============================================== */
:root {
  --color-dark: #171a1f;
  --color-black: #111112;
  --color-white: #fff;
  --color-neutral: #f2f2f2;
  --color-gray: #e5e8eb;
  --color-text: #191d23;
  --color-text-dark: #101010;
  --color-brand-primary: #25314C;
  --color-brand-secondary: #62B85A;
  --color-brand-accent: #F2F4F8;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 18px rgba(30,32,36,0.11), 0 1.5px 6px rgba(0,0,0,0.03);
  --radius: 16px;
}

/* ================================
   Typography (Monochrome Sophisticated)
   ================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-black);
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, blockquote, dl {
  font-size: 1rem;
  color: var(--color-text);
}
strong, b {
  font-weight: 700;
  color: var(--color-black);
}
blockquote {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--color-brand-primary);
  margin: 0 0 8px 0;
  border-left: 4px solid var(--color-black);
  padding-left: 18px;
}
blockquote footer {
  display: block;
  margin-top: 12px;
  color: var(--color-text);
  font-style: normal;
  font-size: 0.98em;
  opacity: 0.85;
  font-weight: 400;
}

/* ===========================
   Layout containers
   =========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* ===========================
   Section spacing (MANDATORY RULES!)
   =========================== */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ===========================
   Flex patterns
   =========================== */
.feature-grid, .card-container, .service-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.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: #fafafd;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: 0 1.5px 10px rgba(30,32,36,0.07);
  border: 1px solid var(--color-gray);
  max-width: 690px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 230px;
  min-width: 220px;
  background: var(--color-neutral);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(30,32,36,0.04);
  padding: 20px 20px 22px 20px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  flex: 1 1 230px;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-gray);
  box-shadow: 0 2px 10px rgba(30,32,36,0.03);
  padding: 22px 20px 20px 22px;
  margin-bottom: 20px;
}
.service-list {
  gap: 24px;
  flex-wrap: wrap;
}

/* =====================
   Hero & CTA
   ===================== */
.hero-section {
  background: linear-gradient(90deg, #fff 70%, #fafbfe 100%);
  box-shadow: 0 12px 48px rgba(23,26,31,0.04);
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-section {
  background: #f6f7fa;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(30,32,36,0.05);
  text-align: center;
  margin-bottom: 0;
}
.newsletter-section {
  background: #f4f4f6;
  border-radius: var(--radius);
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(30,32,36,0.04);
}

/* =====================
   Card Styles
   ===================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gray);
  padding: 32px 24px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(30,32,36,0.17);
  transform: translateY(-3px) scale(1.01);
}

/* ======= Buttons & CTA ======= */
.cta-btn, .cookie-banner button, .cookie-modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72em 2em;
  min-width: 120px;
  background: var(--color-black);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.22s, color 0.15s, transform 0.13s;
  box-shadow: 0 2px 10px rgba(23,24,26,0.06);
  margin-right: 12px;
  margin-bottom: 8px;
}
.cta-btn:hover, .cookie-banner button:hover, .cookie-modal-actions button:hover {
  background: var(--color-brand-primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(30,32,36,0.13);
  transform: translateY(-1.5px) scale(1.05);
}
.cta-btn:active {
  background: #000;
}
.cta-btn.alt,
.cookie-banner .alt {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-black);
}
.cta-btn.alt:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* ===============
   NAVIGATION
   =============== */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-white);
  border-bottom: 1px solid #f1f1f3;
  z-index: 25;
}
.main-nav .logo-link {
  display: flex;
  align-items: center;
  height: 46px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin: 0 28px;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--color-black);
  transition: background 0.15s, color 0.13s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: var(--color-brand-primary);
  color: #fff;
}
.main-nav .cta-btn {
  margin-left: 28px;
  min-width: 180px;
}
/* Hide mobile burger by default */
.mobile-menu-toggle {
  display: none;
}

/* ===============
   MOBILE NAVIGATION
   =============== */
@media (max-width: 1023px) {
  .main-nav ul, .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: none;
    color: var(--color-black);
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 110;
    width: 50px;
    height: 50px;
    padding: 0;
    position: relative;
    transition: background 0.13s;
  }
  .mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
    background: var(--color-accent);
    border-radius: 50%;
  }
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,34,36, 0.97);
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.55, 0, 0.1, 1);
}
.mobile-menu.active {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 22px;
  top: 22px;
  color: #fff;
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10002;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #25252544;
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 88px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  padding: 14px 0;
  color: #fff;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.075);
  transition: color 0.13s, background 0.16s;
}
.mobile-nav a:hover {
  background: var(--color-brand-secondary);
  color: var(--color-black);
  border-radius: 10px;
}
body.mobile-menu-open {
  overflow: hidden;
}

/* =========================
   Footer
   ========================= */
footer {
  background: #fff;
  border-top: 1.5px solid #f1f2f3;
  padding: 34px 0 26px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
footer nav {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}
footer address {
  font-style: normal;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 0.97rem;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
footer address a {
  color: var(--color-brand-primary);
  text-decoration: underline;
  margin-right: 6px;
  font-weight: 500;
}
footer address a:hover {
  color: var(--color-brand-secondary);
}

/* ===================
   Maps and Graphics
   =================== */
.map-placeholder {
  background: var(--color-neutral);
  border-radius: var(--radius);
  padding: 30px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 22px 0 8px 0;
  color: var(--color-brand-primary);
  font-size: 1.03rem;
}

/* ===============
   Forms & dl, dt, dd
   =============== */
dt {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 2px;
  font-size: 1.08rem;
}
dd {
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 1rem;
}

/* ===============
   Cookie Consent Banner & Modal
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #232326;
  color: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  box-shadow: 0 -2px 42px rgba(0,0,0,0.13);
  gap: 24px;
  transition: transform 0.26s cubic-bezier(0.65,0,0.13,1);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner p {
  color: #fff;
  font-size: 1rem;
  margin-right: 18px;
  line-height: 1.5;
  max-width: 400px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-banner .cta-btn, .cookie-banner button {
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.56em 1.5em;
  margin-bottom: 0;
}
.cookie-banner .settings-btn {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-black);
  margin-left: 4px;
}
.cookie-banner .settings-btn:hover {
  background: var(--color-brand-primary);
  color: #fff;
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,32,32,0.88);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  color: var(--color-black);
  border-radius: var(--radius);
  padding: 36px 28px 28px 34px;
  max-width: 430px;
  min-width: 270px;
  box-shadow: 0 6px 48px rgba(17,24,33,0.19);
  position: relative;
  animation: popupIn 0.36s cubic-bezier(0.73,0.06,0.24,0.94);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.cookie-modal .cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
}
.cookie-modal .cookie-modal-category label {
  font-size: 1rem;
  color: var(--color-text-dark);
}
/* Custom toggle switches for modal */
.cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #d3d3d7;
  border-radius: 50px;
  transition: background 0.22s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: var(--color-brand-secondary);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(33,33,33,0.12);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 14px;
  align-items: center;
}
.cookie-modal-actions button {
  font-size: 1rem;
  border-radius: 24px;
  padding: 0.45em 1.35em;
}
.cookie-modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  color: var(--color-black);
  font-size: 1.8em;
  cursor: pointer;
  padding: 0;
  transition: background 0.16s;
}
.cookie-modal-close:hover {
  background: #edeef2;
  border-radius: 50%;
}
@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =============================
   Monochrome Sophisticated Touch
   ============================= */
section, .section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 22px rgba(37,37,37,0.04);
}
.hero-section {
  background: linear-gradient(100deg, #fff 77%, #eaedf0 100%);
  border-radius: 0 0 38px 38px;
}

/* =============================
   List Styles
   ============================= */
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
  color: var(--color-black);
}
ul li, ol li {
  margin-bottom: 8px;
  color: var(--color-text-dark);
  font-size: 1rem;
}
.text-section ul {
  text-align: left;
  max-width: 460px;
  margin: 0 auto 20px auto;
}

/* =====================
   Table Styles (if any)
   ===================== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  margin-bottom: 32px;
}
thead {
  background: #222225;
  color: #fff;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid #e1e2e6;
}
th {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
}

/* =====================
   Misc
   ===================== */
::-webkit-scrollbar {
  width:8px;
  background: #ededf2;
}
::-webkit-scrollbar-thumb {
  background: #d6d6dd;
  border-radius: 10px;
}

/* =====================
   Responsive Flexbox Layouts
   ===================== */
@media (max-width: 1023px) {
  .container, .content-wrapper {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .feature-grid, .service-list, .content-grid {
    gap: 20px;
    justify-content: center;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  section, .section {
    margin-bottom: 36px;
    padding: 24px 7px;
  }
  h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.38rem;
    margin-bottom: 8px;
  }
  .feature-grid, .service-list, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 14px 10px;
    margin-bottom: 16px;
    max-width: 99%;
  }
  .feature-item, .service-item {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  .text-section {
    text-align: left;
    padding-left: 1px;
    padding-right: 1px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
  }
  .newsletter-section, .cta-section {
    padding: 18px 3px;
  }
  .hero-section {
    min-height: 200px;
    padding: 30px 0;
    border-radius: 0 0 24px 24px;
  }
  .cookie-banner p {
    max-width: 250px;
    font-size: 0.98rem;
  }
}
@media (max-width: 480px) {
  .main-nav, footer, .container {
    padding-left: 0; padding-right: 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 17px 8px;
  }
  .cookie-banner p {
    margin-right: 0; margin-bottom: 7px;
  }
  .cookie-banner .cookie-btns {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
}

/* =================================
   Micro-interactions & Subtle effects
   ================================= */
.cta-btn, .card, .feature-item, .service-item {
  transition: box-shadow 0.17s, background 0.14s, color 0.14s, transform 0.13s;
}
.feature-item:hover, .service-item:hover {
  background: #ededf6;
  box-shadow: 0 10px 32px rgba(23,24,26,0.10);
  transform: translateY(-2px) scale(1.008);
}
a, .main-nav ul li a, .mobile-nav a {
  transition: background 0.18s, color 0.13s, border-radius 0.13s;
}

/* =====================
   Print-friendly base
   ===================== */
@media print {
  * { background: #fff !important; color: #111 !important; box-shadow: none !important; }
  a, a:visited { color: #191d23 !important; }
  .main-nav, .mobile-menu, .cookie-banner, .footer { display: none !important; }
}
