/* RESET & BASE STYLES -------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background-color: #FFFFFF;
  color: #16455B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}
input, textarea, button, select {
  font-family: inherit;
  font-size: 1rem;
}
a {
  color: #16455B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #DAA520;
  outline: none;
}
ul, ol {
  margin-left: 1.1em;
  margin-bottom: 1em;
}
strong, b {
  font-weight: bold;
  color: #16455B;
}

/* TYPOGRAPHY ------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #16455B;
  margin-bottom: 12px;
  line-height: 1.16;
  letter-spacing: 0;
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 18px; }
h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 8px; }
h4 { font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; }
p, li, details {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.subheadline {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #3a5a70;
  font-size: 1.18rem;
  margin-bottom: 22px;
}

/* CONTAINER & GENERAL FLEX SPACING --------- */
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}
.header-flex, .footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  min-height: 64px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* SPACING PATTERNS ------------------------- */
section, .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;
}

/* MOBILE-FIRST FLEX LAYOUTS ---------------- */
.main-nav {
  display: none;
}
.header-flex {
  flex-direction: row;
}
.footer-flex {
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 18px;
}
.footer-flex > *, .footer-nav a:not(:last-child) {
  margin-bottom: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-social {
  display: flex;
  gap: 14px;
}

/* HERO SECTIONS ---------------------------- */
.hero-section {
  background-color: #F0F4F8;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(40,67,94,0.06);
  margin-top: 30px;
  margin-bottom: 44px;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-section h1 {
  font-size: 2.1rem;
  font-weight: 700;
}
.hero-section .subheadline {
  max-width: 600px;
  color: #295476;
}

/* FEATURES/GRID FLEX ----------------------- */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 15px;
}
.feature-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(37,58,78,0.06);
  padding: 24px 20px;
  max-width: 350px;
  flex: 1 1 260px;
  border: 1px solid #e5eaee;
  transition: box-shadow 0.25s;
}
.feature-item:hover {
  box-shadow: 0 8px 28px rgba(37,58,78,0.13);
}
.feature-item img {
  width: 44px; height: 44px;
  margin-bottom: 8px;
}

/* SERVICES CARDS --------------------------- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 34px;
}
.service-highlight {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(37,58,78,0.08);
  padding: 18px 16px 18px 24px;
  border-left: 4px solid #16455B;
  position: relative;
  transition: box-shadow 0.21s;
}
.service-highlight strong {
  color: #DAA520;
}
.service-highlight:hover { box-shadow: 0 8px 32px rgba(26,47,64,0.13); }

/* BUTTONS & INTERACTIVE -------------------- */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 27px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.21s;
  margin-top: 10px;
  min-width: 170px;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  outline: none;
}
.btn-primary {
  background: #16455B;
  color: #fff;
  box-shadow: 0 2px 10px rgba(22,69,91,0.06);
}
.btn-primary:hover, .btn-primary:focus {
  background: #1e5973;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22,69,91,0.13);
}
.btn-secondary {
  background: #fff;
  color: #16455B;
  border: 2px solid #16455B;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F0F4F8;
  color: #16455B;
}

/* DETAILS (FAQ) ---------------------------- */
details {
  background: #F0F4F8;
  padding: 14px 20px;
  border-radius: 10px;
  margin-bottom: 16px;
  border-left: 3px solid #16455B;
  box-shadow: 0 1px 5px rgba(15,33,43,0.05);
  font-size: 1rem;
}
details summary {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
  cursor: pointer;
  color: #16455B;
  outline: none;
}
details[open] {
  border-left-color: #DAA520;
  background: #eaf1f6;
}

/* TESTIMONIALS ----------------------------- */
.testimonials-section {
  padding-bottom: 20px;
}
.testimonial-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px rgba(57,72,90,0.09);
  border: 1px solid #e3e9ef;
  margin-bottom: 20px;
  gap: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 700px;
  transition: box-shadow 0.21s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(15,39,62,0.11);
}
.testimonial-card p {
  color: #2A4460;
  font-size: 1.11rem;
  margin-bottom: 5px;
  font-style: italic;
  letter-spacing: 0.01em;
}
.testimonial-card strong {
  font-size: 0.99rem;
  color: #16455B;
  font-weight: 600;
}

