/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
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: #F7F8FA;
  color: #2C3E50;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
ul, ol {
  margin-left: 24px;
}
a {
  color: #2C3E50;
  text-decoration: none;
  transition: color 0.18s ease;
}
a:focus {
  outline: 2px solid #FFD600;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
  display: block;
}
button, input[type="button"], input[type="submit"] {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2C3E50;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 500;
}
p, ul, ol, li {
  font-size: 1rem;
  line-height: 1.6;
  color: #2C3E50;
}
strong, b {
  font-weight: 700;
}
.text-section ul,
.text-section ol {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

/* =========================================================================
   CONTAINERS & LAYOUT
   ========================================================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 32px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(44, 62, 80, 0.05);
}

@media (max-width: 600px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(44,62,80,0.07);
  padding: 28px 20px;
  min-width: 220px;
  flex: 1 1 240px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 4px 18px rgba(44,62,80,0.2);
  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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column !important;
    gap: 20px;
    align-items: flex-start;
  }
}

.feature-grid, .service-list, .testimonial-slider, .testimonial-grid, .pricing-table-wrapper, .contact-info, .contact-info-short {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .testimonial-grid {
    flex-direction: column;
    gap: 18px;
  }
}
.feature {
  background: #F7F8FA;
  border-radius: 14px;
  padding: 28px 20px 24px 20px;
  flex: 1 1 224px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.20s, box-shadow 0.20s;
  box-shadow: 0 0.5px 3px rgba(44,62,80,0.05);
}
.feature:hover {
  background: #fffbe7;
  box-shadow: 0 2px 16px rgba(255,214,0,0.12);
}
.feature img {
  width: 36px; height: 36px;
  margin-bottom: 10px;
  filter: grayscale(13%) brightness(1.1);
}
.service {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 6px rgba(44,62,80,0.06);
  padding: 24px 18px;
  flex: 1 1 210px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.service:hover {
  box-shadow: 0 4px 15px rgba(44,62,80,0.14);
}

.service-category {
  background: #F7F8FA;
  border-radius: 12px;
  padding: 22px 16px 16px 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(44,62,80,0.06);
}
.service-category h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.faq-section {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 0.5px 5px rgba(44,62,80,0.07);
  margin-bottom: 20px;
}

.case-study {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 7px rgba(44,62,80,0.05);
  padding: 22px 16px;
  margin-bottom: 20px;
}
.project-tags {
  display: flex;
  gap: 10px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.project-tags li {
  background: #FFD600;
  color: #212426;
  border-radius: 8px;
  padding: 3px 11px;
  font-size: 14px;
  margin: 0;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .card-container, .content-grid, .feature-grid, .service-list, .testimonial-grid, .pricing-table-wrapper, .contact-info, .contact-info-short {
    flex-direction: column;
    gap: 16px;
  }
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px 0;
  gap: 22px;
}
.logo-link img {
  max-height: 44px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #2C3E50;
  opacity: 0.92;
  padding: 4px 10px 2px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFD60033;
  color: #2C3E50;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background: #2C3E50;
  color: #fff;
  border-radius: 26px;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  box-shadow: 0 1px 5px rgba(44,62,80,0.10);
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.2s;
  cursor: pointer;
  margin-left: 16px;
  gap: 6px;
}
.btn.primary {
  background: #2C3E50;
  color: #fff;
}
.btn.accent {
  background: #FFD600;
  color: #2C3E50;
  box-shadow: 0 1px 7px rgba(255,214,0,0.09);
}
.btn:hover, .btn:focus {
  background: #212426;
  color: #fff;
  box-shadow: 0 5px 24px rgba(44,62,80,0.13);
}
.btn.primary:hover, .btn.primary:focus {
  background: #1C2541;
  color: #fff;
}
.btn.accent:hover, .btn.accent:focus {
  background: #F7C900;
  color: #222;
  border-color: #FFD600;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #2C3E50;
  line-height: 1;
  margin-left: 22px;
  z-index: 22;
  border-radius: 6px;
  width: 47px;
  height: 47px;
  transition: background 0.12s, color 0.12s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFD60044;
}
@media (max-width: 970px) {
  .main-nav {
    display: none;
  }
  .btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =========================================================================
   MOBILE MENU
   ========================================================================= */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100vw;
  background: #fff;
  box-shadow: 0 6px 32px rgba(44,62,80,0.18);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.28,1.01,.41,.99);
  z-index: 150;
  padding: 0;
}
.mobile-menu.open {
  transform: none;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  margin: 18px 26px 12px 0;
  background: #FFD60044;
  color: #2C3E50;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.12s, color 0.12s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #FFD60088;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 6px 32px;
  gap: 14px;
  margin-bottom: 20px;
}
.mobile-nav a {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2C3E50;
  padding: 13px 0 13px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.13s, color 0.13s;
  margin-right: 10px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #FFD60033;
  color: #222;
}
@media (min-width: 971px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Lock scrolling when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* =========================================================================
   HERO SECTIONS
   ========================================================================= */
.hero {
  background: #F7F8FA;
  padding: 46px 0 34px 0;
  border-bottom: 1.5px solid #eceff2;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  max-width: 700px;
}
.hero h1 {
  color: #2C3E50;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.67rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -1.2px;
  line-height: 1.13;
}
.hero p {
  font-size: 1.13rem;
  color: #2C3E50CC;
  margin-bottom: 0;
  font-weight: 400;
}
@media (max-width: 700px) {
  .hero {
    padding: 29px 0 22px 0;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonial-slider,
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.testimonial-card {
  background: #fff;
  color: #23272E;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(44,62,80,0.07);
  flex: 1 1 310px;
  min-width: 230px;
  max-width: 390px;
  padding: 28px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.20s, transform 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 26px rgba(255,214,0,0.13), 0 2px 20px rgba(44,62,80,0.11);
  transform: translateY(-2px) scale(1.015);
}

.testimonial-card p {
  font-size: 1.03rem;
  color: #292827;
}
.testimonial-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #777;
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-footer strong {
  color: #2C3E50;
  font-weight: 600;
}
.testimonial-footer span:last-child {
  color: #FFD600;
  font-size: 1.1em;
  letter-spacing: 1.5px;
}

@media (max-width: 700px) {
  .testimonial-card, .case-study {
    padding: 20px 12px 14px 12px;
    min-width: 0;
    flex: 1 1 100%;
    max-width: unset;
  }
  .testimonial-slider, .testimonial-grid {
    gap: 12px;
  }
}

/* =========================================================================
   CTA
   ========================================================================= */
#cta, .thank-you-section {
  background: #fffbe7;
  border-radius: 18px;
  padding: 40px 20px;
  margin-bottom: 60px;
  box-shadow: 0 2.5px 14px rgba(255,214,0,0.10);
}
#cta h2, .thank-you-section h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2C3E50;
}
#cta .btn, .thank-you-section .btn {
  margin-top: 22px;
}

