/* =========================
   CSS RESET & BASE STYLES
   ========================= */
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 {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #222;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-color: #F4F4F9;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  color: inherit;
}

strong, b {
  font-weight: 700;
}

hr {
  border: 0;
  border-top: 1px solid #e3e3ee;
  margin: 32px 0;
}

/* =========================
    BRAND FONTS
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 0.6em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 24px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 18px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
}
.lead {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 18px;
}

/* Typography scale for monochrome_sophisticated */
p, ul, ol, blockquote {
  color: #222;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2em;
}

blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: italic;
  border-left: 4px solid #111;
  padding-left: 18px;
  color: #111;
  background: #FAFAFC;
  margin-bottom: 1.6em;
  margin-top: 1em;
}

section ul, section ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
section ul li, section ol li {
  margin-bottom: 0.4em;
  line-height: 1.7;
  color: #222;
}

/* =========================
  LAYOUT & SECTIONS
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.section,
main section,
footer section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(21,32,53,0.08), 0 1.5px 8px rgba(21,32,53,0.03);
  margin-bottom: 20px;
  padding: 24px 28px;
  min-width: 260px;
  max-width: 360px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #eee;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 40px rgba(21,32,53,0.14), 0 2px 14px rgba(21,32,53,0.07);
}

.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 {
  background: #FAFAFC;
  border-left: 5px solid #152035;
  box-shadow: 0 2px 12px rgba(21,32,53,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  margin-bottom: 20px;
  flex: 1 1 340px;
  min-width: 0;
  max-width: 600px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(21,32,53,0.13);
  border-left: 5px solid #333;
}
.testimonial-card p {
  color: #111;
  font-size: 1.11rem;
  margin-bottom: 0.6em;
}
.testimonial-card span {
  color: #616161;
  font-size: 0.98rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.location-map {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  color: #505060;
}

.callout-box {
  background: #FAFAFC;
  color: #222;
  border-left: 4px solid #152035;
  border-radius: 7px;
  padding: 14px 24px;
  margin: 10px 0 20px 0;
}

/* =========================
     NAVIGATION & HEADER
   ========================= */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(21,32,53,0.085);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0px;
  height: 86px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1F2025;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.18s, color 0.16s;
  position: relative;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: #111;
  border-radius: 2px;
  transition: width 200ms;
  margin-top: 6px;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F4F4F9;
  color: #152035;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 60%;
}
.main-nav .cta-primary {
  background: #152035;
  color: #fff !important;
  border-radius: 12px;
  margin-left: 10px;
  padding: 10px 24px;
  box-shadow: 0 2px 12px rgba(21,32,53,0.08);
  transition: background 0.16s, box-shadow 0.18s;
  font-weight: 700;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #111213;
  box-shadow: 0 4px 20px rgba(21,32,53,0.15);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  color: #152035;
  font-size: 2.1rem;
  line-height: 1;
  padding: 6px 16px;
  border-radius: 12px;
  margin-left: 18px;
  box-shadow: 0 0.5px 5px rgba(21,32,53,0.08);
  transition: background 0.17s, color 0.17s;
  z-index: 120;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #152035;
  color: #fff;
}

/* =========================
       MOBILE MENU OVERLAY
   ========================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(21,32,53,0.97);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.68,-0.04,.32,1.24);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  color: #fff;
  margin: 24px 32px 0 0;
  border-radius: 50%;
  padding: 8px 12px;
  transition: background .16s;
  z-index: 1001;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #2a2b2f;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 60px 0 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 600;
  font-size: 1.28rem;
  padding: 12px 0;
  border-radius: 7px;
  transition: color 0.14s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #40C2D9;
  background: rgba(61,72,100,0.18);
}

/* Hide nav on mobile and show burger */
@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1051px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
      BUTTONS & TAGS
   ========================= */
.cta-primary, .cta-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  padding: 12px 34px;
  border-radius: 16px;
  outline: none;
  border: none;
  transition: transform .13s, box-shadow .2s, background .16s, color .16s;
  margin-top: 8px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;

}
.cta-primary {
  background: #152035;
  color: #fff;
  box-shadow: 0 2px 16px rgba(21,32,53,0.10);
}
.cta-primary:hover, .cta-primary:focus {
  background: #111;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 30px rgba(21,32,53,0.17);
}
.cta-secondary {
  background: #fff;
  color: #152035;
  border: 2px solid #152035;
  box-shadow: 0 2px 7px rgba(21,32,53,0.07);
  margin-top: 8px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #152035;
  color: #fff;
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 4px 20px rgba(21,32,53,0.13);
}

