/* =====================
   dtscover Routes - Scandinavian Clean CSS
   ===================== */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --color-primary: #1A2937;
  --color-secondary: #F3F4F6;
  --color-bg: #FFFFFF;
  --color-accent: #2051A8;
  --color-accent-hover: #3578E5;
  --color-grey: #E5E7EB;
  --color-grey-dark: #9CA3AF;
  --color-success: #3CB371;
  --color-danger: #E53E3E;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --radius: 12px;
  --shadow-card: 0 2px 12px 0 rgba(26,41,55,0.06);
  --shadow-hover: 0 4px 24px 0 rgba(26,41,55,0.10);
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
  --container-max: 1120px;
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
  --gap-feature: 15px;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-primary);
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-primary);
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   Layout Containers
   ===================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-content);
  align-items: flex-start;
}

.section {
  margin-bottom: var(--gap-section);
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* =====================
   Typography
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin: 0 0 10px 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
h4 {
  font-size: 1rem;
  font-weight: 600;
}
p, ul, ol, li, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  margin: 0 0 10px 0;
}
blockquote {
  font-style: italic;
  color: var(--color-primary);
  background: var(--color-secondary);
  border-left: 4px solid var(--color-accent);
  padding: 12px 20px;
  margin: 0 0 10px 0;
  border-radius: var(--radius);
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
li {
  margin-bottom: 6px;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* =====================
   Buttons
   ===================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  margin-right: 10px;
  margin-bottom: 10px;
  text-align: center;
  outline: none;
}
.button:last-child {
  margin-right: 0;
}
.button.primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.button.primary:hover, .button.primary:focus {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: var(--shadow-hover);
}
.button:hover, .button:focus {
  background: var(--color-grey);
  color: var(--color-accent);
  box-shadow: var(--shadow-hover);
}
.button:active {
  transform: translateY(1px);
}

/* =====================
   Header & Navigation
   ===================== */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 8px 0 rgba(26,41,55,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 10px;
  transition: color var(--transition);
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--color-accent);
}

/* =====================
   Mobile Navigation
   ===================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,41,55,0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

/* =====================
   Hero, Features, Cards, Grids
   ===================== */
.feature-grid, .team-grid, .blog-teasers, .faq-accordion {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
  margin-top: 10px;
}
.feature-grid > div, .team-member, .blog-teasers > div, .faq-accordion > div {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .team-member:hover, .blog-teasers > div:hover, .faq-accordion > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-card);
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}

.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: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 1.05rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card blockquote {
  color: var(--color-primary);
  background: none;
  border-left: 4px solid var(--color-accent);
  padding: 0 16px 0 12px;
  margin: 0;
}
.testimonial-card strong {
  color: var(--color-accent);
}

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

/* =====================
   Tables (Pricing)
   ===================== */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  overflow: hidden;
}
thead {
  background: var(--color-grey);
}
th, td {
  padding: 14px 12px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
}
th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
}
tbody tr {
  border-bottom: 1px solid var(--color-grey);
}
tbody tr:last-child {
  border-bottom: none;
}
tbody td {
  color: var(--color-primary);
}

/* =====================
   Footer
   ===================== */
footer {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-grey);
  padding: 40px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact {
  color: var(--color-grey-dark);
  font-size: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-copy {
  color: var(--color-grey-dark);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* =====================
   Cookie Consent Banner
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-grey);
  box-shadow: 0 -2px 16px 0 rgba(26,41,55,0.08);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  gap: 20px;
  animation: cookieBannerIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 1 1 0;
  color: var(--color-primary);
  font-size: 1rem;
  margin-right: 20px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner .button {
  margin-bottom: 0;
  min-width: 120px;
}
.cookie-banner .button.accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-banner .button.accept:hover, .cookie-banner .button.accept:focus {
  background: #249c6b;
}
.cookie-banner .button.reject {
  background: var(--color-danger);
  color: #fff;
}
.cookie-banner .button.reject:hover, .cookie-banner .button.reject:focus {
  background: #b91c1c;
}
.cookie-banner .button.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-grey);
}
.cookie-banner .button.settings:hover, .cookie-banner .button.settings:focus {
  background: var(--color-grey);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,41,55,0.60);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(26,41,55,0.18);
  padding: 32px 24px 24px 24px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category input[disabled] {
  opacity: 0.6;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .button {
  min-width: 120px;
}

/* =====================
   FAQ Accordion
   ===================== */
.faq-accordion > div {
  cursor: pointer;
  transition: box-shadow var(--transition), background var(--transition);
}
.faq-accordion > div:hover {
  background: #e9eef5;
  box-shadow: var(--shadow-hover);
}
.faq-accordion h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}
.faq-accordion p {
  margin-bottom: 0;
  color: var(--color-primary);
}

/* =====================
   Miscellaneous
   ===================== */
.map {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-top: 10px;
  box-shadow: var(--shadow-card);
  font-size: 1rem;
}

/* =====================
   Responsive Design
   ===================== */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .feature-grid > div, .team-member, .blog-teasers > div {
    min-width: 180px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .feature-grid, .team-grid, .blog-teasers, .faq-accordion {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 0 10px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .feature-grid, .team-grid, .blog-teasers, .faq-accordion {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div, .team-member, .blog-teasers > div, .faq-accordion > div {
    min-width: 0;
    width: 100%;
    padding: 18px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 10px;
  }
  .cookie-banner__text {
    margin-right: 0;
  }
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    padding: 20px 8px 16px 8px;
  }
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 18px;
    border-bottom: 1px solid var(--color-grey);
  }
  td {
    padding: 10px 8px;
    border: none;
    position: relative;
  }
  td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-grey-dark);
    display: block;
    margin-bottom: 2px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .container {
    padding: 0 4px;
  }
  .section {
    padding: 16px 2px;
  }
  .cookie-modal {
    padding: 10px 2px 10px 2px;
  }
}

/* =====================
   Utility Classes
   ===================== */
.hide {
  display: none !important;
}

/* =====================
   Accessibility
   ===================== */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =====================
   End of CSS
   ===================== */
