/* =========================================================
   Shine Mist – Geometric Structured Style CSS
   Consistent with brand guidelines, ONLY flexbox layouts, mobile first
========================================================== */
/* CSS 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;}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
body {line-height: 1;}
ul, ol {list-style: none;}
a {text-decoration: none; color: inherit;}
img {border: none; max-width: 100%; height: auto; vertical-align: middle;}
button, input, select, textarea {font: inherit;}
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #29527A;
  --secondary: #F5F7FA;
  --accent: #F1C76C;
  --gray-100: #ffffff;
  --gray-200: #eef1f4;
  --gray-400: #cad7e0;
  --gray-500: #9cabbb;
  --gray-600: #5a6479;
  --danger: #DC3545;
  --success: #27ae60;
  --radius-sm: 10px;
  --radius-md: 18px;
  --shadow-lg: 0 8px 32px rgba(41,82,122,0.13);
  --shadow-md: 0 2px 10px rgba(41,82,122,0.11);
  --shadow-card: 0 2px 8px 0 rgba(41,82,122,0.10);
  --transition: 0.23s cubic-bezier(.6,.1,.3,1.2);
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  background: var(--secondary);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.19;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; font-weight: 600; }

p, li, blockquote, .subheadline, .testimonial-meta {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--primary);
  line-height: 1.6;
  font-size: 1rem;
}

.footer-contact p {
   color: #eef1f4;
  }
blockquote, .team-quote {
  border-left: 4px solid var(--accent);
  background: var(--gray-200);
  padding: 18px 26px;
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--primary);
  margin-bottom: 18px;
}

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

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

header {
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  min-width: 140px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.main-nav a {
  color: var(--primary);
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2.5px solid transparent;
  transition: border var(--transition), color var(--transition);
}
.main-nav a:hover, 
.main-nav a:focus {
  border-bottom: 2.5px solid var(--accent);
  color: var(--accent);
}

.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  font-size: 1.07rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta.primary {
  background: var(--primary);
  color: #fff;
  border: none;
}
.cta.primary:hover, 
.cta.primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 16px 0 rgba(241,199,108,0.21);
  transform: translateY(-2px) scale(1.035);
}
.cta.secondary {
  background: var(--accent);
  color: var(--primary);
  border: none;
}
.cta.secondary:hover, 
.cta.secondary:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(41,82,122,0.18);
  transform: translateY(-2px) scale(1.035);
}

/* Hamburger Mobile Menu */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  width: 44px;  height: 44px;
  font-size: 1.7rem;
  cursor: pointer;
  margin-left: 18px;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px 0 rgba(41,82,122,0.10);
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--gray-200);
  box-shadow: 0 2px 16px 0 rgba(41,82,122,0.16);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

