/* === 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;
  font-family: 'Open Sans', Arial, sans-serif;
  scroll-behavior: smooth;
  background: #fff;
}
body {
  color: #222;
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #181818;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #181818;
}
h3 {
  font-size: 1.25rem;
  color: #222;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p {
  color: #232323;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
a {
  color: #20425A;
  text-decoration: underline;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #FF974D;
}
subheadline, .subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: #606060;
  margin-bottom: 18px;
  display: block;
}
strong {
  font-weight: 600;
  color: #181818;
}
em {
  font-style: italic;
}
address {
  font-style: normal;
  color: #181818;
  font-size: 1rem;
  margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="search"], input, textarea {
  font-family: inherit;
  padding: 10px 14px;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  font-size: 1rem;
  background: #faf9f8;
  transition: border 0.2s;
}
input:focus, textarea:focus {
  border-color: #20425A;
  outline: none;
}

/* === BRAND AND MONOCHROME PALETTE === */
:root {
  --clr-primary: #181818; /* overriding brand for style: deepest mono shade */
  --clr-secondary: #F5F1ED; /* very light grey as primary background */
  --clr-accent: #FF974D; /* subtle orange for accent elements */
  --clr-text: #222;
  --clr-link: #20425A;
  --clr-white: #fff;
  --clr-light: #FAFAFA;
  --clr-muted: #767676;
  --clr-shadow: rgba(0,0,0,0.12);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --border-radius: 13px;
  --border-radius-sm: 7px;
  --transition: all 0.22s cubic-bezier(.45,.03,.51,.95);
}

/* === FLUID LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--clr-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px var(--clr-shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === HEADER === */
header {
  background: #fff;
  box-shadow: 0 2px 14px var(--clr-shadow);
  z-index: 19;
  position: relative;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 20px 16px 20px;
}
header img {
  height: 52px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  color: #20425A;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: #e5e8ec;
  color: #FF974D;
}
.cta-btn {
  background: #181818;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.10rem;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 10px var(--clr-shadow);
  letter-spacing: 0.02em;
  display: inline-block;
  cursor: pointer;
  margin-left: 12px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--clr-accent);
  color: #222;
  box-shadow: 0 4px 18px var(--clr-shadow);
}

/* === MOBILE NAV === */
.mobile-menu-toggle {
  display: none;
  background: #181818;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  position: fixed;
  top: 22px;
  right: 18px;
  z-index: 41;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--clr-shadow);
  transition: background var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--clr-accent);
  color: #222;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 94vw;
  max-width: 400px;
  height: 100vh;
  z-index: 1002;
  box-shadow: 0 0 36px 6px var(--clr-shadow);
  transform: translateX(-105%);
  transition: transform .38s cubic-bezier(.65,.05,.36,1);
  padding: 44px 28px 24px 28px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #181818;
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
  align-self: flex-end;
  margin-bottom: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #e5e8ec;
  color: #FF974D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #181818;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 3px;
  border-bottom: 1px solid #e2e2e2;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #181818;
  color: #fff;
  border-radius: var(--border-radius-sm);
  padding-left: 18px;
}
@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1001px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* === MAIN CONTENT === */
main {
  padding-top: 30px;
  padding-bottom: 50px;
  background: var(--clr-secondary);
}
.section {
  background: unset;
}

.features-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.features-grid > div {
  flex: 1 1 calc(260px - 24px);
  min-width: 220px;
  background: var(--clr-white);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 1px 12px var(--clr-shadow);
  padding: 28px 20px 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid #eaeaea;
}
.features-grid > div:hover {
  transform: translateY(-6px) scale(1.018);
  box-shadow: 0 6px 24px var(--clr-shadow);
}
.features-grid img {
  height: 44px;
  width: 44px;
  margin-bottom: 2px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 24px;
  }
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-wrapper {
    padding: 26px 8px;
  }
}

/* === CARD & CARD LAYOUTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--clr-white);
  margin-bottom: 20px;
  box-shadow: 0 2px 16px var(--clr-shadow);
  border-radius: var(--border-radius-sm);
  position: relative;
  padding: 30px 22px;
  flex: 1 1 330px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 7px 24px var(--clr-shadow);
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fafafc;
  color: #181818;
  border: 1px solid #e6e6e6;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 10px var(--clr-shadow);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.07rem;
  line-height: 1.45;
}
.testimonial-card blockquote {
  margin: 0 12px 0 0;
  font-size: 1.11rem;
  font-family: var(--font-body);
  color: #232323;
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-style: italic;
  flex: 1 1 auto;
}
.testimonial-card p {
  color: #767676;
  margin: 0;
  font-size: .97rem;
  line-height: 1.5;
  min-width: 130px;
}
@media (max-width: 650px) {
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 14px 10px;
    font-size: 1rem;
  }
  .card {
    padding: 20px 8px;
  }
}

/* === FEATURE LISTS === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* === MAP PLACEHOLDER === */
.map-placeholder {
  background: #e5e5e5;
  color: #666;
  font-size: 1rem;
  border-radius: 9px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
  box-shadow: 0 1px 7px var(--clr-shadow);
}

