/* CSS RESET & BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #1e2329;
  color: #F2F5F8;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #76A17D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2F5F8;
}
ul, ol {
  margin-left: 1.2em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
  margin-bottom: 16px;
  color: #F2F5F8;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #D6DBE1;
}
strong {
  color: #76A17D;
}
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* SECTION AND CARD LAYOUTS (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #21272E;
  border-radius: 16px;
  box-shadow: 0 6px 28px 0 #1a1d21;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #232C34;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 #1c2329;
  position: relative;
  padding: 20px 24px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 36px 0 #162430;
  transform: translateY(-2px) scale(1.01);
}
.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;
  background: #F2F5F8;
  color: #232C34;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 #1c2329;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: #22406B;
  margin: 0;
  line-height: 1.4;
  font-size: 1.1rem;
}
.testimonial-card .author {
  color: #444E5E;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* BUTTONS & LINKS */
.cta, .button {
  display: inline-block;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  background: #22406B;
  color: #F2F5F8;
  padding: 14px 36px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 #1a1d21;
  letter-spacing: 0.05em;
  transition: background 0.22s, color 0.16s, transform 0.12s;
  margin-top: 16px;
  outline: none;
}
.cta.secondary, .button.secondary {
  background: #76A17D;
  color: #232C34;
}
.cta:hover, .button:hover,
.cta:focus, .button:focus {
  background: #182e47;
  color: #76A17D;
  transform: translateY(-1px) scale(1.01);
}
.cta.secondary:hover, .button.secondary:hover,
.cta.secondary:focus, .button.secondary:focus {
  background: #476f57;
  color: #F2F5F8;
}

/* MAIN NAV */
header {
  background: #232C34;
  box-shadow: 0 3px 12px #181a1c08;
  position: sticky;
  top: 0;
  z-index: 50;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: flex-start;
  padding: 18px 0 18px 0;
}
.main-nav img {
  height: 38px;
  margin-right: 16px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #D6DBE1;
  transition: color 0.18s;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 4px 8px;
}
.main-nav a.cta {
  background: #76A17D;
  color: #222f39 !important;
  border-radius: 18px;
  padding: 10px 26px;
  box-shadow: 0 2px 6px #17222c21;
  margin-left: auto;
}
.main-nav a.cta:hover {
  background: #89bd92;
  color: #22406B !important;
}
.main-nav a:hover, .main-nav a:focus {
  color: #76A17D;
}
.mobile-menu-toggle {
  display: none;
  margin-left: auto;
  background: #232C34;
  color: #F2F5F8;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background .17s, color .17s, box-shadow .18s;
  z-index: 222;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #22406B;
  color: #76A17D;
  box-shadow: 0 3px 18px #22406B55;
}

/* MOBILE NAVIGATION OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 40, 47, 0.97);
  z-index: 299;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F2F5F8;
  font-size: 2.2rem;
  margin: 20px 24px auto auto;
  align-self: flex-end;
  padding: 0 6px;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 301;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #76A17D;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-top: 36px;
  padding-left: 40px;
}
.mobile-nav a {
  font-size: 1.3rem;
  color: #F2F5F8;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  padding: 8px 0;
  letter-spacing: 0.03em;
  transition: color 0.22s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #76A17D;
}

/* HERO, SECTIONS, CARDS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #232C34;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 #1a1c23;
}
.city-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.city-card {
  background: #222a33;
  border: 1px solid #2f3945;
  border-radius: 14px;
  box-shadow: 0 1px 7px rgba(34,64,107,0.10);
  padding: 28px 24px 20px 24px;
  min-width: 260px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.16s, border-color 0.2s;
}
.city-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}
.city-card h3 {
  color: #76A17D;
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 0;
}
.city-card p {
  color: #D6DBE1;
  font-size: 1rem;
}
.city-card:hover {
  box-shadow: 0 4px 23px #0a0e1355;
  border-color: #76A17D;
  transform: translateY(-3px) scale(1.01);
}

.team-member-grid, .pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-member-grid > div, .pricing-cards > div {
  background: #242b33;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 1px 7px 0 #23324399;
  color: #F2F5F8;
  min-width: 210px;
  flex: 1 1 210px;
  transition: box-shadow 0.19s, transform 0.12s;
}
.team-member-grid > div:hover, .pricing-cards > div:hover {
  box-shadow: 0 4px 18px #222f3955;
  transform: translateY(-2px);
}

.credentials-highlight {
  margin-top: 24px;
  color: #76A17D;
  background: #1e242a;
  font-family: 'Montserrat', sans-serif;
  border-left: 5px solid #22406B;
  padding: 16px 24px;
  border-radius: 16px;
}

.review-summary {
  background: #232C34;
  border-left: 5px solid #76A17D;
  padding: 16px 24px;
  border-radius: 14px;
  color: #F2F5F8;
  font-weight: 400;
  margin-top: 18px;
  margin-bottom: 14px;
  font-size: 1.12rem;
}

.financing-tips ul {
  padding-left: 40px;
  font-size: 1rem;
  color: #76A17D;
  list-style: disc inside;
  margin-top: 10px;
}

/* FOOTER */
footer {
  background: #1b222a;
  padding: 32px 0 16px 0;
  margin-top: 50px;
  border-radius: 18px 18px 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #76A17D;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #22406B;
  color: #F2F5F8;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #929ba3;
}
.footer-brand img {
  width: 28px;
  height: 28px;
}
.footer-brand span {
  font-size: 1rem;
  color: #bfcad8;
}

