/* =========================================================
   CSS RESET & BASELINE NORMALIZE
   ========================================================= */
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: #F9F9F7;
  color: #1D3557;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color 0.14s;
}
a:hover, a:focus {
  color: #457B9D;
  outline: none;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* =========================================================
   BRAND COLORS & CUSTOM PROPERTIES (WITH FALLBACKS)
   ========================================================= */
:root {
  --brand-primary: #1D3557;
  --brand-secondary: #A8DADC;
  --brand-accent: #F1FAEE;
  --brand-dark: #15213B;
  --brand-grey: #ECECEC;
  --brand-text: #1D3557;
  --brand-bg: #F9F9F7;
  --brand-card: #FFFFFF;
  --brand-boxshadow: 0 2px 8px rgba(29,53,87, 0.07);
}

/* =========================================================
   TYPOGRAPHY, SPACING, & SCANDINAVIAN-CLEAN STYLE
   ========================================================= */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--brand-primary);
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--brand-primary);
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, li, ul, ol, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--brand-text);
  margin-bottom: 12px;
  line-height: 1.7;
}
strong, b {
  font-weight: 600;
}
.cta-link {
  color: var(--brand-primary);
  font-weight: 500;
  border-bottom: 1px solid var(--brand-secondary);
  padding-bottom: 2px;
  letter-spacing: 0.02em;
  transition: color 0.18s, border-bottom 0.18s;
}
.cta-link:hover { color: var(--brand-secondary); border-bottom: 1px solid var(--brand-primary); }

/* SPACING & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--brand-card);
  border-radius: 15px;
  box-shadow: var(--brand-boxshadow);
  padding: 28px 24px;
  min-width: 240px;
  flex: 1 1 300px;
  transition: box-shadow 0.22s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(29,53,87,0.11);
  transform: translateY(-3px) 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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.service-list li, .confirmation-message li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
.service-list li:before, .confirmation-message li:before {
  content: "";
  background: var(--brand-secondary);
  border-radius: 100%;
  width: 8px;
  height: 8px;
  position: absolute;
  left: 0; top: 10px;
}

/* Steps for ordered list */
.process-steps {
  margin-bottom: 24px;
}
.process-steps li {
  margin-bottom: 10px;
  padding-left: 36px;
  position: relative;
  counter-increment: step;
}
.process-steps li:before {
  content: counter(step);
  background: var(--brand-secondary);
  color: var(--brand-dark);
  font-weight: 600;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0; top: 0;
}

/* Section grids */
.feature-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-grid > div,
.service-grid > div {
  background: var(--brand-card);
  border-radius: 13px;
  box-shadow: var(--brand-boxshadow);
  padding: 24px 20px;
  flex: 1 1 280px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, transform 0.13s;
}
.feature-grid > div:hover,
.service-grid > div:hover {
  box-shadow: 0 4px 16px rgba(52, 84, 122, 0.10);
  transform: translateY(-2px) scale(1.015);
}
.feature-grid img, .service-grid img {
  width: 40px; height: 40px; margin-bottom: 12px;
}
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.project-brief {
  background: var(--brand-card);
  border-radius: 12px;
  box-shadow: var(--brand-boxshadow);
  padding: 24px 16px;
  flex: 1 1 280px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.13s;
}
.project-brief h3 {
  margin-bottom: 6px;
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* =========================================================
   HEADER, NAVIGATION & BURGER MENU
   ========================================================= */
header {
  background: var(--brand-card);
  box-shadow: 0 2px 8px rgba(29,53,87,0.05);
  position: sticky;
  top: 0;
  z-index: 990;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
header img {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--brand-primary);
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-secondary);
}
.btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  letter-spacing: .03em;
  border: none;
  box-shadow: var(--brand-boxshadow);
  cursor: pointer;
  transition: background 0.22s, color 0.14s, box-shadow 0.11s, transform 0.13s;
}
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #23406a;
  color: #fff;
  box-shadow: 0 2px 12px rgba(29,53,87,0.16);
  transform: translateY(-1.5px) scale(1.01);
}
.btn-secondary {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F1FAEE;
  color: var(--brand-primary);
}

/* Hamburger and mobile nav */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 16px;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--brand-boxshadow);
  border: none;
  transition: background 0.12s, box-shadow 0.13s;
  z-index: 1111;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29,53,87,0.98);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.33,1,0.68,1);
  z-index: 2222;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  min-height: 100vh;
  padding: 38px 24px 24px 24px;
  opacity: 0.995;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  color: #fff;
  background: none;
  font-size: 2.1rem;
  margin-bottom: 12px;
  cursor: pointer;
  border-radius: 6px;
  border: none;
  padding: 4px 8px;
  transition: background 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.14);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 16px 8px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .main-nav, header .btn {
    display: none !important;
  }
}

/* =========================================================
   HERO & SECTION STYLES
   ========================================================= */
.hero {
  background: var(--brand-accent);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 5px 20px rgba(29,53,87,0.05);
  padding: 54px 0 44px 0;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.15rem;
}

/* =========================================================
   TESTIMONIALS & SLIDER
   ========================================================= */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  margin-top: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(29,53,87, 0.07);
  padding: 20px;
  min-width: 250px;
  color: #1D3557;
}
.testimonial-card p {
  color: #1D3557;
  margin-bottom: 10px;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
}
.testimonial-card strong {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #636E96;
  font-weight: 500;
  margin-top: 4px;
}