/* =========================================================================
   TABLES (Pricing)
   ========================================================================= */
.pricing-table-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 10px;
}
.pricing-table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  width: 100%;
  border-radius: 13px;
  box-shadow: 0 0.8px 7px rgba(44,62,80,0.07);
  overflow: hidden;
  margin-bottom: 15px;
  font-size: 1rem;
}
.pricing-table th, .pricing-table td {
  padding: 16px 12px;
  text-align: left;
}
.pricing-table th {
  background: #F7F8FA;
  color: #2C3E50;
  font-weight: 600;
}
.pricing-table tr:not(:last-child) td {
  border-bottom: 1px solid #ECECEC;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
footer {
  background: #ffffff;
  border-top: 1.2px solid #ECECEC;
  margin-top: 48px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 38px 0 27px 0;
  gap: 40px 24px;
}
.footer-flex a img {
  max-height: 36px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 155px;
}
.footer-nav a {
  color: #2C3E50;
  font-size: 0.98rem;
  margin-bottom: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.14s;
}
.footer-nav a:hover {
  color: #FFD600;
}
.footer-contact p {
  font-size: 0.93rem;
  margin-bottom: 4px;
  letter-spacing: 0;
}
@media (max-width: 700px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 20px 0 18px 0;
    font-size: 1rem;
  }
}

/* =========================================================================
   FORMS & CONTACT
   ========================================================================= */