.tag {
  font-size: 0.93rem;
  background: #eee;
  color: #152035;
  border-radius: 7px;
  padding: 3px 10px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* =========================
     FOOTER STYLES
   ========================= */
footer {
  background: #fff;
  color: #222;
  padding: 0;
  border-top: 1px solid #ececf1;
}
footer .container {
  flex-direction: column;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}
@media(max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
footer .logo img {
  height: 40px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 7px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  font-weight: 600;
  font-size: 0.99rem;
  transition: color .16s;
  padding: 5px 9px;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #40C2D9;
  background: #f2f7fc;
}
footer .text-section p {
  color: #666;
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* =========================
      FORM ELEMENTS
   ========================= */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: #f6f6fa;
  border: 1.5px solid #dbe0ed;
  border-radius: 8px;
  padding: 12px 16px;
  color: #222;
  margin-bottom: 18px;
  transition: border-color .16s;
  width: 100%;
  max-width: 490px;
}
input:focus, textarea:focus, select:focus {
  border-color: #152035;
  background: #fff;
  outline: 0;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3000;
  background: #152035;
  color: #fff;
  width: 100%;
  padding: 25px 20px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 16px rgba(21,32,53,0.16);
  transition: transform 0.35s, opacity 0.28s;
  transform: translateY(0);
  opacity: 1;
  gap: 28px;
  font-size: 1.08rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  max-width: 600px;
  margin-right: 14px;
  color: #fff;
}
.cookie-banner .cookie-btn {
  background: #fff;
  color: #152035;
  border-radius: 9px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 22px;
  margin-right: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(21,32,53,0.06);
  transition: background .14s, color .14s, box-shadow .13s, transform .14s;
}
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}
.cookie-banner .cookie-btn.accept {
  background: #40C2D9;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #25b2d7;
  box-shadow: 0 2px 18px #40C2D9ad;
  color: #fff;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #152035;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #F4F4F9;
  color: #152035;
  box-shadow: 0 2px 8px #e7eafd;
}
.cookie-banner .cookie-btn.reject {
  background: #222;
  color: #fff;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #333;
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(21,32,53,0.80);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #152035;
  border-radius: 18px;
  box-shadow: 0 4px 44px rgba(21,32,53,0.17);
  padding: 40px 32px 30px 32px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #152035;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #ececf1;
  font-size: 1rem;
}
.cookie-modal-category:last-child { border-bottom: none; }
.cookie-modal-category input[type="checkbox"] {
  accent-color: #40C2D9;
  width: 19px; height: 19px;
}
.cookie-modal-category.essential label {
  opacity: 1;
  font-weight: 600;
}
.cookie-modal-close {
  position: absolute;
  top: 8px; right: 14px;
  background: none;
  color: #152035;
  font-size: 1.7rem;
  border-radius: 8px;
  padding: 2px 7px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F4F4F9;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  font-size: 1rem;
  padding: 8px 20px;
}

/* =========================
 VISUAL EFFECTS & MICRO-ANIMS
   ========================= */
.card, .cta-primary, .cta-secondary, .tag, .cookie-btn {
  transition: box-shadow 0.18s, background 0.15s, color 0.16s, border 0.18s, transform 0.17s;
}

.card:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.98);
}

.testimonial-card:hover {
  transform: translateY(-2px) scale(1.011);
}

/* Subtle fade in up for major entries */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(24px); }
  to { opacity:1; transform: none; }
}
.section, .card, .testimonial-card, .cta-primary, .cta-secondary {
  animation: fadeInUp 0.85s cubic-bezier(.6,-0.05,.38,1.14) 0.08s both;
}

/* =========================
       RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  .section, main section, footer section {
    padding: 30px 7px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem;}
  h2 { font-size: 1.37rem;}
  .testimonial-card { padding: 18px 10px;}
  .content-wrapper, .card-container, .content-grid{
    flex-direction: column !important;
    gap: 16px !important;
  }
  .section, main section, footer section {
    margin-bottom: 40px;
    padding: 26px 3vw;
  }
  .text-image-section, .feature-item, .testimonial-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .content-grid, .card-container {
    justify-content: flex-start;
  }
}
@media (max-width: 510px) {
  h1 { font-size: 1.41rem;}
  h2 { font-size: 1.08rem;}
  .cta-primary, .cta-secondary{
    font-size: 0.94rem;
    padding: 10px 14vw;
  }
  .card, .testimonial-card{
    padding: 12px 4vw;
  }
  .cookie-modal-content{
    padding: 17px 8px 20px 8px;
  }
}

/* =========================
  OTHER INTERACTIVE ELEMENTS
   ========================= */
::-webkit-input-placeholder { color: #b9becb; }
::-moz-placeholder { color: #b9becb; }
:-ms-input-placeholder { color: #b9becb; }
::placeholder { color: #b9becb; }

/* =========================
     MONOCHROME STYLE TONES
   ========================= */
body, .section, main, footer {
  background: #F4F4F9;
}
.section, main section {
  border-radius: 18px;
  box-shadow: 0 1.5px 16px rgba(21,32,53,0.05); 
}
.card, .testimonial-card, .callout-box {
  background: #fff;
}
blockquote, .callout-box, .testimonial-card {
  border-left: 5px solid #152035;
  background: #fafafc;
}

/* Ensure emoji/star icons are monochrome-like */
.testimonial-card img[src*='icon-star'], .testimonial-card img[src*='icon-star-half'] {
  filter: grayscale(1) brightness(0.85);
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: bottom;
  margin-right: -2px;
  margin-left: 0;
}

/* =========================
   MANDATORY FLEX GAP & SPACING PATERNS
   ========================= */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {margin-bottom: 20px; position: relative;}
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ENFORCE MINIMUM CARD/SECTION SPACING */
.card, .section, .testimonial-card {
  margin-bottom: 20px;
}
.section:last-child, .card:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}

/* =========================
 SIBLING SPACING ENFORCEMENT
   ========================= */
.section + .section,
.card + .card,
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* =========================
  SCROLLBAR FOR DARK/ACCESS
   ========================= */
body::-webkit-scrollbar {
  width: 10px;
  background: #f3f4f6;
}
body::-webkit-scrollbar-thumb {
  border-radius: 11px;
  background: #b2b7c9;
}

/* Provide clear focus states */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid #40C2D9;
  outline-offset: 2px;
}

/* =========================
 FORMS (if needed: future proofing)
   ========================= */
input, textarea, select { transition: border-color 0.12s; }

/* =========================
  PRINT & ACCESSIBILITY
   ========================= */
@media print {
  nav, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