/* Awards List */
.awards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  background: var(--brand-accent);
  border-radius: 14px;
  padding: 24px 20px;
}
.awards-list ul {
  margin-bottom: 8px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--brand-card);
  border-top: 1px solid var(--brand-grey);
  padding: 40px 0 16px 0;
  box-shadow: 0 -2px 14px rgba(29,53,87,0.04);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 120px;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: var(--brand-primary);
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.12s;
}
.footer-menu a:hover {
  color: var(--brand-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 15px; height: 15px; margin-right: 7px; vertical-align: middle;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-brand img {
  height: 43px;
  width: auto;
}

/* =========================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  color: #1D3557;
  box-shadow: 0 -1px 12px rgba(29,53,87,0.08);
  padding: 24px 16px 20px 16px;
  z-index: 3100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: bannerSlideIn 0.5s forwards;
}
@keyframes bannerSlideIn {
  0% { transform: translateY(120%); opacity: 0; }
  90% { opacity: .96; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  margin-bottom: 0;
  flex: 1 1 220px;
  max-width: 540px;
}
.cookie-consent-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 9px 20px;
  border-radius: 24px;
  border: none;
  box-shadow: 0 2px 6px rgba(29,53,87, 0.04);
  margin: 0;
  font-weight: 600;
  transition: background 0.17s, color 0.18s, box-shadow 0.11s;
}
.cookie-btn.accept {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #23406a;
}
.cookie-btn.reject {
  background: var(--brand-accent);
  color: var(--brand-primary);
}
.cookie-btn.reject:hover {
  background: #F7F7F5;
}
.cookie-btn.settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-btn.settings:hover {
  filter: brightness(1.07);
}

.cookie-modal {
  position: fixed;
  z-index: 3200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(29, 53, 87, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: modalFadeIn 0.28s;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-box {
  background: #fff;
  color: #1D3557;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(29,53,87,0.23);
  max-width: 420px;
  width: 94%;
  padding: 32px 30px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalBoxSlide 0.37s cubic-bezier(.42,.8,.82,1.3);
}
@keyframes modalBoxSlide {
  0% { transform: translateY(-60px) scale(.96); opacity: 0.6; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal-close {
  font-size: 2.2rem;
  color: var(--brand-primary);
  background: none;
  border: none;
  line-height: 1;
  border-radius: 5px;
  padding: 2px 8px 1px 8px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--brand-accent);
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-accent);
  border-radius: 8px;
  padding: 10px 14px;
}
.cookie-option-title {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--brand-primary);
}
.cookie-option-toggle {
  display: inline-flex;
  align-items: center;
}
.cookie-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 16px;
  background: #c5d8de;
  position: relative;
  transition: background 0.17s;
  outline: none;
}
.cookie-toggle:checked {
  background: var(--brand-secondary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(29,53,87,0.09);
  transition: transform 0.2s;
}
.cookie-toggle:checked:before {
  transform: translateX(20px);
}
.cookie-option-desc {
  color: #45596d;
  font-size: 0.98rem;
  margin-top: 3px;
}
.cookie-essential-label {
  color: #6e768a;
  font-size: 0.93rem;
  font-weight: 400;
  font-style: italic;
  margin-left: 10px;
}

/* =========================================================
   FORMS
   ========================================================= */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid var(--brand-grey);
  border-radius: 6px;
  padding: 11px 13px;
  background: #fff;
  color: #15213B;
  margin-bottom: 16px;
  margin-top: 6px;
  transition: border-color 0.13s, box-shadow 0.13s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
  outline: none;
  box-shadow: 0 2px 6px rgba(29,53,87,.07);
}


/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 12px; padding-right: 12px;
  }
  .feature-grid > div,
  .service-grid > div,
  .project-brief,
  .card {
    min-width: 160px;
    padding: 16px 12px;
  }
  .hero {
    border-radius: 0 0 24px 24px;
    padding-top: 36px; padding-bottom: 23px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.35rem; }
  .content-wrapper {
    gap: 8px;
  }
  section, .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
  .feature-grid, .service-grid, .card-container, .content-grid, .testimonial-slider, .project-list {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .cookie-consent-banner {
    flex-direction: column;
    gap: 15px;
    text-align: left;
    padding: 18px 8px 14px 8px;
  }
  .cookie-consent-banner p { max-width: 100vw; font-size: .98rem; }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-brand {
    margin-top: 15px;
  }
  .hero {
    padding-top: 26px; padding-bottom: 13px;
    margin-bottom: 32px;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 5px; padding-right: 5px;
  }
  .hero { border-radius: 0; padding-top: 18px; }
  h1, .h1 { font-size: 1.33rem; }
}

/* =========================================================
   MISCELLANEOUS / HELPER CLASSES
   ========================================================= */
.confirmation-message {
  background: var(--brand-accent);
  padding: 22px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 13px rgba(29,53,87,0.06);
  margin-top: 8px;
  margin-bottom: 16px;
}
.confirmation-message ul {
  margin: 9px 0 12px 0;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 160px;
  padding: 10px 0;
}
.contact-details img {
  width: 18px; height: 18px;
}
.contact-details a {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.13s;
}
.contact-details a:hover { color: var(--brand-secondary); }

/* =========================================================
   PRINT OPTIMIZED
   ========================================================= */
@media print {
  header, .mobile-menu, .cookie-consent-banner, .cookie-modal, footer { display: none !important; }
  main, .container, body, html { background: #fff !important; color: #111 !important; }
}
