/* =========================
   Synthor Interiors - Scandinavian Clean Style
   ===========================================
   Author: Professional Senior CSS Developer
   Brand: Synthor Interiors (see brand guidelines)
========================= */

/****************************
 1. 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #EFF1F3;
  color: #283655;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: disc inside;
}
a {
  color: #283655;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: none;
  text-decoration: underline;
}
a:hover {
  color: #B36D5B;
}
img, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}
strong {
  font-weight: 700;
}

/****************************
 2. COLOR VARIABLES
****************************/
:root {
  --color-primary: #283655;
  --color-secondary: #EFF1F3;
  --color-accent: #B36D5B;
  --color-white: #FFFFFF;
  --color-dark: #19212C;
  --color-neutral: #9CA3AF;
  --color-shadow: rgba(40,54,85,0.07);
}

/****************************
 3. TYPOGRAPHY
****************************/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.subheadline {
  color: var(--color-dark);
  font-size: 1.25rem;
  margin-bottom: 28px;
  font-weight: 400;
  font-family: 'Open Sans', Arial, sans-serif;
}
p, ul, ol {
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
}
li {
  margin-bottom: 8px;
}

/****************************
 4. LAYOUT
****************************/
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
main {
  flex: 1 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
}
/* Remove background for top hero section for airier look */
.section:first-of-type {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/****************************
 5. FLEXBOX UTILITY CLASSES (per requirements)
****************************/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(40,54,85,0.12);
}
.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;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--color-secondary);
  box-shadow: 0 1px 2px var(--color-shadow);
  border-left: 4px solid var(--color-accent);
  color: var(--color-primary);
  font-style: italic;
  min-width: 0;
  flex: 1 1 300px;
}
.testimonial-card p, .testimonial-card span {
  color: var(--color-primary);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 1px 4px var(--color-shadow);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.feature-item:hover {
  box-shadow: 0 8px 24px rgba(40,54,85,0.15);
  transform: translateY(-4px) scale(1.015);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/****************************
 6. NAVIGATION
****************************/
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
  z-index: 100;
  position: sticky;
  top: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: flex-start;
  padding: 16px 0;
  position: relative;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-white);
}
.main-nav img {
  height: 36px;
  margin-right: 4px;
}

/****************************
 7. MOBILE NAVIGATION MENU
****************************/
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 18px;
  background: var(--color-white);
  border: none;
  z-index: 201;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-white);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -8px 0 24px rgba(40,54,85,0.11);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.83,.16,.41,.99);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 8px 16px;
  margin-bottom: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 202;
}
.mobile-menu-close:hover {
  background: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 12px 6px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-white);
}

/****************************
 8. CTA BUTTONS
****************************/
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 13px 36px;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 1px 4px var(--color-shadow);
  margin-top: 16px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 6px 24px rgba(40,54,85,0.13);
  transform: translateY(-2px) scale(1.025);
}

