/* ==== 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;
}
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F1ECE6;
  color: #23292F;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  padding-left: 1.2em;
}
a {
  color: #23292F;
  text-decoration: none;
  transition: color 0.24s;
}
a:hover, a:focus {
  color: #9EB2BF;
  outline: none;
}

/* ==== SCANDINAVIAN CLEAN DESIGN SYSTEM ==== */
:root {
  --primary: #23292F;
  --secondary: #9EB2BF;
  --accent: #F1ECE6;
  --card-bg: #fff;
  --border-radius: 18px;
  --shadow: 0 4px 24px 0 rgba(34,41,47,0.06);
  --shadow-lg: 0 8px 40px 0 rgba(34,41,47,0.08);
  --transition: 0.22s cubic-bezier(.4,.08,.24,1);
}

body {
  font-size: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--accent);
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 18px;
}
strong {
  font-weight: 700;
}

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

.container {
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1080px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.card-container,
.feature-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.0125);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 220px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
  min-width: 285px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: var(--shadow-lg);
  transform: scale(1.0125);
}
.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
}
.star-rating {
  color: #FFD200;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(109deg, #F1ECE6 60%, #fff 100%);
  padding: 68px 0 48px 0;
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.hero h1, .hero h2 {
  margin-bottom: 10px;
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(34,41,47,.04);
}

/* CTA BUTTONS, LINKS */
.cta-button, .footer-cta, .cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 34px;
  margin: 6px 0;
  box-shadow: 0 2px 12px rgba(34,41,47,0.07);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.cta-button:hover,
.cta-button:focus,
.footer-cta:hover,
.footer-cta:focus,
.cta-link:hover,
.cta-link:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 5px 24px rgba(34,41,47,0.15);
  text-decoration: none;
}
.cta-link {
  background: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--secondary);
  font-size: 1rem;
  padding: 10px 24px;
  margin-top: 18px;
  border-radius: 50px;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.cta-link:hover, .cta-link:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--primary);
}
.link {
  text-decoration: underline;
  color: var(--secondary);
  font-size: 1rem;
  transition: color var(--transition);
  margin-top: 10px;
}
.link:hover, .link:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* ==== HEADER & NAVBAR ==== */
header {
  background: var(--card-bg);
  box-shadow: 0 1px 18px rgba(34,41,47,0.05);
  padding: 0;
  margin-bottom: 30px;
  z-index: 50;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 26px;
}
.logo img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  color: var(--primary);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: rgba(158, 178, 191, 0.10);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  margin-left: 16px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background var(--transition);
  z-index: 210;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,41,47,0.84);
  z-index: 500;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transition: opacity 0.36s, transform 0.32s cubic-bezier(.55,.01,.51,1.01);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 20px 20px 10px 0;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 550;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 0 32px;
  margin-top: 20px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.28rem;
  color: #fff;
  background: none;
  padding: 11px 0;
  width: 100%;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(158, 178, 191, 0.15);
  color: var(--secondary);
}

/* ==== FOOTER ==== */
footer {
  background: var(--card-bg);
  box-shadow: 0 -1px 20px rgba(35,41,47,0.06);
  padding: 44px 0 24px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.footer-brand img {
  height: 36px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-nav a {
  color: var(--primary);
  background: none;
  font-size: 1rem;
  padding: 7px 11px;
  border-radius: 9px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
.footer-contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: #6B6E70;
  font-size: 0.97rem;
}
.footer-contact img {
  vertical-align: middle;
  height: 16px;
  margin-right: 7px;
}
.footer-cta {
  margin-top: 16px;
  text-align: center;
}

/* ==== TABLES ==== */
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
table th, table td {
  padding: 20px 14px;
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
}
table th {
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
}
table tr + tr td {
  border-top: 1px solid #edf2f4;
}
table tr:nth-child(even) td {
  background: #F7F9FA;
}

/* ==== CONTACT INFO, CARDS, SUMMARIES ==== */
.contact-info, .contact-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 22px 0;
}
.contact-info div,
.contact-summary span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.01rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.contact-info img, .contact-summary img {
  height: 18px;
  margin-right: 7px;
  flex-shrink: 0;
}
.contact-info span, .contact-summary span {
  gap: 7px;
}

/* ==== MISC ELEMENTS ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}

/* ==== HERO BUTTONS/ANIMATION ==== */
@media (max-width: 480px) {
  .hero .cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ==== RESPONSIVE LAYOUT ==== */
@media (max-width: 1200px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
  }
  .container {
    padding: 0 8px;
  }
  .main-nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 8px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
    margin-bottom: 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 24px;
  }
  header .container {
    gap: 14px;
    height: auto;
    min-height: 66px;
    padding: 12px 8px;
  }
  .footer-brand {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 1.42rem;
  }
  h2 {
    font-size: 1.19rem;
  }
  h3 {
    font-size: 1rem;
  }
  .footer-brand img {
    height: 28px;
  }
}

