/* CSS RESET & BASIC 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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Nunito', Arial, sans-serif;
  background: #FDF6EC;
  color: #3B4637;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #3B4637;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #B49771;
}
ul, ol {
  list-style: none;
}

/* SCANDINAVIAN CLEAN COLOR PALETTE (from brand guidelines) */
:root {
  --primary: #3B4637;
  --secondary: #B49771;
  --accent: #FDF6EC;
  --offwhite: #F8F5F1;
  --shadow: rgba(59, 70, 55, 0.05);
  --card-bg: #fff;
  --footer-bg: #F8F5F1;
}

/* TYPOGRAPHY SCALE */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
p, li, blockquote, ul, ol, span {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.01em;
}
blockquote {
  font-style: italic;
  color: var(--secondary);
  background: var(--offwhite);
  padding: 18px 28px;
  border-left: 4px solid var(--secondary);
  border-radius: 7px;
  margin-bottom: 24px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* CONTAINERS & SECTIONS */
.container {
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 8px;
  }
}

/* HEADER NAVIGATION */
header {
  background: var(--accent);
  box-shadow: 0 2px 18px var(--shadow);
  padding-top: 12px;
  position: relative;
  z-index: 20;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}
nav > a > img {
  height: 44px;
  width: auto;
  margin-right: 20px;
}
nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav ul li {
  margin-bottom: 0;
}
nav ul li a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 2px;
  border-radius: 4px;
  transition: background .15s, color .2s;
}
nav ul li a:hover, nav ul li a:focus {
  color: var(--secondary);
  background: var(--offwhite);
}
.cta-btn {
  background: var(--primary);
  color: #fff;
  font-family: 'Nunito', Arial, sans-serif;
  border: none;
  border-radius: 30px;
  padding: 10px 32px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 10px var(--shadow);
  margin-left: 32px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 16px var(--shadow);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  cursor: pointer;
  margin-left: 12px;
  transition: background .15s;
  z-index: 102;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--secondary); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 36px 28px 28px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 2px;
  width: 100%;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--offwhite);
  color: var(--secondary);
}

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

/* HERO SECTION */
.hero {
  padding: 0;
  background: linear-gradient(135deg, #fff 55%, #FDF6EC 100%);
  margin-bottom: 60px;
}
.hero > .container {
  padding-top: 42px;
  padding-bottom: 42px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 12px;
}
.hero h1, .hero h2 {
  color: var(--primary);
}
.hero h2 {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 1.35rem;
}

/* FEATURED GRID */
.feature-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.feature-item, .card {
  background: var(--card-bg);
  box-shadow: 0 1px 8px var(--shadow);
  border-radius: 15px;
  padding: 24px 22px 20px 22px;
  min-width: 220px;
  flex: 1 1 210px;
  align-items: flex-start;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-item:hover, .feature-item:focus, .card:hover, .card:focus {
  box-shadow: 0 5px 24px var(--shadow);
  transform: translateY(-2px) scale(1.014);
}
.feature-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 3px;
}
.feature-item h3 {
  margin-top: 0;
  font-size: 1.15rem;
  color: var(--primary);
}
.feature-item p {
  font-size: .98rem;
  color: #3B4637;
}

/* TEXT-IMAGE SECTIONS */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* CARD AND GRID LAYOUTS */
.card-container { gap: 24px; flex-wrap: wrap; display: flex; }
.card { margin-bottom: 20px; position: relative; background: var(--card-bg); box-shadow: 0 1px 8px var(--shadow); border-radius: 15px; padding: 24px; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

/* SPACING UTILITIES */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* LISTS */
ul li {
  list-style-type: disc;
  margin-left: 26px;
  margin-bottom: 8px;
  font-size: 1rem;
}
ul li img {
  vertical-align: middle;
  margin-right: 8px;
}

/* TESTIMONIAL CARD */

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--offwhite);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 20px;
  color: #21271F;
  transition: box-shadow 0.2s, background 0.2s;
}
.testimonial-card p {
  flex: 1 1 auto;
  font-size: 1.06rem;
  color: #3B4637;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--secondary);
  font-style: italic;
}
.testimonial-card:hover, .testimonial-card:focus {
  background: #fff8ec;
  box-shadow: 0 8px 28px var(--shadow);
}

