/* ========= 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;
}

body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F5F5F5;
  color: #222;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: #B80021;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #CF142B; }

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

:root {
  --color-primary: #003366;
  --color-secondary: #fff;
  --color-background: #F5F5F5;
  --color-accent: #B80021;
  --color-accent-dark: #CF142B;
  --color-electric: #fae100;
  --color-electric-2: #00ffc7;
  --color-vibrant: #39a9ff;
  --color-highlight: #ffe784;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow-card: 0 6px 24px rgba(0,45,89,0.10), 0 2px 4px rgba(18,12,60,0.10);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

/* ========= CONTAINER LAYOUTS ========= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========= TYPOGRAPHY ========= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.17;
  color: var(--color-accent);
  background: linear-gradient(90deg, var(--color-electric), var(--color-accent-dark), var(--color-vibrant));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 24px;
  margin-bottom: 8px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--color-primary);
  margin-top: 10px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
  color: var(--color-accent-dark);
}
h4 {
  font-size: 1.18rem;
  font-weight: 700;
}
p, li, td, th {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #262b33;
}
p {
  margin-bottom: 10px;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 12px;
  color: #222;
}
strong, b {
  font-weight: 800;
}

/* ========= GENERAL SECTIONS & FLEX LAYOUTS ========= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  gap: 0;
}
@media (max-width: 768px) {
  section {
    padding: 26px 6px;
    margin-bottom: 32px;
    border-radius: var(--radius-md);
  }
}

.features ul, .features .city-grid, .features .card-container, .services-grid, .about-preview ul, .amenities-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features ul li, .about-preview ul li, .amenities-list ul li {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .features ul, .features .city-grid, .services-grid, .about-preview ul, .amenities-list ul {
    flex-direction: column;
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  padding: 24px 22px 18px 22px;
  min-width: 260px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s, transform 0.12s;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(0,45,89,0.18), 0 4px 8px rgba(18,12,60,0.13);
  transform: translateY(-4px) scale(1.016);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-highlight);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0,45,89,0.10);
  position: relative;
  flex-direction: column;
  color: #1a1d1f;
}
.testimonial-card p {
  font-size: 1.13rem;
  line-height: 1.4;
  color: #0c1421;
}
.testimonial-card span {
  align-self: flex-end;
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: 1rem;
  letter-spacing: .01em;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .testimonial-card {
    padding: 16px;
  }
}

.feature,
.features .feature,
.services-grid .service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 18px;
  margin-bottom: 20px;
  min-width: 240px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: box-shadow 0.16s, transform 0.15s;
  border-left: 5px solid var(--color-accent);
}
.feature img, .service-card img {
  width: 45px;
  height: 45px;
  margin-bottom: 3px;
  filter: drop-shadow(0 2px 4px rgba(39,234,232,0.15));
}
.feature:hover, .service-card:hover {
  box-shadow: 0 8px 24px rgba(18,12,60,0.13);
  border-left-color: var(--color-electric-2);
  background: var(--color-electric);
  transform: scale(1.025);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .services-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}
.service-card {
  flex: 1 1 260px;
  margin-bottom: 20px;
}
.service-card .price, .service-card .price-label {
  color: var(--color-accent-dark);
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 10px;
}

/* ========= HERO & CTA BANNERS ========= */
.hero {
  background: linear-gradient(90deg, var(--color-electric), var(--color-vibrant), var(--color-accent) 110%);
  color: #003366;
  min-height: 320px;
  padding-top: 56px;
  padding-bottom: 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 780px;
  margin: 0 auto;
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #003366 0%, #39a9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p {
  font-size: 1.20rem;
  color: #084299;
  line-height: 1.45;
  margin-bottom: 14px;
}

.cta-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 18px rgba(0,45,89,0.12);
  margin-bottom: 60px;
  padding: 38px 20px;
}
.cta-banner .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.cta-banner h2 {
  color: var(--color-electric);
  font-size: 2.1rem;
}
.cta-banner p {
  color: #d3edff;
  margin-bottom: 12px;
}