/* ==== LISTS ==== */
ul, ol {
  margin-bottom: 18px;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
li {
  margin-bottom: 9px;
}

/* ==== TESTIMONIAL SLIDER (NO ARROWS) ==== */
.testimonial-slider {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
@media (max-width: 768px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==== COOKIE BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 24px 0 rgba(34,41,47,0.13);
  border-radius: 18px 18px 0 0;
  z-index: 800;
  padding: 22px 12px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(.69,0,.37,1), opacity 0.32s;
  max-width: 420px;
  margin: 0 auto;
  left: 0;
  right: 0;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(90px);
  pointer-events: none;
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 10px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 25px;
  padding: 7px 16px;
  margin: 0 1px;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .reject {
  background: #F1ECE6;
  color: var(--primary);
  border: 1.2px solid var(--secondary);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-banner .settings {
  background: none;
  color: var(--primary);
  border: 1.2px solid var(--secondary);
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-backdrop {
  z-index: 9999;
  background: rgba(34,41,47,0.57);
  top:0;left:0;bottom:0;right:0;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 34px 26px 22px 26px;
  min-width: 340px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeinmodal 0.32s;
}
@keyframes fadeinmodal {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 14px;
  font-size: 1.19rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 11px;
  gap: 14px;
}
.cookie-category label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--secondary);
  border-radius: 7px;
}
.cookie-category[aria-disabled="true"] input[type="checkbox"] {
  opacity: 0.44;
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 22px;
  padding: 7px 17px;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.13s;
}
.cookie-modal-actions .save {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal-actions .save:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-modal-actions .cancel {
  background: #fff;
  color: var(--primary);
  border: 1.2px solid var(--secondary);
}
.cookie-modal-actions .cancel:hover {
  background: var(--secondary);
  color: var(--accent);
}

/* ==== MICROINTERACTIONS & HOVER STATE ==== */
button,
.cta-link,
.cta-button,
.footer-cta,
.main-nav a,
.footer-nav a,
.mobile-menu-toggle,
.mobile-menu-close,
.mobile-nav a {
  transition: 
    color 0.18s,
    background 0.17s,
    border-color 0.18s,
    box-shadow 0.21s;
}

/* ==== VISUAL HIERARCHY & SPACING ==== */
.section, section {
  margin-bottom: 60px;
}
.card + .card { margin-left: 0; }
.card, .testimonial-card { margin-bottom: 24px; }

/* ==== UTILITY CLASSES ==== */
.d-flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-24 { gap: 24px; }
.gap-12 { gap: 12px; }

/* ==== FOCUS STATES ==== */
a:focus, button:focus, .cta-link:focus, .cta-button:focus {
  outline: 2px dotted var(--secondary);
  outline-offset: 2px;
}

/* ==== SCROLLBAR FOR MODAL, MOBILE MENU ==== */
.mobile-menu::-webkit-scrollbar,
.cookie-modal::-webkit-scrollbar {
  width: 7px;
  background: var(--accent);
}
.mobile-menu::-webkit-scrollbar-thumb,
.cookie-modal::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 6px;
}

/* ==== OVERFLOW FIX ==== */
html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* ==== Z-INDEX STAGING FOR INTERACTIVITY ==== */
header { z-index: 50; }
.mobile-menu { z-index: 500; }
.cookie-banner { z-index: 800; }
.cookie-modal-backdrop { z-index: 9999; }

/* ==== PREVENT TEXT SELECTION ON ICON BUTTONS ==== */
.mobile-menu-toggle, .mobile-menu-close {
  user-select: none;
}

/* ==== END OF STYLE.CSS ==== */