/* TEXT SECTIONS */
.text-section {
  background: transparent;
  padding: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul {
  color: #bfcad8;
  margin-bottom: 10px;
  padding-left: 18px;
  list-style: disc;
}
.text-section li {
  margin-bottom: 7px;
  line-height: 1.45;
}

/* CONTENT-SPECIFIC STYLES */
.pricing-cards > div p {
  color: #76A17D;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
}

/* MODALS, ANIMATIONS & MICROS */
::-webkit-scrollbar {
  width: 10px;
  background: #232C34;
}
::-webkit-scrollbar-thumb {
  background: #22406B;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
  }
  .footer-nav {
    gap: 12px;
  }
}

@media (max-width: 786px) {
  section, .section {
    padding: 32px 10px;
  }
  .container {
    min-width: 0;
    padding: 0 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .city-cards, .card-container, .team-member-grid, .pricing-cards, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.58rem;
  }
  h2 {
    font-size: 1.19rem;
  }
  .content-wrapper {
    gap: 14px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: #232C34;
  color: #F2F5F8;
  border: 1.8px solid #76A17D;
  border-radius: 14px;
  box-shadow: 0 8px 34px rgba(34, 64, 107, .13);
  z-index: 400;
  padding: 22px 18px 22px 26px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.34,1.56,.64,1), opacity 0.2s;
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  gap: 10px;
  margin-left: auto;
}
.cookie-btn {
  background: #22406B;
  color: #F2F5F8;
  border: none;
  border-radius: 32px;
  padding: 8px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.13s;
  margin: 0;
}
.cookie-btn.settings {
  background: #76A17D;
  color: #232C34;
}
.cookie-btn.reject {
  background: transparent;
  color: #76A17D;
  border: 1.5px solid #76A17D;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #182e47;
  color: #76A17D;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #476f57;
  color: #F2F5F8;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #232C34;
  color: #F2F5F8;
}
@media (max-width: 500px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    left: 3vw;
    right: 3vw;
    padding: 15px 7px 15px 10px;
    font-size: .97rem;
  }
  .cookie-banner-actions {
    gap: 7px;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34, 40, 47, 0.88);
  z-index: 505;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn .26s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #F2F5F8;
  color: #232C34;
  border-radius: 22px;
  box-shadow: 0 6px 40px #1e2329dd;
  padding: 34px 29px;
  max-width: 420px;
  width: 90vw;
  max-height: 92vh;
  overflow-y: auto;
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
}
.cookie-modal h3 {
  color: #22406B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.48rem;
  margin-bottom: 20px;
  margin-top: 0;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #22406B;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #76A17D;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #dde4eb;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 600;
}
.cookie-toggle {
  white-space: nowrap;
  font-size: 1.14rem;
  padding: 7px 18px;
  border-radius: 22px;
  border: 2px solid #22406B;
  background: #fff;
  color: #22406B;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.14s, border 0.13s;
}
.cookie-toggle.active {
  background: #76A17D;
  color: #232C34;
  border-color: #76A17D;
}
.cookie-toggle[disabled], .cookie-toggle:disabled {
  background: #AAA;
  color: #888;
  cursor: not-allowed;
  opacity: .67;
}

/* MISC UTILS */
@media (max-width: 900px) {
  .team-member-grid > div, .pricing-cards > div, .city-card {
    min-width: 160px;
    flex: 1 1 140px;
  }
}

@media (max-width: 600px) {
  .city-card, .card, .testimonial-card, .team-member-grid > div, .pricing-cards > div {
    padding: 14px 11px;
  }
  .city-card img {
    width: 36px;
    height: 36px;
  }
  .footer-brand {
    gap: 7px;
  }
}

/* VISUAL METALLIC ACCENTS */
.city-card {
  border-top: 3px solid #76A17D;
  box-shadow: 0 0.5px 12px 0 #92cfa952, 0 8px 21px #1624302A;
}
.card {
  border-top: 3px solid #22406B;
}
.credentials-highlight {
  border-left: 6px solid #7e939e;
}
.review-summary {
  border-left: 6px solid #22406B;
}

/* FOCUS VISIBLE STYLES */
a:focus, button:focus, .cookie-btn:focus, .cookie-toggle:focus, .cookie-modal-close:focus {
  outline: 2px dashed #76A17D;
  outline-offset: 2px;
}

/* INPUT (if later added) */
input, textarea, select {
  font-family: inherit;
  border-radius: 8px;
  background: #232C34;
  color: #F2F5F8;
  padding: 10px 14px;
  border: 1.5px solid #22406B;
  margin-bottom: 13px;
  font-size: 1rem;
  transition: border 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: #76A17D;
  background: #242f3b;
}

/* ANIMATED APPEARANCE */
@media (prefers-reduced-motion: no-preference) {
  .testimonial-card, .card, .city-card, .team-member-grid > div, .pricing-cards > div {
    transition: box-shadow 0.18s, transform 0.12s, border-color 0.13s;
  }
  .cta, .button, .cookie-btn {
    transition: background 0.18s, color 0.13s, transform 0.14s;
  }
}
