/* --- CSS 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,
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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8FAFB;
  color: #163855;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #163855;
  text-decoration: none;
  transition: color 0.18s;
  cursor: pointer;
}
a:hover, a:focus {
  color: #F7A900;
  outline: none;
}
ul, ol {
  list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #163855;
  margin-bottom: 18px;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}
p, .subheadline {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #244365;
}
.subheadline {
  font-size: 1.125rem;
  color: #163855;
  font-weight: 500;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(36, 67, 101, 0.05);
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 80px;
  position: relative;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #163855;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: #E6E9ED;
  color: #F7A900;
}
.logo-link {
  margin-right: 40px;
  display: flex;
  align-items: center;
}
.cta-btn {
  padding: 10px 28px;
  background: #F7A900;
  border: none;
  color: #163855;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 10px;
  font-size: 1.06rem;
  box-shadow: 0 2px 6px rgba(36,67,101,0.07);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.16s;
  margin-left: 24px;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffbb3b;
  color: #163855;
  box-shadow: 0 4px 14px rgba(36, 67, 101, 0.10);
  transform: translateY(-2px) scale(1.025);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #163855;
  cursor: pointer;
  display: none;
  z-index: 230;
  margin-left: 12px;
}
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 0 40px 0 rgba(36, 67, 101, 0.11);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.85,0,.22,1);
  z-index: 299;
  padding: 0 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 0 8px 0;
  background: none;
  color: #163855;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 320;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #F7A900;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
  align-items: flex-start;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #163855;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 6px;
  width: 100%;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E6E9ED;
  color: #F7A900;
}

/* --- HERO SECTION --- */
.hero {
  background: #E6E9ED;
  border-radius: 0 0 32px 32px;
  padding: 60px 0 56px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  font-size: 2.5rem;
  max-width: 700px;
}
.hero .subheadline {
  max-width: 580px;
  margin-bottom: 28px;
}
.hero .cta-btn {
  margin-left: 0;
  margin-top: 20px;
}

/* --- SCANDINAVIAN SPACING --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 14px rgba(36, 67, 101, 0.03);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(36, 67, 101, 0.07);
  padding: 28px 24px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(36, 67, 101, 0.13);
  transform: translateY(-2px) scale(1.015);
}
.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;
  background: #E6E9ED;
  color: #163855;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(36,67,101,0.05);
  max-width: 390px;
  min-width: 220px;
  margin-bottom: 20px;
}
.testimonial-card p {
  line-height: 1.5;
  font-size: 1rem;
  color: #163855;
}
.testimonial-card span {
  font-size: 0.99rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #244365;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features ul, .content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.features li, .content-wrapper li {
  font-size: 1.06rem;
  padding-left: 1.1em;
  position: relative;
}
.features li:before,
.content-wrapper li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: #F7A900;
  border-radius: 50%;
}

/* --- SERVICE CARDS --- */
.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(36,67,101,0.04);
  transition: box-shadow 0.16s, transform 0.13s;
}
.service-card:hover {
  box-shadow: 0 8px 24px rgba(247,169,0,0.08);
  transform: translateY(-2px) scale(1.017);
}
.service-card h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}
.service-card p {
  color: #244365;
  font-size: 1.01rem;
}

/* --- PROJECT TAGS --- */
.tag {
  display: inline-block;
  background: #F7A900;
  color: #163855;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 0.2em 0.82em;
  margin-right: 7px;
  margin-top: 7px;
}

