/* ---------------------------------------------------
   CSS RESET & BASE
---------------------------------------------------- */
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, menu, 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, 
main, 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;
  background: #171c27;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #e5e9f1;
  background: linear-gradient(120deg, #232f3e 0%, #305979 100%);
  min-height: 100vh;
  position: relative;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
}
*,*:before,*:after {
  box-sizing: inherit;
}

/* ---------------------------------------------------
   COLORS & TYPOGRAPHY
---------------------------------------------------- */
:root {
  --primary: #24496B;
  --primary-dark: #182c44;
  --secondary: #F2F2F2;
  --secondary-dark: #e8e8e8;
  --accent: #DB9B37;
  --accent-dark: #b37a23;
  --neon: #00e6ff;
  --surface: #232f3e;
  --card: #223049;
  --border: #304a69;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 2rem; line-height: 1.18; margin-bottom: 16px; }
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 12px; }
h4 { font-size: 1.05rem; margin-bottom: 10px; }
p, ul, ol, li, dl, dd, dt {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #e5e9f1;
  font-size: 1rem;
}
p {
  line-height: 1.7;
  margin-bottom: 16px;
}
strong, b {
  color: var(--accent);
}
a {
  color: var(--neon);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--accent); }

/* Typography fix for testimonials */
.testimonial-card p,
.testimonial-card .testimonial-name {
  color: #171c27;
}

.subheadline {
  color: #b7c8e6;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

/* ---------------------------------------------------
   LAYOUT CONTAINERS & FLEX SPACING
---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section,
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(36,73,107,0.11),0 1.5px 6px -1px rgba(0,0,0,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: 0 4px 24px 0 #00e6ff33, 0 1.5px 6px -1px #00e6ff33;
  border-color: var(--neon);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px 0 #24496B13;
  min-width: 270px;
  max-width: 370px;
  flex: 1 0 285px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
  transition: transform .16s cubic-bezier(.45,.05,.55,.95), box-shadow .3s;
}
.testimonial-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 16px 36px 0 #00e6ff22;
}
.testimonial-stars {
  font-size: 1.25rem;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
}
.feature-grid > *,
.company-features .feature-grid > *,
.neighborhoods .feature-grid > * {
  flex: 1 0 200px;
  background: var(--card);
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: 0 1px 4px 0 #00e6ff0a;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.feature-grid > *:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px 0 #db9b3733;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
/* Tables */
table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px 0 #24496B11;
}
thead th {
  padding: 16px 10px;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #304a69;
}
tbody tr:last-child td {
  border-bottom: none;
}
td img {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

/* Cards for highlights in neighborhood, about, etc */
.neighborhoods .feature-grid > *, .company-features .feature-grid > * {
  background: #223049;
  min-height: 170px;
}

.section:last-child { margin-bottom: 0; }

/*************************************************
     HEADER & NAV
*************************************************/
header {
  background: linear-gradient(90deg, #1d2737 0%, #24496B 100%);
  box-shadow: 0 1px 8px 0 #24496B13;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 0;
  gap: 14px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  color: #d9eafd;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a:focus {
  background: #264a6b;
  color: var(--accent);
}
.cta-btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--neon), var(--accent-dark));
  color: #222;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  font-size: 1.15rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 18px 0 #00e6ff16;
  cursor: pointer;
  margin-left: 13px;
  transition: filter .18s, background .22s;
  outline: none;
  position: relative;
}
.cta-btn.primary::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 3px;
  background: var(--neon);
  opacity: 0;
  transition: opacity .25s;
}
.cta-btn.primary:hover,
.cta-btn.primary:focus {
  filter: brightness(1.10) drop-shadow(0 0 8px var(--neon));
}
.cta-btn.primary:active::after {
  opacity: 1;
}
.cta-btn.secondary {
  background: var(--primary);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 1.06rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background .19s, color .19s, box-shadow .22s;
  box-shadow: 0 3px 12px 0 #db9b3722;
}
.cta-btn.secondary:hover,
.cta-btn.secondary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 3px 24px 0 #db9b3755;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--neon);
  cursor: pointer;
  margin-left: 15px;
  z-index: 300;
  transition: color .2s, filter .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--neon));
}

