/* ===============================
   CSS RESET & BASE 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 {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F8F6F2;
  color: #2B3440;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
  padding: 0;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}
:focus {
  outline: 2px solid #B8875C;
  outline-offset: 2px;
}

/* ===============================
   BRAND COLORS & TYPOGRAPHY TOKENS
   =============================== */
:root {
  --color-primary: #2B3440;
  --color-secondary: #B8875C;
  --color-accent: #F8F6F2;
  --color-body: #2B3440;
  --color-bg: #F8F6F2;
  --color-paper: #fff;
  --color-border: #e5e0d7;
  --color-shadow: rgba(43,52,64,0.08);
  --radius-base: 12px;
  --shadow-base: 0 2px 12px var(--color-shadow);
  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ===============================
   GLOBAL LAYOUT
   =============================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* Spacing Rules per brief */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-paper);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-base);
  border-radius: var(--radius-base);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===============================
   HEADER & MAIN NAVIGATION
   =============================== */
header {
  background: var(--color-paper);
  box-shadow: 0 2px 8px var(--color-shadow);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 20;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
header img {
  height: 44px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cta.primary {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 32px;
  border-radius: 999px;
  box-shadow: 0 2px 8px var(--color-shadow);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background .18s, box-shadow .2s, color .18s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #98673d;
  color: #fff;
  box-shadow: 0 4px 16px var(--color-shadow);
}
.cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 10px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.16s, color 0.16s;
}
.cta:hover, .cta:focus {
  background: var(--color-secondary);
  color: var(--color-paper);
}

/* ===============================
   HERO SECTION & PAGE HEADINGS
   =============================== */
.hero {
  width: 100%;
  padding: 56px 0 48px 0;
  background: linear-gradient(0deg, #F8F6F2 80%, #e9e2d6 100%);
  box-shadow: 0 1px 8px var(--color-shadow);
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.18rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  margin-bottom: 16px;
}

/* ===============================
   FEATURES, SERVICES, CATEGORIES
   =============================== */
.features, .services, .feature-grid, .feature-list, .service-list {
  width: 100%;
}
.features .content-wrapper,
.services .content-wrapper {
  gap: 32px;
}
.feature-grid, .feature-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  justify-content: flex-start;
}
.feature-grid li, .service-list li, .feature-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-base);
  border-radius: var(--radius-base);
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: box-shadow .2s, border-color .2s, transform 0.13s;
}
.feature-grid li:hover, .service-list li:hover, .feature-list li:hover {
  box-shadow: 0 6px 24px var(--color-shadow);
  border-color: var(--color-secondary);
  transform: translateY(-3px) scale(1.04);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: grayscale(10%) contrast(1.05);
}
.feature-grid h3, .feature-list h3, .service-list h3 {
  font-family: var(--font-display);
  font-size: 1.20rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-grid p, .feature-list p, .service-list p {
  font-size: 1rem;
}
.service-list .price {
  margin-top: auto;
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

/* ===============================
   SECTIONS, TEXT BLOCKS & CARDS
   =============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.35rem;
}
h2 {
  font-size: 1.65rem;
}
h3 {
  font-size: 1.20rem;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
}
.text-section ul, .text-section ol {
  padding-left: 24px;
  margin-bottom: 0;
}
.text-section li {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.65;
}
.text-section li:before {
  content: '\2022';
  color: var(--color-secondary);
  font-size: 1.1em;
  margin-right: 8px;
  vertical-align: middle;
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
}
strong {
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--color-primary);
}

/* ===============================
   TESTIMONIALS & CONFIRMATION
   =============================== */
.testimonials .content-wrapper {
  gap: 22px;
  align-items: flex-start;
}
.testimonial-card {
  background: #fff;
  color: #232a33;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  border: 1px solid var(--color-border);
  font-size: 1.08rem;
  align-items: flex-start;
  line-height: 1.7;
}
.testimonial-card p {
  font-style: italic;
  color: #232a33;
  flex: 1 1 auto;
  font-size: 1.08rem;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.99rem;
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  margin-left: 16px;
  white-space: nowrap;
}
.confirmation {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  margin-top: 32px;
}
.confirmation h1 {
  color: var(--color-secondary);
  font-size: 2.25rem;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  border-top: 1px solid var(--color-border);
  background: #f5f3ee;
  padding: 28px 0 18px 0;
  margin-top: 60px;
  width: 100%;
}
footer .container {
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 4px 8px;
  border-radius: 5px;
  letter-spacing: 0.01em;
  transition: color .16s, background .16s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
  background: var(--color-accent);
}
footer p {
  font-size: 0.95rem;
  margin-top: 10px;
  color: var(--color-primary);
  font-family: var(--font-body);
}

/* ===============================
   RESPONSIVE - MOBILE-FIRST
   =============================== */
@media (max-width: 1024px) {
  .container { max-width: 94vw; }
  .feature-grid li, .service-list li, .feature-list li { max-width: 48vw; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { max-width: 100vw; padding: 0 7vw; }
  .section, .card { padding: 26px 8px; }
  .content-wrapper, .text-section { gap: 14px; }
  .feature-grid, .service-list, .feature-list { gap: 16px; }
  .feature-grid li, .service-list li, .feature-list li { min-width: 96vw; max-width: 98vw; }
  .hero { padding: 44px 0 20px 0; }
  .hero h1 { font-size: 1.65rem; }
  .confirmation { min-height: 180px; }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  header .container { gap: 6px; }
  header nav, footer nav { gap: 9px; }
  .hero h1 { font-size: 1.19rem; }
}
@media (max-width: 500px) {
  .section, .card { padding: 17px 2vw; }
  .container { padding: 0 2vw; }
  h1 { font-size: 1.13rem; }
  h2 { font-size: 1rem; }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}

/* ===============================
   BURGER MOBILE MENU & OVERLAY
   =============================== */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
.mobile-menu-close {
  display: none;
}
@media (max-width: 900px) {
  header nav, .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border: none;
    background: var(--color-secondary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    transition: background .18s, box-shadow .2s;
    z-index: 120;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #98673d;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(40,43,51,0.85);
    z-index: 2000;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .34s cubic-bezier(0.4,0,0.2,1), opacity .22s;
  }
  .mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: #fff;
    background: var(--color-secondary);
    border-radius: 8px;
    margin: 24px 24px 12px 0;
    padding: 7px 22px;
    cursor: pointer;
    border: none;
    transition: background .17s;
    z-index: 9995;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    background: #98673d;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin: 0 28px;
    gap: 16px;
    margin-top: 30px;
    z-index: 9990;
  }
  .mobile-nav a {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    background: var(--color-primary);
    padding: 14px 32px;
    border-radius: 10px;
    margin-bottom: 4px;
    width: 100%;
    text-align: right;
    transition: background 0.18s, color 0.16s;
    box-shadow: 0 2px 8px rgba(60,60,60,.13);
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--color-secondary);
    color: #fff;
  }
}

/* Animate slide for .mobile-menu (JS will add .active class) */
.mobile-menu {
  will-change: transform, opacity;
}

/* ===============================
   COOKIES CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 24px rgba(50,35,18,0.095);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 3100;
  gap: 28px;
  font-size: 1rem;
  animation: cookie-in 0.5s;
}
.cookie-banner p {
  color: var(--color-primary);
  margin: 0 0 0 0;
  flex: 1;
  font-family: var(--font-body);
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1rem;
  border: none;
  font-family: var(--font-display);
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #98673d;
}
.cookie-btn.reject {
  background: #d3cdc4;
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #bab6af;
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #f1ede7;
  color: var(--color-secondary);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 4vw 14px 4vw;
  }
  .cookie-buttons {
    gap: 9px;
  }
}
/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(43,52,64,0.32);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.22s;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-base);
  box-shadow: 0 6px 44px rgba(43,52,64,0.12);
  border: 1px solid var(--color-border);
  max-width: 98vw;
  min-width: 310px;
  width: 94vw;
  max-width: 420px;
  padding: 32px 18px 24px 18px;
  z-index: 3510;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookie-modal-in 0.22s;
}
.cookie-modal h2 {
  font-size: 1.24rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  padding: 7px 0;
}
.cookie-category input[type=checkbox] {
  width: 24px; height: 24px;
  accent-color: var(--color-secondary);
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-primary);
}
.cookie-category.essential label {
  font-weight: 600;
  color: var(--color-secondary);
}
.cookie-category .switch {
  margin-left: auto;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 16px;
  font-size: 1.5em;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3520;
}
.cookie-modal-close:hover { color: var(--color-secondary); }

@keyframes cookie-in {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes cookie-modal-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===============================
   UTILITY CLASSES
   =============================== */
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.gap-16 { gap: 16px !important; }

/* ===============================
   FORMS & INTERACTIVE ELEMENTS
   =============================== */
input, textarea, select {
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 11px 13px;
  font-size: 1rem;
  background: #FAF9F7;
  color: var(--color-primary);
  margin-bottom: 16px;
  transition: border-color .17s;
  box-shadow: 0 1px 2px rgba(110, 80, 11, 0.04);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  background: #fff;
}
label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

/* ===============================
   MICRO-INTERACTIONS
   =============================== */
.card, .feature-grid li, .service-list li, .feature-list li, .testimonial-card, .cta.primary, .cta, .mobile-nav a, .cookie-btn {
  transition: box-shadow 0.19s, border-color 0.19s, color 0.16s, background 0.17s, transform 0.13s;
}
h1, h2, h3, h4, h5, h6 { transition: color 0.16s; }

/* ===============================
   SCANDINAVIAN CLEAN NEUTRAL SPACING
   =============================== */
.section, .card, .testimonial-card, .feature-grid li, .service-list li, .feature-list li {
  margin-bottom: 20px;
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
}
.section:last-child, .card:last-child, .testimonial-card:last-child, .feature-grid li:last-child, .service-list li:last-child, .feature-list li:last-child {
  margin-bottom: 0;
}

/* ===============================
   CUSTOM SCROLLBAR
   =============================== */
::-webkit-scrollbar { width: 10px; background: #f1ede7; }
::-webkit-scrollbar-thumb { background: #d2c7b5; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #c2b098; }

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