/* ==================== CSS RESET & NORMALIZATION ==================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  background: #F6F7F9;
  color: #27304A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.2em;
}
li {
  margin-bottom: 8px;
}
a {
  color: #28A2B7;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #1a6d7d;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: #27304A;
  line-height: 1.2;
}
h1 {font-size: 2.4rem;}
h2 {font-size: 2rem;}
h3 {font-size: 1.4rem;}
h4 {font-size: 1.15rem;}
h5 {font-size: 1rem;}
h6 {font-size: 0.95rem;}

/* ==================== LAYOUT CONTAINERS ==================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.features-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(39,48,74,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(39,48,74,0.13);
  transform: translateY(-6px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  color: #27304A;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(39,48,74,0.073);
  padding: 20px 28px;
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4.5px 22px rgba(39,48,74,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========== HERO SECTIONS =========== */
.hero {
  background: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 24px rgba(39, 48, 74, 0.10);
  padding-top: 56px;
  padding-bottom: 56px;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: #27304A;
  font-size: 2.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.hero p {
  max-width: 650px;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* =========== BUTTONS =========== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  padding: 0.7em 2em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: #28A2B7;
  box-shadow: 0 1px 4px rgba(39,48,74,0.06);
  cursor: pointer;
  border: none;
  transition: background 0.20s, transform 0.15s, box-shadow 0.15s;
  outline: none;
  margin: 12px 0;
  text-decoration: none;
}
.button.primary {
  background: #28A2B7;
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: #1a6d7d;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px rgba(39, 48, 74, 0.17);
}
.button.secondary {
  background: #fff;
  color: #28A2B7;
  border: 2px solid #28A2B7;
}
.button.secondary:hover, .button.secondary:focus {
  background: #E6F5F7;
  color: #1a6d7d;
}
.button:active {
  transform: scale(0.98);
}

/* ============== MAIN NAVIGATION ============== */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(39,48,74,0.07);
  position: sticky;
  top: 0;
  z-index: 19;
  width: 100%;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 13px 16px;
}
.main-nav img {
  height: 40px;
  margin-right: 22px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #27304A;
  padding: 7px 15px;
  border-radius: 17px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6F7F9;
  color: #28A2B7;
}
.main-nav .button {
  margin-left: auto;
}

/* Hide main nav on mobile */
@media (max-width: 1080px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* ============== MOBILE MENU ================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  font-size: 2.2em;
  color: #27304A;
  border: none;
  position: absolute;
  right: 24px;
  top: 14px;
  z-index: 31;
  cursor: pointer;
  height: 44px;
  width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F6F7F9;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 32px rgba(39,48,74,0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.53, 0.13, 0.23, 0.91);
  z-index: 61;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: none;
  font-size: 2.1em;
  color: #27304A;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 66;
  padding: 0 8px;
  border-radius: 32px;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F6F7F9;
}
.mobile-nav {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 32px;
}
.mobile-nav a {
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #27304A;
  padding: 12px 6px;
  border-radius: 7px;
  background: none;
  transition: background 0.16s, color 0.18s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F6F7F9;
  color: #28A2B7;
}
@media (max-width: 900px) {
  .mobile-menu {display: flex;}
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =========== FOOTER =========== */
footer {
  margin-top: 80px;
  background: #fff;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -1.5px 18px rgba(39,48,74,0.06);
  padding: 36px 0;
  color: #27304A;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  align-items: flex-start;
}
.footer-menu a {
  color: #27304A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1em;
  transition: color 0.15s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #28A2B7;
  text-decoration: underline;
}
.footer-legal {
  font-size: 0.92em;
  color: #8D9EB0;
  margin-top: 4px;
}
.footer-social img {
  height: 36px;
}

@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    gap: 21px;
    align-items: flex-start;
  }
  .footer-menu {
    gap: 12px 20px;
  }
  footer {
    padding: 27px 0 45px 0;
  }
}

