/* ========================== */
/*   CSS RESET & BASE STYLES  */
/* ========================== */
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;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #244D3A;
  background-color: #F7F5F0;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #244D3A;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #244D3A;
}
h1 { font-size: 2.4rem; margin-bottom: 18px; }
h2 { font-size: 1.7rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 500; }
p {
  margin-bottom: 18px;
  font-size: 1rem;
}
strong { font-weight: 700; }
small { font-size: 90%; color: #6A746B; }

/* ========================== */
/*         CONTAINER          */
/* ========================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  color: #244D3A;
}

/* ========================== */
/*         SECTIONS           */
/* ========================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.hero {
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(36,77,58,0.06);
  margin-bottom: 60px;
  padding: 40px 20px!important;
}

main section:not(.hero) {
  background: transparent;
}

/* ============================== */
/*         FLEXBOX PATTERNS        */
/* ============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(36,77,58,.10);
  position: relative;
  padding: 28px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(36,77,58,.13);
  transform: translateY(-2px) scale(1.014);
}
.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;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 6px 0 rgba(36,77,58,.09);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ========================== */
/*         BUTTONS            */
/* ========================== */
.cta, .cta.primary, .newsletter button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  background: #B88648;
  color: #fff !important;
  border: none;
  box-shadow: 0 2px 6px 0 rgba(184,134,72,0.06);
  box-sizing: border-box;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.16s;
}
.cta.primary, .cta.primary:visited {
  background: #244D3A;
  color: #fff !important;
}
.cta:hover, .cta:focus {
  background: #244D3A;
  color: #FFF;
  box-shadow: 0 4px 20px 0 rgba(36,77,58,0.12);
  transform: scale(1.025);
}
.newsletter button {
  margin-top: 0;
}

