/* --- CSS RESET & BASE NORMALIZATION --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F9FC;
  color: #222;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1E4566;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ECAB1A;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.22;
  color: #1E4566;
}

/* --- BRAND COLOR VARIABLES (with fallbacks) --- */
:root {
  --color-primary: #1E4566;
  --color-secondary: #D6DBDF;
  --color-accent: #ECAB1A;
  --color-white: #FFF;
  --color-black: #222;
  --color-bg: #F6F9FC;
  --color-error: #f44336;
}

/* --- TYPOGRAPHY SCALE --- */
h1 { font-size: 2.5rem; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 18px; letter-spacing: -0.5px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; letter-spacing: 0; }
p, span, li { font-size: 1rem; letter-spacing: 0.01em; }
strong { font-weight: 700; }


/* --- CONTAINER & SECTION LAYOUTS --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}


/* --- FLEXBOX CARD & GRID LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 3px 18px 1px rgba(30, 69, 102, 0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 25px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
  flex: 1 1 calc(33.333% - 24px);
  z-index: 1;
}
.card:hover, .card:focus {
  transform: translateY(-7px) scale(1.03) rotate(-1deg);
  box-shadow: 0 7px 28px 4px rgba(236, 171, 26,.13);
  z-index: 2;
}
.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: linear-gradient(90deg, #F9F6DF 0%, #F9EADB 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(30,69,102,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  color: #222;
  font-size: 1.1rem;
}
.testimonial-card:hover {
  box-shadow: 0 7px 28px 4px rgba(236, 171, 26, 0.13);
  transform: scale(1.02) rotate(0.7deg);
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #1E4566;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-left: auto;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO SECTION --- */
.hero-section {
  background: linear-gradient(90deg, #ECAB1A 0%, #FFE876 100%);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  margin-bottom: 48px;
  padding: 60px 0 48px 0;
  display: flex;
  align-items: center;
  min-height: 340px;
  animation: heroFadeIn 1.2s ease;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-32px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-section h1 {
  color: #1E4566;
  font-size: 2.7rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.7em;
  font-weight: 900;
  letter-spacing: -2px;
  text-shadow: 2px 2px 0 #FFF2BD;
}
.hero-section p {
  color: #333;
  font-size: 1.22rem;
  margin-bottom: 1.5em;
  font-family: 'Roboto', sans-serif;
}


/* --- NAVIGATION --- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px 0 rgba(30,69,102,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 65px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 7px 15px;
  color: #1E4566;
  border-radius: 999px;
  font-size: 1.04rem;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #ECAB1A;
  color: #fff;
}
header nav a.cta-primary {
  background: #ECAB1A;
  color: #1E4566;
  padding: 10px 27px;
  border-radius: 200px;
  font-size: 1.09rem;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px 0 rgba(236,171,26,.18);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #1E4566;
  color: #FFF;
  box-shadow: 0 6px 18px 0 rgba(30, 69, 102,.14);
  transform: translateY(-2px) scale(1.05);
}
header nav img {
  height: 38px;
  margin-right: 14px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #FFF;
  border: 2px solid #ECAB1A;
  color: #ECAB1A;
  font-size: 2rem;
  padding: 4px 18px;
  border-radius: 40px;
  margin-left: auto;
  margin-right: 0;
  z-index: 120;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.mobile-menu-toggle:focus {
  background: #FFE876;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF7E1;
  box-shadow: 0 8px 40px 0 rgba(30,69,102,0.18);
  z-index: 200;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.76,0.01,0.37,0.99);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 28px 0 28px;
}
.mobile-menu.open {
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.33,1,0.68,1);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #ECAB1A;
  color: #1E4566;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px 0 rgba(30,69,102,0.08);
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #1E4566;
  color: #FFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.24rem;
  font-family: 'Montserrat', sans-serif;
  color: #1E4566;
  padding: 12px 15px;
  border-radius: 20px;
  background: none;
  transition: background 0.16s, color 0.2s;
  text-align: left;
  font-weight: 700;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ECAB1A;
  color: #FFF;
}

/* --- FOOTER --- */
footer {
  background: #1E4566;
  color: #FFF;
  padding: 42px 0 18px 0;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: 0 -1px 12px 0 rgba(30,69,102,0.09);
  margin-top: 80px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
footer nav a {
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.01rem;
  text-decoration: underline dashed 2px #ECAB1A;
  padding: 3px 8px;
  border-radius: 12px;
  transition: background 0.16s, color 0.2s;
}
footer nav a:hover, footer nav a:focus {
  color: #ECAB1A;
  background: #FFF;
}
footer p {
  text-align: center;
  margin-top: 6px;
  font-size: 0.96rem;
}


/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(30,69,102,0.07);
  min-width: 220px;
  flex: 1 1 230px;
  padding: 25px 20px 18px 20px;
  transition: box-shadow 0.18s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 2px dotted #ECAB1A;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 18px 3px rgba(236, 171, 26, 0.15);
  transform: scale(1.04) rotate(1.5deg);
  z-index: 2;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  background: #FFE676;
  padding: 7px;
  border-radius: 18px;
  box-shadow: 0 1px 6px 0 rgba(236,171,26,0.12);
  animation: floatIcon 2.5s ease-in-out infinite alternate;
}
@keyframes floatIcon {
  0% { transform: translateY(0) rotate(-8deg); }
  100% { transform: translateY(-8px) rotate(6deg); }
}

/* --- TEAM GRID --- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
.team-member {
  background: #FFF7E1;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(30,69,102,0.07);
  flex: 1 1 230px;
  min-width: 220px;
  padding: 26px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px dashed #ECAB1A;
  align-items: flex-start;
}
.team-member h3 {
  font-size: 1.22rem;
  color: #1E4566;
}
.team-member span {
  font-size: 0.97rem;
  color: #1E4566;
  background: #ECAB1A;
  padding: 4px 13px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* --- PROPERTY HIGHLIGHTS, FILTER OPTIONS --- */
.property-highlights ul li,
.filter-options ul li {
  background: #EBF6F7;
  color: #1E4566;
  border-radius: 13px;
  padding: 8px 18px;
  margin-bottom: 9px;
  display: inline-block;
  font-size: 1.08rem;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 1px 6px 0 rgba(30,69,102,0.05);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.property-highlights ul li:hover, .filter-options ul li:hover {
  background: #ECAB1A;
  color: #FFF;
}
.property-highlights h3, .filter-options h3 {
  font-size: 1.1rem;
  margin-bottom: 11px;
  color: #1E4566;
}


/* --- GENERAL LISTS --- */
ul, ol {
  margin-left: 1px;
  padding-left: 20px;
  margin-bottom: 10px;
}
ul li {
  margin-bottom: 9px;
  position: relative;
}
ul li::before {
  content: '•';
  color: #ECAB1A;
  font-weight: 700;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-size: 1.2em;
}

/* --- BUTTONS & CALLS TO ACTION --- */
.cta-primary,
button, .btn {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  padding: 12px 28px;
  background: #ECAB1A;
  color: #1E4566;
  border: none;
  border-radius: 200px;
  font-weight: 800;
  font-size: 1.12rem;
  box-shadow: 0 2px 10px 0 rgba(236,171,26,0.14);
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  margin-top: 15px;
}
.cta-primary:hover, button:hover, .btn:hover,
.cta-primary:focus, button:focus, .btn:focus {
  background: #1E4566;
  color: #FFF;
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 8px 18px 0 rgba(30,69,102,.13);
}

/* --- ACCORDIONS & FAQ --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #FFF7E1;
  border-radius: 16px;
  padding: 19px 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 10px 0 rgba(236,171,26,0.06);
  transition: box-shadow 0.18s, transform 0.18s;
  border-left: 5px solid #ECAB1A;
}
.faq-item:hover {
  box-shadow: 0 4px 18px 0 rgba(236,171,26,0.13);
  transform: translateY(-2px) scale(1.02);
}
.faq-item h3 {
  font-size: 1.1rem;
  color: #1E4566;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.faq-search {
  margin-top: 30px;
  background: #EBF6F7;
  border-radius: 15px;
  padding: 19px 22px;
  box-shadow: 0 1px 10px 0 rgba(30,69,102,0.06);
  font-size: 1.09rem;
}

/* --- CONTACT DETAILS, BLOCKS --- */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #FFF;
  border-radius: 12px;
  padding: 14px 22px;
  min-width: 210px;
  box-shadow: 0 1px 8px 0 rgba(30,69,102,0.06);
}
.address-block {
  background: #FFE876;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(236,171,26,0.07);
}
.contact-snippet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-bottom: 25px;
}
.contact-snippet img {
  width: 28px;
  height: 28px;
}

.location-map {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  background: #EBF6F7;
  border-radius: 12px;
  padding: 12px 22px;
}
.public-transport, .parking-info {
  margin-bottom: 17px;
}

/* --- NEXT STEPS, SUPPORT DETAILS --- */
.next-steps ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.support-details {
  background: #FFE876;
  border-radius: 10px;
  padding: 12px 17px;
  margin-top: 12px;
  font-size: 1rem;
}
.support-details a {
  color: #1E4566;
  font-weight: 700;
}

/* --- TEXT SECTION --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section h2, .text-section h3 {
  margin-top: 9px;
}

/* --- ANIMATIONS/MICRO-INTERACTIONS --- */
.cta-primary, button, .btn, .feature-grid > div, .card, .testimonial-card, .team-member, .faq-item {
  transition: box-shadow 0.22s, color 0.18s, background 0.18s, transform 0.18s;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #1E4566;
  color: #FFF;
  z-index: 600;
  padding: 24px 20px 24px 20px;
  box-shadow: 0 -3px 20px 0 rgba(30,69,102,0.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  animation: cookieSlideIn 0.8s cubic-bezier(0.18, 0.89, 0.38, 1.47);
}
@keyframes cookieSlideIn {
  from { transform: translateY(120px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  background: #ECAB1A;
  color: #1E4566;
  margin: 0 7px;
  font-size: 1rem;
  padding: 11px 21px;
  border-radius: 22px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #FFE876;
  color: #1E4566;
}
.cookie-banner .cookie-settings {
  background: #FFF;
  color: #1E4566;
  border: 2px solid #ECAB1A;
  font-weight: 700;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 650;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%) scale(0.96);
  width: 96vw;
  max-width: 390px;
  background: #FFF;
  color: #1E4566;
  box-shadow: 0 9px 32px 0 rgba(30,69,102,0.22);
  border-radius: 21px;
  padding: 34px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.32s, transform 0.36s;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.07rem;
  font-family: 'Montserrat', sans-serif;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #ECAB1A;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category {
  margin-bottom: 13px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.cookie-modal .cookie-modal-close {
  margin-left: auto;
  background: #ECAB1A;
  color: #1E4566;
  border: none;
  font-size: 1.35rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  align-self: flex-end;
  margin-top: -30px;
  margin-bottom: 6px;
  cursor: pointer;
}

/* --- ERROR / SUCCESS SNIPPETS (for forms) --- */
.error-snippet {
  color: var(--color-error);
  background: #fae5e9;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.98rem;
  margin-bottom: 17px;
}
.success-snippet {
  color: #319457;
  background: #dbfae5;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.98rem;
  margin-bottom: 17px;
}


/* --- UTILITIES --- */
.hide { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }


/* --- RESPONSIVE DESIGN: MOBILE-FIRST --- */
@media (max-width: 1024px) {
  .hero-section { padding: 48px 0 38px 0; border-bottom-left-radius: 38px; border-bottom-right-radius: 38px; }
  .feature-grid, .team-grid { gap: 20px; }
}
@media (max-width: 900px) {
  .container { max-width: 97vw; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 10px; }
  .section { padding: 30px 5px; }
  .content-wrapper { gap: 22px; }
  header nav { gap: 9px; padding: 11px 0; }
  .feature-grid, .team-grid { flex-direction: column; gap: 18px; }
  .property-highlights ul li, .filter-options ul li { padding: 8px 12px; }
  .testimonial-card, .card, .feature-grid > div, .team-member { min-width: 0; }
  .hero-section { padding: 34px 0 28px 0; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
  .hero-section h1 { font-size: 2.1rem; }
  .hero-section .container { align-items: flex-start; }
  .contact-details, .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .public-transport, .parking-info {
    margin-bottom: 13px;
    padding: 0;
  }
  .location-map {
    padding: 10px 10px;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 12px;
    top: 13px;
  }
  header nav {
    display: none;
  }
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding: 20px 7px 18px 12px;
  }
  .cookie-modal {
    padding: 25px 10px 18px 10px;
    min-width: 0;
  }
  .filter-options ul li, .property-highlights ul li {
    font-size: 0.97rem;
    padding: 8px 7px;
  }
}

/* --- PLAYFUL DYNAMIC SPECIALS: FUN FONTS & DECOR --- */
body, h1, h2, h3 {
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .cta-primary {
  letter-spacing: 1px;
  word-spacing: 2px;
}
.feature-grid > div, .team-member, .card {
  transition: box-shadow 0.2s, transform 0.21s;
}
.feature-grid > div::before {
  content: '';
  display: block;
  position: absolute;
  left: -22px;
  top: 35px;
  width: 34px;
  height: 34px;
  background: url('../assets/icons/sparkle.svg') no-repeat center/contain, #ECAB1A20;
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
}
.team-member:nth-child(odd) {
  background: #EBF6F7;
  border-left: 6px solid #1E4566;
}

/* Decorative playful underline for CTA */
.cta-primary {
  position: relative;
  overflow: hidden;
}
.cta-primary::after {
  content: '';
  display: block;
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 9px;
  height: 7px;
  background: #FFE876;
  border-radius: 7px;
  opacity: 0.45;
  z-index: 0;
  animation: bounceLine 1.8s infinite alternate;
}
@keyframes bounceLine {
  0% { transform: translateY(0) scaleX(1); }
  100% { transform: translateY(-2px) scaleX(1.16); }
}
.cta-primary > span { position: relative; z-index: 1; }

/* --- END --- */