/* LEGAL SECTIONS & MODALS ------------------ */
.legal-section {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 8px rgba(18,76,130,0.07);
  border: 1px solid #f2f5f8;
  margin-bottom: 32px;
}

/* CONTACT ----------------- */
.contact-section .text-section p {
  margin-bottom: 5px;
}

/* FOOTER -------------------- */
footer {
  background: #F0F4F8;
  border-top: 1px solid #e7eef5;
}
.footer-logo img {
  width: 44px;
  height: auto;
}
.footer-nav a {
  color: #16455B;
  font-size: 1rem;
  margin-right: 12px;
}
.footer-nav a:last-child {
  margin-right: 0;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #DAA520;
}
.footer-contact-info {
  color: #295476;
  font-size: 0.97rem;
}

/* MOBILE MENU ------------------------------- */
.mobile-menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: #16455B;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1201;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #DAA520;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(251,253,255,0.98);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.7,0,.3,1);
  box-shadow: 0 0 24px rgba(20,38,60,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #16455B;
  font-size: 2.2rem;
  min-width: 48px;
  min-height: 48px;
  margin: 18px 0 0 18px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1202;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #DAA520;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 46px;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #16455B;
  padding: 14px 10px 14px 0;
  border-radius: 4px;
  font-family: 'Roboto Slab', Georgia, serif;
  transition: background 0.13s, color 0.18s;
  min-width: 180px;
  min-height: 44px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #DAA520;
}

/* Hide desktop nav and show mobile toggle on <992px */
@media (max-width: 991px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 992px) {
  .main-nav {
    display: flex;
    gap: 18px;
    align-items: center;
  }
  .main-nav a {
    font-family: 'Roboto Slab', Georgia, serif;
    color: #16455B;
    font-size: 1.07rem;
    margin-right: 0;
    padding: 9px 16px;
    border-radius: 6px;
    transition: background 0.16s, color 0.15s;
  }
  .main-nav a:hover, .main-nav a:focus {
    color: #DAA520;
    background: #F0F4F8;
  }
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
  .header-flex {
    flex-direction: row;
    align-items: center;
  }
}

/* Cookie Consent Banner -------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #F0F4F8;
  color: #16455B;
  box-shadow: 0 -2px 18px rgba(22,69,91,0.10);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 18px 22px 18px;
  z-index: 2500;
  flex-wrap: wrap;
  border-top: 2px solid #e7eef5;
  font-size: 1rem;
  animation: banner-slide-in 0.45s cubic-bezier(.7,0,.3,1);
}
@keyframes banner-slide-in {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 2 1 160px;
  color: #16455B;
  margin-right: 24px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 21px;
  border: none;
  cursor: pointer;
  margin-right: 4px;
  transition: background 0.13s, color 0.17s, box-shadow 0.17s;
}
.cookie-banner .accept-cookie {
  background: #16455B;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,69,91,0.05);
}
.cookie-banner .accept-cookie:hover,
.cookie-banner .accept-cookie:focus {
  background: #1e5973;
}
.cookie-banner .reject-cookie {
  background: #fff;
  color: #16455B;
  border: 2px solid #16455B;
}
.cookie-banner .reject-cookie:hover,
.cookie-banner .reject-cookie:focus {
  background: #e7eef5;
}
.cookie-banner .settings-cookie {
  background: #DAA520;
  color: #16455B;
  border: 1px solid #DAA520;
}
.cookie-banner .settings-cookie:hover,
.cookie-banner .settings-cookie:focus {
  background: #fff3cd;
  color: #856404;
}

/* Cookie Modal Popup ------------------------ */
.cookie-modal-backdrop {
  position: fixed; z-index: 2550;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(16,30,43,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.24s cubic-bezier(.7,0,.3,1);
}
@keyframes modal-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #16455B;
  border-radius: 18px;
  max-width: 380px;
  width: 92%;
  padding: 33px 29px 27px 29px;
  box-shadow: 0 8px 38px rgba(27, 47, 67, 0.14);
  display: flex;
  flex-direction: column;
  gap: 23px;
  z-index: 2551;
  animation: modal-slide-in 0.32s cubic-bezier(.7,0,.3,1);
}
@keyframes modal-slide-in {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.29rem;
  font-family: 'Roboto Slab', Georgia, serif;
  margin-bottom: 8px;
}
.cookie-cat-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #F0F4F8;
  padding: 10px 0 10px 0;
  font-size: 1rem;
}
.cookie-cat-row:last-child { border-bottom: none; }
.cookie-toggle {
  width: 42px;
  height: 24px;
  background: #E6E7E9;
  border-radius: 16px;
  position: relative;
  outline: none;
  border: none;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-toggle[data-enabled='true'] { background: #DAA520; }
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(32,35,46,0.13);
  transition: transform 0.18s;
}
.cookie-toggle[data-enabled='true']:before {
  transform: translateX(18px);
}
.cookie-cat-label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #16455B;
  user-select: none;
}
.cookie-modal-bottom {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 11px;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
  min-width: 120px;
  padding: 10px 20px;
}
.cookie-modal .btn-secondary {
  background: #fff;
  color: #16455B;
  border: 2px solid #16455B;
}
.cookie-modal .btn-secondary:hover {
  background: #F0F4F8;
}