/* ========================== */
/*           NAV              */
/* ========================== */
header {
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(36,77,58,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header img {
  height: 36px;
  width: auto;
  margin-right: 12px;
  margin-left: 0;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
}
nav a {
  color: #244D3A;
  opacity: 0.88;
  padding: 7px 10px;
  border-radius: 4px;
  transition: background 0.13s, color 0.13s, opacity 0.1s;
}
nav a:hover,
nav a:focus {
  background: #F7F5F0;
  color: #B88648;
  opacity: 1;
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  line-height: 1;
  color: #244D3A;
  cursor: pointer;
  margin-left: 16px;
  z-index: 55;
  padding: 6px 12px 6px 6px;
  border-radius: 4px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F7F5F0;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(36,77,58,0.82);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100vw);
  opacity: 0;
  z-index: 100;
  transition: transform 0.32s cubic-bezier(.7,.1,1,1), opacity 0.19s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  margin: 28px 24px 12px 0;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #B88648;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 70vw;
  max-width: 340px;
  background: #fff;
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  min-height: 100vh;
  padding: 16px 32px 32px 24px;
  box-shadow: 0 0 32px 0 rgba(36,77,58,0.10);
  align-items: flex-start;
}
.mobile-nav a {
  color: #244D3A;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  padding: 12px 0;
  width: 100%;
  text-align: left;
  border-radius: 4px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F7F5F0;
  color: #B88648;
}

/* Hide desktop nav, show burger on small screens */
@media (max-width: 900px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}


@media (max-width: 900px) {
  .cta.primary {
    display: none;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ============================== */
/*          FOOTER                 */
/* ============================== */
footer {
  background: #F7F5F0;
  border-top: 1px solid #e5e3dc;
  margin-top: 72px;
  padding-top: 30px;
  padding-bottom: 20px;
  color: #244D3A;
}
footer .container {
  flex-direction: column;
  gap: 16px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
}
footer nav {
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  font-size: 1rem;
}
footer nav a {
  color: #244D3A;
  opacity: 0.8;
  font-weight: 500;
}
footer nav a:hover {
  color: #B88648;
  opacity: 1;
  background: none;
}
footer .content-wrapper > a img {
  height: 38px;
  margin-bottom: 10px;
}
footer .text-section {
  color: #244D3A;
  font-size: 0.97rem;
}
footer form.newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  padding: 14px 12px 14px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(36,77,58,0.06);
}
footer .newsletter label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #244D3A;
  margin-bottom: 2px;
}
footer .newsletter input[type="email"] {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 7px;
  outline: none;
  transition: border 0.18s;
}
footer .newsletter input[type="email"]:focus {
  border: 1.5px solid #B88648;
}
footer .newsletter button {
  width: auto;
  border: none;
}
footer small {
  margin-top: 18px;
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: #85968b;
  letter-spacing: 0.04em;
}

/* ================================ */
/*           TABLE STYLES           */
/* ================================ */
table {
  width: 100%;
  border-collapse: collapse;
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(36,77,58,0.04);
  margin-bottom: 24px;
  overflow: hidden;
  font-size: 1rem;
}
thead {
  background: #F7F5F0;
  font-family: 'Montserrat', Arial, sans-serif;
}
th, td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid #ece7dc;
}
th {
  font-weight: 700;
  color: #244D3A;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* ============================== */
/*         FORM ELEMENTS          */
/* ============================== */
input[type="email"] {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
input[type="email"]:focus {
  border: 1.5px solid #B88648;
  outline: none;
}
button[type="submit"], .newsletter button {
  background: #B88648;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.14s, transform 0.1s;
}
button[type="submit"]:hover, .newsletter button:hover,
button[type="submit"]:focus, .newsletter button:focus {
  background: #244D3A;
  color: #fff;
  transform: scale(1.03);
}

/* ============================== */
/*         ICON ALIGNMENT         */
/* ============================== */
p img, .text-section img {
  vertical-align: middle;
  margin-right: 6px;
  height: 22px;
  width: 22px;
}

/* ============================== */
/*        TESTIMONIALS Styles     */
/* ============================== */
.testimonial-card {
  color: #222;
  background: #fff;
  border-left: 4px solid #B88648;
  padding: 20px 28px;
  box-shadow: 0 2px 12px 0 rgba(36,77,58,.07);
  margin-bottom: 20px;
  font-size: 1.08rem;
  flex-direction: column;
  align-items: flex-start;
  max-width: 540px;
  min-width: 0;
  transition: box-shadow 0.2s, transform 0.16s;
}
.testimonial-card span {
  color: #244D3A;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.01em;
  display: block;
}
.testimonial-card:hover {
  box-shadow: 0 10px 24px 0 rgba(36,77,58,0.10);
  transform: scale(1.018);
}

/* ========================== */
/*       SPACING  RULES       */
/* ========================== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .feature-list {
  gap: 20px;
}
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 24px;
}

/* Prevent element overlapping (extra space on small screens) */
@media (max-width: 900px) {
  .content-wrapper {
    gap: 18px;
  }
  .footer .content-wrapper {
    gap: 14px;
  }
  section, .hero {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
  .card {
    padding: 20px 10px 16px 12px;
  }
}

/* ========================== */
/*    FLEX RESPONSIVE RULES   */
/* ========================== */
@media (max-width: 768px) {
  .content-wrapper, 
  .card-container, 
  .content-grid,
  .text-image-section, 
  .feature-list {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .hero {
    padding: 30px 8px!important;
  }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    gap: 13px;
    padding-left:8px; padding-right:8px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px 0;
  }
}

/* =============================== */
/*         LINKS / FOCUS            */
/* =============================== */
a:focus, button:focus, input:focus {
  outline: 2px solid #B88648;
  outline-offset: 2px;
  z-index: 5;
}

/* =============================== */
/*          SCROLLBAR              */
/* =============================== */
::-webkit-scrollbar {
  width: 9px;
  background: #F7F5F0;
}
::-webkit-scrollbar-thumb {
  background: #dedcd5;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B88648;
  opacity: .8;
}

/* =============================== */
/*       COOKIE CONSENT BANNER     */
/* =============================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 130;
  width: 100vw;
  background: #FFF;
  color: #244D3A;
  box-shadow: 0 -2px 18px 0 rgba(36,77,58,.14);
  border-radius: 16px 16px 0 0;
  padding: 18px 16px 24px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.36s, opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__msg {
  flex: 1 1 auto;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 24px;
  background: #B88648;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.12s, transform 0.08s;
}
.cookie-btn.accept {
  background: #244D3A;
}
.cookie-btn.reject {
  background: #aeac9b;
  color: #fff;
}
.cookie-btn.settings {
  background: #F7F5F0;
  color: #244D3A;
  border: 1px solid #B88648;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.06) contrast(0.96);
  background: #B88648;
  color: #fff;
  outline: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f2ead6;
  color: #B88648;
  border: 1px solid #B88648;
}

/* =============================== */
/*         COOKIE MODAL            */
/* =============================== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,77,58,0.44);
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0; pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  min-width: 310px;
  max-width: 99vw;
  max-width: 420px;
  padding: 36px 28px 24px 28px;
  box-shadow: 0 4px 36px 0 rgba(36,77,58,0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #244D3A;
  animation: popIn 0.26s cubic-bezier(.58,.82,.35,1.47);
}
@keyframes popIn {
  0% {transform: scale(0.92) translateY(26px); opacity:0;}
  85% {transform: scale(1.02) translateY(-4px); opacity:0.96;}
  100% {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h3 {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 7px;
  color: #244D3A;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-toggle {
  width: 44px;
  height: 22px;
  background: #F7F5F0;
  border-radius: 16px;
  position: relative;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  transition: background 0.19s;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #B88648;
  transition: transform 0.19s, background 0.15s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: #244D3A;
  transform: translateX(21px);
}
.cookie-toggle.disabled {
  filter: grayscale(0.92) opacity(0.56);
  cursor: not-allowed;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  min-width: 80px;
}

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

/* ========================== */
/*     SCANDINAVIAN LAYOUTS   */
/* ========================== */
/* Subtle shadow and roundness for functional beauty */
.card, .testimonial-card, .cookie-modal, .newsletter, .hero {
  box-shadow: 0 2px 12px 0 rgba(36,77,58,0.06);
  border-radius: 16px;
}

/* ================================= */
/*      ACCESSIBLE HIDE TEXT         */
/* ================================= */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========================== */
/*         END                */
/* ========================== */
