/* CSS Reset & Normalize - Scandinavian Clean Base */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #1B263B;
  background-color: #F7FFF7;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1B263B;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #4ECDC4;
  outline-offset: 2px;
}
ul, ol {
  padding-left: 24px;
}
ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}

/* Container & Layout Structure */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-bottom: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(27,38,59,0.07);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  padding: 28px 24px;
  min-width: 240px;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(27,38,59,0.11);
  transform: translateY(-2px) scale(1.015);
}
.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: 10px;
  box-shadow: 0 1px 6px rgba(27,38,59,0.07);
  margin-bottom: 20px;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 5px solid #4ECDC4;
}
.testimonial-card:hover {
  box-shadow: 0 4px 14px rgba(78,205,196,0.14);
  transform: translateY(-2px) scale(1.01);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Typography & Headings */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #1B263B;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.18;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B263B;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #4ECDC4;
  margin-bottom: 6px;
}
p, li {
  font-size: 1rem;
  color: #2a3444;
  margin-bottom: 12px;
}
.strong, strong {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Section */
.hero {
  background: #F7FFF7;
  padding: 60px 0 40px 0;
  margin-bottom: 40px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  max-width: 700px;
  padding: 0;
}
.hero h1 {
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.25rem;
  color: #34425a;
}

/* Navigation */
header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 72px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #1B263B;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  border-radius: 3px;
  background: none;
  transition: color 0.2s, border-bottom 0.2s;
}
header nav a:hover,
header nav a:active {
  color: #4ECDC4;
  border-bottom: 2px solid #4ECDC4;
  background: none;
}
header nav .cta {
  background: #4ECDC4;
  color: #1B263B;
  border-radius: 26px;
  padding: 8px 22px;
  margin-left: 12px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(78,205,196,0.10);
}
header nav .cta:hover,
header nav .cta:focus {
  background: #1B263B;
  color: #F7FFF7;
  box-shadow: 0 4px 16px rgba(78,205,196,0.13);
}

/* Hamburger Menu (Mobile) */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #1B263B;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e1f7f5;
  color: #4ECDC4;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.6,.05,.23,.99), opacity 0.28s;
  box-shadow: 0 4px 40px rgba(27,38,59,0.14);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  padding: 18px 16px 8px 16px;
  align-self: flex-end;
  background: none;
  border: none;
  color: #1B263B;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.18s;
  margin-bottom: 8px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #e1f7f5;
  color: #4ECDC4;
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-left: 24px;
  margin-bottom: 32px;
}
.mobile-nav a {
  color: #1B263B;
  font-size: 1.15rem;
  padding: 12px 0 12px 0;
  border-radius: 3px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.15s, background 0.15s;
  font-weight: 500;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #e1f7f5;
  color: #4ECDC4;
}

/* Footer */
footer {
  background: #F7FFF7;
  border-top: 1px solid #eaeaea;
  padding: 38px 0 14px 0;
  margin-top: 2rem;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: #1B263B;
  font-size: 0.99rem;
  margin-bottom: 2px;
  transition: color 0.18s;
}
footer nav a:hover {
  color: #4ECDC4;
}
footer .text-section {
  gap: 8px;
}
footer img {
  vertical-align: sub;
  margin-right: 8px;
  height: 20px;
  width: 20px;
  display: inline-block;
}
footer > .container > .content-wrapper > div:last-child {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
footer > .container > .content-wrapper > div:last-child a img {
  width: 28px;
  height: 28px;
}

/* Buttons & CTAs */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 13px 34px;
  background: #4ECDC4;
  color: #1B263B;
  border-radius: 26px;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px rgba(78,205,196,0.13);
  margin-top: 10px;
  margin-bottom: 2px;
  letter-spacing: 0.012em;
  transition: background 0.26s, color 0.19s, box-shadow 0.19s, transform 0.18s;
}
.cta:hover,
.cta:focus {
  background: #1B263B;
  color: #F7FFF7;
  box-shadow: 0 5px 18px rgba(27,38,59,0.09);
  transform: translateY(-2px) scale(1.03);
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
  background: #4ECDC4;
  color: #1B263B;
  font-weight: 600;
  padding: 10px 24px;
}
button:focus,
button:hover,
input[type="button"]:focus,
input[type="button"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover {
  background: #1B263B;
  color: #F7FFF7;
}

/* List styles for Scandinavian cleanness */
ul, ol {
  margin-bottom: 8px;
}
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 0px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
ul li img {
  height: 26px;
  width: 26px;
  margin-right: 6px;
}

/* Cards (eg. testimonials) */

.card-grid,
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

/* Blog style enhancements */
section ul ul {
  margin-top: 6px;
  margin-left: 16px;
  padding-left: 16px;
  font-size: 0.99rem;
  color: #64748b;
}
section ul ul li a {
  color: #1B263B;
  font-weight: 500;
  transition: color 0.2s;
}
section ul ul li a:hover {
  color: #4ECDC4;
}

/* Miscellaneous */
::-webkit-scrollbar {
  width: 8px;
  background: #eaeaea;
}
::-webkit-scrollbar-thumb {
  background: #c9e5e2;
  border-radius: 7px;
}

/* Spacing helpers */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 32px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 32px !important; }

