/* ========== 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #ffffff;
  color: #141414;
  font-size: 16px;
  letter-spacing: 0.01em;
  background: #fff;
  transition: background 0.2s;
}
a {
  color: #284B63;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #111;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #111112;
  line-height: 1.2;
}
::selection {
  background: #B6C8A6;
  color: #181818;
}

/* ========== BRANDED MONOCHROME SOPHISTICATION ========== */
:root {
  --primary-dark: #141414;
  --neutral-90: #222;
  --neutral-80: #333;
  --neutral-60: #666;
  --neutral-40: #A5A5A5;
  --neutral-10: #F7F7FF;
  --brand-primary: #284B63; /* Deep desaturated blue */
  --brand-secondary: #B6C8A6; /* Pale sage */
  --brand-accent: #F7F7FF;
  --white: #fff;
  --black: #111112;
  --shadow-main: 0 4px 20px 0 rgba(44,44,61,0.09);
  --radius-card: 12px;
  --radius-btn: 7px;
  --transition-main: all .21s cubic-bezier(.7,.2,.25,1);
}

/* ========== TYPOGRAPHY ========== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--primary-dark);
  background: var(--white);
}
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.8rem;
  color: var(--black);
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: var(--black);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.36rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--neutral-80);
}
p, li, dd {
  font-size: 1rem;
  color: var(--neutral-80);
}
strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* ========== LAYOUT CONTAINERS ========== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  border-radius: var(--radius-card);
  background: var(--neutral-10);
  box-shadow: var(--shadow-main);
  padding: 32px 28px 32px 28px;
  color: var(--primary-dark);
  transition: box-shadow .2s;
  min-width: 240px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(40,75,99,0.16);
}
.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;
  padding: 20px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 4px 24px rgba(20,20,20,.10);
  margin-bottom: 20px;
  color: #161616;
  min-width: 0;
  flex: 1 1 280px;
  flex-direction: column;
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spacing between major sections */
section, .section {
  margin-bottom: 60px;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--white);
  box-shadow: 0 2px 18px rgba(22,22,22,.04);
  z-index: 100;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 22px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-left: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--neutral-80);
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 5px;
  transition: background .18s, color .16s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--neutral-10);
  color: var(--black);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-btn);
  padding: 12px 30px;
  font-size: 1.06rem;
  box-shadow: 0 2px 12px rgba(56,56,56,.11);
  border: none;
  outline: none;
  cursor: pointer;
  letter-spacing: .04em;
  transition: var(--transition-main);
  margin-left: 20px;
  text-shadow: 0 0 1px #222;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--primary-dark);
  color: var(--brand-accent);
}

/* Hamburger for mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  margin-left: 12px;
  cursor: pointer;
  z-index: 2300;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--brand-primary);
}

/* ========== HERO STYLES ========== */
.hero {
  background: var(--brand-accent);
  border-bottom: 1px solid #ddd;
  padding-top: 64px;
  padding-bottom: 48px;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1{
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}
.hero p {
  font-size: 1.19rem;
  margin-bottom: 38px;
  color: var(--neutral-80);
}

/* ========== FEATURES / SERVICES ========== */
.features, .services, .services-detail {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 1px 13px rgba(100,100,110,0.04);
  padding: 30px 16px;
}
.feature-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  margin-top: 20px;
}
.feature-list li, .service-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  background: var(--neutral-10);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-main);
  padding: 18px 22px 18px 18px;
  color: var(--primary-dark);
  min-width: 210px;
  flex: 1 1 260px;
}
.feature-list img, .service-list img {
  min-width: 32px;
  width: 32px;
  height: 32px;
  filter: grayscale(100%) contrast(1.25) brightness(0.8);
  margin-right: 10px;
}
.features h2, .services-detail h2 {
  margin-bottom: 12px;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: #efefef;
  border-radius: var(--radius-card);
  padding: 40px 14px;
}
.testimonials .content-wrapper {
  gap: 32px;
}
.testimonials h2 {
  color: var(--primary-dark);
}
.testimonial-card {
  background: #fff;
  color: #191919;
  border-left: 4px solid var(--brand-primary);
  box-shadow: 0 4px 32px rgba(44,44,51,.07);
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.12rem;
  color: var(--primary-dark);
}
.testimonial-card p {
  font-size: 1rem;
  margin-top: 11px;
  color: var(--neutral-60);
}