/* ========= TABLES ========= */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,45,89,0.08);
}
th, td {
  padding: 14px 10px;
  text-align: left;
  font-size: 1rem;
  border-bottom: 1px solid #e4e7ef;
}
th {
  background: var(--color-vibrant);
  color: #003366;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.04rem;
}
tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  table, tbody, thead, tr, td, th { display: block; width: 100%; }
  thead { display: none; }
  tr {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0,45,89,0.09);
    background: #fff;
    padding: 2px 5px 4px 5px;
  }
  td {
    padding: 10px 6px;
    border-bottom: none;
    position: relative;
  }
  td:before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: var(--color-accent-dark);
    margin-bottom: 2px;
    font-size: 0.9rem;
  }
}

/* ========= BUTTONS & CTA LINKS ========= */
.cta-primary,
.cta-secondary,
button,
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.14rem;
  border-radius: var(--radius-sm);
  border: none;
  padding: 13px 32px;
  margin: 6px 0;
  cursor: pointer;
  transition: background 0.19s, color 0.16s, box-shadow 0.13s, transform 0.13s;
  position: relative;
  box-shadow: 0 3px 12px rgba(0,45,89,0.08);
  text-decoration: none;
  outline: none;
}
.cta-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(207,20,43,0.22);
  letter-spacing: 0.04em;
}
.cta-primary:hover,
.cta-primary:focus {
  background: var(--color-accent-dark);
  color: #ffe784;
  transform: translateY(-2px) scale(1.04);
}
.cta-secondary {
  background: var(--color-vibrant);
  color: #003366;
  border: 2px solid var(--color-primary);
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: #fff;
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 6px 24px rgba(57,169,255,0.13);
}
button, input[type='submit'] {
  background: var(--color-primary);
  color: #fae100;
  font-size: 1rem;
}
button:hover, input[type='submit']:hover, button:focus, input[type='submit']:focus {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 3px 15px rgba(18,12,60,0.14);
}