.section:last-child {
  margin-bottom: 0 !important;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  color: #1B263B;
  box-shadow: 0 -3px 18px rgba(27,38,59,0.13);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  font-size: 1rem;
  transition: transform 0.33s, opacity 0.3s;
  border-top: 2px solid #4ECDC4;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
}
.cookie-consent-banner .cookie-consent-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 18px;
  border-radius: 21px;
  border: none;
  font-size: 1rem;
  margin-left: 0;
  font-weight: 600;
  background: #4ECDC4;
  color: #1B263B;
  margin-bottom: 0;
  margin-right: 0;
  transition: background 0.2s, color 0.15s;
}
.cookie-btn-secondary {
  background: #eaeaea;
  color: #1B263B;
  margin-left: 0;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #1B263B;
  color: #F7FFF7;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #d6edea;
  color: #1B263B;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; bottom: 0; right: 0;
  width: 100vw; height: 100vh;
  background: rgba(27,38,59,0.19);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 40px rgba(27,38,59,0.20);
  padding: 38px 28px 28px 28px;
  width: 98vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  animation: cookieModalIn 0.41s cubic-bezier(.62,.03,.23,.99);
}
@keyframes cookieModalIn {
  from { transform: scale(0.95) translateY(28px); opacity: 0; }
  to { transform: scale(1) translateY(0px); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 15px;
  border: none;
  background: none;
  font-size: 2rem;
  color: #1B263B;
  cursor: pointer;
  border-radius: 24px;
  transition: background 0.18s;
}
.cookie-modal-close:hover {
  background: #e1f7f5;
}
.cookie-modal-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-switch input[type="checkbox"] {
  accent-color: #4ECDC4;
  width: 18px;
  height: 18px;
}
.cookie-switch .disabled {
  color: #c2c2c2;
  font-weight: 600;
}

/* Accessibility and Touch Area Improvements */
a, button, .mobile-menu-toggle, .cta {
  touch-action: manipulation;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1060px) {
  .container { max-width: 92vw; }
  .hero .container {
    padding: 0 15px;
  }
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .section { margin-bottom: 40px; padding: 28px 10px; }
  .content-wrapper, .text-section {
    gap: 16px;
  }
  .hero { padding: 38px 0 16px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.05rem; }
  /* Header and mobile nav */
  header .container { flex-direction: row; gap: 14px; min-height: 60px; }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  .container { padding: 0 5vw; }
  .section { padding: 16px 2px; }
  h1, .hero h1 { font-size: 1.34rem; }
  h2 { font-size: 1.12rem; }
  .card { padding: 16px 10px; font-size: 0.97rem; }
  .testimonial-card { padding: 12px; }
}
@media (max-width: 530px) {
  .hero .container { padding: 0 6px; }
  .cookie-consent-banner { flex-direction: column; gap: 8px; padding: 13px 5vw; }
  .cookie-consent-banner .cookie-consent-actions { flex-wrap: wrap; gap: 8px; }
  .mobile-menu nav.mobile-nav { padding-left: 4vw; }
}

/* Content responsive flex adjustments */
@media (max-width: 900px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* Make hero/content-wrapper/text-section responsive */
@media (max-width: 500px) {
  .content-wrapper, .text-section { gap: 9px; }
  footer .container { padding: 0 2vw; }
}

/* Utility accessibility focus states */
a:focus-visible, .cta:focus-visible, button:focus-visible {
  outline: 2px solid #4ECDC4;
  outline-offset: 2px;
}

/* Subtle fade-in animations for hero sections */
.hero, .card, .testimonial-card, .cta {
  opacity: 0;
  animation: fadeInUp 0.60s cubic-bezier(.7,.06,.19,.98) forwards;
  animation-delay: 0.14s;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); } 
  to   { opacity: 1; transform: translateY(0); } 
}

/* Ensure no element overlap */
.card, .testimonial-card, .section, .feature-item, .content-wrapper, .card-container {
  margin-bottom: 20px;
}

/* End of Scandinavian Clean - Smooth Market CSS */