/*************************************************
     MOBILE MENU
*************************************************/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #151e28F7;
  z-index: 400;
  transform: translateX(-100vw);
  transition: transform .35s cubic-bezier(.37,1.6,.42,.95);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: var(--neon);
  border: none;
  font-size: 2.2rem;
  margin-right: 24px;
  cursor: pointer;
  transition: color .2s;
  z-index: 410;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
  margin-top: 30px;
  padding-left: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.22rem;
  color: #fff;
  padding: 13px 0 11px 0;
  border-bottom: 1px solid #22304966;
  width: fit-content;
  transition: color .16s, background .18s;
  border-radius: 5px;
  margin-bottom: 8px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--neon);
  background: #223049cc;
}

/*************************************************
    HERO/BANNER/MAIN
*************************************************/
.hero {
  background: linear-gradient(95deg, #2e4263 60%, #24496b 100%);
  border-bottom-left-radius: 60px 32px;
  border-bottom-right-radius: 60px 32px;
  padding-top: 58px;
  padding-bottom: 58px;
  position: relative;
  box-shadow: 0 4px 34px 0 #24496B13;
}
.hero h1 {
  color: var(--neon);
  text-shadow: 0 3px 24px #00e6ff57, 0 1.5px 2px #223049;
  letter-spacing: .02em;
}
.hero .cta-btn.primary {
  margin-top: 24px;
}

/*************************************************
    LISTS, DL, FAQ
*************************************************/
ul, ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  color: #e7ecf8;
  font-size: 1rem;
}
dt {
  font-family: 'Montserrat', sans-serif;
  color: var(--accent);
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 3px;
}
dd {
  margin-bottom: 10px;
  padding-left: 0px;
}
dl {
  margin-bottom: 14px;
}

/*************************************************
      FOOTER
*************************************************/
footer {
  background: linear-gradient(90deg, #182c44 0%, #110e24 100%);
  color: #e0eaff;
  padding: 0;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 45px 18px 30px 18px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 220px;
}
.brand-tagline { 
  font-size: 1.08rem;
  color: #b7c8e6;
  font-family: 'Roboto', sans-serif;
  margin-top: 7px;
}
.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 160px;
}
.footer-nav a, .footer-legal a {
  color: #b7c8e6;
  font-size: 1rem;
  transition: color .14s;
  border-radius: 4px;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--neon);
}
.footer-contact {
  min-width: 230px;
  font-size: 0.97rem;
  color: #e7ecf8;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-contact a {
  color: var(--neon);
}
footer img {
  filter: brightness(0.9) saturate(1.15);
  height: 39px;
  margin-bottom: 3px;
}

