/* CSS RESET & BASE TYPOGRAPHY (Mobile First) */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  background: #fff;
  color: #30444E;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #30444E;
  text-decoration: underline;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #B58F56;
  outline: none;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
  background: #F1EEE7;
}
::-webkit-scrollbar-thumb {
  background: #E3E0D6;
  border-radius: 8px;
}

/* TYPOGRAPHY HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: #30444E;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}
h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}
h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    font-weight: 600;
}
h4, h5, h6 {
    font-size: 1rem;
}
p, ul, ol {
  margin-bottom: 18px;
}
ul, ol {
  padding-left: 23px;
}
strong {
  font-weight: 700;
}

/* CONTAINER & LAYOUT PATTERNS */
.container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(48,68,78,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
}

.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 {
  background: #F1EEE7;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(48,68,78,0.04);
  color: #30444E;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  font-size: 1rem;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px rgba(48,68,78,0.10);
}

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

/* BUTTONS & INTERACTIVE ELEMENTS */
.btn-primary {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  display: inline-block;
  padding: 10px 32px;
  margin-top: 14px;
  border-radius: 28px;
  border: 1px solid #B58F56;
  background: #B58F56;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(48,68,78,0.06);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.2s, border 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #30444E;
  color: #fff;
  border-color: #30444E;
  box-shadow: 0 6px 18px rgba(48,68,78,0.17);
  outline: none;
}

.btn-secondary {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 22px;
  background: transparent;
  color: #30444E;
  border: 1.5px solid #30444E;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border 0.19s, color 0.13s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #30444E;
  color: #fff;
  outline: none;
}

.btn-link {
  background: none;
  border: none;
  color: #B58F56;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  transition: color 0.14s;
}
.btn-link:hover, .btn-link:focus {
  color: #30444E;
}

/* HEADER, NAVIGATION & LOGO */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(48,68,78,0.05);
  z-index: 1002;
  width: 100%;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: #30444E;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.1s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #B58F56;
}

header .btn-primary {
  margin-left: 30px;
  margin-top: 0;
  padding: 8px 26px;
  font-size: 1rem;
}

/* MOBILE MENU STYLES */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1EEE7;
  color: #30444E;
  border: none;
  font-size: 2.2rem;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  margin-left: 10px;
  cursor: pointer;
  z-index: 1201;
  box-shadow: 0 1px 5px 0 rgba(48,68,78,0.09);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E3E0D6;
  color: #B58F56;
  outline: 2px solid #B58F56;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.7,.3,.2,1);
  box-shadow: 2px 0 60px 0 rgba(48,68,78,0.17);
  padding: 24px 24px 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #F1EEE7;
  color: #30444E;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  border-radius: 7px;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  cursor: pointer;
  transition: background 0.2s, color 0.12s;
  z-index: 1220;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E3E0D6;
  color: #B58F56;
  outline: 2px solid #B58F56;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  padding-top: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: #30444E;
  font-size: 1.30rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.17s, background 0.18s;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B58F56;
  background: #F1EEE7;
}

