/* ==== 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F6F6FA;
  color: #232D3E;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
a {
  color: #4D648D;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #232D3E;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.6em;
  margin-bottom: 1.3em;
}
li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ==== TYPOGRAPHY HIERARCHY ==== */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #232D3E;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  color: #232D3E;
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: #232D3E;
  margin-bottom: 14px;
}
h4, .h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 14px;
}
p {
  color: #232D3E;
  margin-bottom: 18px;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
strong, b {
  font-weight: 600;
  color: #232D3E;
}

/* ==== CONTAINER & GENERIC SPACING ==== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 10px rgba(35,45,62,0.08);
  position: relative;
  z-index: 12;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 74px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  height: 42px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #232D3E;
  font-weight: 500;
  padding: 8px 2px;
  border-radius: 4px;
  transition: background 0.15s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6F6FA;
  color: #4D648D;
}
.cta-btn {
  background: #232D3E;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 26px;
  border-radius: 26px;
  border: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 3px 12px rgb(35 45 62 / 0.08);
  cursor: pointer;
  outline: none;
  display: inline-block;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #4D648D;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 18px rgb(35 45 62 / 0.14);
}

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #232D3E;
  cursor: pointer;
  margin-left: 16px;
  z-index: 30;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F6F6FA;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 22px rgb(35 45 62 / 0.18);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.42,0,0.58,1);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #232D3E;
  align-self: flex-end;
  margin-bottom: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F6F6FA;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}
.mobile-nav a {
  color: #232D3E;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  transition: color 0.18s, background 0.16s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F6F6FA;
  color: #4D648D;
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==== HERO SECTIONS ==== */
.section-hero {
  padding: 60px 0 40px 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(35,45,62,0.02);
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}
.section-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section-hero h1 {
  font-size: 2.3rem;
  margin-bottom: 18px;
}
.section-hero p {
  font-size: 1.13rem;
  max-width: 540px;
  margin-bottom: 24px;
  color: #232D3E;
}
@media (max-width: 768px) {
  .section-hero {
    padding: 36px 0 26px 0;
  }
  .section-hero h1 {
    font-size: 1.6rem;
  }
}

/* ==== FLEXBOX SPACING PATTERNS ==== */
.card-container, .service-cards, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.card-container > *, .service-cards > *, .service-list > * {
  margin-bottom: 20px;
}
.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;
  margin-bottom: 40px;
}
.testimonial-card, .testimonial-grid > .testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 14px 0 rgba(35,45,62,0.07);
  border: 1px solid #E5E9F2;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 430px;
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.promise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.promise-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(35,45,62,0.05);
  padding: 22px 20px;
  font-size: 1rem;
  min-width: 220px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .card-container, .service-cards, .service-list, .testimonial-grid, .promise-grid {
    flex-direction: column;
    gap: 14px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* ==== SERVICE CARD DESIGN ==== */
.service-card {
  flex: 1 1 265px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 22px 0 rgba(35,45,62,0.10);
  border: 1px solid #E5E9F2;
  padding: 26px 18px 22px 18px;
  min-width: 210px;
  max-width: 330px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.14s;
  position: relative;
  z-index: 1;
}
.service-card h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.16rem;
  margin-bottom: 11px;
}
.service-card p {
  font-size: 1rem;
  color: #424655;
  margin-bottom: 18px;
}
.service-card strong, .service-card div {
  font-weight: 700;
  color: #4D648D;
  font-size: 1.12rem;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 10px 32px 0 rgba(35,45,62,0.13);
  transform: translateY(-4px) scale(1.017);
}

/* ==== TESTIMONIALS ==== */
.testimonial-card p {
  color: #232D3E;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.testimonial-card strong {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #4D648D;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .testimonial-card, .promise-grid > div, .service-card {
    padding: 15px 10px;
    border-radius: 10px;
  }
}

/* ==== FOOTER ==== */
footer {
  background: #fff;
  box-shadow: 0 -1px 10px rgba(35,45,62,0.06);
  margin-top: 60px;
  padding: 36px 0 0 0;
  color: #232D3E;
  font-size: 0.99rem;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 34px;
  justify-content: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #232D3E;
  font-size: 1rem;
  padding: 3px 0;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #4D648D;
  text-decoration: underline;
}
.footer-info {
  margin-bottom: 16px;
}
.footer-contact strong {
  color: #232D3E;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.footer-copy {
  color: #888;
  font-size: 0.95rem;
  margin: 18px 0 0 0;
  padding-bottom: 28px;
}
@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==== BUTTONS & INTERACTIONS ==== */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 26px;
  border: none;
  background: #232D3E;
  color: #fff;
  padding: 10px 26px;
  cursor: pointer;
  transition: background 0.18s, transform 0.14s, box-shadow 0.16s;
  outline: none;
  box-shadow: 0 2px 11px rgba(35,45,62,0.09);
}
button:hover, button:focus {
  background: #4D648D;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 7px 20px rgba(35,45,62,0.10);
}

