/* ===================================================
   CSS RESET & BASE STYLES
=================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  height: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
}
body {
  min-height: 100vh;
  background: #F7F9FB;
  color: #25445C;
  -webkit-font-smoothing: antialiased;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #1B4679;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A17A46;
}
ul, ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B4679;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 12px; }
.subheadline {
  color: #5685C5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
p {
  margin-bottom: 18px;
}
strong {
  font-weight: 600;
  color: #A17A46;
}

/* =============================
   PASTEL COLOR VARIABLES (fallbacks)
   ============================= */
:root {
  --primary: #1B4679;
  --primary-soft: #B1C9E6;
  --secondary: #F7F9FB;
  --accent: #A17A46;
  --pastel-blue: #B8D8FD;
  --pastel-pink: #FDE5EC;
  --pastel-lavender: #F4E7FB;
  --pastel-green: #C6F2E2;
  --pastel-yellow: #FFF5DB;
  --pastel-peach: #FFE3D6;
  --border-color: #E1EAF5;
  --shadow-color: rgba(183, 204, 226, 0.54);
  --white: #FFF;
  --text-dark: #1B2B40;
  --text-muted: #7C91AE;
}

/* =============================
   LAYOUT CONTAINERS
   ============================= */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.property-highlights, .benefit-list, .guide-highlights, .team-benefits, .highlight {
  margin-top: 16px;
  background: var(--pastel-yellow);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 24px -8px var(--shadow-color);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 24px -10px var(--shadow-color);
  padding: 28px 26px;
  min-width: 240px;
  max-width: 98vw;
  transition: box-shadow 0.22s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px -4px var(--shadow-color);
}
.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: var(--pastel-blue);
  border-radius: 18px;
  box-shadow: 0 2px 16px -4px var(--shadow-color);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 100%;
  color: var(--text-dark);
}
.testimonial-card blockquote {
  font-style: italic;
  margin: 0;
  font-size: 1.125rem;
}
.testimonial-card footer {
  display: block;
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.97em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   HEADER & NAVIGATION
   ============================= */
header {
  background: linear-gradient(90deg, var(--pastel-blue), var(--pastel-pink) 85%);
  padding: 0 0 0 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 99;
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  flex-wrap: wrap;
}
nav a, .footer-menu a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.2s;
}
nav a.cta {
  background: var(--accent);
  color: #FFF;
  font-weight: 600;
  margin-left: 10px;
  box-shadow: 0 2px 10px -2px var(--shadow-color);
}
nav a.cta:hover, nav a.cta:focus {
  background: #B18E5E;
  color: #FFF;
}
nav a:hover:not(.cta), nav a:focus:not(.cta) {
  background: var(--pastel-peach);
  color: var(--accent);
}
nav img {
  display: block;
  height: 44px;
  width: auto;
  margin-right: 10px;
  border-radius: 0;
}

/* =============================
   MOBILE NAVIGATION (BURGER MENU)
   ============================= */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 24px;
  background: var(--accent);
  color: #FFF;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 120;
  cursor: pointer;
  box-shadow: 0 2px 8px -2px var(--shadow-color);
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #B18E5E;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1200;
  padding: 54px 28px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1.0);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 16px;
  background: none;
  color: var(--accent);
  border: none;
  font-size: 2.1rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1201;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #915519;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 30px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 500;
  padding: 14px 0 12px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-lavender);
  color: var(--accent);
}
@media (max-width: 920px) {
  nav {
    gap: 10px;
  }
  nav a {
    font-size: 0.97rem;
    padding: 5px 8px;
  }
  nav img { height: 40px; }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =============================
   FOOTER
   ============================= */
footer {
  background: var(--pastel-lavender);
  padding: 36px 0 20px 0;
  font-size: 0.98rem;
  color: var(--primary);
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.footer-menu a {
  color: var(--primary);
  font-weight: 500;
  background: var(--secondary);
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.17s, color 0.2s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--pastel-yellow);
  color: var(--accent);
}
footer p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* =============================
   HERO + SECTIONS
   ============================= */
.hero {
  background: linear-gradient(115deg, var(--pastel-blue) 25%, var(--pastel-pink) 82%, #FFFFFF 120%);
  padding: 54px 0 40px 0;
  border-radius: 0 0 54px 54px / 0 0 44px 44px;
  box-shadow: 0px 14px 16px -15px var(--shadow-color);
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 700;
}
@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.42rem;
  }
  h2 {
    font-size: 1.15rem;
  }
}

