/* RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*,*::before,*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F2F6F9;
  color: #1B2533;
  line-height: 1.6;
  min-height: 100vh;
}
footer p {
  color: white;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1B4775;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #138A72;
}
ul,ol {
  padding-left: 20px;
}
section,footer,header,main,nav,aside,article,div {
  box-sizing: border-box;
}

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

/* COLOR UTILS */
.bg-primary { background: #1B4775; color: #fff; }
.bg-secondary { background: #138A72; color: #fff; }
.bg-accent { background: #F2F6F9; }
.text-primary { color: #1B4775; }
.text-secondary { color: #138A72; }

/* HEADERS/Typography */
h1, .h1 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #1B4775;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1B4775;
}
h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1B4775;
}
p,li,ul,ol {
  font-size: 1rem;
  color: #1B2533;
  margin-bottom: 0.5em;
}
strong {
  color: #1B4775;
  font-weight: 700;
}
.category {
  background: #E8EEF3;
  color: #1B4775;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 4px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
  text-align: center;
  border: none;
  box-shadow: 0 2px 8px rgba(27,71,117,0.09);
  margin-right: 12px;
}
.btn-primary {
  background: #1B4775;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: #138A72 !important;
  color: #fff;
  box-shadow: 0 4px 16px rgba(19,138,114,0.14);
}
.btn-secondary {
  background: #fff;
  color: #1B4775;
  border: 1.5px solid #1B4775;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #E8EEF3;
  color: #138A72;
  border-color: #138A72;
}

/* HEADER & NAV STYLES */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(27,71,117,.06);
  position: relative;
  z-index: 120;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
  position: relative;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 3px;
  transition: background .18s, color 0.18s;
  color: #1B4775;
}
.main-nav a:hover, .main-nav a:focus:not(.btn-primary) {
  background: #E8EEF3;
  color: #138A72;
}
.main-nav .btn-primary {
  margin-right: 0;
}

/* Hamburger (Mobile Toggle) */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #1B4775;
  cursor: pointer;
  display: none;
  padding: 6px 12px;
  margin-left: 12px;
  z-index: 200;
  transition: color .2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #138A72;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31, 62, 96, 0.97);
  z-index: 9999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 42px 26px 32px 26px;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin-bottom: 20px;
  cursor: pointer;
  line-height: 1.1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 0;
  border-radius: 3px;
  transition: background .18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #138A72;
  color: #fff;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 10px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 6px;
  }
}
@media (max-width: 860px) {
  .main-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(125deg, #1B4775 50%, #138A72 100%);
  color: #fff;
  min-height: 270px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}
.hero .content-wrapper {
  gap: 18px;
  color: #fff;
  align-items: flex-start;
  margin-top: 34px;
  margin-bottom: 34px;
}
.hero h1 {
  color: #fff;
  font-size: 2.4rem;
}
.hero p {
  color: #F2F6F9;
  font-size: 1.2rem;
}

/* == SECTIONS & SPACING == */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features, .services, .testimonials, .contact, .cta, .about-philosophy,
.team, .blog-list, .property-search, .thank-you, .legal, .map {
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .content-wrapper,
.services .content-wrapper,
.testimonials .content-wrapper,
.contact .content-wrapper,
.cta .content-wrapper,
.about-philosophy .content-wrapper,
.team .content-wrapper,
.blog-list .content-wrapper,
.property-search .content-wrapper,
.thank-you .content-wrapper,
.legal .content-wrapper,
.map .content-wrapper {
  gap: 30px;
}

/* == CARD / FLEX LAYOUTS == */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(27,71,117,0.09);
  padding: 24px;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(19,138,114,.09);
}
.content-grid, .feature-grid, .testimonial-grid, .blog-overview, .team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid, .testimonial-grid, .blog-overview {
  row-gap: 32px;
}
.feature, .team-member, .blog-article {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(27,71,117,0.09);
  padding: 24px 20px;
  flex: 1 1 290px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 230px;
  min-height: 180px;
  transition: box-shadow .18s, transform .20s;
}
.feature img {
  height: 38px;
  margin-bottom: 10px;
}
.feature:hover, .team-member:hover, .blog-article:hover {
  box-shadow: 0 6px 24px rgba(27,71,117,0.13);
  transform: translateY(-2px) scale(1.02);
}

.team-list {
  gap: 24px;
  flex-wrap: wrap;
}

/* == TESTIMONIALS == */
.testimonial-slider, .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-top: 8px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(27,71,117,0.08);
  padding: 20px 28px;
  flex: 1 1 320px;
  min-width: 240px;
  max-width: 375px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .18s, transform .18s;
}
.testimonial-card:before {
  content: '“';
  font-size: 2.6rem;
  color: #1B4775;
  opacity: 0.19;
  position: absolute;
  top: 12px;
  left: 16px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #1B2533;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-name {
  font-weight: 600;
  color: #138A72;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(27,71,117,0.14);
  transform: translateY(-3px) scale(1.01);
}