/* ========== FOOTER ========== */
footer {
  background: var(--neutral-90);
  color: var(--neutral-10);
  padding-top: 34px;
  padding-bottom: 16px;
  font-size: .96rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #3c3c3c;
}
.footer-top img {
  height: 36px;
}
.footer-nav {
  display: flex;
  gap: 18px;
}
.footer-nav a {
  color: var(--neutral-40);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .99rem;
  transition: color .15s, text-decoration .15s;
}
.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  justify-content: space-between;
  color: #bbb;
  font-size: .93rem;
}
footer a {
  color: #D7D7E0;
  text-decoration: underline;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin-top: 18px;
  margin-bottom: 30px;
}
th, td {
  text-align: left;
  padding: 16px 10px;
  border-bottom: 1px solid #e3e3e8;
}
th {
  background: var(--neutral-10);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1rem;
}
td {
  font-size: .99rem;
  color: var(--neutral-80);
}

/* ========== INPUTS, FIELDS, SEARCH ========== */
input[type="text"] {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border .17s;
  color: var(--primary-dark);
  margin-bottom: 18px;
}
input[type="text"]:focus {
  border-color: var(--brand-primary);
}

/* ========== FAQ & LISTS ========== */
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-top: 16px;
  color: var(--primary-dark);
}
dd {
  margin-bottom: 9px;
  margin-left: 0;
  color: var(--neutral-80);
}
.category-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: .99rem;
}
.category-list li {
  background: #E9E9EE;
  border-radius: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #47474a;
  padding: 7px 15px;
}

/* ========== MISC ========== */
blockquote {
  quotes: "\201E" "\201C" "\201A" "\2018";
}
blockquote:before {
  content: open-quote;
  color: var(--brand-primary);
  font-size: 2.4rem;
  line-height: 0.3;
  margin-right: 6px;
}
blockquote:after {
  content: close-quote;
  color: var(--brand-primary);
  font-size: 2.2rem;
  margin-left: 6px;
  line-height: 0.3;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #181818fa;
  color: #fff;
  padding: 25px 16px;
  box-shadow: 0 -2px 12px rgba(25, 29, 35, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 4000;
  font-size: 1rem;
  animation: cookie-slide-in 0.5s cubic-bezier(.7,.2,.3,1);
}
@keyframes cookie-slide-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 26px;
  margin-right: 14px;
  margin-bottom: 7px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(44,44,61,0.05);
  cursor: pointer;
  transition: background .18s, color .18s;
  display: inline-block;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
}
.cookie-banner .cookie-settings {
  background: var(--neutral-10);
  color: var(--primary-dark);
  border: 1px solid #aaa;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #dde0f0;
  color: var(--primary-dark);
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%) scale(1);
  min-width: 320px;
  max-width: 96vw;
  width: 420px;
  background: #fff;
  color: var(--primary-dark);
  border-radius: var(--radius-card);
  box-shadow: 0 6px 54px 0 rgba(22,22,32,.23);
  z-index: 4100;
  padding: 40px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 1;
  animation: cookie-modal-in 0.4s cubic-bezier(.7,.2,.3,1);
}
@keyframes cookie-modal-in {
  0% { opacity: 0; transform: translate(-50%, -72%) scale(.96); }
  100% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.37rem;
  color: var(--primary-dark);
  margin-bottom: 7px;
}
.cookie-modal .category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cookie-modal .category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-dark);
}
.cookie-modal .toggle {
  width: 38px;
  height: 22px;
  background: #e1e1e7;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background .18s;
  display: flex;
  align-items: center;
}
.cookie-modal .toggle[aria-checked="true"] {
  background: var(--brand-primary);
}
.cookie-modal .toggle::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 1px;
  top: 1px;
  box-shadow: 0 0 3px #2221;
  transition: left .18s;
}
.cookie-modal .toggle[aria-checked="true"]::before {
  left: 17px;
}
.cookie-modal .always-on {
  color: var(--neutral-60);
  font-size: .94rem;
  font-style: italic;
}
.cookie-modal .cookie-buttons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--neutral-60);
  font-size: 1.36rem;
  cursor: pointer;
  transition: color .17s;
}
.cookie-modal .close-modal:hover {
  color: var(--brand-primary);
}
@media (max-width: 530px) {
  .cookie-modal {
    width: 97vw;
    padding: 28px 8vw;
    min-width: 0;
  }
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(20,16,18,0.98);
  z-index: 3200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .32s cubic-bezier(.7,.2,.2,1), opacity .23s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  margin: 36px 25px 10px 0;
  cursor: pointer;
  transition: color .14s;
  z-index: 3300;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  margin: 0 0 0 40px;
}
.mobile-nav a {
  color: #FFF;
  font-size: 1.36rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 0;
  border-bottom: 1px solid #28282833;
  width: 100%;
  transition: color .12s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--brand-secondary);
}


