/* 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-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #2C3E50;
  background: #F7F8F9;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2C3E50;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #E1B87A;
  outline-offset: 2px;
}
ul, ol {
  margin-left: 1.2em;
}
strong {
  font-weight: 600;
}

/* CORE CONTAINERS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* SCANDINAVIAN CLEAN – COLORS & TYPOGRAPHY */
:root {
  --brand-primary: #2C3E50;
  --brand-secondary: #BDC3C7;
  --brand-accent: #E1B87A;
  --brand-bg: #F7F8F9;
  --brand-neutral-light: #FFFFFF;
  --brand-shadow: rgba(40,56,76,0.08);
  --brand-card-bg: #FFFFFF;
  --brand-divider: #ECECEC;
  --brand-link-hover: #E1B87A;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #222A34;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p {
  color: #38404A;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

@media(max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.22rem;
  }
  h3 {
    font-size: 1rem;
  }
}

/* HEADER */
header {
  background: var(--brand-neutral-light);
  border-bottom: 1px solid var(--brand-divider);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
}
.header-flex a img {
  height: 46px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #2C3E50;
  padding: 6px 4px;
  border-radius: 4px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-link-hover);
  background: var(--brand-secondary);
}

.button-primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #222A34;
  background: var(--brand-accent);
  border: none;
  border-radius: 24px;
  padding: 11px 32px;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--brand-shadow);
  transition: background 0.23s, box-shadow 0.18s, color 0.18s;
}
.button-primary:hover, .button-primary:focus {
  background: #dba958;
  color: #2C3E50;
  box-shadow: 0 4px 18px var(--brand-shadow);
}
.button-primary:active {
  background: #b99451;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-neutral-light);
  border: none;
  font-size: 2rem;
  color: var(--brand-primary);
  cursor: pointer;
  margin-left: 12px;
  z-index: 52;
  padding: 6px 14px 6px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--brand-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  transform: translateX(-105%);
  transition: transform 0.38s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 1000;
  box-shadow: 3px 0 24px 0 #adb5bd0e;
  padding: 36px 28px 20px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--brand-primary);
  font-size: 2.2rem;
  border: none;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  color: var(--brand-primary);
  padding: 12px 0;
  transition: color 0.18s;
  border-radius: 4px;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}

@media (max-width: 1020px) {
  .main-nav, .header-flex .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .header-flex {
    flex: 1;
  }
}

@media (min-width:1021px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, #FFFFFF 60%, #F7F8F9);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 60px;
  padding: 40px 0 30px 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 4px 24px var(--brand-shadow);
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 640px;
}
.hero .button-primary {
  margin-left: 0;
  margin-top: 12px;
}

@media(max-width: 768px) {
  .hero {
    padding: 26px 0 16px 0;
    min-height: unset;
    border-radius: 0 0 18px 18px;
  }
  .hero .content-wrapper {
    gap: 10px;
    max-width: 100%;
  }
}

