/* RESET AND 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F7FA;
  color: #22313F;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #22313F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F0A500;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}


/* SCANDINAVIAN_CLEAN PALETTE ROOTS */
:root {
  --color-primary: #22313F;
  --color-secondary: #F0A500;
  --color-accent: #F5F7FA;
  --color-neutral: #ffffff;
  --color-border: #e7e9ef;
  --color-shadow: rgba(34, 49, 63, 0.06);
  --radius-main: 14px;
  --radius-btn: 24px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

body, html {
  width: 100%;
  min-height: 100vh;
  background: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--color-primary);
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #22313F;
  margin-bottom: 10px;
  line-height: 1.7;
}
strong {
  font-weight: 600;
}

/* CONSISTENT SECTION SPACING (MANDATORY) */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
}

ul, ol {
  margin-bottom: 20px;
}

/* BUTTONS */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-secondary);
  color: var(--color-neutral);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.9em 2.2em;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.13s;
  margin-top: 18px;
  cursor: pointer;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #d18e00;
  color: var(--color-neutral);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 18px var(--color-shadow);
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-neutral);
  padding: 0;
  box-shadow: 0 1px 10px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 21;
}
header .container {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 20px;
}
header img {
  max-height: 40px;
  margin-right: 24px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a.active {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* Hide mobile nav by default */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* HERO and GENERAL SECTION LAYOUT */
.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* FLEX LAYOUTS - NO CSS GRID! */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-neutral);
  position: relative;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 28px 26px;
  min-width: 260px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
}

.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;
  margin-bottom: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 26px;
  background: #fff;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 14px var(--color-shadow);
  margin-bottom: 20px;
  border-left: 4px solid var(--color-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card p {
  color: #22313F;
  margin-bottom: 0;
}
.testimonial-card div {
  font-size: 1.4rem;
  color: var(--color-secondary);
  margin-bottom: 0;
  letter-spacing: 2px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-neutral);
  border-radius: var(--radius-main);
  box-shadow: 0 1.5px 8px var(--color-shadow);
  padding: 24px 22px;
  min-width: 220px;
  flex: 1 1 220px;
}
.feature-item img {
  height: 40px;
  margin-bottom: 10px;
}

/* FEATURES GRID (index, about, services) */
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 24px;
  width: 100%;
  justify-content: flex-start;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color-neutral);
  border-radius: var(--radius-main);
  padding: 26px 18px;
  min-width: 220px;
  gap: 14px;
  box-shadow: 0 1.5px 8px var(--color-shadow);
  flex: 1 1 220px;
  margin-bottom: 20px;
}
.service-item img {
  height: 44px;
  margin-bottom: 8px;
}
.service-list {
  width: 100%;
  justify-content: flex-start;
}

/* TEXT SECTIONS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.text-section h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.text-section ul {
  list-style: disc inside;
  color: #22313F;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: var(--color-neutral);
  box-shadow: 0 1.5px 7px var(--color-shadow);
  border-radius: var(--radius-main);
  padding: 22px 18px;
  margin-bottom: 10px;
}
.faq-item h3 {
  margin-bottom: 6px;
}

/* TRUST BADGES */
.trust-badges {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  align-items: center;
}
.trust-badges img {
  height: 44px;
}