/* =============================
   BUTTONS
   ============================= */
button, .cta {
  display: inline-block;
  background: var(--accent);
  color: #FFF;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 26px;
  box-shadow: 0 4px 16px -6px var(--shadow-color);
  border: none;
  margin-top: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  text-align: center;
}
.cta:hover, .cta:focus, button:hover, button:focus {
  background: #B18E5E;
  color: #FFF;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px -8px var(--shadow-color);
  text-decoration: none;
}

/* =============================
   LISTS & ICONS IN LISTS
   ============================= */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--text-dark);
}
ul li img {
  width: 28px;
  height: 28px;
  margin-right: 7px;
  flex-shrink: 0;
}

/* =============================
   CUSTOM CARDS & ELEMENTS
   ============================= */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.company-address, .highlight {
  background: var(--pastel-green);
  border-radius: 18px;
  padding: 22px;
  margin-top: 18px;
  box-shadow: 0 2px 12px -6px var(--shadow-color);
  font-size: 1rem;
  color: var(--primary);
}

/* =============================
   TABLES, FORMS (extra styling)
   ============================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
th, td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-color);
}

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--pastel-lavender);
  color: var(--primary);
  box-shadow: 0 -2px 24px -12px var(--shadow-color);
  z-index: 4005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 23px 12px;
  gap: 20px;
  font-size: 1rem;
  border-radius: 22px 22px 0 0 / 18px 18px 0 0;
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-text {
  flex: 1;
  min-width: 180px;
  max-width: 480px;
  font-size: 1rem;
  margin-right: 12px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button, .cookie-banner .cta {
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 20px;
  font-weight: 600;
  margin: 0;
}
.cookie-banner .cookie-settings {
  background: var(--pastel-blue);
  color: var(--primary);
  border: 1px solid var(--border-color);
  transition: background 0.18s, color 0.16s;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--pastel-pink);
  color: var(--accent);
}
.cookie-banner .reject {
  background: var(--pastel-yellow);
  color: var(--accent);
  border: 1px solid var(--border-color);
  transition: background 0.18s, color 0.16s;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--pastel-peach);
  color: #AA601F;
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(153,172,204,0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: var(--secondary);
  padding: 36px 28px 28px 28px;
  border-radius: 26px;
  box-shadow: 0 4px 40px -10px var(--shadow-color);
  max-width: 94vw;
  min-width: 320px;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  position: relative;
  animation: fadeInModal 0.33s cubic-bezier(.23,.82,.74,.98);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(36px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal .close-modal-btn {
  position: absolute;
  right: 18px; top: 15px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.9rem;
  cursor: pointer;
}
.cookie-modal h2 {
  color: var(--primary);
  font-size: 1.22rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pastel-blue);
  padding: 10px 16px;
  border-radius: 15px;
  margin-bottom: 11px;
}
.cookie-modal .cookie-category.essential {
  background: var(--pastel-lavender);
  color: #8A7BC7;
}
.cookie-modal .category-name {
  font-weight: 600;
  font-size: 1.09rem;
  color: var(--primary);
}
.cookie-modal .category-toggle {
  margin-left: 24px;
}
.cookie-switch {
  width: 45px;
  height: 24px;
  background: #eee;
  border-radius: 12px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 2px 8px -6px #90B0E8;
  transition: background 0.18s;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-switch .slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 18px;
  height: 18px;
  background: var(--pastel-pink);
  border-radius: 50%;
  transition: transform 0.18s, background 0.18s;
}
.cookie-switch input[type="checkbox"]:checked + .slider {
  background: var(--pastel-blue);
  transform: translateX(20px);
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal button {
  padding: 9px 18px;
  border-radius: 18px;
}

/* =============================
   RESPONSIVE ADJUSTMENTS
   ============================= */
