/* -----------------------------------
   DuskFund Möbelmanufaktur – style.css
   "gradient_modern" theme, responsive, flexbox only
   ----------------------------------- */

/* ====== CSS RESET & NORMALIZE ====== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  background: #F5F2ED;
  color: #263238;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(135deg, #F5F2ED 0%, #fff 100%);
}
img, svg { max-width: 100%; display: block; height: auto; }
a {
  color: #263238;
  text-decoration: none;
  transition: color 0.25s;
}
a:focus, a:hover { color: #DDB77B; outline: none; }
ul, ol { margin-left: 1.5em; }
button, input, select, textarea {
  font: inherit; color: inherit; background: none; border: none;
  outline: none; appearance: none;
}
:focus-visible { outline: 2px solid #DDB77B; outline-offset: 2px; }

/* ====== BASIC FLEX LAYOUTS ====== */
.container {
  margin: 0 auto;
  max-width: 1192px;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ====== TYPOGRAPHY ====== */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900|Roboto:400,500&display=swap');

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: #263238;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.15;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #263238;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #263238;
  margin-bottom: 8px;
}
h1, h2, h3 { transition: color 0.2s; }
p, li, label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #263238;
}
strong, b { font-weight: 700; }

/* Responsive text */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .container { padding: 0 12px; }
}

