/* ================================================================
   CSS RESET & NORMALIZE (Modified Eric Meyer's Reset)
================================================================ */
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, main, nav, header, section, article, aside, footer, figure, figcaption, details, textarea, input, button, select {
  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, main, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #171D23;
  color: #ebedec;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #E4C85A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2F4EF;
  outline: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 10px 14px;
  text-align: left;
}
th {
  background: #223142;
  font-weight: 700;
  color: #E4C85A;
  font-family: 'Montserrat', Arial, sans-serif;
  border-bottom: 2px solid #E4C85A;
}
td {
  background: #212932;
  border-bottom: 1px solid #29313a;
  color: #E0E2E4;
  font-family: 'Roboto', Arial, sans-serif;
}

/* ================================================================
   BRAND FONTS AND BASE TYPOGRAPHY
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
:root {
  --primary: #244D68;
  --secondary: #E4C85A;
  --accent: #F2F4EF;
  --body-bg: #171D23;
  --card-bg: #212932;
  --footer-bg: #1C232B;
  --hero-bg: #202832;
  --metallic: #A1ADB8;
  --heading-font: 'Montserrat', Arial, sans-serif;
  --body-font: 'Roboto', Arial, sans-serif;
  --border-radius: 12px;
  --shadow: 0 4px 16px rgba(32, 40, 50, 0.21);
  --transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
body {
  font-family: var(--body-font);
  background: var(--body-bg);
  color: #ebedec;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1.7;
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {font-size: 2.5rem; margin-bottom: 18px;}
h2 {font-size: 2rem;}
h3 {font-size: 1.25rem; margin-bottom: 12px;}
h4 {font-size: 1rem; margin-bottom: 10px;}
p, blockquote, li, dt, dd {
  font-family: var(--body-font);
  color: #ebedec;
  font-size: 1rem;
}
blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: 18px;
  color: #E4C85A;
  font-size: 1.08rem;
  background: #20262d;
  margin-bottom: 16px;
}
strong {
  color: var(--accent);
  font-weight: 700;
}
em { color: var(--secondary); }

/* ================================================================
   LAYOUT: CONTAINER & SECTIONS
================================================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  background: none;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 24px;
  min-width: 280px;
  flex: 1 1 340px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1.5px solid #313944;
}
.card:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 20px 0 #222B37CC;
  transform: translateY(-4px) scale(1.01);
}
.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;
  background: #F2F4EF;
  color: #222;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 16px rgba(36,77,104,0.14);
  border-left: 5px solid var(--primary);
  flex-direction: column;
  min-width: 0;
}
.testimonial-card strong { color: var(--primary); }
.testimonial-card span { color: #DFB800; font-size: 1.1em; margin-left: 8px; }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 32px;
}
/* Mandatory spacing for all cards/sections */
section:not(:last-child) {margin-bottom: 50px;}

/* ================================================================
   HERO & CTA
================================================================ */
.hero {
  background: linear-gradient(90deg,#171D23 50%,#223142 100%);
  padding: 55px 0 60px 0;
  margin-bottom: 60px;
}
.hero .container {align-items: center;}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  color: var(--secondary);
  font-size: 2.7rem;
  font-weight: 900;
  text-shadow: 1px 2px 8px rgba(20,20,30,0.14);
}
.hero p {
  font-size: 1.14rem;
  color: #f2f4ef;
  max-width: 700px;
}
.cta-btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 800;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 8px;
  padding: 15px 32px;
  font-size: 1.13rem;
  box-shadow: 0 2px 12px 0 #59480038;
  border: none;
  outline: none;
  margin-top: 10px;
  transition: background 0.2s, box-shadow 0.22s, color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #F2F4EF;
  color: var(--primary);
  box-shadow: 0 6px 30px 0 #59480038;
}

/* ================================================================
   HEADER & NAVIGATION (DESKTOP + MOBILE)
================================================================ */
header {
  width: 100%;
  background: #212932;
  box-shadow: 0 2px 12px rgba(36,77,104,0.06);
  z-index: 1100;
  position: relative;
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  padding: 0;
}
.logo img { height: 44px; }
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 1.05rem;
  color: #f2f4ef;
  background: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  background: #223142;
}
.mobile-menu-toggle {
  display: none;
  background: #223142;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  color: var(--secondary);
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  margin-left: 16px;
  z-index: 1201;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #E4C85A;
  color: #223142;
}

