/* --- CSS RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F4E9D8;
  color: #273E47;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}
img {
  display: block;
  max-width: 100%;
  border-radius: 14px;
}
a {
  color: #A3642D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #273E47;
}
ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong,
b {
  font-weight: 700;
}
em,
i {
  font-style: italic;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
  color: #273E47;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.375rem;
  margin-top: 0;
}
h2 {
  font-size: 1.875rem;
  margin-top: 0;
}
h3 {
  font-size: 1.25rem;
  color: #A3642D;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  color: #273E47;
}
.subtitle {
  color: #A3642D;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 18px;
  margin-top: -12px;
}
.about-summary {
  font-size: 1.13rem;
  font-style: italic;
  color: #3b525c;
  margin-bottom: 18px;
}
.text-section {
  margin-bottom: 18px;
  color: #273E47;
}

/* --- LAYOUTS & CONTAINERS --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(39, 62, 71, 0.07), 0 0.5px 1px 0 rgba(166, 100, 45, 0.04);
}

/* --- MAIN NAVIGATION --- */
header {
  background: #fff;
  padding: 0;
  box-shadow: 0 1.5px 12px 0 rgba(39,62,71,0.04);
  position: relative;
  z-index: 21;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 20px 16px 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #273E47;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F4E9D8;
  color: #A3642D;
}
.main-nav img {
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border-radius: 50%;
  background: #F4E9D8;
  padding: 2px;
}
.btn-primary {
  background: #A3642D;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 8px 0 rgba(166,100,45,0.07);
  transition: background 0.19s, box-shadow 0.19s, color 0.19s;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
  display: inline-block;
  position: relative;
  z-index: 3;
}
.btn-primary:hover, .btn-primary:focus {
  background: #273E47;
  color: #F4E9D8 !important;
  box-shadow: 0 2px 16px 0 rgba(39,62,71,0.16);
  outline: none;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: #F4E9D8;
    color: #273E47;
    border: none;
    font-size: 2rem;
    padding: 8px 20px 8px 20px;
    border-radius: 12px;
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 40;
    transition: background 0.2s;
    cursor: pointer;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: #A3642D;
    color: #fff;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: #FFF;
    z-index: 99;
    box-shadow: 0 8px 24px 0 rgba(39,62,71,0.10);
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(.63,1.79,.38,.95);
    padding: 0 0 0 0;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    align-self: flex-end;
    margin: 22px 28px 0 0;
    background: #F4E9D8;
    border: none;
    font-size: 2.3rem;
    color: #A3642D;
    border-radius: 14px;
    cursor: pointer;
    padding: 3px 16px 9px 16px;
    transition: background 0.19s, color 0.17s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    background: #A3642D;
    color: #fff;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 28px 0 0 32px;
  }
  .mobile-nav a {
    font-size: 1.15rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    color: #273E47;
    background: none;
    border-radius: 9px;
    padding: 10px 22px;
    min-width: 160px;
    margin-bottom: 5px;
    transition: background 0.18s, color 0.18s;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus {
    background: #A3642D;
    color: #fff;
    outline: none;
  }
}

/* Mobile menu overlay fade effect */
.mobile-menu {
  transition: transform 0.35s cubic-bezier(.78,1.2,.34,1);
}

/* --- MAIN & GRID LAYOUTS with FLEX ONLY --- */
.feature-grid, .features, .card-container, .content-grid, .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 6px 0 rgba(166,100,45,0.09);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  min-width: 220px;
  max-width: 100%;
  color: #273E47;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 12px 0 rgba(39,62,71,0.08);
  padding: 20px;
  min-width: 220px;
  margin-bottom: 24px;
  margin-top: 4px;
  color: #273E47;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #273E47;
  font-style: italic;
  margin-bottom: 7px;
}
.testimonial-card span {
  color: #A3642D;
  font-size: 0.975rem;
  font-weight: 600;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Map Placeholder */
.map-placeholder {
  background: #F4E9D8;
  border: 2px dashed #A3642D;
  border-radius: 13px;
  padding: 38px 0 38px 0;
  color: #A3642D;
  text-align: center;
  margin-top: 16px;
  font-size: 1.12rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* --- CARDS/FEATURES/ICONS --- */
.feature-grid > div,
.features > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px 0 rgba(166,100,45,0.07);
  padding: 22px 18px 18px 18px;
  min-width: 190px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.18s;
}
.feature-grid > div:hover,
.features > div:hover {
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 6px 16px rgba(39,62,71,0.11);
  background: #F9F5ED;
}
.feature-grid img,
.features img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 8px #F4E9D8);
}