/* SECTION DEFAULTS (MANDATORY LAYOUTS) */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 16px;
  box-sizing: border-box;
  transition: background 0.2s;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.text-section {
  max-width: 720px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.card {
  background: var(--brand-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 14px var(--brand-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.feature-item {
  background: var(--brand-card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 14px var(--brand-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 230px;
  max-width: 340px;
  padding: 26px 22px;
  flex: 1 1 220px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.feature-item img {
  height: 36px;
  width: 36px;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 22px var(--brand-shadow);
  transform: translateY(-4px) scale(1.03);
}
@media (max-width: 880px) {
  .feature-grid {
    gap: 20px;
  }
  .feature-item {
    min-width: 180px;
    padding: 20px 14px;
  }
}
@media (max-width: 560px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-item {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 16px 8px;
  }
}

/* LISTS & STEPS */
.moebel-list, .steps-list, .benefits-list, .feature-descriptions, .brand-values, .contact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps-list > li, .benefits-list > li, .brand-values > li {
  padding-left: 22px;
  position: relative;
  font-size: 1rem;
}
.steps-list > li::before, .benefits-list > li::before, .brand-values > li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--brand-accent);
  border-radius: 50%;
}

/* PROJECTS GRID */
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-card {
  background: var(--brand-card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--brand-shadow);
  padding: 24px 18px;
  flex: 1 1 320px;
  min-width: 270px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.15s;
}
.project-card:hover {
  box-shadow: 0 6px 24px var(--brand-shadow);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 680px) {
  .project-list {
    flex-direction: column;
    gap: 18px;
  }
  .project-card {
    min-width: 0;
    max-width: 100%;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--brand-neutral-light);
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--brand-shadow);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: #283342;
  min-width: 220px;
  max-width: 700px;
  position: relative;
}
.testimonial-card p {
  color: #222A34;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #7D858C;
  font-size: 0.91rem;
}
.testimonial-card strong {
  color: #2C3E50;
}
@media (max-width:520px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 8px;
  }
}

/* THANK YOU SECTION (thanks.php) */
.thanks {
  background: #FFFFFF;
  box-shadow: 0 2px 14px var(--brand-shadow);
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FOOTER */
footer {
  background: var(--brand-neutral-light);
  border-top: 1px solid var(--brand-divider);
  padding: 36px 0 16px 0;
  margin-top: 48px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 4px 0 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2C3E50;
}
.footer-nav a {
  color: #2C3E50;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-accent);
}
.footer-contact, .footer-hours, .footer-copy {
  color: #7D858C;
  font-size: 0.98rem;
  margin: 2px 0;
  text-align: center;
}
.footer-contact a {
  color: #2C3E50;
  border-bottom: 1px solid #E1B87A;
  padding-bottom: 1px;
  transition: border-color 0.18s;
}
.footer-contact a:hover { border-bottom-color: #B99451; }
.footer-contact img {
  height: 18px;
  width: 18px;
  margin: 0 4px -4px 4px;
  vertical-align: middle;
}
footer .container a img {
  height: 36px;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1200;
  background: #FFFFFF;
  color: #2C3E50;
  box-shadow: 0 -4px 18px var(--brand-shadow);
  padding: 20px 16px 18px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  animation: slideInUp 0.45s cubic-bezier(.59,-0.57,.67,1.42) both;
}
@keyframes slideInUp {
  from {
    transform: translateY(110%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.cookie-banner__text {
  flex: 0 1 380px;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 540px;
}
.cookie-banner__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner__button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  background: var(--brand-accent);
  border: none;
  border-radius: 18px;
  color: #2C3E50;
  padding: 9px 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--brand-shadow);
  transition: background 0.19s, color 0.13s, box-shadow 0.13s;
}
.cookie-banner__button:hover, .cookie-banner__button:focus {
  background: #dba958;
}
.cookie-banner__button--settings {
  background: var(--brand-secondary);
  color: #2C3E50;
}
.cookie-banner__button--settings:hover {
  background: #E1B87A;
  color: #2C3E50;
}
.cookie-banner__button--reject {
  background: #ECECEC;
  color: #505050;
}
.cookie-banner__button--reject:hover {
  background: #BDC3C7;
  color: #2C3E50;
}

.cookie-modal__overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 62, 80, 0.22);
  z-index: 1350;
  opacity: 1;
  animation: fadeIn 0.32s;
}
.cookie-modal__container {
  position: fixed;
  left: 50%;
  top: 50%;
  max-width: 94vw;
  width: 400px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px var(--brand-shadow);
  z-index: 1400;
  padding: 38px 26px 28px 26px;
  transform: translate(-50%, -50%) scale(1.03);
  animation: slideInModal 0.34s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideInModal {
  from { opacity: 0; transform: translate(-50%, -39%) scale(1.13); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1.03); }
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.cookie-modal__title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #222A34;
}
.cookie-modal__close {
  font-size: 1.7rem;
  color: #2C3E50;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  padding: 4px 8px;
  transition: background 0.16s, color 0.15s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #ECECEC;
  color: #E1B87A;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 18px 0;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1rem;
}
.cookie-modal__category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-modal__category input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 17px;
  height: 17px;
  margin: 0 6px 0 0;
}
.cookie-modal__category--essential {
  opacity: 0.7;
}
.cookie-modal__category--essential input[type="checkbox"] {
  accent-color: var(--brand-secondary);
}
.cookie-modal__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
/* Hide banner and modal on certain states */
.cookie-banner[hidden] { display: none !important; }
.cookie-modal__overlay[hidden], .cookie-modal__container[hidden] { display: none !important; }

/* RESPONSIVE COOKIE */
@media (max-width: 540px) {
  .cookie-banner__text {
    font-size: 0.98rem;
    max-width: 96vw;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 8px 10px 8px;
  }
  .cookie-modal__container {
    width: 96vw;
    padding: 18px 8px 14px 8px;
    font-size: 1rem;
  }
}

/* UTILITIES & MISC */
::-webkit-input-placeholder { color: #ADB4B7; opacity: 1; }
::-moz-placeholder { color: #ADB4B7; opacity: 1; }
:-ms-input-placeholder { color: #ADB4B7; opacity: 1; }
::placeholder { color: #ADB4B7; opacity: 1; }

hr {
  border: none;
  border-top: 1px solid var(--brand-divider);
  margin: 28px 0;
}

/* SELECTION */
::selection {
  background: #E1B87A;
  color: #2C3E50;
}

/* ACCESSIBLE FOCUS */
a:focus-visible, .button-primary:focus-visible, .cookie-banner__button:focus-visible {
  outline: 2px solid #E1B87A;
  outline-offset: 2px;
}

/* SCROLLBAR */
body::-webkit-scrollbar {
  width: 11px;
  background: #f3f6fa;
}
body::-webkit-scrollbar-thumb {
  background: #dae0e5;
  border-radius: 10px;
}


/* RESPONSIVE LAYOUTS */
@media (max-width: 1020px) {
  .container {
    max-width: 92vw;
    padding: 0 8px;
  }
}
@media (max-width: 800px) {
  .content-wrapper, .text-section {
    gap: 16px;
    padding: 0;
  }
  section {
    padding: 24px 4px;
    border-radius: 10px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 97vw;
    padding: 0 4px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .header-flex, .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* CARD & BLOCK ANIMATIONS */
.card, .feature-item, .project-card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover, .project-card:hover {
  box-shadow: 0 8px 32px var(--brand-shadow);
  transform: scale(1.01) translateY(-3px);
}

/* INTERACTIVE ELEMENTS */
.button-primary:active,
.cookie-banner__button:active {
  transform: scale(0.966);
}

/* CUSTOM CHECKBOXES (COOKIE MODAL) */
input[type="checkbox"] {
  accent-color: var(--brand-accent);
}

/* CONTACT PAGE LISTS */
.contact-list {
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-list img {
  width: 22px;
  height: 22px;
}

/* MISC NON-FLEX UTILITIES */
.content-wrapper.text-section {
  gap: 16px;
}

/* Hide decorative elements on mobile if necessary */
@media (max-width: 420px) {
  .footer-contact span, .footer-hours, .footer-copy {
    font-size: 0.91rem;
  }
}

/* PRINT SUPPORT */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  main { margin: 0 !important; padding: 0 !important; }
}