/* Mobile Menu Styles */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 32px 80px 32px;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(33,41,50,0.98);
  z-index: 1400;
  transform: translateX(-100%);
  transition: transform .42s cubic-bezier(.6,.2,.3,1);
  min-width: 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.3rem;
  align-self: flex-end;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F2F4EF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.19rem;
  color: #F2F4EF;
  font-weight: 700;
  padding: 12px 2px 12px 0;
  border-bottom: 1px solid #324054;
  transition: color 0.18s, background .17s;
  border-radius: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: #171D23;
}

@media (max-width: 1024px) {
  header .main-nav {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
  }
  header .container {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    padding: 12px 22px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 540px) {
  .mobile-menu {
    padding: 18px 10px 50px 10px;
  }
}

/*
=====================================================
  LISTS & ICONS
=====================================================
*/
ul, ol {
  margin-left: 0;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.05rem;
  line-height: 1.7;
}
ul li img, ol li img {
  width: 24px; height: 24px;
  margin-right: 7px;
  filter: grayscale(0.2) brightness(1.3);
}

/*
=====================================================
  FOOTER
=====================================================
*/
footer {
  width: 100%;
  background: var(--footer-bg);
  color: #c2ccd6;
  border-top: 2px solid #273044;
  padding: 42px 0 24px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
}
.footer-logo img {
  height: 54px;
  margin-top: 5px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  letter-spacing: 0.015em;
  font-family: var(--body-font);
  font-weight: 600;
  line-height: 1.8;
  border-radius: 4px;
  transition: color 0.18s;
  padding: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F2F4EF;
  background: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.98em;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #e3e8ed;
}
.footer-contact img {
  margin-right: 5px;
  width: 17px; height: 17px;
  filter: grayscale(0.2) brightness(1.7);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #223142;
  border-radius: 50%;
  width: 38px; height: 38px;
  border: 1px solid #233043;
  transition: background 0.2s, border 0.18s, box-shadow 0.2s;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 2px 12px #E4C85A22;
}
.footer-social img {
  width: 20px; height: 20px;
  filter: invert(0.18) grayscale(0.15);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-social {
    margin-top: 16px;
    gap: 18px;
  }
}

/*
============================================================
  TABLES (Used in schema-anmalan.html)
============================================================
*/
table {
  margin: 24px 0 16px 0;
  width: 100%;
  box-shadow: 0 3px 24px #1620270e;
  border-radius: var(--border-radius);
  overflow: hidden;
}
th {
  background: #212932;
  color: var(--secondary);
  font-size: 1.07rem;
  font-weight: 700;
}
td {
  background: #1f242b;
  color: #eee;
}
tbody tr:nth-child(even) td {
  background: #212932;
}
td, th { border: none; }
tbody tr:last-child td { border-bottom: none; }

/*
===================================================================
  FORMS, SEARCHES & INPUTS (for blogg.html search)
===================================================================
*/
input[type='search'] {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1.5px solid #28374a;
  background: #20262C;
  color: #F2F4EF;
  border-radius: 6px;
  box-shadow: 0 1px 5px #171D2314;
  width: 100%;
  margin-bottom: 16px;
  transition: border 0.20s, background .14s;
}
input[type='search']:focus {
  border-color: var(--secondary);
  background: #212932;
  outline: none;
}

/*
=================================================================
  RESPONSIVE LAYOUTS (Mobile first, Flexbox Only)
================================================================= */
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .content-wrapper { gap: 16px; }
  h1 {font-size: 1.7rem;}
  h2 {font-size: 1.2rem;}
  .section {
    padding: 24px 5px;
    margin-bottom: 35px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card { padding: 14px 11px; font-size: 0.98em; }
  .text-image-section, .footer-social, .footer-contact { flex-direction: column; gap: 12px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero .container { padding: 0 2px; }
  .hero h1 { font-size: 1.45rem; }
  .footer-logo img { height: 38px; }
}

/*
============================================================
  ANIMATIONS & MICRO-INTERACTIONS
============================================================
*/
.cta-btn, .main-nav a, .card, .footer-social a, .mobile-menu, .mobile-nav a, .mobile-menu-toggle {
  transition: var(--transition)!important;
}
.card {
  transition: border 0.24s, box-shadow 0.22s, transform 0.19s;
}
.card:active { box-shadow: none; }
.testimonial-card {
  transition: box-shadow 0.2s, border 0.21s;
}

/* Focus style for accessibility */
a:focus, button:focus, .cta-btn:focus, .footer-nav a:focus, .footer-social a:focus, .main-nav a:focus, .mobile-nav a:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  background: #1E2333;
}

/* Section titles for clear hierarchy */
section h2 {
  font-size: 2rem;
  border-left: 5px solid var(--metallic);
  padding-left: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

/*
============================================================
  COOKIE CONSENT BANNER & COOKIE MODAL
============================================================
*/
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #212932;
  color: #F2F4EF;
  box-shadow: 0 -2px 18px #000C17cc;
  padding: 18px 16px 24px 16px;
  z-index: 2500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  font-size: 1.04rem;
}
.cookie-consent .cookie-text {
  flex: 2 1 60%;
}
.cookie-consent .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--heading-font);
  font-weight: bold;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 6px #00000022;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-settings-btn {
  background: #223142;
  color: #E4C85A;
  border: 1.4px solid var(--secondary);
  padding: 10px 16px;
  margin-left: 6px;
  transition: background 0.2s, color 0.2s;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #2B3A50;
  color: #F2F4EF;
}

