/* --- CSS Reset & Normalize (Mobile-first) --- */
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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F7F8;
  color: #1C2834;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #14426C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #0f2842;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1.6em;
}
li {
  margin-bottom: 0.6em;
}

/* ----------------- Brand Variables ----------------- */
:root {
  --primary: #14426C;
  --secondary: #B1C5D8;
  --accent: #F6F7F8;
  --white: #fff;
  --grey: #eef2f5;
  --font-display: 'Merriweather', serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(20,66,108,0.07);
  --shadow: 0 5px 20px rgba(20,66,108,0.09);
}

/* ----------------- Typography ----------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #10233a;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.18;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #253043;
}
strong, b {
  font-weight: 700;
}

/* ------------------- Containers, Layout ------------------- */
.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 1120px;
  box-sizing: border-box;
}
.content-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
}

/* ---- Card Styles / Flexible Card Layout ---- */
.card-container,
.feature-grid,
.team-list,
.service-benefits-grid,
.feature-icons,
.feature-icons-row,
.downloads ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card,
.team-list > div,
.service-benefits-grid > div,
.feature-icons-row > div,
.feature-grid > div {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 200px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .team-list > div:hover, .service-benefits-grid > div:hover, .feature-grid > div:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.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: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.testimonial-card p {
  color: #1b213a;
  font-size: 1.1rem;
}
.testimonial-meta {
  margin-top: 8px;
  color: #626e7a;
  font-size: 0.97rem;
}

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

/* ----- HERO ----- */
.hero {
  padding: 48px 0 40px 0;
  background: var(--white);
  border-bottom: 1px solid #dde8ef;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  padding: 0;
}
.hero h1 {
  margin-bottom: 14px;
  font-size: 2.2rem;
}
.hero p {
  font-size: 1.14rem;
  margin-bottom: 22px;
}
.main-cta, .cta-banner .button {
  margin-top: 20px;
}

.cta-banner {
  background: var(--secondary);
  padding: 40px 0;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 48px;
}
.cta-banner h2 {
  color: var(--primary);
  margin-bottom: 14px;
}
.cta-banner p {
  color: #13324d;
  font-size: 1.17rem;
  margin-bottom: 22px;
}
.cta-banner .button {
  font-size: 1.1rem;
}

/* ---- Tables / Pricing Tables ---- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 18px 12px;
  border-bottom: 1px solid #e3eaf0;
  text-align: left;
}
.pricing-table thead th {
  background: var(--secondary);
  color: var(--primary);
}
.pricing-table th {
  font-weight: bold;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ----- Buttons ----- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 13px 30px;
  min-width: 145px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.2s;
  margin-right: 12px;
  background: var(--primary);
  color: var(--white);
}
.button:last-child {
  margin-right: 0;
}
.button.primary {
  background: var(--primary);
  color: var(--white);
}
.button.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.button.white {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.button:hover, .button:focus {
  filter: brightness(0.95);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.button:active {
  filter: brightness(0.9);
}

/* ---- Header, Nav, Logo ---- */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(20,66,108,0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 18px;
}
.logo,
.logo-footer {
  height: 48px;
  display: flex;
  align-items: center;
}
.logo img, .logo-footer img {
  height: 40px;
  width: auto;
  display: block;
  filter: grayscale(0.2) contrast(1.09);
}
.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.desktop-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.19s, border 0.19s;
}
.desktop-nav a:hover, .desktop-nav a:focus{
  color: #0b2841;
  border-bottom: 2px solid var(--secondary);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.18s, color 0.18s;
  margin-left: 12px;
  z-index: 22;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--white);
}

/* ------ Mobile Menu Drawer ------ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,66,108,0.97);
  z-index: 102;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.82,.03,.36,1.02);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 26px;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.2rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 88px;
  width: 100vw;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 1.34rem;
  color: var(--white);
  padding: 7px 0;
  transition: color 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Show/hide nav for mobile/desktop */
.desktop-nav, .button.primary {
  display: none;
}
@media (min-width: 992px) {
  .desktop-nav { display: flex; }
  .button.primary {
    display: inline-flex;
  }
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* ----- Footer ----- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 36px 0 16px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.logo-footer {
  margin-bottom: 8px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 500;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--white);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eaeef1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-right: 12px;
}
.contact-detail img {
  width: 20px;
  height: 20px;
}
.copyright {
  font-size: 0.92rem;
  color: #B1C5D8;
  text-align: center;
  opacity: 0.93;
}