/* ========= HEADER & NAVIGATION ========= */
header {
  background: var(--color-secondary);
  box-shadow: 0 4px 14px rgba(29,75,112,.08);
  padding: 0;
  position: relative;
  z-index: 80;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  color: var(--color-primary);
  letter-spacing: .01em;
  transition: color 0.14s;
  position: relative;
  padding: 6px 6px;
}
.main-nav a.cta-primary {
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.main-nav a:not(.cta-primary):hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.main-nav a.cta-primary:hover { background: var(--color-accent-dark); color: #ffe784 !important; }

/* Logo adjust */
header img {
  height: 39px;
  margin-right: 14px;
}
.brand-footer img { height: 30px; margin-right: 10px; vertical-align: middle; }

/* ========= MOBILE MENU ========= */
.mobile-menu-toggle {
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 111;
  transition: background 0.2s, color 0.19s;
}
.mobile-menu-toggle:hover { background: var(--color-accent-dark); color: #fae100; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.62,-0.01,.58,1.17);
  z-index: 990;
  box-shadow: 0 6px 32px rgba(0,45,89,0.17);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1002;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 72px;
  align-items: flex-start;
  padding: 0 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
  padding: 8px 0px;
  width: 100%;
  border-bottom: 1px solid #f0f1f5;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover {
  color: var(--color-accent-dark);
  background: #fae100;
  border-radius: var(--radius-sm);
  padding-left: 12px;
}

@media (max-width: 1150px) {
  .main-nav {
    gap: 14px;
  }
  .main-nav a { font-size: 1rem; padding: 5px 2px; }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 11px;
  }
  .main-nav a { font-size: 0.99rem; padding: 4px 2px; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .container {
    gap: 6px;
    padding: 10px 10px;
  }
}

/* ========= FOOTER ========= */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 44px 0 22px 0;
  box-shadow: 0 -2px 12px rgba(0,45,89,0.09);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 22px;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-menu a {
  color: #fae100;
  text-decoration: underline;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-right: 8px;
  transition: color 0.14s;
}
.footer-menu a:hover {
  color: var(--color-accent-dark);
}
.brand-footer {
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  color: #ffe784;
}
.contact-footer p {
  color: #dbe9ff;
  font-size: 0.98rem;
  margin-bottom: 1px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .brand-footer, .contact-footer { margin-bottom: 7px; }
}

/* ========= LEGAL PAGES ========= */
.legal ul {
  margin-left: 1.2em;
  margin-bottom: 13px;
}
.legal h2, .legal h3 { margin-top: 22px; }
.legal p { margin-top: 7px; margin-bottom: 7px; }

/* ========= ADDRESS BLOCK ========= */
.address-block {
  background: #f7faff;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 14px 14px;
  color: #003366;
  font-size: 1rem;
  margin-bottom: 16px;
}

/* ========= MISC ELEMENTS ========= */
.neighborhood-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.neighborhood-profiles > div {
  flex: 1 1 291px;
  background: #f8fbff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 7px rgba(0,45,89,0.09);
  padding: 18px 15px;
  margin-bottom: 18px;
}
@media (max-width: 900px) {
  .neighborhood-profiles { flex-direction: column; gap: 14px; }
  .neighborhood-profiles > div { margin-bottom: 8px; }
}

/* ========= COOKIE CONSENT BANNER & MODAL ========= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #003366;
  color: #fff;
  z-index: 1200;
  width: 100vw;
  padding: 22px 24px 20px 24px;
  box-shadow: 0 -4px 22px rgba(0,45,89,0.19);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  font-family: var(--font-body);
  animation: fadeInUp 0.5s;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 15px 7px 12px 7px;
    font-size: 0.98rem;
  }
}
.cookie-banner p {
  font-size: 1.04rem;
  color: #ffe784;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  font-family: var(--font-display);
  padding: 7px 22px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.13s;
  margin-right: 6px;
  box-shadow: 0 2px 4px rgba(46,10,20,0.09);
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.accept:hover { background: var(--color-accent-dark); color: #ffe784; }
.cookie-btn.reject {
  background: #fff;
  color: var(--color-accent-dark);
  border: 2px solid var(--color-accent-dark);
}
.cookie-btn.reject:hover { background: #ffe784; color: var(--color-primary); }
.cookie-btn.settings {
  background: var(--color-vibrant);
  color: var(--color-primary);
}
.cookie-btn.settings:hover { background: #fff; color: var(--color-accent-dark); }

/* ======= COOKIE MODAL ======= */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.36);
  z-index: 1220;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeIn 0.35s;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 20px;
  max-width: 440px;
  width: 98vw;
  box-shadow: 0 18px 46px rgba(0,45,89,0.14);
  padding: 30px 22px 22px 22px;
  position: relative;
}
.cookie-modal-dialog h2 { color: var(--color-accent); font-size: 1.5rem; }
.cookie-modal-dialog .cookie-settings {
  margin: 20px 0;
  background: #f7faff;
  border-radius: 14px;
  padding: 14px 17px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label { font-family: var(--font-body); font-size: 1.13rem; color: var(--color-primary); }
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent-dark);
  width: 19px;
  height: 19px;
}
.cookie-category input[disabled] { filter: grayscale(1) opacity(0.77); }
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 23px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-accent-dark);
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal-close:hover { color: var(--color-vibrant); }

/* ========= ANIMATIONS ========= */
@keyframes fadeInUp {
  0% { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ========= RESPONSIVE LAYOUTS ========= */
@media (max-width: 1080px) {
  .container { max-width: 94vw; }
  section, .hero, .cta-banner { padding-left: 4vw; padding-right: 4vw; }
}
@media (max-width: 900px) {
  .hero { min-height: 220px; padding-top: 32px; padding-bottom: 38px; }
  .hero .content-wrapper { max-width: 98vw; }
  .services-grid { flex-direction: column; gap: 14px; }
  .card-container { gap: 14px; }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .brand-footer img { height: 24px; }
  .testimonial-card { font-size: 0.98rem; padding: 13px; }
}

@media (max-width: 600px) {
  .container { padding-left: 2vw; padding-right: 2vw; }
  .hero, section, .cta-banner {
    padding-left: 9px;
    padding-right: 9px;
    border-radius: 0px;
  }
  .about-preview ul, .features ul, .amenities-list ul, .services-grid, .neighborhood-profiles { flex-direction: column; gap: 8px; }
  .card-container { gap: 8px; }
}

/* ========= SCROLLBAR & SELECTION ========= */
::-webkit-scrollbar {
  width: 8px;
  background: #f3f3fa;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
}
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ========= UTILITIES ========= */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { flex-direction: column; }

/* ========= A11Y FOCUS STATE ========= */
a:focus, button:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-electric-2);
  outline-offset: 2px;
  z-index: 2222;
}

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