/* Hide desktop nav on mobile, show burger and menu */
@media (max-width: 990px) {
  .main-nav,
  header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 991px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* FOOTER */
footer {
  background: #F1EEE7;
  padding: 40px 0 28px 0;
  margin-top: 70px;
  font-size: 0.98rem;
  color: #30444E;
  border-top: 1.5px solid #ECE9E0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #30444E;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
  transition: color 0.14s, opacity 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B58F56;
  opacity: 1;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.85;
}
.footer-brand img {
  height: 34px;
}

/* SECTION SPACING (Override mandatory) */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
section:last-child {
  margin-bottom: 0;
}

/* CARDS & FLEX WRAPPERS */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* RESPONSIVE FLEX-DIRECTION & GAPS */
@media (max-width: 768px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .content-grid, .card-container, .text-image-section { flex-direction: column !important; }
  .content-grid, .card-container, .content-wrapper, .feature-item {
    gap: 18px !important;
  }
  .testimonial-card { flex-direction: column; gap: 10px; padding: 15px; }
  .footer-brand { flex-direction: column; gap: 7px; }
  footer .container { flex-direction: column; align-items: flex-start; gap: 25px; }
}

/* SECTION HEADINGS */
.section-title {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  margin-bottom: 24px;
  color: #30444E;
  letter-spacing: 0.01em;
}

/* MISC UTILITY CLASSES */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mt-3 { margin-top: 18px !important; }
.mb-3 { margin-bottom: 18px !important; }
.mb-4 { margin-bottom: 23px !important; }

/* ANIMATIONS & TRANSITIONS */
.fade-in {
  opacity: 0;
  animation: fadein 0.7s 0.05s forwards;
}
@keyframes fadein {
  100% { opacity: 1; }
}
.slide-in-right {
  transform: translateX(60px);
  opacity: 0;
  animation: slideRight 0.48s ease 0.02s forwards;
}
@keyframes slideRight {
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* LISTS */
ul, ol {
  color: #30444E;
  font-size: 1.03rem;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.7;
  padding-left: 2px;
}
ul li::marker, ol li::marker {
  color: #B58F56;
}

/* CARDS EXAMPLES */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(48,68,78,0.04);
  transition: box-shadow 0.21s;
}
.card:hover {
  box-shadow: 0 10px 32px rgba(48,68,78,0.13);
}

/* TESTIMONIAL STYLES (Contrast!) */
.testimonial-card p {
  font-size: 1.07rem;
  color: #30444E;
  margin-bottom: 10px;
}
.testimonial-card span {
  color: #B58F56;
  font-size: 0.99rem;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  letter-spacing: 0.01em;
}
.testimonial-card strong { color: #30444E; }

/* COOKIE BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #fff;
  border-top: 2px solid #ECE9E0;
  box-shadow: 0 -6px 34px 0 rgba(48,68,78,0.08);
  padding: 20px 12px 16px 12px;
  z-index: 5003;
  font-size: 1rem;
  animation: fadein 0.45s forwards;
}
.cookie-banner p {
  color: #30444E;
  flex: 1 1 0;
  margin-bottom: 0;
}
.cookie-banner .btn-primary {
  padding: 8px 20px;
  margin: 0 3px;
  font-size: 0.97rem;
}
.cookie-banner .btn-secondary {
  padding: 8px 18px;
  font-size: 0.97rem;
}
.cookie-banner .btn-link {
  color: #B58F56;
  padding: 6px 10px;
  font-size: 0.97rem;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 20px 7px 16px 7px;
    font-size: 0.99rem;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  background: rgba(48,68,78,0.30);
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 5020;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein 0.24s;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 34px 0 rgba(48,68,78,0.11);
  max-width: 96vw;
  width: 410px;
  padding: 30px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadein 0.33s;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.24rem;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category > label {
  flex: 1 1 0;
  color: #30444E;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #ECE9E0;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #B58F56;
}
.cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(48,68,78,0.09);
  transition: left 0.22s;
}
.cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal-close {
  position: absolute;
  right: 22px; top: 18px;
  background: none;
  border: none;
  color: #B58F56;
  font-size: 1.36rem;
  cursor: pointer;
  transition: color 0.12s;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  color: #30444E;
  outline: none;
}
.cookie-modal .btn-primary {
  width: 100%;
}

/* FORMS (future-proofing) */
input, textarea, select {
  border-radius: 8px;
  border: 1.5px solid #E3E0D6;
  background: #fff;
  color: #30444E;
  padding: 9px 13px;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
  margin-bottom: 12px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: #B58F56;
  outline: none;
}
label {
  font-size: 1rem;
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 6px;
  color: #30444E;
}

/* BRAND COLORS UTILS */
.bg-primary { background: #30444E !important; color: #fff !important; }
.bg-secondary { background: #B58F56 !important; color: #fff !important; }
.bg-accent { background: #F1EEE7 !important; color: #30444E !important; }
.text-primary { color: #30444E !important; }
.text-secondary { color: #B58F56 !important; }
.text-accent { color: #F1EEE7 !important; }

/* REMOVE GRID-FORBIDDEN PROPERTIES */
/* No display: grid, grid-*, columns, column-* anywhere */

/* Z-INDEX FOR LAYERS */
header, .mobile-menu { z-index: 1200; }
.cookie-banner { z-index: 5003; }
.cookie-modal-backdrop { z-index: 5020; }

/* NO OVERLAP: Padding between all stacked cards/sections */
section, .section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

.card-container > *, .content-grid > *, .content-wrapper > * {
  margin-bottom: 20px;
  min-width: 0;
}

/* VISUAL HIERARCHY */
.content-wrapper > h1, .content-wrapper > h2, .content-wrapper > h3 {
  margin-bottom: 10px;
}

/* Small screens font scaling for display */
@media (max-width: 400px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.23rem; }
}

/* Helper: Hide visually but keep accessible */
.sr-only {
  position:absolute;
  left: -9999px;
  width:1px; height:1px;
  overflow:hidden;
}
