/* ========== 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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #181818;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  text-decoration: underline;
  color: #111;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.5em;
}
img {
  max-width: 100%;
  display: block;
}
button, input, textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
}
:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* ========== BRAND & TYPOGRAPHY ========== */
:root {
  --color-bg: #fff;
  --color-bg-alt: #f5f5f5;
  --color-primary: #181818;
  --color-secondary: #444;
  --color-accent: #ededed;
  --color-link: #214761;
  --color-link-hover: #181818;
  --brand-primary: #214761;
  --brand-secondary: #45A859; /* subtle use only */
  --brand-accent: #F5F3EA; /* subtle backgrounds only */
  --monoshade1: #222;
  --monoshade2: #fff;
  --monoshade3: #f5f7fa;
  --monoshade4: #c5c5c5;
  --border-radius: 12px;
  --shadow: 0 2px 16px rgba(40,40,40,0.08);
  --shadow-card: 0 1px 6px rgba(32,32,32,0.10);
  --transition: 0.24s cubic-bezier(.4,0,.2,1);
}
body {
  font-size: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  background: var(--color-bg);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #181818;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.23;
  margin-bottom: 32px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
p, ul, ol, li {
  color: #262626;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
strong { color: #111; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
}

/* ========== LAYOUT WRAPPERS ========== */
.container {
  width: 100%;
  max-width: 1140px;
  padding: 0 22px;
  margin-left: auto;
  margin-right: auto;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ========== FLEXBOX PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
  transform: translateY(-3px) scale(1.014);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
}
.testimonial-card p {
  flex: 1;
  color: #232323;
  font-size: 1.1rem;
}
.testimonial-card span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
  margin-left: 12px;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(50,50,50,0.19);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  padding: 26px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.features-grid > div:hover {
  box-shadow: 0 8px 24px rgba(20,20,20,0.10);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 850px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
  }
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(30,30,30,0.04);
  position: sticky;
  top: 0;
  z-index: 120;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 22px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #181818;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--color-accent);
  color: #111;
}
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  background: #181818;
  box-shadow: 0 2px 14px rgba(40,40,40,0.09);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.03em;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #214761;
  color: #fff;
  box-shadow: 0 6px 28px rgba(40,40,40,0.19);
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
}
@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 10px;
    padding: 16px 8px;
    align-items: flex-start;
  }
  nav {
    flex-wrap: wrap;
    gap: 14px;
  }
  .cta-btn {
    margin-top: 10px;
  }
}
@media (max-width: 660px) {
  header nav {
    display: none;
  }
  header .cta-btn {
    display: none;
  }
}