/* =========== CARDS / CONTENT BLOCKS =========== */
.features-grid > div, .features-grid > .card, .features-grid > article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px rgba(39,48,74,0.06);
  padding: 28px 20px 20px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 24px rgba(39,48,74,0.13);
  transform: translateY(-4px);
}
.features-grid img {
  height: 38px;
  margin-bottom: 7px;
}
.features-grid h3 {
  font-size: 1.11rem;
  margin-bottom: 6px;
  color: #27304A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.features-grid p {
  color: #465267;
  font-size: 0.98rem;
}
.features-grid .price {
  background: #E9F6FA;
  color: #28A2B7;
  font-size: 0.99rem;
  border-radius: 9px;
  padding: 3px 13px;
  font-family: "Montserrat", Arial, sans-serif;
  margin-top: 8px;
}

.card {
  box-shadow: 0 2px 12px rgba(39,48,74,0.08);
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  min-width: 245px;
}

.feature-article-highlight {
  background: #E9F6FA;
  border-radius: 13px;
  padding: 18px 20px;
  margin: 16px 0 0 0;
  box-shadow: 0 1px 6px rgba(40,162,183,0.06);
  color: #27304A;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
}

/* BLOG LIST */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.blog-list article {
  background: #fff;
  border-radius: 14px;
  padding: 22px 19px;
  box-shadow: 0 1.5px 12px rgba(39,48,74,0.07);
  margin-bottom: 4px;
  transition: box-shadow 0.16s, transform 0.12s;
}
.blog-list article:hover {
  box-shadow: 0 6px 22px rgba(39,48,74,0.13);
  transform: translateY(-3px);
}
.blog-list h3 {
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.blog-list a {
  font-weight: 600;
  color: #28A2B7;
  margin-top: 10px;
}

/* NEWSLETTER SIGNUP */
.newsletter-signup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 12px rgba(39,48,74,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 25px 24px 29px 29px;
}
.newsletter-signup p {
  color: #27304A;
  font-size: 1.04em;
}

/* IMPACT STATS */
.impact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin: 30px 0 24px 0;
  color: #475277;
  font-size: 1.03em;
}
.impact-stats li {
  background: #F6F7F9;
  border-radius: 7px;
  padding: 6px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
}

.client-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.client-logos img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.85);
  opacity: 0.82;
  border-radius: 10px;
}

/* =========== TEXT & LIST STYLING =========== */
p, ul, ol, section li {
  color: #465267;
  font-size: 1.03rem;
}
a {
  color: #28A2B7;
  text-underline-offset: 2px;
}
a:hover, a:focus {
  color: #1a6d7d;
  text-decoration: underline;
}

strong, b {
  font-weight: 700;
  color: #27304A;
}

em, i {
  font-style: italic;
  color: #28A2B7;
}

