/* --- CSS RESET & NORMALIZATION --- */
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.6;
  background: #fff;
  color: #111;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  /* Graceful fallback for monospace fonts */
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style-position: outside;
  margin-left: 24px;
  margin-bottom: 20px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
}

/* --- VARIABLES FOR MONOCHROME + BRAND --- */
:root {
  --color-bg: #fff;
  --color-bg-dark: #111;
  --color-bg-gray: #f5f5f5;
  --color-bg-lightgray: #fafbfc;
  --color-border: #e6e6e6;
  --color-shadow: rgba(17, 17, 17, 0.1);
  --color-black: #111;
  --color-white: #fff;
  --color-gray-800: #222;
  --color-gray-700: #333;
  --color-gray-600: #444;
  --color-gray-400: #bdbdbd;
  --color-gray-300: #e5e5e5;
  --brand-primary: #223265;
  --brand-primary-dark: #10193a;
  --brand-secondary: #93C01F;
  --brand-accent: #F2F2F2;
  --font-display: 'Montserrat', 'Arial', 'Helvetica', sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --border-radius: 16px;
  --shadow-elevated: 0 4px 24px 0 var(--color-shadow);
  --transition: 0.25s cubic-bezier(.55,.01,.36,1);
  --shadow-btn: 0 1px 8px 0 rgba(34, 50, 101, 0.12);
}

/* --- GENERAL CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--color-bg-lightgray);
  border-radius: var(--border-radius);
}

@media (max-width: 900px) {
  .section { padding: 32px 10px; }
}
@media (max-width: 600px) {
  .section { margin-bottom: 36px; padding: 22px 0; border-radius: 0; }
}

/* MONOCHROME SOPHISTICATED: HEADINGS & TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; line-height: 1.18; margin-bottom: 16px; letter-spacing: -1px; }
h3 { font-size: 1.34rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
}

p, li, .subheadline, .secondary-info {
  font-family: var(--font-body);
  color: var(--color-black);
  font-size: 1rem;
  margin-bottom: 12px;
}
.subheadline {
  color: var(--color-gray-700);
  font-size: 1.17rem;
  margin-bottom: 20px;
  line-height: 1.42;
}
.secondary-info {
  font-size: 1rem;
  color: var(--color-gray-400);
  margin-top: 10px;
  margin-bottom: 0;
  font-style:italic;
}
strong, b {
  font-weight: 700;
  color: var(--brand-primary);
}

/* --- BUTTONS & CTAs --- */
.cta-btn,
button, .btn {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 13px 34px;
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: 40px;
  box-shadow: var(--shadow-btn);
  font-weight: 600;
  cursor: pointer;
  outline: none;
  margin-top: 10px;
  letter-spacing: 0.5px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  display: inline-block;
  min-width: 160px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus,
.btn:hover, button:not([disabled]):hover, button:focus {
  background: var(--brand-primary);
  color: var(--color-white);
  box-shadow: 0 3px 18px 0 var(--color-shadow), 0 1px 10px 0 var(--brand-primary-dark);
}
button[disabled], .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

/* Links -- underline only on hover for monochrome feel */
a {
  transition: color var(--transition), text-decoration var(--transition);
}
a:hover, a:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.header-logo img {
  height: 40px;
  width: auto;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 1rem;
}
.main-nav a {
  color: var(--color-black);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
}
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 16px;
  display: none;
  transition: color var(--transition);
  z-index: 1201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-black);
}

/* --- MOBILE NAVIGATION OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: var(--color-bg);
  box-shadow: 0 0 80px #0002;
  z-index: 1300;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 1350;
  transition: color var(--transition);
  line-height: 1;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-black);
}
.mobile-nav {
  margin-top: 84px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  padding: 20px 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 8px 0;
  color: var(--color-black);
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-bottom var(--transition);
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--brand-primary);
  border-bottom: 1px solid var(--brand-primary);
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .header-logo img { height: 32px; }
  header .container { height: 60px; }
  .mobile-nav { font-size: 1.02rem; gap: 21px; padding: 16px 18px; margin-top: 56px; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* --- HERO SECTION --- */