/* ==== SECTION GENERIC STYLING & WHITE SPACE ==== */
section:not(.section-hero) {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
@media (max-width: 768px) {
  section:not(.section-hero) {
    margin-bottom: 34px;
    padding: 22px 0 14px 0;
  }
}

/* ==== COOKIES CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #232D3E;
  box-shadow: 0 -2px 16px rgba(35,45,62,0.14);
  padding: 20px 28px 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  z-index: 2222;
  font-size: 1rem;
  transition: transform 0.25s cubic-bezier(0.52, 0.1, 0.19, 1);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner__message {
  flex: 1 1 66%;
  color: #232D3E;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  padding: 10px 18px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s, color 0.13s, box-shadow 0.14s;
  box-shadow: 0 2px 9px rgba(35,45,62,0.08);
}
.cookie-btn.accept {
  background: #232D3E;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #4D648D;
}
.cookie-btn.reject {
  background: #F6F6FA;
  color: #232D3E;
  border: 1.2px solid #E5E9F2;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eaebf0;
}
.cookie-btn.settings {
  background: transparent;
  color: #4D648D;
  border: 1.2px solid #4D648D;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F6F6FA;
}
@media (max-width: 750px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 10px 13px 10px;
    font-size: 0.95rem;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
    gap: 7px;
  }
}

/* ==== COOKIE CONSENT MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,45,62,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2223;
  transition: opacity 0.22s;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 48px 0 rgba(35,45,62,0.14);
  padding: 36px 24px 27px 24px;
  min-width: 320px;
  max-width: 95vw;
  width: 370px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalFadeIn 0.24s ease;
}
@keyframes cookieModalFadeIn {
  from { transform: translateY(32px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 9px;
  font-size: 1.45rem;
  border: none;
  background: none;
  color: #232D3E;
  cursor: pointer;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 8px;
  transition: background .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F6F6FA;
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  font-weight: 600;
  color: #232D3E;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F6F6FA;
  border-radius: 8px;
  padding: 12px 16px;
}
.cookie-category .label {
  font-size: 1rem;
  color: #232D3E;
}
.cookie-category .toggle {
  pointer-events: auto;
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: #E5E9F2;
  position: relative;
  transition: background 0.15s;
  margin-left: 8px;
  display: flex;
  align-items: center;
}
.cookie-category .toggle.active {
  background: #4D648D;
}
.cookie-category .toggle .circle {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  top: 2.5px;
  left: 3px;
  box-shadow: 0 1px 3px rgba(35,45,62,0.08);
  transition: left 0.18s;
}
.cookie-category .toggle.active .circle {
  left: 18px;
}
.cookie-category .toggle[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.cookie-modal .cookie-btn-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 22px 8px 16px 8px;
    min-width: 0;
    width: 98vw;
  }
}

/* ==== OL/UL OVERRIDES ==== */
ol {
  list-style-type: decimal;
  margin-bottom: 18px;
  padding-left: 1.5em;
}
ul {
  list-style-type: disc;
  margin-bottom: 18px;
  padding-left: 1.3em;
}

/* ==== FORMS (if needed in extension) ==== */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.2px solid #E5E9F2;
  border-radius: 10px;
  background: #F6F6FA;
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  transition: border 0.16s, background 0.16s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border: 1.5px solid #4D648D;
  background: #fff;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* === SCROLLBAR (nice, minimalist) ==== */
::-webkit-scrollbar {
  width: 9px;
  background: #F6F6FA;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: #E5E9F2;
  border-radius: 5px;
  transition: background 0.16s;
}
::-webkit-scrollbar-thumb:hover {
  background: #C8CCDC;
}

/* ==== UTILITIES & MISC ==== */
.muted {
  color: #878798;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.gap-20 {
  gap: 20px !important;
}

/* ==== ANIMATIONS ==== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: none; }
}
section, .service-card, .testimonial-card, .promise-grid > div {
  animation: fadeInUp 0.58s cubic-bezier(0.17,0.67,0.83,0.67) both;
}

/* ==== MEDIA QUERIES FOR LAYOUT ADAPTATION ==== */
@media (max-width: 600px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.07rem; }
  .section-hero {
    padding: 19px 0 8px 0;
  }
  .footer-info, .footer-contact {
    font-size: 0.95rem;
  }
}

/* ==== END ==== */