/* == FOOTER == */
footer {
  background: #1B4775;
  color: #fff;
  padding: 42px 0 16px 0;
  border-top: 4px solid #138A72;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  height: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #E8EEF3;
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: 'Montserrat','Open Sans',Arial,sans-serif;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #138A72;
  text-decoration: underline;
}
.footer-contact {
  color: #E8EEF3;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* == CONTACT DETAILS == */
.contact-details, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.08rem;
}
.contact-details img,
.contact-info img {
  width: 22px;
  margin-right: 7px;
  vertical-align: middle;
}
.contact-details p,
.contact-info p {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #1B2533;
}

/* == SERVICE LIST == */
.service-list {
  list-style: disc inside;
  color: #1B2533;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 8px;
}

/* == MAP PLACEHOLDER == */
.map-placeholder {
  background: #E8EEF3;
  border-radius: 6px;
  padding: 28px 18px;
  color: #1B2533;
  font-size: 1.09rem;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
}
.map-placeholder img {
  width: 34px;
}

/* == LEGAL SECTIONS == */
.legal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(27,71,117,0.06);
  margin-top: 36px;
  margin-bottom: 60px;
  padding: 32px 28px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.08rem;
}
.text-section h2 {
  margin-top: 16px;
  font-size: 1.3rem;
  color: #138A72;
}

