/* RESET & BASELINE -------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { font-size: 16px; }
body {
  background: #F2F6FA;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2B2B2B;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-color: #FAF8F3;
}
img { max-width: 100%; display: block; border: 0; }
a { color: #18437A; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #2F9D58; text-decoration: underline; }
strong, b { font-weight: bold; color: #18437A; }
input, button, textarea, select { font: inherit; }
section { margin-bottom: 60px; padding: 40px 20px; }

/* BRAND TYPE & SCALE -------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #18437A;
  letter-spacing: 0.01em;
  font-weight: 600;
}
h1 { font-size: 2.5rem; margin-bottom: 28px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 24px; line-height: 1.2; }
h3 { font-size: 1.4rem; margin-bottom: 18px; line-height: 1.25; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol { font-size: 1rem; margin-bottom: 16px; }
small { font-size: 0.92rem; }

ul, ol { padding-left: 22px; }
ul li, ol li { margin-bottom: 9px; }

/* NATURAL TEXTURES, ORGANIC SHAPES & COLORS -------------------------- */
body {
  background-color: #F7F6EF;
  /* A light earth tone background for organic feel */
}

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

.content-wrapper {
  margin: 0 auto;
  max-width: 850px;
  background: transparent;
}

/* HERO --------------------------------------------------------------- */
.hero {
  background: #e6eee4;
  border-radius: 32px;
  padding-top: 52px;
  padding-bottom: 48px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero .content-wrapper { text-align: center; }
.hero h1 {
  font-size: 2.6rem;
  color: #18437A;
  margin-bottom: 20px;
}
.hero p {
  max-width: 550px;
  color: #30542B;
  margin: 0 auto 28px auto;
  font-size: 1.15rem;
}

/* MAIN NAV & HEADER -------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(41,60,28,0.05);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 900;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
header img[alt="Galaxar Arc"] {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 1rem;
  color: #18437A;
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.cta-primary {
  background: #2F9D58;
  color: #fff;
  font-weight: 700;
  border-radius: 24px;
  padding: 10px 26px;
  margin-left: 12px;
  box-shadow: 0 3px 8px rgba(41,60,28,0.09);
  letter-spacing: 0.04em;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: #166C3B;
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e6eee4;
  color: #2F9D58;
}

/* MOBILE NAVIGATION -------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: #2F9D58;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 8px 16px;
  border-radius: 16px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 902;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #18437A;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #F7F6EF;
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.7,.2,.17,1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  box-shadow: 2px 0 8px rgba(60,70,44,0.07);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #18437A;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  position: absolute;
  top: 20px;
  right: 22px;
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #2F9D58;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 90px;
  margin-left: 40px;
}
.mobile-nav a {
  padding: 15px 6px;
  font-size: 1.15rem;
  border-radius: 12px;
  color: #18437A;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #E9F3EA;
  color: #166C3B;
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* SECTIONS, FLEXBOX LAYOUT -------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 14px rgba(68,54,30,0.09);
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(60,60,39,0.16);
}
.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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px 28px;
  border-radius: 24px;
  box-shadow: 0 3px 14px rgba(60,70,44,0.09);
  margin-bottom: 20px;
  color: #2E3327;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #166C3B;
  padding-top: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 2px 10px rgba(44,60,41,0.07);
  padding: 32px 24px;
  min-width: 210px;
  flex: 1 1 0px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, border 0.17s;
  border: 1.5px solid #e1e8df;
}
.feature-item:hover {
  border: 1.5px solid #2F9D58;
  box-shadow: 0 4px 18px rgba(41,60,28,0.11);
}
.feature-item img {
  width: 40px; height: 40px;
  margin-bottom: 0;
}
/* For HTML: .feature-grid for features on index page */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.brand-values ul, .milestones ul { list-style: disc inside; }
.brand-values ul li, .milestones ul li { margin-bottom: 8px; }

.text-section {
  background: #FEFEFC;
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(42,42,22,0.05);
}

.milestones ul {
  list-style: disc inside;
  margin-left: 0;
  padding-left: 0;
}
.milestones { margin-top: 15px; }

.team-grid, .case-grid, .blog-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 32px;
}
.team-member, .case-item, .blog-post {
  background: #fff;
  border-radius: 21px;
  box-shadow: 0 1px 7px rgba(40,64,32,0.08);
  padding: 28px 22px;
  margin-bottom: 20px;
  flex: 1 1 275px;
  min-width: 250px;
  max-width: 350px;
  transition: box-shadow 0.19s;
}
.team-member:hover, .blog-post:hover, .case-item:hover {
  box-shadow: 0 7px 19px rgba(44,92,48,0.13);
}
.expert-profile strong { color: #166C3B; }

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.service-feature {
  background: #fff;
  border-radius: 21px;
  box-shadow: 0 2px 9px rgba(41,60,28,0.07);
  padding: 30px 23px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  min-width: 210px;
  max-width: 340px;
  transition: box-shadow 0.19s;
}
.service-feature:hover {
  box-shadow: 0 7px 19px rgba(44,92,48,0.13);
}
.process-steps ol {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0; padding: 0;
  list-style: none;
  justify-content: flex-start;
}
.process-steps li {
  background: #F5FBF4;
  border-radius: 19px;
  padding: 18px 18px 15px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #18437A;
  font-size: 1.05rem;
  flex: 1 1 190px;
  min-width: 170px;
  box-shadow: 0 2px 9px rgba(51,114,79,0.04);
}
.process-steps img {
  width: 28px; height: 28px;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.resource-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(68,54,30,0.05);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
}
.download-btn {
  background: #2F9D58;
  color: #fff;
  padding: 8px 18px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  min-width: 95px;
  display: inline-block;
}
.download-btn:hover, .download-btn:focus {
  background: #18437A;
  color: #fff;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #FDFBF7;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 1px 5px rgba(41,60,28,0.04);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
  justify-content: center;
}
.trust-badges img {
  height: 37px;
  width: auto;
}

.cta-section {
  background: #DFF4E3;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(50,96,42,0.07);
  margin-bottom: 60px;
  padding: 44px 20px;
}
.cta-section h2 {
  color: #18437A;
  margin-bottom: 16px;
}
.cta-section p {
  color: #316038;
  margin-bottom: 21px;
}

.cta-primary {
  display: inline-block;
  background: #2F9D58;
  color: #fff !important;
  border-radius: 28px;
  padding: 13px 38px;
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial,sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: 12px;
  margin-bottom: 11px;
  box-shadow: 0 3px 9px rgba(41,60,28,0.09);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.16s, transform 0.11s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #166C3B;
  box-shadow: 0 7px 23px rgba(28,64,42,0.18);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  display: inline-block;
  background: #18437A;
  color: #fff !important;
  border-radius: 27px;
  padding: 12px 31px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 11px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #2F9D58;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}

/* BLOG --------------------------------------------------------------- */
.blog-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.blog-post {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 9px rgba(41,60,28,0.07);
  padding: 29px 24px;
  flex: 1 1 250px;
  min-width: 210px;
  max-width: 330px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 0.19s;
}
.blog-post:hover {
  box-shadow: 0 7px 19px rgba(44,92,48,0.13);
}
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 14px;
  list-style: none;
  padding: 0;
}
.blog-categories li a {
  background: #e0efea;
  color: #2F9D58;
  border-radius: 13px;
  padding: 8px 16px;
  font-size: 1rem;
  transition: background 0.19s, color 0.19s;
}
.blog-categories li a:hover, .blog-categories li a:focus {
  background: #18437A;
  color: #fff;
}

/* CASE GRID ---------------------------------------------------------- */
.case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: center;
}
.case-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 9px rgba(41,60,28,0.07);
  padding: 30px 22px;
  flex: 1 1 230px;
  max-width: 340px;
  min-width: 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s;
}
.case-item:hover {
  box-shadow: 0 7px 19px rgba(44,92,48,0.13);
}
.case-metrics {
  margin-top: 20px;
  background: #EFF8F1;
  border-radius: 20px;
  padding: 25px 18px;
  box-shadow: 0 1px 5px rgba(41,60,28,0.03);
}
.case-metrics h3 { color: #166C3B; }

/* FOOTER ------------------------------------------------------------- */
footer section {
  background: #2F3F34;
  color: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -3px 14px rgba(60,70,44,0.11);
  margin-bottom: 0;
  padding-top: 34px;
  padding-bottom: 26px;
  /* padding: 40px 0; */
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 150px;
}
.footer-navigation a {
  color: #F6F6ED;
  font-size: 1rem;
  background: transparent;
  border-radius: 7px;
  padding: 4px 7px;
  transition: background 0.17s, color 0.17s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: #F2F6FA;
  background: #18437A;
}
.company-info {
  color: #F2F6FA;
  font-size: .99rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.company-info img[alt*="Galaxar Arc"] { height: 27px; }
.company-info img[alt*="Telefon"], .company-info img[alt*="E-post"], .company-info img[alt*="Adress"], .company-info img[alt*="Öppettider"] {
  height: 17px; display: inline; margin-right: 6px; position: relative; top: 2px;
}
.social-links {
  display: flex;
  gap: 13px;
  align-items: center;
}
.social-links a img {
  height: 30px; width: 30px; opacity: 0.72; transition: opacity 0.17s; border-radius: 50%; }
.social-links a img:hover, .social-links a img:focus { opacity: 1; background: #30542B; }

/* COOKIE CONSENT BANNER & MODAL -------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  max-width: 100%;
  background: #30542B;
  color: #fff;
  padding: 22px 18px 18px 18px;
  z-index: 1400;
  box-shadow: 0 -5px 23px rgba(70,97,44,0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  animation: cookie-slidein 0.48s cubic-bezier(.6,.14,.13,1);
}
@keyframes cookie-slidein {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 10px;
  margin-left: 16px;
}
.cookie-banner button {
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  padding: 8px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-right: 0px;
  transition: background 0.2s, color 0.2s, box-shadow 0.19s;
}
.cookie-banner .accept-all {
  background: #2F9D58;
  color: #fff;
  margin-right: 5px;
}
.cookie-banner .accept-all:hover { background: #166C3B; }
.cookie-banner .reject-all {
  background: #fff;
  color: #18437A;
  border: 1px solid #18437A;
}
.cookie-banner .reject-all:hover { background: #e6eee4; color: #166C3B; }
.cookie-banner .cookie-settings {
  background: #18437A;
  color: #fff;
}
.cookie-banner .cookie-settings:hover { background: #2F9D58; color: #fff; }
.cookie-banner a { color: #fff; text-decoration: underline; }

.cookie-modal-overlay {
  position: fixed; z-index: 1500;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(27,37,28,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-cookie-modal 0.26s ease;
}
@keyframes fadein-cookie-modal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #244028;
  border-radius: 19px;
  padding: 36px 26px 28px 26px;
  min-width: 320px;
  max-width: 97vw;
  box-shadow: 0 7px 33px rgba(46,64,35,0.21);
  position: relative;
  animation: modal-popin 0.21s cubic-bezier(.33,1.13,.57,.93);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
@keyframes modal-popin {
  from { transform: scale(0.95) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 8px;
  color: #166C3B;
  font-size: 1.25rem;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 11px;
  margin-bottom: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #2F9D58;
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 11px; right: 15px;
  background: #E6EEE4;
  color: #18437A;
  border: none;
  font-size: 1.4rem;
  border-radius: 13px;
  padding: 3px 11px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus { background: #2F9D58; color: #fff; }

/* RESPONSIVE DESIGN (MOBILE-FIRST) ----------------------------------- */
@media (max-width: 1199px) {
  .container { max-width: 980px; }
}
@media (max-width: 991px) {
  .container { max-width: 98vw; }
  .content-wrapper, section, .cta-section, .hero {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .footer-grid {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero { padding: 34px 5vw 38px 5vw; }
  .hero h1 { font-size: 1.6rem; }
  .content-wrapper {
    max-width: 100%;
    padding: 0;
  }
  .section, .cta-section, footer section {
    padding-left: 12px; padding-right: 12px;
  }
  .feature-grid, .content-grid, .blog-feed, .case-grid, .team-grid, .service-list {
    flex-direction: column;
    gap: 17px;
  }
  .process-steps ol { flex-direction: column; gap: 12px; }
  .testimonial-card, .feature-item, .team-member, .case-item, .blog-post, .service-feature {
    min-width: 0; max-width: 100%;
    padding-left: 15px; padding-right: 15px;
  }
  .testimonial-card { padding: 17px 9px; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .cookie-modal {
    padding: 18px 7vw 17px 7vw;
    min-width: 0; width: 93vw;
  }
}
@media (max-width: 580px) {
  html { font-size: 14px; }
  .hero h1, .cta-section h2 { font-size: 1.26rem; }
  header img[alt="Galaxar Arc"] { height: 33px; }
  .cta-primary, .cta-secondary {
    font-size: 1rem;
    padding: 11px 19px;
  }
  footer section { padding: 26px 8px; }
}

/* UTILITIES ---------------------------------------------------------- */
.mt-2 { margin-top: 8px !important; }
.mt-4 { margin-top: 20px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-4 { margin-bottom: 20px !important; }
.mb-6 { margin-bottom: 32px !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

/* ORGANIC SHAPE DECOR (can be used for extra nature accents) ---------- */
.organic-blob {
  position: absolute;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  border-radius: 50%;
  background: #2F9D58;
  width: 140px; height: 140px;
  filter: blur(10px);
  left: -65px; top: -35px;
  animation: organic-spin 37s linear infinite;
}
@keyframes organic-spin {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.11); }
}

/* CONFIRMATION SECTION (thanks.php) ------------------------------- */
.confirmation-section { text-align: center; padding: 50px 0 70px 0; }
.confirmation-section h1 { color: #2F9D58; margin-bottom: 20px; }

/* ACCESSIBLE FOCUS STYLES -------------------------------------------- */
a:focus, button:focus, .download-btn:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px dashed #18437A;
  outline-offset: 2px;
}

/* Hide all non-js menus by default ----------------------------------- */
@media (max-width: 991px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

/* Hide mobile menu for desktop, ensure no overlap */
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}
