/* ===============================================================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F7F7F7;
  color: #263238;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #263238;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #A7C957;
}

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

/* Main Font Settings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #263238;
}
h1 {
  font-size: 32px;
  margin-bottom: 20px;
}
h2 {
  font-size: 24px;
  margin-bottom: 16px;
}
h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 16px;
  margin-bottom: 8px;
}
p, ul, ol, li, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  color: #263238;
  font-size: 16px;
}
strong, b {
  font-weight: 700;
}

ul, ol {
  margin-bottom: 16px;
  margin-left: 24px;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}
section ul {
  list-style: disc;
}
section ol {
  list-style: decimal;
}

/* ===============================================================
   CONTAINERS & LAYOUTS
   =============================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.content-wrapper {
  width: 100%;
}
.text-section {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(38,50,56,0.07);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 20px 0 rgba(38,50,56,0.13);
  z-index: 1;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.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: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(38,50,56,0.07);
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 18px 0 rgba(38,50,56,0.12);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ======================================================
   HEADER & NAVIGATION
   ======================================================*/
header {
  background: #fff;
  box-shadow: 0 4px 15px rgba(38,50,56,0.05);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 44px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-left: 32px;
}
.main-nav a {
  color: #263238;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  border-bottom: 2px solid #A7C957;
  color: #A7C957;
}

.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 30px;
  background: #A7C957;
  color: #fff;
  padding: 12px 32px;
  font-size: 18px;
  cursor: pointer;
  margin-left: 24px;
  transition: background 0.20s, box-shadow 0.20s;
  box-shadow: 0 2px 8px 0 rgba(38,50,56,0.07);
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: #97b64e;
  box-shadow: 0 6px 16px 0 rgba(167,201,87,0.18);
  color: #fff;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #263238;
  border: none;
  font-size: 32px;
  cursor: pointer;
  margin-left: 16px;
  padding: 4px 14px 4px 6px;
  line-height: 1;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F7F7F7;
}

/* Only show burger button on mobile */
@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Hide main nav on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none !important;
  }
  .cta-button {
    margin-left: 0;
  }
}

/* =============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,247,247,0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0 0 0 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.66,0,0.34,1);
  box-shadow: 0 6px 60px rgba(38,50,56,0.10);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #263238;
  font-size: 32px;
  margin: 18px 22px 6px 0;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #e5e7eb;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  margin-top: 28px;
  width: 90vw;
  max-width: 400px;
  padding-right: 34px;
  padding-left: 30px;
}
.mobile-nav a {
  color: #263238;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  border-radius: 4px;
  width: 100%;
  transition: color 0.16s, background 0.16s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #A7C957;
  background: #e5e7eb;
}
@media (max-width: 520px) {
  .mobile-nav {
    padding-right: 12px;
    padding-left: 14px;
  }
  .mobile-nav a {
    font-size: 19px;
  }
}

/* ===============================================================
   HERO & FEATURE AREAS
   =============================================================== */