/* ====== HEADER & NAVIGATION ====== */
header {
  background: #263238;
  box-shadow: 0 2px 16px 0 rgba(38,50,56,.08);
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img { height: 48px; min-width: 120px; margin-right: 24px; }

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  color: #F5F2ED;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #DDB77B;
}
.cta-button {
  padding: 10px 26px;
  background: linear-gradient(90deg,#DDB77B 0%, #b79556 100%);
  color: #263238;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 30px;
  letter-spacing: .04em;
  box-shadow: 0 2px 16px 0 rgba(221,183,123,0.16);
  border: none;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, color 0.22s;
  display: inline-block;
  margin-left: 24px;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg,#b79556 0%, #DDB77B 100%);
  color: #fff;
  box-shadow: 0 4px 32px 0 rgba(221,183,123,0.24);
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #DDB77B;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  line-height: 1;
  margin-left: 12px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { color: #fff; }

@media (max-width: 990px) {
  .main-nav { display: none; }
  .cta-button { display: none; }
  .mobile-menu-toggle { display: block; }
  header .container { gap: 8px; }
}

/* ====== MOBILE MENU OVERLAY ====== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,50,56, 0.975);
  z-index: 1110;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.33,.7,.56,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 20px 0 0 0;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: none;
  border: none;
  color: #DDB77B;
  font-size: 2.1rem;
  margin: 16px 28px 24px 0;
  align-self: flex-end;
  cursor: pointer;
  z-index: 2;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #fff; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 0 0 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.17s, background 0.15s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #DDB77B;
  background: rgba(245,242,237,0.07);
}
@media (max-width: 650px) {
  .mobile-nav { margin-left: 18px; }
  .mobile-nav a { font-size: 1.1rem; }
}

/* ====== HERO AND CORE SECTIONS ====== */
section {
  width: 100%;
  background: transparent;
}
section:first-of-type {
  background: linear-gradient(105deg, #fff 0%, #F5F2ED 40%, #ece0ce 100%);
}

/* ====== FLEX CONTENT STRUCTURE ====== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  width: 100%;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(38,50,56, .07);
  padding: 24px 20px 22px 20px;
  flex: 1 1 240px;
  min-width: 180px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.21s, transform 0.17s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 8px 36px rgba(221,183,123, 0.15);
  transform: translateY(-5px) scale(1.03);
}
.feature-grid img { width: 44px; height: 44px; margin-bottom: 8px; }

/* ====== TESTIMONIALS ====== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(38,50,56, 0.07);
  margin-bottom: 20px;
  font-size: 1.09rem;
  color: #263238;
  max-width: 720px;
  transition: box-shadow 0.22s, transform .14s;
}
.testimonial-card p {
  color: #263238;
  font-size: 1.07rem;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #DDB77B;
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 36px rgba(221,183,123, 0.13);
  transform: scale(1.022);
}
@media (max-width: 768px) {
  .testimonial-card { padding: 15px 12px; }
}

/* ====== CONTACT DETAILS FLEX WRAP ====== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-details p, .contact-details li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  color: #263238;
}
.contact-details img {
  width: 23px;
  height: 23px;
}

/* ====== BUTTONS ====== */
.cta-section, .thank-you-cta, .contact-cta {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
}
.cta-section { justify-content: flex-start; }

button, .cta-button {
  outline: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.22s, color 0.17s, box-shadow 0.17s;
}

/* ====== FOOTER ====== */
footer {
  background: #263238;
  color: #F5F2ED;
  padding: 44px 0 18px 0;
  box-shadow: 0 -3px 12px 0 rgba(38,50,56,.09);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #F5F2ED;
  font-size: .98rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  opacity: .89;
  transition: color 0.18s, opacity 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #DDB77B;
  opacity: 1;
}
.footer-info {
  font-size: .94rem;
  opacity: .84;
  margin-top: 2px;
}

/* ====== CARDS, LISTS & MISCELLANEOUS ====== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
  padding: 22px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(38,50,56,.075);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.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;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 14px;
  color: #263238;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.57;
}

/* ====== SPACING & WHITE SPACE ====== */
.section, .container, .content-wrapper, .feature-grid, .card-container, .content-grid, .testimonial-card, .card {
  margin-bottom: 0; /* RESET, specific spacing below in patterns */
}
.section + .section { margin-top: 42px; }
@media (max-width: 768px) {
  .section { padding: 30px 6px; }
}

/* ====== RESPONSIVE == MOBILE FIRST ====== */
@media (max-width: 1200px) {
  .container { max-width: 97vw; }
}
@media (max-width: 990px) {
  .footer-nav, .card-container, .feature-grid, .content-grid { flex-direction: column; gap: 20px; }
  .feature-grid > div { min-width: 80vw; max-width: 100vw; }
}
@media (max-width: 768px) {
  .container { padding: 0 8px; }
  .main-nav { display: none !important; }
  .feature-grid,
  .card-container,
  .content-grid,
  .footer-nav { flex-direction: column; gap: 20px; }
  .card, .feature-grid > div { min-width: 0; max-width: 100vw; }
  .text-image-section { flex-direction: column; gap: 18px; }
}
@media (max-width: 600px) {
  .testimonial-card { font-size: .98rem; }
  .feature-grid > div, .card { padding: 15px 8px; }
}

/* Prevent overlapping at all breakpoints */
.card, .testimonial-card, .feature-grid > div { min-height: 0; }

/* ====== ANIMATIONS & MICRO-INTERACTIONS ====== */
a, button, .cta-button, .feature-grid > div, .card, .testimonial-card {
  transition-property: background, color, box-shadow, transform, opacity;
  transition-duration: 0.22s;
  transition-timing-function: cubic-bezier(.4,.1,.75,1);
}

/* ====== COOKIE CONSENT BANNER ====== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1310;
  background: #F5F2ED;
  box-shadow: 0 -4px 24px 0 rgba(38,50,56,.08);
  padding: 20px 0 15px 0;
  animation: fadein-btm .45s cubic-bezier(.24,.75,.4,.95);
  border-top: 3px solid #DDB77B;
}
.cookie-consent-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  max-width: 1040px;
  padding: 0 18px;
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #263238;
}
.cookie-consent-actions {
  display: flex;
  gap: 18px;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 1rem;
  background: #263238;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.18s;
}
.cookie-btn.primary, .cookie-btn.accept {
  background: linear-gradient(90deg,#DDB77B 0%, #b79556 100%);
  color: #263238;
}
.cookie-btn.reject {
  background: #2a3339;
  color: #fff;
}
.cookie-btn:focus, .cookie-btn:hover {
  box-shadow: 0 2px 12px 0 rgba(221,183,123,0.13);
  background: #b79556;
  color: #fff;
}
.cookie-btn.settings {
  background: #ece0ce;
  color: #263238;
  border: 1px solid #DDB77B;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #DDB77B;
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-consent-content { flex-direction: column; gap: 15px; align-items: flex-start; }
}
@keyframes fadein-btm { from { opacity: 0; transform: translateY(70px);} to { opacity:1; transform:translateY(0);} }

/* ====== COOKIE PREFERENCES MODAL ====== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(38,50,56, 0.85);
  z-index: 1320;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 48px 0 rgba(38,50,56,.17);
  max-width: 400px;
  width: 92vw;
  padding: 34px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadein-btm .25s;
}
.cookie-modal-content h3 {
  font-size: 1.28rem;
  margin-bottom: 4px;
  color: #263238;
}
.cookie-modal-content .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 8px 0;
}
.cookie-category-row label {
  font-size: 1.04rem;
  color: #263238;
  font-weight: 500;
  display: flex;
  align-items: center;
}
.cookie-toggle {
  width: 38px;
  height: 24px;
  background: #ece0ce;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-toggle input {
  opacity: 0; width: 0; height: 0; position: absolute;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 20px;
  height: 20px;
  background: #263238;
  border-radius: 50%;
  transition: left 0.19s, background 0.18s;
}
.cookie-toggle input:checked + .toggle-thumb {
  left: 16px;
  background: #DDB77B;
}
.cookie-toggle .toggle-thumb {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: #263238;
  border-radius: 50%;
  transition: left 0.17s, background 0.17s;
}
/* Essential cookies always enabled */
.cookie-toggle.disabled, .cookie-toggle.disabled .toggle-thumb {
  opacity: .5;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 12px;
  background: none;
  border: none;
  color: #DDB77B;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #263238; }
@media (max-width: 500px) {
  .cookie-modal-content { padding: 18px 6px; }
}

/* ====== SPECIAL CLASSES FOR LAYOUTS ====== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.thank-you-cta {
  margin: 22px 0 0 0;
}

/* ====== MISC: UTILITY CLASSES ====== */
.hide { display: none !important; }
.d-flex { display: flex !important; }
.align-center { align-items: center !important; }
.center-justify { justify-content: center !important; }
.w-100 { width: 100% !important; }
.mt-3 { margin-top: 24px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* ====== VISUAL HIERARCHY ====== */
hr {
  border: none;
  border-top: 2px solid #DDB77B;
  margin: 24px 0;
  opacity: .17;
}

/* ===== ACCESSIBILITY ===== */
::-webkit-input-placeholder { color: #939393; }
::-moz-placeholder { color: #939393; }
:-ms-input-placeholder { color: #939393; }
::placeholder { color: #939393; }

/* ===== PRINT OPTIMIZATION ===== */
@media print {
  nav, .mobile-menu, .cookie-consent-banner, .cookie-modal, .cta-button { display: none !important; }
  section, main, .container { padding: 0 !important; margin: 0 !important; background: #fff;}
}