/* ================
   Mobile Menu Overlay
================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: #fff;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.6,.1,.3,1.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 20px 28px 20px;
  width: 100vw;
  height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  border: none;
  font-size: 1.7rem;
  width: 44px; height: 44px;
  align-self: flex-end;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fff;
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.18rem;
  padding: 16px 0;
  border-radius: var(--radius-sm);
  text-align: center;
  letter-spacing: 0.01em;
  background: transparent;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
@media (max-width: 1023px) {
  .main-nav, header .cta.primary {
    display: none;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================
   HERO + MAIN SECTION
================== */
.hero {
  background: var(--secondary);
  border-bottom: 2.5px solid var(--accent);
  padding: 44px 0 32px 0;
  margin-bottom: 42px;
}
.hero h1 {
  letter-spacing: 0.025em;
  font-size: 2.2rem;
  max-width: 666px;
  margin-bottom: 12px;
}
.hero .subheadline {
  font-size: 1.16rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.hero .cta {
  margin-top: 14px;
}

/* ================
   STRUCTURED SECTION PADDING
================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ================
   Feature Grid, Guides Layouts, Cards
================== */
.feature-grid, .tools-grid, .guide-list, .blog-list, .testimonial-slider, .testimonial-list, .case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div,
.tools-grid > .tool-item,
.guide-list > .guide-card, 
.blog-list > .post-card, 
.testimonial-slider > .testimonial-card, 
.case-studies > .case-card
{
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 26px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px; /* mandated */
  position: relative;
  border: 2.5px solid var(--gray-200);
  transition: box-shadow var(--transition), border var(--transition), transform var(--transition);
}
.feature-grid > div:hover,
.tools-grid > .tool-item:hover,
.guide-list > .guide-card:hover, 
.blog-list > .post-card:hover, 
.case-studies > .case-card:hover {
  box-shadow: 0 4px 18px 0 rgba(41,82,122,0.18);
  border: 2.5px solid var(--accent);
  transform: translateY(-2.5px) scale(1.015);
}
.feature-grid img, .tools-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

/* Special Featured post */
.post-card.featured {
  border: 2.5px solid var(--accent);
  background: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.guide-category, .case-topic {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.88rem;
  border-radius: var(--radius-sm) 0 var(--radius-sm) 0;
  padding: 4px 10px 4px 14px;
  margin-top: 4px;
  letter-spacing: 0.03em;
  font-weight: 600;
  margin-right: 0;
}

/* ================
   Blog Filters, Case Filters, Guide Filters
================== */
.blog-filters, .case-filters, .guide-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.blog-filters a, .case-filters a, .guide-filters a {
  color: var(--primary);
  background: var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  transition: background var(--transition), color var(--transition);
}
.blog-filters a:hover, .case-filters a:hover, .guide-filters a:hover,
.blog-filters a:focus, .case-filters a:focus, .guide-filters a:focus {
  color: #fff;
  background: var(--primary);
}

/* ================
   Newsletter, Newsletter Form, Newsletter Button
================== */
.newsletter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.newsletter input[type=email] {
  padding: 12px 18px;
  font-size: 1rem;
  border: 2px solid var(--gray-400);
  background: #fff;
  border-radius: var(--radius-md);
  outline: none;
  min-width: 220px;
  transition: border var(--transition);
}
.newsletter input[type=email]:focus {
  border: 2px solid var(--primary);
}
.newsletter .cta {
  margin-left: 0 !important;
}

/* ================
   Address block, Table Comparison (Verktyg)
================== */
.address-block, .usage-examples, .comparison-table {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.comparison-table th, .comparison-table td {
  padding: 13px 16px;
  border-bottom: 1.5px solid var(--gray-400);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  text-align: left;
}
.comparison-table th {
  background: var(--secondary);
  font-weight: 700;
  border-bottom: 2.5px solid var(--accent);
  color: var(--primary);
}
.comparison-table tr:last-child td { border-bottom: none; }

.download-link {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  display: inline-block;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 4px;
  transition: background var(--transition), color var(--transition);
}
.download-link:hover, .download-link:focus {
  background: var(--accent);
  color: var(--primary);
}

/* ================
   Testimonials / Reviews
================== */
.testimonial-slider, .testimonial-list {
  width: 100%;
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 16px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  border: 2.5px solid var(--gray-200);
  min-width: 250px;
  flex: 1 1 240px;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--primary);
}
.testimonial-meta {
  font-size: 0.98rem;
  color: var(--primary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.star-rating {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 2px;
}

/* =========================
   FLEXBOX LAYOUT CONTAINERS (MANDATORY)
============================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ================
   TIMELINE, TEAM-LIST, FOOTER, ETC.
================== */
.company-timeline {
  margin: 18px 0;
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.company-timeline li {
  position: relative;
  padding-left: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.company-timeline li::before {
  content: "";
  background: var(--accent);
  border-radius: 50%;
  width: 13px; height: 13px;
  position: absolute;
  left: 0; top: 6px;
}
.team-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-list li strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
}

/* Footer */
footer {
  background: var(--primary);
  color: #fff;
  padding: 52px 0 38px 0;
  margin-top: 56px;
}
.footer-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}
.footer-brand img {
  width: 58px; height: 58px;
  margin-bottom: 4px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  transition: color var(--transition), text-decoration var(--transition);
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.99rem;
}
.footer-contact img {
  width: 16px; height: 16px; margin-right: 6px; vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 2px;
}
.footer-social a img {
  width: 26px; height: 26px; transition: filter var(--transition), opacity var(--transition);
  filter: brightness(90%) grayscale(30%);
  opacity: 0.85;
}
.footer-social a:hover img { filter: brightness(1.1) grayscale(0%); opacity: 1; }

/* =======================
RESPONSIVE DESIGN
======================= */
@media (max-width: 1023px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 13px;
  }
  .content-wrapper {
    max-width: 97vw;
    padding: 0 4px;
  }
  .hero {
    padding: 32px 0 24px 0;
  }
}
@media (max-width: 768px) {
  .feature-grid, .tools-grid, .guide-list, .blog-list, .testimonial-slider, .testimonial-list, .case-studies {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 90vw;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .main-nav {
    gap: 14px;
  }
  .content-grid, .address-block, .usage-examples {
    flex-direction: column;
    gap: 14px;
  }
  .newsletter {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.42rem; }
}
@media (max-width: 540px) {
  .container, .content-wrapper { padding: 0 3vw; }
}
@media (max-width: 512px) {
  .hero { padding: 26px 0 14px 0; }
  .content-wrapper { gap: 14px; }
  .section { margin-bottom: 34px; padding: 22px 4px; }
}

/* Text-image layout adaption */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ================
   Cookie Consent Banner
================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: #fff;
  border-top: 2.5px solid var(--accent);
  box-shadow: 0 -4px 18px 0 rgba(41,82,122,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100vw;
  padding: 22px 12px 18px 12px;
  transition: transform 0.32s cubic-bezier(.6,.1,.3,1.2);
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  color: var(--primary);
  text-align: center;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cookie-banner button,
.cookie-banner .cookie-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: var(--radius-sm);
  padding: 8px 22px;
  font-size: 0.99rem;
  font-weight: 600;
  border: none;
  margin: 2px 3px;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-banner button.accept {
  background: var(--success);
}
.cookie-banner button.reject {
  background: var(--danger);
}
.cookie-banner .cookie-settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner .cookie-settings:hover {
  background: var(--primary);
  color: #fff;
}
.cookie-banner button.accept:hover { background: #21ba45; }
.cookie-banner button.reject:hover { background: #b71c27; }

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed; z-index: 2200;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(41,82,122,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  width: 94vw; max-width: 410px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(41,82,122,0.14);
  padding: 34px 24px 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modalZoom 0.22s cubic-bezier(.5,1.5,.2,0.9);
}
@keyframes modalZoom {
  from { transform: scale(.85); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h4 {
  font-size: 1.14rem;
  margin-bottom: 7px;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-toggle label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-toggle input[type=checkbox] {
  accent-color: var(--primary);
  width: 20px; height: 20px;
  margin-right: 2px;
}
.cookie-toggle input[type=checkbox][disabled] {
  accent-color: var(--accent);
  opacity: .72;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 13px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: var(--gray-500);
  cursor: pointer;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--danger);
}
@media (max-width: 540px) {
  .cookie-modal { padding: 20px 7px 14px 11px; width: 97vw; }
}

/* ================
   Micro-interactions
================== */
a, .cta, button, .download-link, .footer-links a {
  transition: background var(--transition), color var(--transition), border var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* ================
   Visual Geometric Elements (decoration)
================== */
.card::before, .tool-item::before, .testimonials::before {
  content: "";
  display: none;
}

/* ================
   Geometric Buttons/Toggles (for geometric flair)
================== */
.cta, .download-link, .cookie-banner button, .cookie-banner .cookie-settings {
  border-radius: 0 20px 0 20px;
}

/* ================
   Accessibility: Text Contrast
================== */
.testimonial-card, .testimonial-meta, .testimonial-card p, .testimonial-card span {
  color: #18294A !important;
  background: #fff !important;
}

/* ================
   Utility Classes & Fixes
================== */
.hide {display: none !important;}
.visible {display: block !important;}
.gap-8 {gap: 8px !important;}
.gap-16 {gap: 16px !important;}
.mb-0 {margin-bottom: 0 !important;}
.mb-20 {margin-bottom: 20px !important;}
.mt-20 {margin-top: 20px !important;}

/* ================
   Error/Success Message (could be used in forms)
================== */
.error-msg { color: var(--danger); font-weight: 600; }
.success-msg { color: var(--success); font-weight: 600; }

/* ================
   General Links
================== */
a {
  color: var(--primary);
  transition: color var(--transition), border var(--transition), text-decoration var(--transition);
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}

/* ================
   Focus outline for accessibility
================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