/* ----- Testimonial Slider (Flex-based) -----*/
.testimonials .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 35px;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .testimonials .testimonial-slider {
    flex-direction: column;
    gap: 22px;
  }
}

/* ----- FAQ List, Resource List, etc. ----- */
.faq-list, .resource-list, .downloads ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.resource-list > li, .faq-list > div {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 18px 20px 14px 20px;
}

.downloads {
  margin-top: 18px;
}
.downloads ul li {
  margin-bottom: 9px;
  list-style-type: disc;
  margin-left: 18px;
}
.downloads a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline dotted;
}
.downloads a:hover{
  color: var(--secondary);
}

/* ----- Confirmation Section (Thank You) ----- */
.confirmation {
  min-height: 58vh;
  background: var(--accent);
  border-radius: var(--radius);
  padding-top: 60px;
  padding-bottom: 60px;
}
.confirmation h1 {
  margin-bottom: 9px;
}
.confirmation ul {
  margin-left: 23px;
  margin-bottom: 18px;
}

/* ----- Contact Info Grid ----- */
.contact-info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 18px;
}
.contact-information {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 1.04rem;
}
.contact-information div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.map-section {
  margin-top: 10px;
  font-size: 0.97rem;
  color: #233555;
}

/* ----- Breadcrumbs, if present ----- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.99rem;
  margin-bottom: 18px;
  color: var(--primary);
}

/* ----- Custom Utility Classes ----- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ----- Responsive & Flex Direction Changes ----- */
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
  .content-wrapper { max-width:  ninetyvw; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .content-wrapper { max-width: 96vw; }
}
@media (max-width: 768px) {
  .content-wrapper, .section {
    padding-left: 7px;
    padding-right: 7px;
  }
  
  .feature-grid, .card-container, .team-list, .service-benefits-grid, .content-grid, .feature-icons, .feature-icons-row, .downloads ul {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    max-width: 98vw;
    min-width: 0;
    padding: 18px 8px;
  }
  .hero {
    padding-top: 35px;
    padding-bottom: 28px;
  }
  .cta-banner {
    padding: 26px 0;
  }
  header .container { gap: 6px; }
}

@media (max-width: 600px) {
  .container {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ----- Spacing & Flex Alignment Patterns - Mandatory Classes ----- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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; }

/* ----- Cookie Consent Banner ----- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--white);
  border-top: 1.5px solid var(--secondary);
  box-shadow: 0 -4px 18px rgba(20,66,108,0.13);
  color: #111b2d;
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 20px 14px;
  font-size: 0.99rem;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(.59,.12,.39,.97), opacity 0.18s;
}
.cookie-consent-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent-banner .cookie-text {
  flex: 2 1 320px;
  margin-right: 14px;
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-consent-banner .button {
  min-width: 116px;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 7px;
  }
  .cookie-consent-banner .cookie-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cookie-consent-banner .button { width: 100%; }
}

/* ----- Cookie Consent Modal Popup ----- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,66,108,0.62);
  z-index: 2100;
  display: none;
  justify-content: center;
  align-items: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  max-width: 400px;
  width: 94vw;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 23px 24px 23px;
  color: #172744;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInModal 0.34s cubic-bezier(.65,.01,.75,.85);
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: translateY(70px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.cookie-category.essential input {
  accent-color: #999;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  font-size: 1.94rem;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 12;
  line-height: 0.8;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
}

/* ----- Animations and Micro-interactions ----- */
.button, .mobile-menu-toggle, .mobile-menu-close, a, .card, .testimonial-card, .feature-grid > div {
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.18s;
}
.button:active { transform: scale(0.98)!important; }
.card:active, .testimonial-card:active, .feature-grid > div:active { transform: scale(0.99)!important; }

/* ----- Utility/Accessibility ----- */
:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}
::selection {
  background: var(--secondary);
  color: var(--primary);
}

/* ----- Hide Mobile Menu Outline for Clicks ----- */
.mobile-menu, .mobile-menu * {
  outline: none !important;
}

/* ------ Hide elements for print ------ */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal-overlay, header, footer { display: none !important; }
}

/* --- Add subtle hover for all links in content --- */
.content-wrapper a:not(.button):hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Miscellaneous for Scandinavian Clean Aesthetic --- */
.card, .team-list > div, .service-benefits-grid > div, .feature-icons-row > div {
  border: 1.5px solid #e7eef2;
}
.section {
  box-shadow: 0 1px 5px rgba(177,197,216,0.07);
}
.cta-banner, .section, .card, .testimonial-card {
  background: var(--accent);
}

/* ----- END ----- */