/* --- CTA SECTIONS --- */
.cta-section {
  background: #E6E9ED;
  border-radius: 28px;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta-section h2, .cta-section p {
  color: #163855;
}
.cta-section .cta-btn {
  margin-top: 17px;
  margin-left: 0;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-top: 1px solid #E6E9ED;
  padding: 32px 0 20px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-nav {
  display: flex;
  gap: 30px;
  margin-bottom: 9px;
}
.footer-nav a {
  font-size: 0.97rem;
  color: #244365;
  padding: 5px 9px;
  border-radius: 7px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F7A900;
  background: #E6E9ED;
}
.address p, .address a {
  font-size: 0.96rem;
  color: #244365;
  margin-bottom: 4px;
}
.address a:hover {
  color: #F7A900;
}
address {
  font-style: normal;
}

/* --- TEXT SECTIONS --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section p, .text-section ul, .text-section li {
  font-size: 1.03rem;
}
.text-section a {
  color: #163855;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.17s;
}
.text-section a:hover {
  color: #F7A900;
}

/* --- PROJECT LIST --- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* --- MISC --- */
span, b, strong {
  color: #163855;
}

/* --- FORMS --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  border-radius: 7px;
  border: 1px solid #E6E9ED;
  background: #FAFAFA;
  color: #163855;
  padding: 11px 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border 0.19s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #F7A900;
  background: #fff;
}

button {
  font-family: inherit;
  font-size: 1rem;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: #163855;
  color: #fff;
  box-shadow: 0 -2px 18px rgba(22,56,85,0.17);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px 16px;
  gap: 16px;
  animation: fadeInUp 0.45s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-btns {
  display: flex;
  gap: 18px;
}
.cookie-btn, .cookie-banner .cta-btn, .cookie-settings-btn {
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 1rem;
  background: #F7A900;
  color: #163855;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s, transform 0.15s;
}
.cookie-btn.reject {
  background: #E6E9ED;
  color: #244365;
}
.cookie-btn.settings {
  background: #fff;
  color: #163855;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #ffbb3b;
  color: #163855;
  box-shadow: 0 3px 11px rgba(247,169,0,0.08);
  transform: translateY(-1px) scale(1.02);
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3200;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,56,85,0.21);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.23s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #163855;
  border-radius: 15px;
  box-shadow: 0 11px 44px rgba(36,67,101,0.17);
  max-width: 385px;
  width: 94vw;
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F7A900;
  width: 20px; height: 20px;
  margin-right: 4px;
}
.cookie-modal-footer {
  display: flex;
  gap: 15px;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 16px;
  background: none;
  border: none;
  color: #244365;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover {
  color: #F7A900;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1220px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
  }
  .main-nav ul {
    gap: 16px;
  }
  .cta-btn {
    margin-left: 11px;
    padding: 10px 18px;
  }
}
@media (max-width: 900px) {
  .footer-nav {
    gap: 13px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .main-nav ul, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    max-width: 100vw;
    padding: 0 9px;
  }
  .hero {
    padding: 38px 0 30px 0;
    border-radius: 0 0 20px 20px;
  }
  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 17px;
  }
  .section, .cta-section {
    padding: 28px 7px;
    border-radius: 10px;
  }
  .card, .service-card {
    padding: 17px 10px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .address p {
    font-size: 0.95rem;
  }
  .content-grid, .card-container, .project-list, .content-wrapper, .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
  .testimonial-card {
    min-width: 90vw;
    max-width: 97vw;
    font-size: 0.99rem;
    padding: 15px;
  }
  .cookie-modal {
    min-width: 90vw;
    max-width: 100vw;
    padding: 20px 7px 14px 7px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.26rem;
  }
  h2 {
    font-size: 1.05rem;
  }
  .cta-btn, .cookie-btn, .cookie-settings-btn {
    font-size: 0.98rem;
  }
}

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

/* Extra: micro-interaction for cards */
.card, .service-card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:active,
.service-card:active,
.testimonial-card:active {
  box-shadow: 0 2px 8px rgba(36,67,101,0.12);
  transform: scale(0.98);
}

/* Hide mobile menu by default, only show when .open class attached */
.mobile-menu {
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
}

/* Disable body scroll when menu open (add class .no-scroll to body via JS) */
body.no-scroll {
  overflow: hidden;
}

/* Modal overlay fade-in for cookie modal*/
.cookie-modal-overlay {
  animation: fadeInModal 0.25s ease;
}

/* Hide cookie modal by default (handled by JS) */
.cookie-modal-overlay[hidden] {
  display: none;
}

