/* ============================
   CSS RESET & NORMALIZE
============================= */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFDF9;
  color: #2B3D43;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
a {
  color: #2B3D43;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #F28B3B;
  outline: none;
}
ul, ol {
  list-style: disc inside;
}
strong {
  font-weight: 600;
  color: #2B3D43;
}

/* ============================
   BRAND TYPOGRAPHY
============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2B3D43;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.subheadline {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #4C3836;
  font-size: 1.25rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
p, ul, li {
  font-size: 1rem;
  color: #433F3F;
}

/* ============================
   COLOR PALETTE
============================= */
:root {
  --primary: #2B3D43;
  --secondary: #849B87;
  --accent: #EFE7DB;
  --warm1: #F5EDE3;
  --warm2: #FFD4AC;
  --warm3: #F28B3B;
  --neutral-bg: #FFFDF9;
}

/* ============================
   MAIN CONTAINER & SPACING
============================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* content-spacing in children */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 0 auto;
  max-width: 900px;
}

/*
==============================
SECTION SPACING & LAYOUT
==============================
*/
.section,
.hero-section,
.features-section,
.about-section,
.services-section,
.contact-section,
.contact-cta-section,
.legal-section,
.message-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: var(--warm1);
  box-shadow: 0 4px 24px 0 rgba(242, 139, 59, 0.07), 0 1.5px 6px 0 rgba(43, 61, 67, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section {
  background: var(--warm2);
  text-align: left;
  border-radius: 24px 24px 36px 36px;
  margin-bottom: 44px;
}
.contact-cta-section {
  background: var(--warm2);
}

/*
==================================================
FEATURES + FLEX LAYOUTS (MANDATORY PATTERNS)
==================================================
*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  box-shadow: 0 3px 12px 0 rgba(242,139,59,0.12);
  background: #fff;
  padding: 28px 24px;
  transition: box-shadow 0.28s;
}
.card:hover,
.card:focus {
  box-shadow: 0 8px 28px 0 rgba(242,139,59,0.18);
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(43,61,67,0.07);
  min-width: 260px;
  max-width: 500px;
  margin-bottom: 24px;
  margin-right: 20px;
  border: 2px solid var(--accent);
}
.testimonial-card:last-child {
  margin-right: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(242, 139, 59, 0.05);
  padding: 20px 18px 22px 18px;
  margin-bottom: 20px;
  flex: 1 1 220px;
  min-width: 200px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.feature-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px 0 rgba(242,139,59,0.13);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.benefit-highlights, .tip-highlights, .space-tips {
  background: var(--accent);
  border-radius: 16px;
  padding: 18px 18px 14px 18px;
  margin-top: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px 0 rgba(242,139,59,0.04);
}

/*
==============================
HEADER & NAVIGATION
==============================
*/
header {
  width: 100%;
  background: var(--warm1);
  padding: 0 0 0 0;
  box-shadow: 0 2px 10px 0 rgba(43, 61, 67, 0.05);
  position: sticky;
  top: 0;
  z-index: 35;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  padding: 16px 20px 14px 20px;
  max-width: 1180px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .16s, color .16s;
  line-height: 1.1;
}
header nav a:hover,
header nav a.active {
  background: var(--warm2);
  color: #fff;
}
header .button.primary {
  margin-left: 16px;
}
header img {
  height: 48px;
  width: auto;
  border-radius: 14px;
}

/*
==============================
BUTTONS
==============================
*/
.button, .button.primary, .button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 13px 34px;
  border: none;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px 0 rgba(43,61,67,0.07);
  transition: background .18s, box-shadow .18s, color .18s, transform .12s;
  text-decoration: none;
  margin-top: 14px;
}
.button.primary {
  background: var(--primary);
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: var(--warm3);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.button.secondary {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--warm3);
}
.button.secondary:hover, .button.secondary:focus {
  background: var(--warm3);
  color: white;
  border-color: var(--warm3);
  transform: translateY(-2px) scale(1.03);
}
.button:active {
  transform: scale(0.97);
}