.contact-info, .contact-info-short {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: flex-start;
}
@media (max-width: 800px) {
  .contact-info, .contact-info-short {
    flex-direction: column;
    gap: 12px;
  }
}
.text-section {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1rem;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.contact-details img {
  width: 19px;
  min-width: 18px;
  max-height: 20px;
  opacity: 0.8;
}

/* =========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #2C3E50;
  box-shadow: 0 -2.5px 18px rgba(44,62,80,0.13);
  z-index: 500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 19px 18px 19px 18px;
  gap: 24px;
  font-size: 1rem;
  border-top: 1.5px solid #ECECEC;
  transition: transform 0.43s cubic-bezier(.4,0,.2,1);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}
.cookie-consent-banner .cookie-message {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 14px;
}
.cookie-consent-banner .btn {
  margin: 0 7px 0 0;
  padding: 8px 20px;
  font-size: 0.98rem;
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 8px 14px 8px;
  }
  .cookie-consent-banner .btn {
    margin-bottom: 7px;
  }
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(44,62,80,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  pointer-events: auto;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(44,62,80,0.20);
  max-width: 410px;
  width: 90vw;
  padding: 32px 24px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  animation: showModal 0.35s cubic-bezier(.23,1.32,.41,.99);
  margin: 10vw 0 0 0;
}
@keyframes showModal {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 6px 0;
}
.cookie-category label {
  font-size: 1rem;
  cursor: pointer;
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #bbbbbb;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 13px;
}
.cookie-modal .btn {
  margin: 0;
  padding: 7px 20px;
  font-size: 1rem;
}
.cookie-modal .btn.accent {
  background: #FFD600;
  color: #2C3E50;
}
.cookie-modal .btn.primary {
  background: #2C3E50;
}
.cookie-modal .btn.secondary {
  background: #f7f8fa;
  color: #2C3E50;
  border: 1.5px solid #bcced8;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  font-size: 1.5em;
  color: #2C3E50;
}

@media (max-width: 500px) {
  .cookie-modal {
    padding: 18px 7px 13px 7px;
    max-width: 98vw;
  }
}

/* =========================================================================
   MICRO-INTERACTIONS & UTILITY
   ========================================================================= */
a:hover, a:active {
  color: #FFD600;
}
.btn:active {
  transform: scale(0.97);
}

/* Utility spacing */
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-3 { margin-top: 30px !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }

/* Selection */
::selection {
  background: #FFD60055;
}

/* Hide visually when not needed */
.hide { display: none !important; }

/* =========================================================================
   SPECIFIC OVERRIDES FOR RESPONSIVENESS
   ========================================================================= */
@media (max-width: 525px) {
  .container {
    padding-left: 4px;
    padding-right: 4px;
  }
  .main-nav { font-size: 0.98rem; }
  .btn, .btn.primary {
    font-size: 0.98rem;
    padding: 8px 16px;
  }
}

/* =========================================================================
   FOCUS STATES & ACCESSIBILITY
   ========================================================================= */
*:focus-visible {
  outline: 2.5px solid #FFD600;
  outline-offset: 2px;
}

/* =========================================================================
   SPECIAL FLEX LAYOUTS
   ========================================================================= */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* For testimonials in a row on desktop, column on mobile */
@media (max-width: 900px) {
  .testimonial-slider, .testimonial-grid {
    flex-direction: column;
    gap: 13px;
  }
}

/* =========================================================================
   SCANDINAVIAN-CLEAN ELEMENTS
   ========================================================================= */
.section, .feature, .card, .testimonial-card, .service, .service-category, .faq-section, .case-study, .thank-you-section, #cta {
  /* Visual touch: light color/airy, shadow, subtle border radius */
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 13px 1.5px rgba(44,62,80,0.055);
}
.feature, .feature-item {
  background: #F7F8FA;
}

/* Subtle divider lines for separation */
.section + .section {
  border-top: 1.5px solid #eceff2;
}

/* Brand accent highlight for headings */
h2 {
  border-left: 5px solid #FFD600;
  padding-left: 13px;
}
@media (max-width: 700px) {
  h2 { padding-left: 7px; }
}

/* =========================================================================
   PRINT STYLES
   ========================================================================= */
@media print {
  *, *:before, *:after { background: none !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  .btn, .main-nav, .mobile-menu-toggle, .mobile-menu, .cookie-consent-banner, .cookie-modal-overlay { display: none !important; }
}