/* FOOTER */
footer {
  background: var(--footer-bg);
  padding: 40px 0 20px 0;
  border-top: 1px solid #ECE7DE;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
footer .content-wrapper {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--primary);
  opacity: .9;
  transition: color .2s, opacity .2s;
}
.footer-links a:hover, .footer-links a:focus {
  opacity: 1;
  color: var(--secondary);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: .98rem;
  color: var(--primary);
}
.contact-info img {
  height: 36px;
  margin-bottom: 7px;
}
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style-type: none;
  font-size: .99rem;
  color: var(--primary);
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.social-links a img {
  width: 32px;
  height: 32px;
  opacity: 0.75;
  transition: opacity 0.2s, filter 0.15s;
}
.social-links a:hover img, .social-links a:focus img {
  opacity: 1;
  filter: brightness(1.1) drop-shadow(0 1px 5px var(--shadow));
}
@media (max-width: 950px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* BUTTONS */
button, .btn {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 28px;
  border-radius: 24px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 1px 7px var(--shadow);
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* FORMS & PRIVACY NOTE STYLING */
.privacy-note {
  font-size: 0.95rem;
  color: #70644E;
  margin-top: 12px;
}
.privacy-note a {
  color: var(--secondary);
  text-decoration: underline;
}

/* 
 * COOKIE CONSENT BANNER
 */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffdf7;
  color: var(--primary);
  box-shadow: 0 -2px 18px var(--shadow);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 20px 14px 20px 14px;
  font-size: 1rem;
  transition: transform .35s cubic-bezier(0.48,1.32,0.60,.87), opacity .22s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  flex: 1 1 360px;
  max-width: 600px;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-btn, .cookie-banner .cta-btn {
  min-width: 105px;
  padding: 9px 20px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow .17s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid #ded6c5;
}
.cookie-btn.settings {
  background: #fffdf6;
  color: var(--secondary);
  border: 1px solid #B49771;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}

/* COOKIE CONSENT MODAL */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1001;
  background: rgba(59, 70, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.32s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 56px rgba(59,70,55,0.12);
  padding: 28px 28px 20px 28px;
  max-width: 390px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1101;
}
.cookie-modal-content h3 {
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
  cursor: pointer;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal-close {
  background: transparent;
  color: var(--primary);
  font-size: 1.8rem;
  border: none;
  position: absolute;
  top: 6px;
  right: 14px;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}
.cookie-category .always-on {
  color: var(--secondary);
  font-style: italic;
  margin-left: 8px;
  font-size: .96rem;
}
@media (max-width: 580px) {
  .cookie-modal-content {
    padding: 18px 10px 12px 10px;
  }
}

/* CTA SECTION */
.cta {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px 50px 20px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta a.cta-btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
  margin-top: 24px;
  box-shadow: 0 2px 10px var(--shadow);
  letter-spacing: 0.02em;
  transition: background-color 0.23s, color .2s;
}
.cta a.cta-btn:hover, .cta a.cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* MISC/UTILITY */
hr {
  border: none;
  border-top: 1px solid #ece9e1;
  margin: 24px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 6px;
    padding-right: 6px;
  }
  nav { flex-wrap: wrap; }
  .footer-links, .contact-info, .social-links {
    align-items: flex-start;
  }
  .footer-links {
    gap: 8px;
    font-size: .97rem;
  }
  .hero > .container {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
@media (max-width: 600px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 16px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 15px 11px;
  }
  .section {
    padding: 18px 4px;
  }
  .cta {
    padding: 20px 8px 30px 8px;
  }
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.cta-btn, button, .mobile-menu-toggle {
  transition: background 0.2s, color 0.2s, box-shadow .16s, transform .14s;
}
.cta-btn:active, button:active, .mobile-menu-toggle:active {
  filter: brightness(.97);
  transform: scale(.97);
}
.feature-item, .card, .testimonial-card {
  will-change: box-shadow, transform;
}

/* FOCUS STATES FOR ACCESSIBILITY */
a:focus, button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* HIDE COOKIE MODAL/BANNER by default for JS */
.cookie-modal[aria-hidden="true"], .cookie-banner[aria-hidden="true"] {
  display: none;
}