/*
==============================
MOBILE NAV BURGER MENU
==============================
*/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 16px;
  background: var(--warm3);
  color: #fff;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  z-index: 60;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px 0 rgba(242,139,59,0.11);
  transition: background .16s, color .16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--warm2);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(239, 231, 219, 0.96);
  z-index: 80;
  transform: translateX(-110vw);
  transition: transform .38s cubic-bezier(.75,.11,.87,.84);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--primary);
  color: #fff;
  font-size: 2.2rem;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  margin: 20px;
  align-self: flex-end;
  cursor: pointer;
  box-shadow: 0 3px 10px 0 rgba(43,61,67,0.13);
  transition: background .17s, color .17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--warm3);
  color: #fff;
}
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 8px 32px 0 32px;
  margin-top: 24px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--primary);
  background: none;
  border-radius: 12px;
  padding: 12px 6px;
  margin-bottom: 6px;
  transition: background .16s, color .16s;
  min-width: 90vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--warm3);
  color: #fff;
  outline: none;
}

/*
Hide desktop nav, show mobile hamburger on small screens
*/
@media (max-width: 1024px) {
  header nav, .header-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .button.primary {
    display: none;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ============================
   FOOTER
============================= */
footer {
  background: var(--primary);
  color: #EFE7DB;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding: 44px 0 28px 0;
  margin-top: 64px;
  box-shadow: 0 -2px 18px 0 rgba(43,61,67,0.08);
}
footer p {
  color: white;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #EFE7DB;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.90;
  border-radius: 8px;
  padding: 5px 6px;
  transition: background .13s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--warm3);
  color: #fff;
}
.footer-contact {
  font-size: 0.98rem;
  color: #EFE7DB;
  line-height: 1.7;
  opacity: 0.92;
}
.footer-contact img {
  height: 17px;
  width: 17px;
  margin-right: 3px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 6px;
}
.footer-social a img {
  height: 28px; width: 28px;
  border-radius: 6px;
  background: #fff0;
  transition: background .12s;
}
.footer-social a:hover img {
  background: var(--warm3);
}

/* ============================
   TESTIMONIALS
============================= */
.testimonials-section {
  background: var(--accent);
  border: none;
}
.testimonials-section h2 {
  color: var(--primary);
  margin-bottom: 12px;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #2B3D43;
  line-height: 1.5;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 0.98rem;
}

/* ============================
   CONTACT SECTION
============================= */
.contact-section {
  background: var(--warm1);
}
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-details li,
.map-snippet p {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.07rem;
  color: #2B3D43;
}
.contact-details img {
  height: 18px;
  width: 18px;
  margin-right: 7px;
  vertical-align: middle;
  border-radius: 4px;
}

/* ============================
   LEGAL/INFO SECTIONS
============================= */
.legal-section {
  background: var(--warm1);
}
.legal-section h1, .legal-section h2 {
  color: var(--primary);
}
.legal-section ul {
  margin: 18px 0 18px 18px;
  padding-left: 10px;
  color: #433F3F;
}
/* ============================
   MESSAGES & THANK YOU
============================= */
.message-section {
  background: var(--warm2);
}

/* ============================
   LISTS AND RICH CONTENT
============================= */
ul, ol {
  margin-left: 22px;
  margin-bottom: 15px;
}
ul li {
  margin-bottom: 7px;
}

/* ============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  /* Layouts & sections */
  .container {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .section,
  .hero-section,
  .features-section,
  .about-section,
  .services-section,
  .contact-section,
  .contact-cta-section,
  .legal-section,
  .message-section {
    padding: 24px 6px;
    margin-bottom: 38px;
    border-radius: 16px;
  }
  .hero-section {
    border-radius: 18px 18px 22px 22px;
    margin-bottom: 20px;
  }
  .card-container, .feature-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 22px;
    padding: 13px 8px;
  }
  .features-section .content-wrapper {
    gap: 6px;
  }
  .feature-item {
    min-width: 0;
    width: 100%;
    padding: 14px 10px 14px 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  footer .container {
    flex-direction: column;
    gap: 12px;
    padding: 0 6px;
    align-items: flex-start;
  }
  .footer-social {
    margin-top: 10px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.44rem;
  }
  h2 {
    font-size: 1.17rem;
  }
  .button, .button.primary, .button.secondary {
    font-size: 1rem;
    padding: 9px 18px;
    border-radius: 14px;
  }
}

/* ============================
   SPACING UTILITIES
============================= */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ============================
   MICROINTERACTIONS
============================= */
.button, .card, .feature-item,
.mobile-menu-toggle, .mobile-menu-close,
.testimonial-card, .footer-nav a {
  transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.13s;
}

/* ============================
   COOKIE CONSENT BANNER
============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 101;
  background: var(--warm3);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 11vw 18px 6vw;
  box-shadow: 0 -5px 32px 0 rgba(43,61,67,0.10);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  min-height: 85px;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.87,.03,.85,.78), opacity .22s;
}
.cookie-banner.closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
}
.cookie-banner p {
  color: #fff;
  font-size: 1rem;
  max-width: 640px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button,
.cookie-banner .button {
  font-size: 0.98rem;
  padding: 9px 28px;
  border-radius: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  min-width: 120px;
}
.cookie-banner .accept {
  background: #fff;
  color: var(--warm3);
  border: 1.5px solid var(--warm3);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--accent);
  color: #2B3D43;
  border: 1.5px solid var(--primary);
}
.cookie-banner .reject {
  background: var(--accent);
  color: #2B3D43;
  border: 1.5px solid var(--warm3);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #fff;
  color: var(--warm3);
  border: 1.5px solid var(--warm3);
}
.cookie-banner .settings {
  background: var(--primary);
  color: #fff;
  border: none;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    padding: 20px 10px 20px 10px;
    gap: 14px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    flex-direction: column;
    gap: 9px;
  }
}

/* ============================
   COOKIE PREFERENCE MODAL
============================= */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43,61,67,0.32);
  z-index: 110;
  animation: fadeIn .35s;
}
.cookie-modal-backdrop.open {
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px 0 rgba(43,61,67,0.21);
  padding: 40px 30px 22px 30px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: slideInModal .33s;
  z-index: 111;
  position: relative;
}
@keyframes slideInModal {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 11px;
}
.cookie-modal .category-info {
  flex: 1 1 0%;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.07rem;
}
.cookie-modal .switch {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 14px;
  background: var(--warm2);
  outline: none;
  transition: background .18s;
  cursor: pointer;
  position: relative;
}
.cookie-modal .switch:checked {
  background: var(--warm3);
}
.cookie-modal .switch::before {
  content: '';
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 2.2px;
  transition: left .16s;
}
.cookie-modal .switch:checked::before {
  left: 17px;
}
.cookie-modal .category-desc {
  font-size: 0.97rem;
}
.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 13px;
  cursor: pointer;
  border: none;
}
.cookie-modal .accept {
  background: var(--warm3);
  color: #fff;
}
.cookie-modal .reject {
  background: var(--accent);
  color: var(--primary);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 19px;
  right: 17px;
  background: transparent;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: var(--warm3);
}
@media (max-width: 480px) {
  .cookie-modal {
    min-width: 95vw;
    padding: 24px 7px 14px 9px;
    border-radius: 14px;
  }
}

/* ============================
   MISC
============================= */
::-webkit-scrollbar {
  width: 9px;
  background: #EFE7DB;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--warm2);
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--warm3);
}

/* ============================
   ACCESSIBILITY
============================= */
:focus-visible {
  outline: 2px solid var(--warm3);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ============================
   END OF CSS
============================= */