@media (max-width: 1080px) {
  .container {
    max-width: 100vw;
    padding: 0 12px;
  }
}
@media (max-width: 1020px) {
  .content-wrapper {
    gap: 17px;
  }
}
@media (max-width: 700px) {
  .content-wrapper {
    flex-direction: column;
    gap: 13px;
    margin-top: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 16px;
    gap: 8px;
  }
}
@media (max-width: 580px) {
  html {
    font-size: 15px;
  }
  .section {
    padding: 24px 4px;
    margin-bottom: 34px;
  }
  .company-address, .highlight {
    padding: 14px;
    font-size: .96rem;
    border-radius: 13px;
  }
  .hero {
    padding: 34px 0 19px 0;
    border-radius: 0 0 22px 22px / 0 0 19px 19px;
  }
  .footer-menu {
    gap: 10px;
  }
  nav img {
    height: 30px;
  }
  .mobile-menu {
    padding: 48px 7vw 20px 7vw;
  }
  .cookie-modal .modal-content {
    min-width: 0;
    padding: 15px 8px 18px 8px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.13rem; }
  h2 { font-size: .98rem; }
  h3 { font-size: .9rem; }
}

/* =============================
   VISUAL/MICRO INTERACTIONS
   ============================= */
.cta, button {
  transition: background 0.22s, transform 0.13s, box-shadow 0.15s;
}
.card, .testimonial-card, .company-address, .highlight {
  transition: box-shadow 0.21s, background 0.15s;
}
.card:active, .testimonial-card:active, .highlight:active {
  box-shadow: 0 2px 7px -2px var(--shadow-color);
}

/* =============================
   MISC & UTILS
   ============================= */
::-webkit-scrollbar {
  width: 9px;
  background: var(--pastel-blue);
}
::-webkit-scrollbar-thumb {
  background: #dadcec;
  border-radius: 8px;
}
::-webkit-input-placeholder { color: #aab9cb; }
::-moz-placeholder { color: #aab9cb; }
:-ms-input-placeholder { color: #aab9cb; }
::placeholder { color: #aab9cb; }

/* Hide visually (for ARIA/live requirement in js) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap !important;
}

/* =============================
   FLEXBOX FOR ALL LAYOUTS
   (NO GRID/NO COLUMN COUNT)
   ============================= */
/* All content containers, no grid, no abs/rel positioning for cards! */

/* Utility: center content vertically in text-image-sections/mobile */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* Ensure all elements have minimum 20px between, never overlap. */
.card:not(:last-child), .testimonial-card:not(:last-child), .text-section:not(:last-child) {
  margin-bottom: 20px;
}

/* =============================
   SOFT PASTEL DECOR
   ============================= */
.section {
  background: #FFF;
  border-radius: 24px;
  box-shadow: 0 8px 42px -18px var(--shadow-color);
  border: 1px solid var(--border-color);
}

/* Light pastel backgrounds for some special sections */
.property-highlights, .benefit-list, .guide-highlights, .team-benefits, .highlight {
  background: linear-gradient(90deg, var(--pastel-yellow) 70%, var(--pastel-blue) 110%);
}

/* Links in text */
.text-section a {
  display: inline-block;
  font-weight: 600;
  color: var(--primary);
  text-underline-offset: 2px;
  margin-bottom: 6px;
}
.text-section a:hover, .text-section a:focus {
  color: var(--accent);
  background: var(--pastel-peach);
  border-radius: 6px;
}

/* =============================
   PRINT FORMS (if needed)
   ============================= */
@media print {
  body { background: #FFF; color: #111; }
  header, footer, nav, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
}