/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1260px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 980px) {
  .container {
    padding: 0 8px;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 900px){
  .card-container, .feature-list, .service-list {
    gap: 18px 10px;
  }
  .feature-list li, .service-list li {
    min-width: 155px;
    font-size: .98rem;
    padding: 13px 10px 13px 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.07rem;
  }
  h2 {
    font-size: 1.38rem;
  }
  .container {
    max-width: 97vw;
    padding: 0 4vw;
  }
  header .container {
    min-height: 58px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    margin-left: 0;
    padding: 10px 12vw;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .card {
    padding: 19px 13px;
  }
  .section {
    padding: 30px 5vw;
    margin-bottom: 44px;
  }
  .content-grid {
    gap: 15px;
    flex-direction: column;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .feature-list, .service-list {
    flex-direction: column;
    gap: 15px;
  }
  .feature-list li, .service-list li {
    min-width: 0;
    width: 100%;
  }
  .hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .testimonials {
    padding: 18px 6px;
  }
}
@media (max-width: 530px) {
  h1 {
    font-size: 1.38rem;
    margin-bottom: 11px;
  }
  h2 {
    font-size: 1.01rem;
    margin-bottom: 10px;
  }
  .content-wrapper {
    gap: 10px;
  }
  th, td {
    padding: 7px 1vw;
    font-size: .92rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
}

/* ========== ANIMATION, BUTTONS ========== */
button, .cta-button {
  transition: var(--transition-main);
}

/* ========== CARD + MICRO-INTERACTION ========== */
.card, .testimonial-card {
  transition: box-shadow .18s, transform .18s;
  border: none;
}
.card:hover, .card:focus, .testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 32px rgba(40,75,99,0.18);
  transform: translateY(-2px) scale(1.012);
}

/* ========== VISUAL HIERARCHY / SPACING ========== */
.section > *, .container > *, .content-wrapper > * {
  margin-bottom: 0;
}
.section > *:not(:last-child),
.container > *:not(:last-child),
.content-wrapper > *:not(:last-child) {
  margin-bottom: 24px;
}
/* MINIMUM 20px between all cards/sections - already enforced by gap/margin-bottom above */

/* ========== UTILITIES ========== */
.hidden {
  display: none !important;
}

/* ========== ACCESSIBILITY ========== */
:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-link:focus {
  left: 1vw;
  top: 1vw;
  width: auto;
  height: auto;
  padding: 10px 18px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 5px;
}

/* ========== PRINT ========== */
@media print {
  body, html {
    background: #fff;
    color: var(--primary-dark);
  }
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
}