.hero {
  background: var(--color-bg-dark);
  color: var(--color-white);
  border-radius: var(--border-radius);
  margin-top: 32px;
  box-shadow: var(--shadow-elevated);
  padding: 60px 0;
  min-height: 320px;
}
.hero h1,
.hero h2, .hero .subheadline {
  color: var(--color-white);
}
.hero .cta-btn {
  background: var(--brand-secondary);
  color: var(--color-black);
  font-weight: 700;
  box-shadow: 0 2px 10px 0 rgba(54,54,54,.20);
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: var(--color-white);
  color: var(--brand-primary);
}

@media (max-width: 900px) {
  .hero { padding: 40px 0; min-height: 200px; }
}
@media (max-width: 600px) {
  .hero { border-radius: 0; margin-top: 0; }
}

/* --- FEATURES & SERVICES FLEX LAYOUTS --- */
.features-grid, .services-grid, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.features-grid, .services-grid {
  justify-content: space-between;
}
.services-list {
  justify-content: flex-start;
}

.feature,
.feature-benefit,
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elevated);
  padding: 28px 24px;
  margin-bottom: 20px;
  min-width: 210px;
  flex: 1 1 216px;
  max-width: 360px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
}
.feature img {
  width: 48px; height: 48px; margin-bottom: 10px;
  filter: grayscale(100%);
}
.feature-benefit h3, .service-card h3 {
  margin-bottom: 7px;
}
.feature-benefit {
  min-width: 210px; max-width: 330px;
  border-color: var(--brand-primary);
  box-shadow: none;
  background: var(--brand-accent);
}
.service-card .price,
.price {
  margin-top: 9px;
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 700;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elevated);
  margin-bottom: 20px;
  position: relative;
  padding: 30px 24px;
}
.services-list .service-card { min-width: 210px; max-width: 360px; }

.feature:hover, .feature-benefit:hover, .service-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 8px 28px 0 rgba(34,34,34,0.10);
  z-index: 1;
}

@media (max-width: 900px) {
  .features-grid, .services-grid, .services-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- TESTIMONIALS --- */
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 10px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 24px;
  background: #fcfcfc;
  border: 1.5px solid var(--brand-primary);
  border-left: 8px solid var(--brand-primary);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 420px;
  box-shadow: 0 4px 16px 0 rgba(45,45,45,0.09);
  transition: box-shadow var(--transition), border-color var(--transition);
  color: var(--color-black);
}
.testimonial-card p {
  color: var(--color-black);
  font-style: italic;
  font-weight: 500;
}
.testimonial-card .testimonial-author {
  color: var(--brand-primary);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 600;
  margin-top: 6px;
  letter-spacing: 0.1px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--brand-secondary);
  box-shadow: 0 8px 32px 0 rgba(34,50,101,0.13);
}
@media (max-width: 900px) {
  .testimonials-list {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- FLEX LAYOUTS: GENERIC CLASSES --- */
.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: 16px;
  }
  .content-grid { flex-direction: column; gap: 14px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TEXT SECTIONS --- */
.text-section {
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--color-black);
}
.text-section ul {
  margin-bottom: 12px;
  line-height: 1.7;
}
.text-section li {
  margin-bottom: 9px;
}
.text-section a {
  color: var(--brand-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--brand-primary);
  transition: color var(--transition), border-color var(--transition);
}
.text-section a:hover, .text-section a:focus {
  color: var(--brand-secondary);
  border-bottom: 1px solid var(--brand-secondary);
}

/* --- FORMS & CALCULATOR --- */
.text-section span {
  display: inline-block;
  min-width: 90px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-gray);
  border-radius: 6px;
  min-height: 26px;
  padding: 3px 10px;
  color: var(--color-gray-700);
  font-size: 1rem;
  margin-top: 1px;
  box-sizing: border-box;
}
.result-panel {
  margin-top: 22px;
  background: var(--color-bg-lightgray);
  border-left: 4px solid var(--brand-primary);
  border-radius: 8px;
  padding: 17px 20px;
  color: var(--color-black);
  font-weight: 500;
}
.result-panel strong { color: var(--brand-primary); }

