/* 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 { height: 100%; }
body { min-height: 100%; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F4F7FB;
  color: #17364D;
  font-size: 16px;
  max-width: 100vw;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* BRAND COLORS & SCANDINAVIAN CLEAN VARIATION */
:root {
  --color-primary: #17364D;
  --color-secondary: #4ECF8F;
  --color-accent: #F4F7FB;
  --color-text: #17364D;
  --color-bg: #FFFFFF;
  --color-muted: #E9EFF6;
  --color-shadow: rgba(23,54,77,0.08);
  --transition-fast: 0.2s cubic-bezier(.62,.48,.38,1.18);
  --transition: 0.35s cubic-bezier(.61,.57,.26,.99);
  --border-radius: 16px;
  --shadow-soft: 0 4px 24px var(--color-shadow);
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.12;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-primary);
  line-height: 1.2;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-primary);
}
h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
p, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.7;
}
blockquote {
  font-style: italic;
  color: var(--color-primary);
  border-left: 4px solid var(--color-secondary);
  margin-left: 0;
  padding-left: 18px;
  background: var(--color-accent);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
strong { font-weight: 600; color: var(--color-primary); }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.text-section {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .section { padding: 32px 6vw; }
  .container { padding: 0 5vw; }
  h1, .hero h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-bg);
  box-shadow: 0 4px 12px var(--color-shadow);
  padding-top: 10px;
  padding-bottom: 10px;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  padding: 8px 5px;
  border-radius: 8px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
a.cta-btn {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 16px var(--color-shadow);
  transition: background var(--transition), transform var(--transition);
  margin-left: 14px;
  margin-right: 8px;
  text-align: center;
}
a.cta-btn:hover, a.cta-btn:focus {
  background: #32ad6b;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 768px) {
  a.cta-btn { padding: 10px 22px; font-size: .97rem; }
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-muted);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  color: var(--color-primary);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  margin-left: 8px;
  transition: background var(--transition-fast);
}
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 1024px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  a.cta-btn { margin-left: 0; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: var(--color-accent);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 22px 22px 22px;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 2100;
  transition: color var(--transition-fast);
}
.mobile-menu-close:hover {
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1.1rem;
  background: none;
  border-radius: 10px;
  padding: 16px 10px 10px 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: #fff;
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* HERO SECTION */
.hero {
  background: var(--color-accent);
  padding: 60px 0 48px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 650px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-primary);
}
.hero a.cta-btn { margin-top: 12px; }

/* FEATURES */
.features .content-wrapper,
.services .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
}
.features ul, .services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.features li, .services li {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
  font-size: 1.04rem;
  margin-bottom: 0;
  flex: 1 0 260px;
}
.features img, .services img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .features ul,
  .services ul { flex-direction: column; gap: 16px; }
  .features li, .services li { min-width: unset; width: 100%; }
}

/* ABOUT, TEAM, POLICY, ETC. */
.about .text-section,
.team .text-section,
.policy .text-section,
section.policy .text-section {
  background: var(--color-accent);
  border-radius: var(--border-radius);
  padding: 28px 22px 12px 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}
.about ul, .team ul, .policy ul {
  margin: 12px 0 8px 18px;
}
.about li, .team li, .policy li {
  list-style: disc;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* SERVICES */
.services li {
  background: var(--color-bg);
}

/* CTA SECTION */
.cta {
  background: var(--color-secondary);
  padding: 48px 0;
  margin-bottom: 60px;
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  max-width: 530px;
  margin: auto;
  color: #fff;
}
.cta h2, .cta p {
  color: #fff;
}
.cta a.cta-btn {
  background: #fff;
  color: var(--color-secondary);
  margin-top: 22px;
  border: 2px solid #fff;
}
.cta a.cta-btn:hover {
  border-color: #ededed;
  background: #ededed;
  color: var(--color-primary);
}

/* TESTIMONIALS */
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 32px 28px 20px 28px;
  gap: 15px;
  min-width: 250px;
  max-width: 340px;
  min-height: 145px;
  margin-bottom: 0;
  font-size: 1rem;
  transition: transform 0.22s cubic-bezier(.7,.09,.21,1.14), box-shadow 0.17s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 26px 2px var(--color-shadow);
}
.testimonial-card blockquote {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.1rem;
  border-left: 3px solid var(--color-secondary);
  background: var(--color-accent);
  border-radius: 6px 20px 20px 6px;
}
.testimonial-card p {
  color: var(--color-text);
  font-size: 0.98rem;
  font-style: normal;
  margin-top: 7px;
  margin-bottom: 0;
}
@media (max-width: 991px) {
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: unset;
  }
}