/* --- BUTTONS --- */
button,
.btn-primary {
  transition: background 0.19s, box-shadow 0.19s, color 0.21s, transform 0.14s;
  outline: none;
}
button:active,
.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0.5px 2px rgba(39,62,71,0.07);
}

/* --- SECTION SPACING PER SPEC --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
/* AND: all cards/sections must have at least 20px between them */

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1.5px solid #ECE1D2;
  padding: 30px 0 16px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #A3642D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 9px;
  padding: 5px 12px;
  transition: background 0.19s, color 0.19s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: #F4E9D8;
  color: #273E47;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  color: #3b525c;
  font-size: 0.98rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  border-radius: 6px;
}
.footer-copy {
  text-align: center;
  font-size: 0.93rem;
  color: #b6a593;
  margin-top: 10px;
}

/* --- RESPONSIVE STYLES & FLEX DIRECTION --- */
@media (max-width: 768px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .main-nav { flex-direction: column; gap: 14px; align-items: flex-start; }
  .feature-grid,
  .features,
  .content-grid,
  .footer-contact {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .card, .testimonial-card {
    min-width: 0;
  }
}

@media (max-width: 500px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.03rem; }
  .section { padding: 22px 7px; margin-bottom: 38px; }
  .btn-primary { padding: 9px 20px; font-size: 1rem; }
  .mobile-nav a { font-size: 1.01rem; }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.btn-primary, .main-nav a, .mobile-nav a, .feature-grid > div {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.17s;
}
.card, .testimonial-card, .features > div {
  transition: box-shadow 0.17s, background 0.16s, transform 0.15s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 18px 0 rgba(39,62,71,0.14);
  background: #F4E9D8;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  z-index: 200;
  background: #fff;
  color: #273E47;
  box-shadow: 0 -2px 15px 0 rgba(39,62,71,0.09);
  border-radius: 28px 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 22px 16px 22px 22px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  justify-content: space-between;
  animation: cookieBannerSlideIn 0.65s ease;
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 17px;
  border: none;
  margin-left: 14px;
  margin-right: 6px;
  font-size: 1rem;
  cursor: pointer;
  background: #A3642D;
  color: #fff;
  box-shadow: 0 1.5px 7px rgba(166,100,45,0.08);
  transition: background 0.14s, color 0.15s, transform 0.13s;
}
.cookie-banner .cookie-btn.reject {
  background: #ECE1D2;
  color: #273E47;
}
.cookie-banner .cookie-btn.settings {
  background: #273E47;
  color: #fff;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #273E47;
  color: #F4E9D8;
  outline: none;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #A3642D;
  color: #fff;
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #A3642D;
  color: #fff;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(39,62,71,0.18);
  display: none;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.33s;
}
.cookie-modal.active {
  display: flex;
  animation: cookieModalFadeIn 0.32s;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px 0 rgba(39,62,71,0.15);
  padding: 32px 28px 24px 28px;
  min-width: 310px;
  max-width: 98vw;
  font-size: 1rem;
  color: #273E47;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  animation: cookieModalPopup 0.47s cubic-bezier(.8,1.6,.7,1.36);
}
@keyframes cookieModalPopup {
  from {transform: scale(0.92); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #A3642D;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.12s;
}
.cookie-modal-close:hover { background: #F4E9D8; color: #273E47; }
.cookie-modal-content h2 {
  font-size: 1.35rem;
  color: #A3642D;
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.cookie-category input {
  accent-color: #A3642D;
  width: 20px;
  height: 20px;
}
.cookie-category .essential {
  opacity: 0.7;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 10px;
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 8px; font-size: 0.98rem; }
  .cookie-banner .cookie-btn { margin-left: 0; margin-right: 0; margin-top: 7px; }
  .cookie-modal-content { padding: 17px 6vw 18px 6vw; min-width: 0; }
}

/* --- UTILITY CLASSES --- */
.mt-0    { margin-top: 0 !important; }
.mb-0    { margin-bottom: 0 !important; }
.mb-24   { margin-bottom: 24px !important; }
.gap-20  { gap: 20px !important; }
.text-center { text-align: center !important; }

/* --- SELECTION / FOCUS STATE --- */
:focus-visible {
  outline: 2px solid #A3642D;
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #aab2ba; }
::-moz-placeholder { color: #aab2ba; }
:-ms-input-placeholder { color: #aab2ba; }
::placeholder { color: #aab2ba; }

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar {
  width: 11px;
  background: #F4E9D8;
  border-radius: 17px;
}
::-webkit-scrollbar-thumb {
  background: #A3642D;
  border-radius: 17px;
  min-height: 25px;
}
::-webkit-scrollbar-thumb:hover {
  background: #273E47;
}

/* --- END OF STYLE.CSS --- */