/* FOOTER */
footer {
  background: var(--color-neutral);
  box-shadow: 0 -1px 10px var(--color-shadow);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 50px 0 30px 0;
  border-bottom: 1px solid var(--color-border);
}
.footer-top img {
  height: 48px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #22313F;
  font-weight: 400;
  font-size: 1rem;
  padding: 4px 0;
}
.footer-nav a:hover { color: var(--color-secondary); }
.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.social-links a img {
  width: 26px;
  height: 26px;
  opacity: 0.86;
  transition: opacity 0.17s;
}
.social-links a:hover img {
  opacity: 1;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #22313F;
  margin-bottom: 4px;
}
.contact-info img {
  height: 18px; width: 18px;
  opacity: 0.6;
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0px;
  font-size: 0.95rem;
  color: #888;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .container {
    max-width: 92vw;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 0 8px;
  }
  nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    font-size: 2rem;
    color: var(--color-primary);
    padding: 10px 16px;
    background: none;
    border-radius: 99px;
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 130;
    box-shadow: 0 1px 4px var(--color-shadow);
    transition: background 0.17s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--color-accent);
    color: var(--color-secondary);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(245,247,250, 0.98);
    box-shadow: 0 2px 28px #22313F33;
    z-index: 150;
    padding-top: 34px;
    transform: translateX(100%);
    transition: transform 0.37s cubic-bezier(0.83, 0, 0.17, 1);
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    font-size: 2.2rem;
    color: var(--color-primary);
    align-self: flex-end;
    margin: 10px 22px 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 160;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 0 0 34px;
    width: 100%;
  }
  .mobile-nav a {
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    padding: 14px 0;
    border-radius: 10px;
    transition: background 0.18s, color 0.18s;
  }
  .mobile-nav a:active, .mobile-nav a:hover {
    background: var(--color-accent);
    color: var(--color-secondary);
  }
  .section, section {
    padding: 32px 4vw;
    margin-bottom: 44px;
  }
  .content-wrapper {
    max-width: 100vw;
  }
  .feature-grid, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .feature-item, .service-item, .faq-item {
    max-width: 100vw;
    padding: 20px 10px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-top {
    padding: 40px 0 22px 0;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .section, section {
    padding: 22px 4vw;
  }
  .testimonial-card { padding: 14px 4vw; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--color-neutral);
  box-shadow: 0 -2px 24px var(--color-shadow);
  border-top: 2px solid var(--color-border);
  padding: 24px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.32s cubic-bezier(0.84,0,0.16,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner p {
  color: #22313F;
  font-size: 1rem;
  text-align: center;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.6em 2em;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--color-secondary);
  color: var(--color-neutral);
  margin-top: 6px;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--color-shadow);
}
.cookie-btn.reject {
  background: #c4c9cf;
  color: #22313F;
}
.cookie-btn.settings {
  background: #22313F;
  color: var(--color-neutral);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #d18e00;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #9299a5;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,49,63, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieOverlayFadeIn 0.2s cubic-bezier(0.7, 0, 0.3, 1);
}
@keyframes cookieOverlayFadeIn {
  from { background: rgba(34,49,63,0); }
  to   { background: rgba(34,49,63, 0.30); }
}
.cookie-modal {
  background: var(--color-neutral);
  border-radius: var(--radius-main);
  box-shadow: 0 7px 36px var(--color-shadow);
  min-width: 320px;
  max-width: 98vw;
  padding: 34px 30px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: cookieModalIn 0.22s cubic-bezier(0.77, 0, 0.18, 1);
  position: relative;
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 3px 0;
}
.cookie-modal-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #22313F;
  font-weight: 400;
}
.cookie-toggle {
  appearance: none;
  width: 46px;
  height: 26px;
  background: #E0E5ED;
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
}
.cookie-toggle:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-neutral);
  transition: left 0.17s;
  box-shadow: 0 1px 3px var(--color-shadow);
}
.cookie-toggle:checked:before {
  left: 23px;
}
.cookie-modal-buttons {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: #22313F;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.15s;
}
.cookie-modal .close-modal:hover {
  color: var(--color-secondary);
}

/* FORMS (FOR FUTURE-PROOFING) */
input[type="text"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-neutral);
  margin-bottom: 12px;
  width: 100%;
  transition: border-color 0.16s;
}
input:focus, textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
}
label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #22313F;
  margin-bottom: 5px;
}

/* Table Styles for Policies */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
thead th {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
}
th, td {
  border: 1px solid var(--color-border);
  padding: 10px;
  text-align: left;
  font-size: 1rem;
}

/* MICRO-INTERACTIONS */
.card, .feature-item, .service-item {
  transition: box-shadow 0.14s, transform 0.17s;
}
.card:hover, .feature-item:hover, .service-item:hover {
  box-shadow: 0 8px 32px rgba(34,49,63,0.09);
  transform: translateY(-2px) scale(1.016);
}
.testimonial-card:hover {
  box-shadow: 0 10px 28px rgba(34,49,63,0.13);
  transform: translateY(-1.5px) scale(1.01);
}

/* VISUAL ENHANCEMENTS */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 28px 0;
}

/* ACCESSIBILITY: HIGH CONTRAST IN TESTIMONIALS */
.testimonial-card {
  background: #fff;
  color: #22313F;
  border-left: 4px solid #F0A500;
}
.testimonial-card strong {
  color: #22313F;
}

/* Ensures no overlapping and adequate spacing */
.card, .feature-item, .service-item, .testimonial-card, .faq-item {
  margin-bottom: 20px;
}

/* ENSURE FLEX ONLY LAYOUTS! (NO GRID, NO COLUMNS) */
/* All layout containers above use display:flex */

/* HIDE SCROLL ON MOBILE MENU WHEN OPEN */
body.mobile-menu-open {
  overflow: hidden;
}

/* PRINT OPTIMIZATION */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  section {
    margin-bottom: 10px !important;
    padding: 0 !important;
  }
}