/* SECTIONS - ABOUT, LEGAL, ETC -------------- */
.text-section, .features-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.features-list ul {
  padding-left: 1.2em;
  font-size: 1.07rem;
}

/* RESPONSIVE DESIGN ------------------------- */
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
  .footer-flex { flex-direction: column; }
}
@media (max-width: 991px) {
  .footer-flex { flex-direction: column; gap: 18px; }
  .feature-grid, .services-list { flex-direction: column; }
}
@media (max-width: 768px) {

  html { font-size: 15px; }
  section, .section {
    margin-bottom: 38px;
    padding: 24px 6px;
  }
  .content-wrapper {
    gap: 10px;
  }
  .hero-section {
    margin-top: 10px;
    padding: 32px 5px;
  }
  .feature-grid {
    gap: 16px;
    padding-top: 5px;
  }
  .feature-item {
    padding: 17px 10px;
    min-width: 0;
    max-width: 100%;
  }
  .services-list {
    gap: 13px;
    margin-bottom: 19px;
  }
  .testimonial-card {
    padding: 13px 9px;
    font-size: 1rem;
  }
  .about-section, .legal-section {
    padding: 12px 3px;
  }
  .footer-flex {
    padding-top: 6px; padding-bottom: 7px;
    gap: 18px;
  }
  .footer-nav { gap: 9px; }
  .text-image-section {
    flex-direction: column;
    gap: 17px;
  }
}
@media (max-width: 520px) {
  html { font-size: 14px; }
  .btn-primary, .btn-secondary {
    padding: 9px 8vw;
    min-width: 110px;
    font-size: 1rem;
  }
  .hero-section h1 { font-size: 1.49rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 10px 6px 13px 6px; font-size: 0.98rem; }
  .cookie-modal { padding: 17px 7px 15px 9px; max-width: 98vw; }
}

/* SCANDINAVIAN CLEAN ATMOSPHERE ------------- */
body {
  background: #f8fafb;
}
.hero-section, .about-section, .features-section, .services-section, .legal-section, .contact-section, .confirmation-section {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 14px rgba(155,168,184,0.12);
}

/* Inputs & Forms ---------------------------- */
input, textarea, select {
  background: #F0F4F8;
  border: 1px solid #c8d1db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  color: #16455B;
  margin-bottom: 12px;
  outline: none;
  transition: border 0.2s, box-shadow 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #DAA520;
  box-shadow: 0 1px 3px 0 rgba(218,165,32,0.09);
}

/* Misc small cards and utility classes ------- */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(22,69,91,0.07);
  border: 1px solid #eaecef;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 18px 16px;
}
.card-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 10px;
}

/* Hide visually (for accessibility) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important; height: 1px;
  padding: 0;
  margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0; white-space: nowrap;
}

/* Hide content (js utility) ------------------ */
.hidden { display: none !important; }

/* End of style.css */