/* == Blog Articles == */
.blog-overview {
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.blog-article {
  flex: 1 1 290px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(27,71,117,0.10);
  padding: 24px 20px;
  min-width: 200px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

a.blog-btn {
  color: #138A72;
  font-weight: 600;
  text-decoration: underline;
}

/* == CTA == */
.cta {
  background: #E8EEF3;
  border-radius: 6px;
}

/* == Responsive Layouts == */
@media (max-width: 1050px) {
  .container {
    max-width: 96vw;
  }
  .footer-nav { flex-direction: row; gap: 18px; }
}
@media (max-width: 860px) {
  .content-grid, .feature-grid, .testimonial-grid, .blog-overview, .team-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .footer-nav { flex-direction: column; gap: 8px; }
}
@media (max-width: 768px) {
  h1,.h1 { font-size: 2rem; }
  h2,.h2 { font-size: 1.4rem; }
  .section, .hero,.features,.services,.testimonials,.contact,.cta, .about-philosophy, .team, .blog-list, .property-search, .thank-you, .legal, .map {
    margin-bottom: 35px;
    padding: 26px 0;
  }
  .testimonial-card,.feature,.team-member,.blog-article {
    padding: 18px 10px;
    min-width: 0;
    max-width: 100%;
  }
  .hero {
    min-height: 170px;
    padding: 18px 0;
  }
  .hero h1 { font-size: 1.45rem; }
  .footer-nav { flex-direction: column; gap: 10px; }
  .footer-contact p { font-size: 0.97rem; }
  .about-philosophy .content-wrapper, .team .content-wrapper, .services .content-wrapper {
    gap: 18px;
  }
  .testimonial-slider, .testimonial-grid, .content-grid, .feature-grid, .blog-overview, .team-list {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .container { padding: 0 7vw; }
  .legal, .cta, .thank-you, .map-placeholder { padding: 18px 8px; }
}
@media (max-width: 500px) {
  .container { padding: 0 2vw; }
  .hero h1 { font-size: 1.1rem; }
  h2, .h2 { font-size: 1.1rem; }
  .btn-primary, .btn-secondary { padding: 10px 18px; font-size: 0.97rem; }
}

/* == MICRO-INTERACTIONS == */
a, .btn-primary, .btn-secondary, .mobile-menu-toggle, .footer-nav a, .feature, .team-member, .testimonial-card {
  transition: background .2s, color .2s, box-shadow .18s, transform .19s;
}

/* == MISC == */
::-webkit-scrollbar { width: 8px; background: #F2F6F9; }
::-webkit-scrollbar-thumb { background: #E8EEF3; border-radius: 4px; }

/* ============================
   MOBILE MENU ANIMATION
   (Show/hide handled by .active)
============================ */
.mobile-menu {
  /* handled above */
}

/* ============================
   COOKIE CONSENT BANNER
============================ */
.cookie-banner {
  position: fixed;
  z-index: 10001;
  left: 0; right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: transparent;
  pointer-events: none;
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 24px rgba(27,71,117,.12);
  padding: 23px 32px 19px 32px;
  margin-bottom: 0;
  min-width: 280px;
  max-width: 95vw;
  pointer-events: all;
  animation: cookie-slide-in .5s cubic-bezier(.59,1.57,.45,1) both;
}
.cookie-banner p {
  color: #1B2533;
}
.cookie-btns {
  display: flex;
  gap: 12px;
}
.cookie-accept,.cookie-reject,.cookie-settings {
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 10px 18px;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
}
.cookie-accept {
  background: #1B4775;
  color: #fff; 
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #138A72;
  color: #fff;
}
.cookie-reject {
  background: #fff;
  border: 1.5px solid #1B4775;
  color: #1B4775;
}
.cookie-reject:hover, .cookie-reject:focus {
  border-color: #138A72;
  color: #138A72;
  background: #E8EEF3;
}
.cookie-settings {
  background: #F2F6F9;
  color: #1B2533;
  border: 1.2px solid #1B4775;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #E8EEF3;
  color: #138A72;
  border-color: #138A72;
}
@keyframes cookie-slide-in {
  from {transform: translateY(120px); opacity: 0;}
  to {transform: translateY(0); opacity: 1; }
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 12000;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(27,71,117,0.40);
  display: none;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade .36s cubic-bezier(.53,1.54,.66,1.02);
}
.cookie-modal-backdrop.active {
  display: flex;
}
@keyframes cookie-modal-fade {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal {
  background: #fff;
  min-width: 310px;
  max-width: 95vw;
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(27,71,117,0.11);
  padding: 28px 32px;
  z-index: 12500;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1rem;
  animation: cookie-modal-in .35s cubic-bezier(.42,1.8,.6,1);
  position: relative;
}
@keyframes cookie-modal-in {
  from { transform: translateY(64px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #1B4775;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  padding: 2px 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: #1B4775;
  cursor: pointer;
}
.cookie-category.essential input[type=checkbox] {
  display: none;
}
.cookie-category.essential:before {
  content: "✔";
  color: #138A72;
  font-size: 1.14rem;
  margin-right: 8px;
}
.cookie-category .label {
  font-weight: 600;
  min-width: 100px;
  color: #1B4775;
}
.cookie-modal-actions {
  display: flex;
  gap: 17px;
  justify-content: flex-end;
  margin-top: 14px;
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 14px 8px;
    min-width: 170px;
  }
}

/* == ANIMATIONS == */
.feature, .team-member, .blog-article, .testimonial-card {
  will-change: box-shadow, transform;
}

/* == PRINT SUPPORT == */
@media print {
  header,footer,.cookie-banner,.mobile-menu { display: none!important; }
  body { background: #fff; color: #000; }
}

/* == ACCESSIBILITY FOCUS == */
a:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-accept:focus, .cookie-reject:focus, .cookie-settings:focus {
  outline: 2.5px solid #138A72;
  outline-offset: 2px;
  background: #E8EEF3;
}

/* == Utility === */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-1 { margin-top: 8px!important; }
.mb-1 { margin-bottom: 8px!important; }
.block { display: block!important; }
.hidden { display: none!important; }

/* == END OF STYLES == */