/* ========== RESPONSIVE FLEXBOX & SPACING ========== */
@media (max-width: 1280px) {
  .container {
    max-width: 940px;
  }
}
@media (max-width: 980px) {
  .container {
    max-width: 740px;
  }
  .features-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 6px;
  }
  .section {
    padding: 24px 5px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .features-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 16px 12px;
  }
  .hero {
    padding: 26px 0 32px 0;
    margin-bottom: 30px;
  }
  .client-logos {
    gap: 13px;
  }
}
@media (max-width: 560px) {
  h1 {font-size: 1.6rem;}
  h2 {font-size: 1.24rem;}
  h3 {font-size: 1.06rem;}
  .hero {
    border-radius: 0 0 18px 18px;
    box-shadow: 0 0.5px 6px rgba(39, 48, 74, 0.07);
    padding: 17px 0 18px 0;
  }
  .card, .features-grid > div {
    padding: 15px 8px 11px 11px;
    border-radius: 10px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}

/* ========== MICRO-ANIMATIONS & TRANSITIONS ========== */
/* Subtle fade/slide-in for appearance - apply via .fade-in if JS wants */
.fade-in {
  opacity: 0.01;
  transform: translateY(15px);
  animation: fadeInUp 0.8s cubic-bezier(0.43,0.15,0.26,0.97) forwards;
}
@keyframes fadeInUp {
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #E9F6FA;
  box-shadow: 0 -2.5px 18px rgba(39,48,74,0.09);
  padding: 22px 10px 20px 10px;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 30px;
  font-size: 1rem;
  animation: bannerFadeIn 0.5s cubic-bezier(0.56,0.32,0.32,0.98);
}
@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(80px); } 
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #27304A;
}
.cookie-banner .button {
  font-size: 1em;
  padding: 0.45em 1.3em;
  margin-left: 7px;
  border-radius: 15px;
  min-width: 120px;
}
.cookie-banner .button.secondary {
  background: #fff;
  border: 2px solid #28A2B7;
  color: #28A2B7;
}
.cookie-banner .button.settings {
  background: #F6F7F9;
  color: #27304A;
  border: 1px solid #E7EDEF;
}
.cookie-banner .button.settings:hover {
  background: #E9F6FA;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    padding: 13px 3px 14px 3px;
    font-size: 0.97rem;
  }
  .cookie-banner .button {
    min-width: 100%;
    margin-left: 0;
  }
}

/* COOKIE CONSENT MODAL */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39,48,74,0.22);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  max-width: 95vw;
  width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 48px rgba(39,48,74,0.19);
  padding: 36px 30px 24px 30px;
  transform: translate(-50%, -52%) scale(0.97);
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s, transform 0.29s;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-size: 1.11em;
  margin-bottom: 7px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 5px 0;
  font-size: 1em;
  color: #27304A;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #28A2B7;
  width: 18px;
  height: 18px;
}
.cookie-modal .button {
  margin-right: 10px;
}
.cookie-modal .button.secondary {
  margin-left: 0;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 9px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.7em;
  color: #27304A;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 22px;
  transition: background 0.14s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #F6F7F9;
}
@media (max-width: 450px) {
  .cookie-modal {
    padding: 16px 6px 14px 7px;
    width: 96vw;
    min-width: 0;
  }
}

/* ========== UTILITY & HELPER CLASSES =========== */
.hide {display: none!important;}

/* ========== COLORS & ACCENTS FOR SCANDINAVIAN STYLE ========== */
body, .section, .hero,
.features-grid > div, .card, .testimonial-card,
footer, .footer-menu, .feature-article-highlight,
.newsletter-signup {background: #fff;}

/* Subtle drop shadow for cards, hero etc */
.hero, .features-grid > div, .card, .testimonial-card, .newsletter-signup, .feature-article-highlight {
  box-shadow: 0 2.5px 18px rgba(47,61,82,0.08);
}

/* ========== TYPOGRAPHY SCALE & HEADING WEIGHTS ========== */
h1,h2,h3,h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #27304A;
}

/* ========== PRICING BADGE ========== */
.price {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #28A2B7;
  background: #E9F6FA;
  border-radius: 12px;
  padding: 4px 14px;
  font-size: 0.95em;
  margin-top: 6px;
  font-weight: 600;
}

/* ========== ACCESSIBILITY & FOCUS ========== */
:focus {
  outline: 2px solid #28A2B7;
  outline-offset: 2px;
}
.button:focus, .main-nav a:focus, .mobile-nav a:focus {
  box-shadow: 0 0 0 2.5px #E9F6FA;
}

/* ========== MISCELLANEOUS ========== */
hr {
  border: none;
  height: 1px;
  background: #E9F6FA;
  margin: 22px 0;
}

::-webkit-scrollbar { width: 9px; background: #F6F7F9; }
::-webkit-scrollbar-thumb { background: #E9F6FA; border-radius: 7px; }

/* ========== END ========== */
