/* --- CSS RESET & NORMALIZATION --- */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #F5F4F0;
  color: #1F3548;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  padding-left: 1.5em;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  outline: none;
  box-sizing: border-box;
}

/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Playfair+Display:wght@700&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(135deg, #F5F4F0, #A5ACB6 50%, #F5F4F0 100%);
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: #1F3548;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }

p, a, li, ul, ol, span {
  font-size: 1rem;
  line-height: 1.7;
}
strong, b {
  font-weight: 600;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- SECTION SPACING --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 32px 0 rgba(31, 53, 72, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Extra background control for non-bg sections: */
main section:not(.hero) {
  margin-bottom: 60px;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(31,53,72, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 28px;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  color: #1F3548;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background .16s, color .16s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  background: #A5ACB6;
  color: #fff;
}
header .btn-primary {
  margin-left: 8px;
}
header .mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #1F3548;
  font-size: 2.3rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid #A5ACB6;
  transition: background .18s, box-shadow .18s;
  z-index: 31;
}
header .mobile-menu-toggle:focus {
  outline: 3px solid #1F3548;
}

/* --- HERO --- */
.hero {
  padding: 0;
  margin-bottom: 60px;
  background: linear-gradient(120deg, #A5ACB6 0%, #F5F4F0 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 10px 32px 0 rgba(50,50,90,0.10);
}
.hero .container {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 46px 0;
}
.hero h1, .hero h2, .hero p {
  color: #1F3548;
}
.hero .btn-primary {
  margin-top: 20px;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border-radius: 28px;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  box-shadow: 0 4px 16px 0 rgba(31,53,72,.09);
  border: none;
  margin: 8px 0 0 0;
}
.btn-primary {
  background: linear-gradient(90deg, #1F3548 80%, #A5ACB6);
  color: #fff;
  border: 2px solid #1F3548;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, #A5ACB6, #1F3548 80%);
  color: #fff;
  box-shadow: 0 6px 20px 0 rgba(31,53,72,0.14);
}
.btn-secondary {
  background: #A5ACB6;
  border: 2px solid #A5ACB6;
  color: #1F3548;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #1F3548;
  color: #fff;
}

/* --- FLEX LAYOUTS & CARD STYLES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px 0 rgba(31,53,72,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 20px;
  flex: 1 1 295px;
  min-width: 250px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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;
  margin-bottom: 40px;
}

/* --- FEATURE LISTS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #F5F4F0;
  border-radius: 16px;
  box-shadow: 0 3px 10px 0 rgba(31,53,72,0.08);
  padding: 28px 22px;
  flex: 1 1 275px;
  min-width: 230px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow .14s, transform .16s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px 0 rgba(31,53,72,0.16);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid img {
  width: 48px; height: 48px; margin-bottom: 10px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TESTIMONIALS --- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 18px 0 rgba(31,53,72,0.10);
  max-width: 350px;
  min-width: 250px;
  flex: 1 1 250px;
  color: #222; /* for contrast */
  font-style: italic;
}
.testimonial-card span {
  color: #A5ACB6;
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 600;
}
.testimonial-card p {
  color: #1F3548;
}

/* --- FOOTER --- */
footer {
  background: #1F3548;
  color: #fff;
  padding: 30px 0 20px 0;
  margin-top: 60px;
  border-radius: 32px 32px 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #A5ACB6;
  font-weight: 500;
  transition: color .17s;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  font-size: 0.97rem;
  color: #dde3e8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.footer-contact a {
  color: #A5ACB6;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fff;
  text-decoration: underline;
}

/* --- CONTENT WRAPPER / TEXT SECTIONS --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  max-width: 830px;
  margin: 0 auto 20px auto;
}

/* --- LOCATION MAP PLACEHOLDER --- */
.location-map-placeholder {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
  background: #F5F4F0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(31,53,72,0.09);
  margin-top: 12px;
}
.location-map-placeholder img {
  width: 60px; height: 60px;
}

/* --- CONTACT SUMMARY --- */
.contact-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.contact-summary p {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #1F3548;
  font-size: 1.06rem;
}
.contact-summary img {
  width: 25px; height: 25px;
}

/* --- LISTS --- */
ul, ol {
  margin: 12px 0 20px 0;
  color: #1F3548;
}
ul li, ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.6;
}
ul li b, ol li b {
  color: #1F3548;
}

/* --- MODAL/COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #1F3548;
  box-shadow: 0 -6px 32px 0 rgba(31,53,72,0.11);
  z-index: 160;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 14px 20px 14px;
  gap: 24px;
  transition: transform .31s cubic-bezier(.57,.24,.14,1.25);
  transform: translateY(0);
}
.cookie-consent-banner.closed {
  transform: translateY(140%);
}
.cookie-consent-banner .cookie-text {
  flex: 2 1 340px;
  font-size: 1.01rem;
  color: #1F3548;
}
.cookie-consent-banner .banner-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 220px;
}
.cookie-btn {
  min-width: 120px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  cursor: pointer;
  border: none;
  font-weight: 600;
  transition: background .18s, color .18s;
}
.cookie-btn.accept {
  background: #1F3548;
  color: #fff;
  border: 2px solid #1F3548;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #A5ACB6;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #A5ACB6;
  border: 2px solid #A5ACB6;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #A5ACB6;
  color: #fff;
}
.cookie-btn.settings {
  background: #A5ACB6;
  color: #fff;
  border: 2px solid #A5ACB6;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #1F3548;
  color: #fff;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-backdrop {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(31,53,72,0.27);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity .35s;
}
.cookie-modal-backdrop.closed {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31,53,72,0.24);
  padding: 42px 30px 30px 30px;
  min-width: 305px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 210;
  animation: cookieModalAppear .5s cubic-bezier(.47,.86,.37,1.07);
}
@keyframes cookieModalAppear {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 { font-size: 1.28rem; margin-bottom: 8px; }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  width: 21px; height: 21px;
  border-radius: 8px;
  accent-color: #A5ACB6;
  margin-right: 6px;
}
.cookie-category.disabled label {
  color: #A5ACB6;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: #fff;
  box-shadow: -6px 0 40px 0 rgba(31,53,72,0.22);
  transform: translateX(110vw);
  transition: transform .40s cubic-bezier(.54,.09,.44,1.24);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 34px 34px 32px;
  gap: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  color: #1F3548;
  background: #f4f4f4;
  border-radius: 50%;
  padding: 3px 10px;
  border: 2px solid #A5ACB6;
  margin-bottom: 22px;
  cursor: pointer;
  transition: background .16s, border .16s;
  z-index: 121;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A5ACB6;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.16rem;
  padding: 14px 0;
  border-bottom: 1px solid #A5ACB6;
  color: #1F3548;
  font-weight: 600;
  transition: color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #A5ACB6;
  background: none;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-nav { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 930px) {
  .feature-grid,
  .card-container,
  .testimonial-list,
  .content-grid {
    flex-direction: column;
    gap: 26px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: 64px;
    gap: 12px;
    flex-direction: row;
  }
  header nav, header .btn-primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
  .hero {
    border-radius: 0 0 18px 18px;
    margin-bottom: 36px;
  }
  .hero .container {
    min-height: 170px;
    padding-top: 10px; padding-bottom: 10px;
  }
  h1 { font-size: 1.68rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  .section, main section:not(.hero) {
    margin-bottom: 32px;
    padding: 26px 4px;
    border-radius: 14px;
  }
  .footer-nav {
    gap: 6px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .content-wrapper {
    gap: 10px;
  }
  .text-section {
    margin-bottom: 10px;
  }
  .location-map-placeholder {
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
  }
  .text-image-section, .testimonial-list, .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start !important;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 12px;
    padding: 16px 6px 12px 6px;
    font-size: 0.97rem;
    z-index: 200;
  }
  .cookie-modal {
    padding: 27px 9px 17px 9px;
    min-width: 220px; max-width: 99vw;
    font-size: 0.97rem;
  }
}
@media (max-width: 500px) {
  .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  .hero .content-wrapper {
    padding: 20px 0;
    gap: 11px;
  }
  main section {
    padding: 12px 2px;
  }
  .cookie-consent-banner {
    padding: 8px 2px 8px 2px;
    font-size: 0.91rem;
  }
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.btn-primary, .btn-secondary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, nav a, .card, .feature-grid > div, .testimonial-card {
  transition: background .14s, color .16s, box-shadow .18s, transform .13s;
}
.nav a.active {
  background: #A5ACB6;
  color: #fff;
}

/* --- FORMS DEFAULTS (if used in future) --- */
input, textarea, select {
  border-radius: 6px;
  padding: 12px 10px;
  border: 1px solid #A5ACB6;
  margin-bottom: 12px;
  background: #fff;
  font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #1F3548;
}

/* --- UTILS --- */
.hide { display: none !important; }
.text-center { text-align: center; }

/* --- Z-INDEX MANAGEMENT --- */
header {
  z-index: 20;
}
.mobile-menu, .mobile-menu.open {
  z-index: 120;
}
.cookie-consent-banner {
  z-index: 160;
}
.cookie-modal-backdrop {
  z-index: 200;
}

/* --- VISUAL HIERARCHY & SPACING --- */
.section > *:not(:last-child) {
  margin-bottom: 20px;
}

/* --- Accessibility: Focus states --- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .footer-nav a:focus, .mobile-menu-close:focus {
  outline: 2px solid #1F3548;
  outline-offset: 3px;
  background: #A5ACB6;
  color: #fff;
}

/* --- END --- */