/* CARD & FLEXBOX UTILITY */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition-fast);
  overflow: hidden;
}
.card:hover {
  box-shadow: 0 10px 32px var(--color-shadow);
  transform: scale(1.02);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
  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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 900px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* FOOTER */
footer {
  background: var(--color-accent);
  padding: 42px 0 18px 0;
  font-size: 1rem;
  color: var(--color-primary);
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-flex > div {
  min-width: 260px;
  flex: 1 1 280px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: var(--color-primary);
  font-size: .99rem;
  padding: 3px 0;
  transition: color var(--transition-fast);
}
.footer-menu a:hover {
  color: var(--color-secondary);
}
footer p, footer a {
  font-size: .96rem;
}
footer img {
  vertical-align: middle;
  margin-right: 8px;
}
footer h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}
@media (max-width: 900px) {
  .footer-flex { flex-direction: column; gap: 22px; }
}

/* BLOG - Category Filter */
.categories-filter {
  margin-top: 36px;
  color: var(--color-primary);
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.categories-filter a {
  color: var(--color-secondary);
  font-weight: 500;
  margin: 0 2px;
  border-radius: 7px;
  padding: 2px 10px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.categories-filter a:hover,
.categories-filter a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* POLICY (Privacy, Cookies, Terms) */
section.policy {
  padding: 50px 0 70px 0;
  margin-bottom: 0;
}
section.policy h1 {
  margin-bottom: 30px;
}
section.policy .text-section ul {
  margin-left: 20px;
  margin-bottom: 16px;
}
section.policy .text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* CONFIRMATION */
section.confirmation {
  padding: 70px 0 80px 0;
  background: var(--color-accent);
  text-align: center;
}
section.confirmation .content-wrapper {
  max-width: 540px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}
section.confirmation h1 {
  color: var(--color-secondary);
}
section.confirmation p {
  margin-bottom: 32px;
}

/* CONTACT PAGE */
section.contact .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
section.contact .content-wrapper > div {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--color-accent);
  padding: 18px 22px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}
section.contact h3 {
  color: var(--color-secondary);
  margin-bottom: 8px;
}
@media (max-width: 768px) {
  section.contact .content-wrapper { flex-direction: column; gap: 18px; }
}

/* UTILITY: FLEX, GAPS, ETC. */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-20 { margin-top: 20px; }

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 16px var(--color-shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 20vw 22px 7vw;
  z-index: 4000;
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  animation: cookieSlideUp 0.66s cubic-bezier(.25,1.3,.44,.98);
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 20px;
  border-radius: 21px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 2px;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}
.cookie-banner button.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #32ad6b;
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cookie-banner button.settings:hover {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner button.reject {
  background: #fff;
  color: #d04b4b;
  border: 2px solid #d04b4b;
}
.cookie-banner button.reject:hover {
  background: #d04b4b;
  color: #fff;
}
@media (max-width: 991px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 22px 5vw 22px 5vw; gap: 18px; }
}
@media (max-width: 600px) {
  .cookie-banner { font-size: .99rem; padding: 16px 6vw; gap: 13px; }
  .cookie-banner .cookie-actions { gap: 8px; }
}

/* COOKIE MODAL */
.cookie-modal-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(23, 54, 77, 0.15);
  z-index: 4100;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-bg.open { display: flex; }
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 410px;
  width: 96vw;
  box-shadow: 0 4px 32px 4px var(--color-shadow);
  padding: 34px 28px 24px 28px;
  animation: fadeIn .35s;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-muted);
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--color-muted);
  border-radius: 24px;
  transition: background .18s;
}
.cookie-modal .switch input:checked + .slider {
  background: var(--color-secondary);
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s cubic-bezier(.62,.48,.38,1.18);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .essential {
  color: var(--color-secondary);
  font-size: .99em;
  font-weight: 700;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  font-size: 1.7rem;
  color: #878787;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.cookie-modal .close-modal:hover { color: var(--color-secondary); }
@keyframes fadeIn {
  0% { opacity: 0; transform: scale(.93); }
  100% { opacity: 1; transform: scale(1); }
}

/* RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  h1, .hero h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }
  .features ul, .services ul { flex-direction: column; gap: 14px; }
  .testimonial-card { padding: 22px 12px 15px 12px; }
  .cta .content-wrapper { padding: 0; }
}
@media (max-width: 540px) {
  .hero { padding: 34px 0 32px 0; }
  .section { padding: 26px 5vw; }
  .footer-flex > div { min-width: unset; width: 100%; }
  .cta { padding: 26px 0; }
}

/* TRANSITION FX */
.button, a.cta-btn, .cookie-banner button, .categories-filter a {
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ACCESSIBILITY */
:focus-visible {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}

/* SCROLLBAR STYLING FOR MODAL(BUT NOT ON MAIN LAYOUT) */
.cookie-modal ::-webkit-scrollbar {
  width: 6px;
  background: var(--color-muted);
}
.cookie-modal ::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 8px;
}

/* SCANDINAVIAN TOUCHES: SUBTLE, SOFT BORDERS */
.card, .testimonial-card, .about .text-section, .team .text-section, .policy .text-section, section.contact .content-wrapper > div {
  border: 1px solid var(--color-muted);
}

/* END */
