/* ==== CSS RESET & 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;
}

html {
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  background: #F5F7F8;
  color: #21516a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #21516a;
  text-decoration: none;
  transition: color 0.15s;
}

/* Typography */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  line-height: 1.7;
  color: #21516a;
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 22px;
}
li + li {
  margin-top: 8px;
}
strong {
  font-weight: 600;
}

/* Container and Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* SECTION SPACING - mandatory */
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(33,81,106,0.07);
}
section.cta {
  background: #21516a;
  color: #fff;
  box-shadow: 0 4px 16px rgba(33,81,106,0.08);
}
section.cta h2, section.cta p {
  color: #fff;
}

/* Header Styles */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(33,81,106,0.08);
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
}
header .container {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
header img {
  height: 44px;
  width: auto;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: #21516a;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
nav a.cta {
  background: #f89c2b;
  color: #fff;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 24px;
  transition: background 0.17s, box-shadow 0.17s;
  box-shadow: 0 2px 8px rgba(248,156,43,0.07);
}
nav a:hover,
nav a:focus {
  background: #e1eaef;
  color: #21516a;
}
nav a.cta:hover,
nav a.cta:focus {
  background: #da8a20;
  color: #fff;
  box-shadow: 0 4px 18px rgba(248,156,43,0.16);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  font-family: inherit;
  cursor: pointer;
  color: #21516a;
  z-index: 101;
  margin-left: 14px;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #f89c2b;
  outline-offset: 2px;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,247,248,0.97);
  box-shadow: 0 2px 32px rgba(33,81,106,0.11);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #21516a;
  align-self: flex-end;
  margin: 25px 22px 10px 0;
  cursor: pointer;
  z-index: 2100;
}
.mobile-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: #21516a;
  padding: 12px 16px;
  border-radius: 13px;
  width: 80%;
  text-align: center;
  background: none;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 6px;
}
.mobile-nav a.cta,
.mobile-nav a[href*="contact"] {
  background: #f89c2b;
  color: #fff;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e1eaef;
  color: #21516a;
}
.mobile-nav a.cta:hover,
.mobile-nav a.cta:focus {
  background: #da8a20;
  color: #fff;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(98deg, #f5f7f8 60%, #e1eaef 100%);
  box-shadow: none;
  padding-top: 60px;
  padding-bottom: 50px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
.hero h1 {
  color: #21516a;
  font-size: 2.35rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.18rem;
  color: #1a3e50;
  margin-bottom: 10px;
}
.hero .cta {
  margin-top: 25px;
  align-self: flex-start;
}

/* FLEXBOX LAYOUTS */
.card-container, .service-list, .service-grid, .testimonial-list, .tips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(33,81,106, 0.07);
  padding: 32px 24px;
  min-width: 260px;
}

.service-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.service-card {
  background: #F5F7F8;
  border: 1.5px solid #e1eaef;
  border-radius: 15px;
  box-shadow: 0 1px 6px rgba(33,81,106,.06);
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 360px;
  padding: 28px 22px 34px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.11s;
}
.service-card:hover {
  box-shadow: 0 4px 20px rgba(33,81,106,0.13);
  transform: translateY(-3px) scale(1.03);
}
.cta-secondary {
  background: #fff;
  color: #21516a;
  border: 1.5px solid #21516a;
  border-radius: 22px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-top: 8px;
  transition: background 0.15s, color 0.15s, border 0.15s;
  cursor: pointer;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #21516a;
  color: #fff;
}

/* Testimonial Card Styles */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 24px 24px;
  margin-bottom: 24px;
  background: #F5F7F8;
  border-radius: 17px;
  border: 1.2px solid #e1eaef;
  box-shadow: 0 2px 10px rgba(33,81,106,0.07);
  min-width: 260px;
  max-width: 420px;
  color: #1a3e50;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #1a3e50;
}
.testimonial-card span {
  color: #694805;
  font-size: 0.96rem;
  opacity: 0.9;
}
.user-rating, .star_ratings {
  font-size: 1.12rem;
  color: #f89c2b;
  letter-spacing: 2px;
}