/* --- FOOTER --- */
footer {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: 48px 0 26px 0;
  margin-top: 70px;
  border-top: 2px solid var(--brand-primary);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
}
.footer-logo img {
  height: 48px;
  margin-bottom: 8px;
  filter: grayscale(100%) brightness(1.2);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.footer-nav a {
  color: var(--color-white);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-secondary);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--color-white);
  margin-top: 6px;
  line-height: 1.65;
}
.footer-contact a {
  color: var(--brand-secondary);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-logo img { height: 34px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  color: var(--color-black);
  border-top: 2px solid var(--brand-primary);
  box-shadow: 0 -2px 12px 0 rgba(30,34,45,.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 1630;
  padding: 20px 24px;
  gap: 18px;
  animation: cookieSlideIn 1s cubic-bezier(.4,.05,.37,1) 0.2s both;
}
@keyframes cookieSlideIn {
  from { opacity: 0; transform: translateY(120px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: var(--color-black);
  margin-bottom: 0;
  font-size: 1rem;
  max-width: 450px;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  border-radius: 38px;
  background: var(--brand-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 2px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--brand-secondary);
  color: var(--color-black);
}
.cookie-banner .cookie-btn.outline {
  background: var(--color-bg);
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  font-weight: 700;
}
.cookie-banner .cookie-btn.outline:hover, .cookie-banner .cookie-btn.outline:focus {
  background: var(--color-bg-dark);
  color: var(--color-white);
  border-color: var(--color-black);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 8px;
    gap: 10px;
  }
  .cookie-buttons { width: 100%; }
}

/* --- COOKIE PREFERENCES MODAL --- */
#cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  z-index: 1800;
  background: rgba(17,24,39,0.76);
  justify-content: center;
  align-items: center;
  animation: cookieModalAppear 0.38s cubic-bezier(.65,.05,.56,1) both;
}
#cookie-modal.open {
  display: flex;
}
@keyframes cookieModalAppear {
  from { opacity:0; } to { opacity:1; }
}
.cookie-modal-content {
  background: var(--color-white);
  color: var(--color-black);
  border-radius: 22px;
  box-shadow: 0 16px 50px 0 rgb(28 38 50 / 16%);
  min-width: 350px; max-width: 97vw;
  padding: 36px 32px 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-content h2 {
  color: var(--brand-primary);
  margin-top: 0;
}
.cookie-modal-section {
  margin-bottom: 10px;
  padding-bottom: 8px;
}
.cookie-toggle-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-top:5px;
}
.cookie-toggle input[type="checkbox"] {
  accent-color: var(--brand-primary);
  width: 22px; height: 22px;
}
#cookie-modal .cookie-btn {
  margin-top: 10px;
  min-width: 120px;
}
.cookie-modal-close {
  background: none;
  border: none;
  position: absolute;
  top: 14px; right: 16px;
  font-size: 2rem;
  color: var(--brand-primary);
  cursor: pointer;
  font-weight: bold;
  transition: color var(--transition);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-black);
}
@media (max-width: 480px) {
  .cookie-modal-content { padding: 20px 8px 20px 8px; min-width: 0; }
}

/* --- UTILITY CLASSES --- */
.hide { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* --- ANIMATIONS / TRANSITIONS --- */
.fade-in {
  animation: fadeIn 0.65s cubic-bezier(.42,.01,.65,1) both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- MEDIA QUERIES: MOBILE FIRST ADJUSTMENTS --- */
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .content-wrapper {
    max-width: 99vw;
    padding: 0;
  }
  h1, h2, h3 { margin-bottom: 12px; }
  .section { padding: 12px 0 22px 0; }
  footer {
    padding: 32px 0 20px 0;
    margin-top: 36px;
  }
}

/* --- FOCUS STATES FOR ACCESSIBILITY --- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px dashed var(--brand-secondary);
  outline-offset: 3px;
}

/* --- Z-INDEX CONTEXTS --- */
header { z-index: 1020; }
.mobile-menu { z-index: 1300; }
.cookie-banner { z-index: 1630; }
#cookie-modal { z-index: 1800; }

/* --- PRINT ADJUSTMENT --- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, #cookie-modal { display: none !important; }
}

/* --- END OF STYLE --- */