/* === FOOTER === */
footer {
  background: #181818;
  color: #e5e6ea;
  padding: 0;
  border-top: 4px solid #e5e5e9;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 45px 0 22px 0;
}
.footer-main > div, .footer-main nav {
  min-width: 180px;
}
.footer-main img {
  height: 36px;
  margin-bottom: 15px;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-main nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 4px 0;
  border-radius: var(--border-radius-sm);
  transition: color var(--transition), background var(--transition);
}
.footer-main nav a:hover, .footer-main nav a:focus {
  background: var(--clr-accent);
  color: #181818;
}
.footer-main address, .footer-main p {
  color: #e5e6ea;
  margin-bottom: 6px;
  font-size: .99rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #252525;
  padding: 18px 0;
  font-size: .98rem;
}
.footer-bottom a {
  color: var(--clr-accent);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-bottom a:hover, .footer-bottom a:focus {
  color: #fff;
}
@media (max-width: 1000px) {
  .footer-main {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-left: 10px;
  }
}

/* === COOKIE CONSENT BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #fff;
  color: #232323;
  border-radius: 13px;
  box-shadow: 0 4px 24px var(--clr-shadow);
  padding: 28px 18px 20px 20px;
  min-width: 270px;
  width: 92vw;
  max-width: 400px;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  animation: cookieSlideIn .45s;
}
@keyframes cookieSlideIn {
  0% {
    opacity: 0;
    translate: 0 80px;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}
.cookie-banner p {
  margin: 0 0 7px 0;
  font-size: 1.03rem;
  color: #232323;
}
.cookie-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--clr-shadow);
  transition: background var(--transition), color var(--transition);
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: #181818;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--clr-accent);
  color: #222;
}
.cookie-btn.reject {
  background: #EFEFEF;
  color: #181818;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #222;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  color: #222;
  border: 1px solid #e1e1e1;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #e1e1e1;
  color: #181818;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 34, 42, .62);
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: modalOverlayIn .20s;
}
@keyframes modalOverlayIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #232323;
  border-radius: 16px;
  padding: 34px 28px 22px 28px;
  box-shadow: 0 8px 42px 12px var(--clr-shadow);
  max-width: 410px;
  width: 95vw;
  z-index: 1040;
  animation: modalIn .36s cubic-bezier(.57,.22,.26,1.06);
}
@keyframes modalIn {
  0% { transform: scale(.77) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.12rem;
  color: #181818;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-modal label {
  font-size: 1rem;
  color: #232323;
}
.cookie-modal .toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  vertical-align: middle;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e2e2e2;
  border-radius: 22px;
  transition: background 0.25s;
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
  box-shadow: 0 1px 5px var(--clr-shadow);
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--clr-accent);
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #767676;
  cursor: pointer;
  position: absolute;
  top: 13px; right: 20px;
  transition: color var(--transition);
}
.cookie-modal .cookie-modal-close:hover,
.cookie-modal .cookie-modal-close:focus {
  color: var(--clr-accent);
}
@media (max-width: 600px) {
  .cookie-banner {
    max-width: 98vw;
    padding: 18px 6px 14px 13px;
    min-width: 0;
  }
  .cookie-modal {
    padding: 18px 8px 16px 10px;
    max-width: 99vw;
  }
}

/* === UTILITY & GENERAL === */
.gap-24 { gap: 24px; }
.gap-20 { gap: 20px; }
.gap-12 { gap: 12px; }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: 0 2px 16px var(--clr-shadow); }
.text-center { text-align: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }

/* === SPACING AND RESPONSIVE === */
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
  .footer-main {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.12rem; }
  main { padding-top: 10px; }
}
@media (max-width: 510px) {
  .container { padding: 0 4px; }
  .content-wrapper { padding: 10px 1px; }
  .testimonial-card { padding: 7px 2px; }
}

/* === HOVER & FOCUS MICRO-INTERACTIONS === */
button, .cta-btn, .cookie-btn, .mobile-menu-toggle {
  outline: none;
  transition: box-shadow var(--transition), border var(--transition), background var(--transition), color var(--transition), transform .16s;
}
button:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid #181818;
}
.card, .features-grid > div, .testimonial-card, .content-wrapper {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:active, .features-grid > div:active {
  transform: scale(0.98) translateY(1px);
}

/* === TYPOGRAPHY RESPONSIVE SCALE === */
@media (max-width: 480px) {
  h1 { font-size: 1.28rem; }
  h2 { font-size: 1.02rem; }
  h3 { font-size: 1rem; }
  p, .subheadline { font-size: .97rem; }
}

/* === SPECIAL ELEMENTS === */
input[placeholder] {
  color: #adadad;
}
input[type='search'], input[type='text'] {
  width: 100%;
  margin-bottom: 10px;
}
.map-placeholder {
  font-family: var(--font-body);
}
ul, ol {
  margin-bottom: 13px;
  margin-top: 6px;
}
ul li, ol li {
  margin-bottom: 7px;
  word-break: break-word;
}

/* === DARK/LIGHT CONTRAST FOR TESTIMONIALS === */
.testimonial-card {
  background: #fafafc;
  color: #181818;
}

/* === PRINT OPTIMIZATION === */
@media print {
  * {
    background: none !important;
    color: #232323 !important;
    box-shadow: none !important;
  }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 12px;
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}