/* Feature Items (used for .service-item/.feature-item) */
.service-item, .feature-item, .tip-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F5F7F8;
  border: 1.2px solid #e1eaef;
  border-radius: 17px;
  box-shadow: 0 2px 10px rgba(33,81,106,0.07);
  padding: 26px 20px 26px 20px;
  margin-bottom: 22px;
  min-width: 240px;
  flex: 1 1 260px;
  max-width: 340px;
}
.tips-list, .feature-items {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Confirmation Message */
.confirmation-message ul {
  padding-left: 24px;
}
.confirmation-message li {
  font-size: 1rem;
  color: #21516a;
  margin-bottom: 9px;
}

/* Text-image-section flex utility - if present */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* CTA Button */
.cta {
  background: #f89c2b;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 12px 36px;
  border: none;
  border-radius: 28px;
  margin-top: 12px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(248,156,43,0.13);
  transition: background 0.14s, box-shadow 0.14s, transform 0.13s;
  display: inline-block;
}
.cta:hover, .cta:focus {
  background: #da8a20;
  color: #fff;
  box-shadow: 0 7px 28px rgba(216,143,34,0.16);
  transform: translateY(-2px) scale(1.04);
}
button, .cta-secondary {
  cursor: pointer;
}

/* Footer Styles */
footer {
  background: #f5f7f8;
  padding: 0;
  border-top: 2.5px solid #e1eaef;
}
.footer-top {
  display: flex;
  align-items: center;
  padding: 36px 20px 18px 20px;
  justify-content: space-between;
  gap: 34px;
  border-bottom: 1.5px solid #e1eaef;
}
.footer-top img {
  height: 36px;
}
.footer-top nav {
  display: flex;
  gap: 18px;
}
.footer-top nav a {
  color: #21516a;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.88;
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.footer-top nav a:hover,
.footer-top nav a:focus {
  background: #e1eaef;
  color: #21516a;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  padding: 24px 20px;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
}
.footer-bottom nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-bottom nav a {
  font-size: 0.98rem;
  color: #21516a;
  opacity: 0.7;
  font-family: 'Montserrat', Arial, sans-serif;
}
.contact-info {
  font-size: 0.98rem;
  color: #21516a;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-info strong {
  font-size: 1.07rem;
}

/* MAP ADDRESS ICON (contact page) */
.map-address {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.map-address img {
  width: 32px;
  height: 32px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -1px 16px rgba(33,81,106,0.07);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 30px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #21516a;
  opacity: 1;
  transition: opacity 0.35s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 260px;
  max-width: 670px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  border: none;
  font-size: 1rem;
  border-radius: 22px;
  padding: 7.5px 20px;
  box-shadow: 0 1px 3px rgba(33,81,106, 0.04);
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  margin: 0 3px;
  transition: background 0.12s, color 0.12s;
}
.cookie-banner .cookie-accept {
  background: #f89c2b;
  color: #fff;
  font-weight: 600;
}
.cookie-banner .cookie-reject {
  background: #e1eaef;
  color: #21516a;
}
.cookie-banner .cookie-settings {
  background: none;
  color: #21516a;
  border: 2px solid #21516a;
  font-weight: 500;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  opacity: 0.93;
}
.cookie-banner .cookie-settings:hover,
.cookie-banner .cookie-settings:focus {
  background: #e1eaef;
  color: #21516a;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.96);
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 8px 40px rgba(33,81,106,0.17);
  padding: 46px 30px 36px 30px;
  z-index: 4000;
  min-width: 300px;
  width: 96vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 1;
  transition: opacity 0.3s, transform 0.4s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0.87);
}
.cookie-modal .modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #21516a;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #21516a;
  cursor: pointer;
  z-index: 4050;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.cookie-modal label {
  flex: 1 1 0;
  color: #21516a;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal input[type=checkbox] {
  width: 24px;
  height: 24px;
  accent-color: #f89c2b;
  border-radius: 8px;
}
.cookie-modal .always-on {
  color: #f89c2b;
  font-size: 0.97rem;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .modal-save {
  background: #21516a;
  color: #fff;
  border-radius: 22px;
  font-size: 1rem;
  padding: 7.5px 22px;
  border: none;
}
.cookie-modal .modal-cancel {
  background: #e1eaef;
  color: #21516a;
  border-radius: 22px;
  font-size: 1rem;
  padding: 7.5px 18px;
  border: none;
}
.cookie-modal .modal-save:hover,
.cookie-modal .modal-save:focus {
  background: #f89c2b;
  color: #fff;
}
.cookie-modal .modal-cancel:hover,
.cookie-modal .modal-cancel:focus {
  background: #f5f7f8;
}

/* ========== Responsive Design ========== */
@media (max-width: 1020px) {
  .container { max-width: 95vw; }
}
@media (max-width: 900px) {
  .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-bottom {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.25rem; }
  .hero, section {
    padding: 28px 7px;
    border-radius: 14px;
  }
  .hero .content-wrapper{ gap: 14px; }
  .service-grid, .service-list, .tips-list, .content-grid, .testimonial-list {
    gap: 14px;
  }
  .service-card, .service-item, .feature-item, .testimonial-card, .tip-item {
    min-width: 168px;
    max-width: 100%;
    padding: 17px 10px 18px 10px;
    border-radius: 12px;
  }
  .footer-top {
    padding: 18px 8px 10px 8px;
  }
  .footer-bottom {
    padding: 14px 8px;
  }
  .contact-info { font-size: 0.93rem; }
  .cookie-banner { padding: 12px 5vw 12px 5vw; flex-direction: column; gap: 12px; }
  .cookie-modal { padding: 29px 6vw 26px 6vw; }
}
@media (max-width: 600px) {
  .container {
    max-width: 98vw;
    padding: 0 4px;
  }
}
@media (max-width: 600px) {
  
  section, .hero, .cta {
    padding: 16px 0 !important;
    border-radius: 0 !important;
  }
  .content-wrapper { padding: 0 3vw; }
  .map-address img { width: 22px; height: 22px; }
}

@media (max-width: 800px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 801px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  nav {
    display: flex !important;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
}

/* Subtle Animations & Micro-interactions */
section, .cookie-banner, .service-card, .feature-item, .testimonial-card, .tip-item {
  transition: box-shadow 0.19s, background 0.15s, border 0.12s, transform 0.11s;
}
section:hover, .feature-item:hover, .testimonial-card:hover, .tip-item:hover {
  box-shadow: 0 6px 36px rgba(33,81,106,0.10);
  transform: translateY(-2px) scale(1.01);
}

::-webkit-input-placeholder { color: #aabbc0; opacity: 1; }
::-moz-placeholder          { color: #aabbc0; opacity: 1; }
:-ms-input-placeholder      { color: #aabbc0; opacity: 1; }
::placeholder              { color: #aabbc0; opacity: 1; }

/* Natural Style Details (wooden, linen-like, subtle borders for Scandinavian look) */
section, .service-card, .testimonial-card, .feature-item, .tip-item {
  border: 1.5px solid #e1eaef;
  background: #fff;
}
section.cta {
  border: none;
  background: #21516a;
}

/* Utility classes (spacing) */
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }

/* Hide modal and banner by default; show by adding .open or .show */
.cookie-modal, .cookie-banner {
  display: flex;
}
.cookie-modal.hide, .cookie-banner.hide {
  display: none;
}