@media (max-width: 768px) {
  .cookie-consent { flex-direction: column; align-items: flex-start; padding: 18px 6px 20px 6px; gap: 10px; }
  .cookie-consent .cookie-actions { gap: 7px; }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(22,29,35,0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s cubic-bezier(.31,0,.32,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #212932;
  color: #F2F4EF;
  border-radius: 13px;
  box-shadow: 0 8px 60px #122030f0;
  padding: 32px 20px 28px 28px;
  max-width: 384px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalOpen 0.37s cubic-bezier(.62,1.9,.36,.98);
}
@keyframes modalOpen {
  0% { transform: translateY(42px) scale(0.7); opacity:0; }
  70% { transform: translateY(-3px) scale(1.04); opacity:1; }
  100% { transform: translateY(0) scale(1); }
}
.cookie-modal h2 { font-size: 1.25rem; color: var(--secondary); margin-bottom: 6px; }
.cookie-modal label { display: flex; align-items: center; gap: 12px; margin: 10px 0 0 0; font-family: var(--body-font); color: #F2F4EF; }
.cookie-modal .cookie-switch {
  appearance: none;
  width: 44px; height: 24px;
  background: #2a3642;
  border-radius: 17px;
  position: relative;
  outline: none;
  cursor: pointer;
  border: 1.5px solid #E4C85A;
  transition: background .14s;
}
.cookie-modal .cookie-switch:checked {
  background: var(--secondary);
  border-color: #E4C85A;
}
.cookie-modal .cookie-switch::after {
  content: '';
  width: 20px; height: 20px;
  background: #F2F4EF;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: left 0.18s, background 0.18s;
}
.cookie-modal .cookie-switch:checked::after {
  background: #223142;
  left: 22px;
}
.cookie-modal .modal-actions {
  display: flex; gap: 12px; margin-top: 12px;
}
.cookie-modal .cookie-modal-close {
  position: absolute; right: 8px; top: 8px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--secondary);
  cursor: pointer;
  z-index: 5;
}
.cookie-modal .cookie-modal-close:hover { color: #F2F4EF; }

@media (max-width: 540px) {
  .cookie-modal {
    padding: 18px 4px 15px 12px;
    max-width: 99vw;
    width: 99vw;
  }
}

/*
============================================================
  MISCELLANEOUS & UTILITY CLASSES
============================================================
*/
hr { border: none; height: 1.5px; background: #223142; margin: 20px 0; }
::-webkit-scrollbar {
  width: 12px; background: #171d23;
}
::-webkit-scrollbar-thumb {
  background: #223142; border-radius: 6px;
}
::-webkit-selection, ::selection { background: #E4C85A; color: #223142; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

/*
============================================================
  PRINT STYLES (MINIMAL)
============================================================
*/
@media print {
  header, .main-nav, .mobile-menu, .footer-logo, .footer-nav, .footer-contact, .footer-social, .cookie-consent, .cookie-modal-overlay {
    display: none! important;
  }
  body { color: #181818; background: #fff; }
  a:after { content: " (" attr(href) ")"; font-size: 0.9em; color: #777; }
}