/* ========== MOBILE BURGER MENU ========== */
.mobile-menu-toggle {
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 301;
  background: #fff;
  color: #181818;
  border: 1px solid #d6d6d6;
  border-radius: 50%;
  padding: 8px 16px;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 12px rgba(60,60,60,0.05);
  transition: background var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #181818;
  color: #fff;
  box-shadow: 0 4px 24px rgba(40,40,40,0.13);
}
@media (max-width: 660px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 340px;
  height: 100vh;
  background: #232323;
  box-shadow: -4px 0 24px rgba(0,0,0,0.19);
  z-index: 5000;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.8,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 24px;
  padding-right: 14px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: #414141;
  color: #fff;
  border-radius: 50%;
  padding: 6px 18px;
  margin-bottom: 26px;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  transition: background var(--transition);
  z-index: 5101;
}
.mobile-menu-close:hover {
  background: #181818;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  padding-left: 14px;
}
.mobile-nav a {
  color: #f5f5f5;
  background: none;
  font-size: 1.11rem;
  font-family: 'Montserrat', sans-serif;
  padding: 12px 0 12px 0;
  border-radius: 8px;
  width: 100%;
  display: block;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #fff;
  color: #181818;
}
@media (min-width: 661px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ========== SECTION/CARD DESIGN ========== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 30px 8px;
    margin-bottom: 34px;
  }
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ========== SERVICES LIST (cards) ========== */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-block {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  min-width: 240px;
  flex: 1 1 245px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-block:hover {
  box-shadow: 0 10px 28px rgba(32,32,32,0.13);
  transform: translateY(-3px) scale(1.017);
}
@media (max-width: 850px) {
  .services-list {
    flex-direction: column;
    gap: 14px;
  }
  .service-block {
    min-width: 0;
    width: 100%;
    padding: 18px 12px;
  }
}

/* ========== BUTTONS ========== */
button, .cta-btn {
  cursor: pointer;
  border: none;
  appearance: none;
}
button:not(.cta-btn), input[type="button"], input[type="submit"] {
  background: #181818;
  color: #fff;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
  margin-right: 12px;
  min-width: 120px;
}
button:not(.cta-btn):hover, button:not(.cta-btn):focus {
  background: #214761;
  color: #fff;
}

/* ========== FOOTER ========== */
footer {
  background: #181818;
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 50px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 28px;
  justify-content: space-between;
}
footer a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity var(--transition);
  margin-right: 18px;
}
footer a:hover,
footer a:focus {
  opacity: 1;
  text-decoration: underline;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer img {
  height: 40px;
  width: auto;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.99rem;
  margin-top: 6px;
  color: #e0e0e0;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* ========== FORMS, LISTS, TEXT SECTIONS ========== */
.text-section {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
address {
  font-style: normal;
  margin-bottom: 18px;
  color: #212121;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* Lists: add spacing */
ul, ol {
  margin-bottom: 22px;
  margin-top: 4px;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 3px;
}

/* Download/link in list highlight */
ul li a, ol li a {
  color: #214761;
  font-weight: 600;
  text-decoration: underline;
}
ul li a:hover {
  color: #181818;
}

/* ========== COOKIES BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7100;
  background: #222;
  color: #fff;
  box-shadow: 0 -2px 24px rgba(0,0,0,0.14);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 24px 20px 16px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookie-slideIn 0.5s;
}
@keyframes cookie-slideIn {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #fafafa;
  font-size: 1.06rem;
  text-align: center;
}
.cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 3px;
}
.cookie-btn {
  background: #fff;
  color: #181818;
  border-radius: 12px;
  padding: 10px 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 4px;
  border: 1px solid #eee;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background var(--transition), color var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #181818;
  color: #fff;
}
.cookie-btn.settings {
  background: #eee;
  color: #181818;
  border: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #214761;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 7200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(30,30,30,0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-backdrop-fade .5s;
}
@keyframes cookie-backdrop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #181818;
  padding: 34px 24px 24px 24px;
  border-radius: 22px;
  max-width: 95vw;
  width: 480px;
  box-shadow: 0 4px 44px rgba(30,30,30,0.19);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in .26s cubic-bezier(.4,0,.2,1);
  z-index: 8000;
}
@keyframes cookie-modal-in {
  from { transform: scale(.93) translateY(42px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2, .cookie-modal h3 {
  font-family: 'Montserrat', sans-serif;
  color: #181818;
  margin-bottom: 4px;
}
.cookie-modal label {
  font-size: 1.07rem;
  margin-right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-toggle {
  appearance: none;
  border-radius: 20px;
  width: 36px;
  height: 22px;
  background: #d0d0d0;
  position: relative;
  outline: none;
  transition: background .2s;
}
.cookie-toggle:checked {
  background: #214761;
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  top: 2px; left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.cookie-toggle:checked::before {
  transform: translateX(12px);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  margin-left: auto;
  background: #181818;
  color: #fff;
  border-radius: 10px;
  padding: 7px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  border: none;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #214761;
  color: #fff;
}

/* ========== UTILITY CLASSES ========== */
.mt-32 { margin-top: 32px; }
.mt-20 { margin-top: 20px; }
.mb-32 { margin-bottom: 32px; }
.mb-20 { margin-bottom: 20px; }
.gap-16 { gap: 16px; }
.centered { text-align: center; }
.bw-shadow { box-shadow: 0 2px 24px rgba(20, 20, 20, 0.15); }

/* ========== ANIMATIONS & MICRO-INTERACTIONS ========== */
.card, .service-block, .features-grid > div, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
}
.cta-btn, .cookie-btn, button {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.menu-fade-in {
  animation: fade-in-left .24s cubic-bezier(.4,0,.7,1);
}
@keyframes fade-in-left {
  from { opacity:0; transform: translateX(32px); }
  to { opacity:1; transform: translateX(0); }
}

/* ========== SCROLLBAR (Subtle, modern) ========== */
body::-webkit-scrollbar {
  width: 10px;
  background: #eee;
}
body::-webkit-scrollbar-thumb {
  background: #b4b4b4;
  border-radius: 8px;
}

/* ========== ENSURE NO ABSOLUTE OVERLAP FOR CONTENT ========== */
.card, .service-block, .features-grid > div, .testimonial-card {
  position: relative;
  z-index: 2;
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #f9f9f9;
  }
  header, .section, .card, .service-block, .features-grid > div, .testimonial-card {
    background: #181818 !important;
    color: #ededed;
  }
  nav a, footer nav a {
    color: #fff;
  }
  .cta-btn { background: #fff; color: #181818; }
  .cta-btn:hover, .cta-btn:focus { background: #45A859; color: #fff; }
}

/* ========== SPECIFIC PAGE TWEAKS ========== */
.index-page .hero-section h1 {
  color: #181818;
  font-size: 2.7rem;
  margin-bottom: 12px;
}

/* ========== RESPONSIVE LAYOUTS ========== */
@media (max-width: 520px) {
  .testimonial-card, .card, .service-block, .features-grid > div, .section {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* ========== HIDE OVERLAYS IF NEEDED ========== */
.cookie-modal-backdrop[aria-hidden="true"],
.cookie-modal[aria-hidden="true"] {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* ========== PRINT STYLES ========== */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, .cookie-modal-backdrop {
    display: none !important;
  }
  .section {
    background: none !important;
    box-shadow: none !important;
  }
}