/*************************************************
     CTA-BUTTONS & MICROINTERACTIONS
*************************************************/
.cta-btn, .cta-btn.primary, .cta-btn.secondary {
  cursor: pointer;
  outline: none;
  border: none;
  transition: background .22s, color .22s, box-shadow .18s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.cta-btn:focus {
  outline: 2px solid var(--neon);
  box-shadow: 0 0 0 3px #00e6ff30;
}

/*************************************************
     TESTIMONIALS
*************************************************/
.testimonials {
  background: linear-gradient(97deg, #f2f2f2 0%, #b7e2ef 100%);
  border-radius: 32px;
  margin-bottom: 66px;
  padding-top: 40px;
  padding-bottom: 40px;
  box-shadow: 0 2px 26px 0 #00e6ff0a;
}
.testimonials h2 {
  color: var(--primary);
  margin-bottom: 36px;
}

/*************************************************
     Cookie Consent Banner
*************************************************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #222c36;
  color: #fff;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -8px 30px 0 #24496b33;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px 20px 20px 32px;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity .38s cubic-bezier(.23,1,.32,1), transform .38s cubic-bezier(.23,1,.32,1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  flex: 1 0 240px;
  color: #fff;
}
.cookie-banner .cookie-btn {
  margin-left: 12px;
  padding: 10px 23px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--accent), var(--neon) 65%);
  color: #182c44;
  cursor: pointer;
  transition: background .19s;
}
.cookie-banner .cookie-btn.settings {
  background: var(--primary);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-banner .cookie-btn.reject {
  background: #c1272d;
  color: #fff;
  margin-left: 8px;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  filter: brightness(1.08) drop-shadow(0 0 6px var(--neon));
}

/*************************************************
     COOKIE MODAL
*************************************************/
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,27,38,0.9);
  backdrop-filter: blur(2px);
  z-index: 10999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.23,1,.32,1);
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #232f3e;
  border-radius: 22px;
  box-shadow: 0 6px 44px 0 #24496b55;
  padding: 42px 28px 34px 28px;
  width: 96vw;
  max-width: 400px;
  color: #e5e9f1;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: modalpop .5s cubic-bezier(.23,1,.32,1);
}
@keyframes modalpop {
  0% { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 11px;
  font-size: 1rem;
}
.cookie-modal-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  margin-left: 8px;
}
.cookie-modal-category input[type=checkbox]:disabled {
  filter: grayscale(0.85);
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 22px;
  color: var(--neon);
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 20;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 17px;
}
.cookie-modal-actions button {
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  border-radius: 9px;
  border: none;
  background: var(--accent);
  color: #222c36;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s;
}
.cookie-modal-actions button:last-child {
  background: var(--primary);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cookie-modal-actions button:hover,
.cookie-modal-actions button:focus {
  filter: brightness(1.07) drop-shadow(0 0 5px var(--neon));
}

/*************************************************
     ABOUT & FAQ STYLES
*************************************************/
.company-features .feature-grid,
.neighborhoods .feature-grid {
  margin-bottom: 22px;
}
.team-intro {
  margin-top: 32px;
  background: #24496B1C;
  padding: 20px 16px;
  border-radius: 14px;
  font-size: 1.03rem;
}

/*************************************************
     UTILITIES
*************************************************/
@media (max-width: 1024px) {
  .footer-container { gap: 17px; padding: 38px 10px 18px 10px; }
}

@media (max-width: 900px) {
  .main-nav { gap: 13px; }
  .hero, .testimonials, .section, main > section { padding: 36px 6px; }
}

@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .nav-container { flex-wrap: wrap; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .cta-btn.primary { padding: 11px 20px; font-size: 1.03rem; }
  .footer-container {
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    padding: 34px 14px 15px 14px;
  }
  .feature-grid, .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .testimonial-card, .feature-grid > *, .company-features .feature-grid > *, .neighborhoods .feature-grid > * {
    min-width: unset;
    max-width: unset;
    width: 100%;
    margin-bottom: 20px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
}

@media (max-width: 540px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.06rem; }
  .hero { padding-top: 32px; padding-bottom: 30px; }
  .brand-tagline { font-size: 0.95rem; }
}

/*************************************************
    MISC & VISUAL ELEMENTS
*************************************************/
::-webkit-scrollbar {
  width: 8px;
  background: #212b37;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 4px;
}

/* Table fix for overflow */
.services-table { overflow-x: auto; }

/* Animations */
.cta-btn {
  transition: box-shadow .2s, background .18s, color .18s, filter .14s;
}
.cta-btn:active {
  filter: brightness(0.94);
}

/***************************
   OVERRIDES/MINOR FIXES
***************************/
.about-preview, .about-mission, .privacy-policy, .gdpr-info, .terms-conditions, .cookie-policy {
  background: #232f3e;
  border-radius: 20px;
  box-shadow: 0 1px 18px 0 #24496b0b;
  color: #e5e9f1;
  margin-bottom: 33px;
  padding: 35px 20px;
}
.advantages {
  background: #24496b11;
  border-radius: 11px;
  padding-top: 20px;
  padding-bottom: 20px;
}

/*************************************************
    NEON ACCENTS
*************************************************/
.cta-btn.primary, .cta-btn.secondary, .cookie-banner .cookie-btn {
  box-shadow: 0 0 10px 0 #00e6ff33;
}
.testimonial-card {
  border-left: 4px solid var(--accent);
}

/*************************************************
     Z-INDEX FOUNDATION
*************************************************/
header { z-index: 100; }
.mobile-menu { z-index: 400; }
.cookie-banner { z-index: 9999; }
.cookie-modal { z-index: 10999; }

/*************************************************
   END OF CSS STYLES
*************************************************/