.features-grid, .services-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-bottom: 32px;
}
.features-grid > div, .services-icons > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(38,50,56,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 330px;
  padding: 26px 18px 20px 18px;
  gap: 14px;
  transition: box-shadow 0.20s;
}
.features-grid > div:hover, .services-icons > div:hover {
  box-shadow: 0 8px 16px rgba(167,201,87,0.11);
}
.features-grid img, .services-icons img {
  height: 44px;
  width: 44px;
}
.services-icons span {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.features-benefits {
  display: flex;
  gap: 36px;
  margin-bottom: 18px;
  margin-top: 8px;
}
.features-benefits > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.features-benefits img {
  height: 34px;
  width: 34px;
}
.features-benefits p {
  font-size: 15px;
  color: #263238;
  margin: 0;
}


/* ===============================================================
   PROJECTS CASES (projects.html)
   =============================================================== */
.project-case {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px 0 rgba(38,50,56,0.07);
  padding: 28px 22px;
  margin-bottom: 24px;
  transition: box-shadow 0.16s;
}
.project-case:hover {
  box-shadow: 0 6px 18px 0 rgba(38,50,56,0.12);
}

/* ===============================================================
   FOOTER
   =============================================================== */
footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  margin-top: 60px;
  padding-top: 40px;
  padding-bottom: 32px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 260px;
  margin-bottom: 24px;
  font-size: 16px;
  color: #263238;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.footer-branding img {
  height: 42px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  margin-bottom: 24px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  height: 19px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-bottom: 12px;
  font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a {
  color: #263238;
  font-weight: 500;
  opacity: 0.88;
  transition: color 0.13s, opacity 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #A7C957;
  opacity: 1;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

/* ===============================================================
   RESPONSIVE FLEXBOX LAYOUTS
   =============================================================== */
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 28px 6px;
    margin-bottom: 40px;
  }
  .features-benefits { gap: 16px; }
}
@media (max-width: 768px) {
  .features-grid,
  .services-icons {
    flex-direction: column;
    gap: 16px;
  }
  .features-benefits {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .footer-branding {
    margin-bottom: 16px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 18px;
  }
  h3 {
    font-size: 16px;
  }
  .content-wrapper, .text-section {
    padding: 0 0px;
  }
  .testimonial-card,
  .card {
    padding: 12px !important;
  }
}
@media (max-width: 768px) {
  .header .container, .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .main-nav {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ===============================================================
   BUTTONS & INTERACTIVES
   =============================================================== */
button, .cta-button {
  font-family: inherit;
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s;
}
button:focus-visible {
  outline: 2px solid #A7C957;
}

/* ===============================================================
   TESTIMONIAL/REVIEW SECTIONS
   =============================================================== */
.testimonial-card p {
  font-size: 17px;
  color: #263238;
  margin-bottom: 0;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card strong {
  font-size: 15px;
  color: #839086;
}

/* ===============================================================
   LISTS/CHECKMARKS (Scandinavian simple lists)
   =============================================================== */
.section ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 14px;
}
.section li {
  font-size: 15px;
  margin-bottom: 6px;
  letter-spacing: 0;
}

/* ===============================================================
   SCANDINAVIAN SHADOWS & NATURAL FEEL
   =============================================================== */
.card, .testimonial-card, .project-case, .features-grid > div, .services-icons > div {
  box-shadow: 0 2px 8px 0 rgba(38,50,56,0.07);
  background: #fff;
  border-radius: 12px;
}

/* =============
   COOKIE CONSENT BANNER
   ============= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #263238;
  box-shadow: 0 -4px 20px 0 rgba(38,50,56,0.09);
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  min-height: 70px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  transition: transform 0.21s, opacity 0.18s;
}
.cookie-banner.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 15px;
  border: none;
  margin: 0;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 1px 4px 0 rgba(38,50,56,0.04);
}
.cookie-banner .accept-btn {
  background: #A7C957;
  color: #fff;
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus  {
  background: #97b64e;
}
.cookie-banner .reject-btn {
  background: #F7F7F7;
  color: #263238;
  border: 1px solid #E5E7EB;
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #e9ecd2;
}
.cookie-banner .settings-btn {
  background: none;
  color: #263238;
  border: 1px solid #A7C957;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #e9ecd2;
  color: #263238;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 10px;
  }
  .cookie-banner .cookie-banner-buttons {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* =============
   COOKIE SETTINGS MODAL
   ============= */
.cookie-modal-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(38, 50, 56, 0.28);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.18s;
}
.cookie-modal-bg.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px 0 rgba(38,50,56,0.11);
  width: 98%;
  max-width: 420px;
  padding: 38px 26px 34px 26px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #263238;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  animation: cookieModalIn 0.22s cubic-bezier(0.7,0,0.34,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
  color: #263238;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.cookie-category input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: #A7C957;
  cursor: pointer;
}
.cookie-category input[disabled] {
  opacity: 0.5;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.cookie-modal-actions button {
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 15px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal-actions .accept-btn {
  background: #A7C957;
  color: #fff;
}
.cookie-modal-actions .accept-btn:hover, .cookie-modal-actions .accept-btn:focus  {
  background: #97b64e;
}
.cookie-modal-actions .reject-btn {
  background: #F7F7F7;
  color: #263238;
  border: 1px solid #E5E7EB;
}
.cookie-modal-actions .reject-btn:hover, .cookie-modal-actions .reject-btn:focus {
  background: #e9ecd2;
}
.cookie-modal-actions .close-btn {
  background: none;
  color: #263238;
  border: 1px solid #A7C957;
}
.cookie-modal-actions .close-btn:hover, .cookie-modal-actions .close-btn:focus{
  background: #e9ecd2;
}

/* =============
   UTILITIES & MICRO ANIMS
   ============= */
.fade-in {
  animation: fadeInSlide 0.3s cubic-bezier(0.6,0,0.4,1);
}
@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);}
}

/* =============
   MISC
   ============= */
::-webkit-scrollbar {
  width: 8px;
  background: #F7F7F7;
}
::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 8px;
}

/* =============
   GENERAL SPACING
   ============= */
h1, h2, h3, h4 {
  margin-top: 0;
}
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card, .testimonial-card, .project-case {
  margin-bottom: 20px;
}
.content-grid, .card-container {
  gap: 20px !important;
}
* + .section, .content-wrapper + .section {
  margin-top: 40px;
}

/* =============
   ACCESSIBILITY
   ============= */
:focus-visible {
  outline: 2px dashed #A7C957 !important;
  outline-offset: 2px;
}

/* =============
   PRINT SUPPORT
   ============= */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  body, .container, .section {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}