/****************************
 9. FOOTER
****************************/
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 52px 0 32px 0;
  font-family: 'Open Sans', Arial, sans-serif;
}
footer .container {
  padding-left: 20px;
  padding-right: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.footer-brand img {
  height: 44px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.footer-links a {
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.footer-contact p, .footer-contact a {
  color: var(--color-white);
  font-size: 0.97rem;
}

/****************************
 10. COOKIE CONSENT BANNER + MODAL
****************************/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 -2px 10px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px 18px 16px;
  z-index: 4000;
  gap: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  animation: fadeInUp 0.5s ease;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 21px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.19s, color 0.19s, border 0.2s;
  margin-right: 2px;
  margin-top: 0;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px var(--color-shadow);
}
.cookie-btn.cookie-settings {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.cookie-btn:focus,
.cookie-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(40, 54, 85, 0.35);
  z-index: 4001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 8px 40px rgba(40,54,85,0.15);
  padding: 34px 24px 24px 24px;
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInDown 0.43s ease;
  position: relative;
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-neutral);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover {
  color: var(--color-accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-accent);
  width: 18px; height: 18px;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1rem;
}
.cookie-category .always-on {
  color: var(--color-neutral);
  font-size: 0.96rem;
  margin-left: 0.45em;
}

@keyframes fadeInUp {
  from {
    opacity: 0; transform: translateY(100px);
  }
  to {
    opacity: 1; transform: translateY(0);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0; transform: translateY(-60px);
  }
  to {
    opacity: 1; transform: translateY(0);
  }
}

/****************************
 11. UTILITY & SCANDINAVIAN EFFECTS
****************************/
.neutral-placeholder,
ul li:empty, p:empty { color: var(--color-neutral)!important; opacity: 0.92; }

/****************************
 12. RESPONSIVE DESIGN (Mobile-First)
****************************/
/* 1. All flex containers: default column direction on mobile */
.section,
.content-wrapper,
.text-section,
.card-container,
.content-grid,
.feature-grid {
  flex-direction: column;
}

/* 2. Navigation */
@media (max-width: 1150px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 1024px) {
  .feature-grid,
  .content-grid {
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
  }
  .feature-item {
    min-width: 180px;
    flex: 1 1 140px;
    padding: 18px 10px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    gap: 8px;
    font-size: 1.01rem;
  }
  .feature-item img {
    width: 38px; height: 38px;
  }
}
@media (max-width: 800px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 801px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.38rem; }
  .footer-brand img {
    height: 32px;
  }
  .footer-links {
    gap: 11px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 22px 3px;
    margin-bottom: 36px;
  }
  .testimonial-card,
  .feature-item {
    padding: 14px 8px;
  }
  .content-wrapper,
  .feature-grid {
    gap: 12px;
  }
  .card {
    padding: 0;
  }
  .mobile-menu {
    padding: 28px 7px 7px 7px;
  }
  .cta-btn {
    padding: 10px 18px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.05rem; }
  .subheadline { font-size: 1rem; }
  p, ul, ol, .testimonial-card p {
    font-size: 0.97rem;
  }
  .footer-links a {
    font-size: 0.97rem;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

/****************************
 13. HIERARCHY & WHITESPACE
****************************/
.section:not(:first-of-type) {
  margin-top: 36px;
}
.content-wrapper > h2, .content-wrapper > h1 {
  margin-top: 0;
  margin-bottom: 16px;
}
.content-wrapper > ul, .content-wrapper > ol {
  margin-bottom: 0;
  margin-top: 0;
}
.text-section {
  margin-bottom: 0;
  padding: 0 0 12px 0;
}
main .section:last-child {
  margin-bottom: 0;
}

/****************************
 14. MISC
****************************/
::-webkit-input-placeholder { color: var(--color-neutral); }
:-moz-placeholder { color: var(--color-neutral); }
::-moz-placeholder { color: var(--color-neutral); }
:-ms-input-placeholder { color: var(--color-neutral); }

/****************************
 15. ACCESSIBILITY
****************************/
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/****************************
 16. SHADOWS AND CARD EFFECTS
****************************/
.card, .feature-item, .testimonial-card {
  box-shadow: 0 2px 8px var(--color-shadow);
}
.card:hover, .feature-item:hover {
  box-shadow: 0 8px 24px rgba(40,54,85,0.13);
  transition: box-shadow 0.2s, transform 0.2s;
  transform: translateY(-2px) scale(1.013);
}

/****************************
 17. MICRO-INTERACTIONS
****************************/
.cta-btn, .cookie-btn, .feature-item, .card {
  transition: background 0.19s, box-shadow 0.19s, color 0.13s, transform 0.17s;
}
.feature-item:active, .card:active {
  transform: scale(0.97);
}

/****************************
 18. PRINT STYLES (for policies)
****************************/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  .section {
    box-shadow: none;
    background: #fff;
    padding: 0;
  }
}
