/* ====================================================================
   Crimson Flare Möbelmanufaktur - style.css
   Nature Organic Design | Only Flexbox | Modern Responsive CSS
   ==================================================================== */

/* RESET & BASELINE STYLES (Normalize + Box-sizing) */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  font-family: 'Roboto', Arial, sans-serif;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-size: 16px;
  color: #2f3b2f;
  background-color: #f6f6ef;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #516a3c;
  text-decoration: none;
  transition: color 0.2s;
  outline: none;
}
a:focus-visible {
  outline: 2px dashed #8dc86a;
  outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #232b22;
  margin-bottom: 16px;
  line-height: 1.12;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.5;
  position: relative;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: #425f3e;
}
blockquote {
  font-style: italic;
  background: #edede6;
  border-left: 4px solid #6d8838;
  margin: 0 0 12px 0;
  padding: 10px 16px;
  color: #3b4637;
  border-radius: 6px;
  font-size: 1.075em;
}

/* =====================
   COLOR SCHEME & PALLET
   ===================== */
:root {
  --cf-primary: #991B1B;
  --cf-secondary: #212121;
  --cf-accent: #F3E8E6;
  --cf-earth-1: #DED5C0;
  --cf-earth-2: #A9A199;
  --cf-green-1: #6d8838;
  --cf-green-2: #425f3e;
  --cf-brown-1: #b79e7f;
  --cf-brown-2: #8b7259;
  --cf-cream: #f6f6ef;
  --cf-white: #fff;
  --cf-shadow: 0 4px 24px rgba(77, 86, 82, 0.12);
}

/* ===================
   CONTAINER & SPACING
   =================== */
.container {
  width: 100%;
  max-width: 1176px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--cf-cream);
  border-radius: 28px;
  box-shadow: var(--cf-shadow);
  position: relative;
  transition: background 0.18s;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 30px;
    border-radius: 16px;
  }
  .container {
    padding: 0 6px;
  }
}

/* ===================
   HEADER & NAVIGATION
   =================== */
header {
  background: var(--cf-white);
  box-shadow: 0 2px 16px rgba(39,53,42,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--cf-green-2);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 2px 0;
  transition: color 0.18s;
  position: relative;
}
header nav a:hover,
header nav a:focus {
  color: var(--cf-primary);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #a2c364 0%, #516a3c 100%);
  color: var(--cf-white);
  border-radius: 30px;
  padding: 12px 34px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(81, 106, 60, 0.08);
  margin-left: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s, transform 0.08s;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #516a3c 40%, #7dc440 100%);
  color: var(--cf-white);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 4px 16px rgba(109, 136, 56, 0.12);
}
/* Hide mobile menu button on desktop */
.mobile-menu-toggle {
  display: none;
}
/* ============
   MOBILE NAV
   ============ */
@media (max-width: 900px) {
  header > .container nav,
  header > .container .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 2.1rem;
    color: var(--cf-green-2);
    cursor: pointer;
    z-index: 104;
    padding: 0 8px;
    margin-left: auto;
    position: relative;
    transition: color 0.17s, transform 0.15s;
  }
  .mobile-menu-toggle:focus {
    color: var(--cf-primary);
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100%;
  background: #f8f7f1;
  box-shadow: 0 2px 28px rgba(60,67,54,0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  z-index: 120;
  transition: transform .35s cubic-bezier(.6,.2,.35,1), opacity .17s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--cf-primary);
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 122;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  color: var(--cf-green-2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin: 70px 0 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--cf-green-2);
  font-weight: 600;
  padding: 7px 0;
  border-radius: 4px;
  transition: color 0.19s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--cf-earth-1);
  color: var(--cf-primary);
}
@media (max-width: 470px) {
  .mobile-nav {
    margin-left: 16px;
    gap: 18px;
  }
}

/* =====================
   MAIN LAYOUT SECTIONS
   ===================== */
main {
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  background: var(--cf-cream);
  box-shadow: var(--cf-shadow);
  position: relative;
  transition: background 0.17s;
}
@media (max-width: 800px) {
  section {
    padding: 28px 8px;
    border-radius: 16px;
    margin-bottom: 36px;
  }
}

/* Cards/Flex containers (for feature lists, testimonials, etc) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  position: relative;
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(60, 67, 54, 0.06);
  min-width: 240px;
  margin-bottom: 20px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(109,136,56,0.13);
  transform: translateY(-3px) scale(1.017);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 12px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(60, 67, 54, 0.12);
  margin-bottom: 20px;
  padding: 20px;
  flex-direction: column;
  min-width: 260px;
  color: #263128;
}
.testimonial-card blockquote {
  margin-bottom: 7px;
  color: #2e4236;
  background: #F6F8F3;
  border-left: 4px solid #6d8838;
}
.testimonial-card strong {
  color: #991B1B;
  font-size: 1.03em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--cf-accent);
  border-radius: 13px;
  padding: 18px 18px 12px 18px;
  margin-bottom: 16px;
}

/* Icon in feature lists */
ul li img, ol li img {
  height: 28px;
  width: 28px;
  vertical-align: middle;
  margin-right: 9px;
  margin-top: -3px;
}
@media (max-width: 620px) {
  .card, .testimonial-card, .content-grid {
    flex: 1 1 100%;
  }
}

/* ===================
   LISTS & DETAILS
   =================== */
ul li::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #b79e7f;
  border-radius: 4px 60% 30% 70% / 40% 60% 40% 70%;
  margin-right: 10px;
  vertical-align: middle;
  margin-top: -2px;
  margin-left: -22px;
}
ul li img {
  margin-left: 0;
  margin-right: 8px;
  margin-top: -4px;
  vertical-align: middle;
}

/* ===================
   CONTACT DETAILS
   =================== */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: #425f3e;
  margin-bottom: 0;
}
.contact-details img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 8px;
  margin-top: -2px;
}
.contact-details a {
  color: #516a3c;
  font-weight: 500;
  transition: color 0.18s;
}
.contact-details a:hover {
  color: var(--cf-primary);
}

/* ===================
   BUTTONS
   =================== */
button,
input[type="submit"],
input[type="button"] {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 26px;
  background: linear-gradient(90deg, #a2c364 0%, #516a3c 100%);
  color: #fff;
  padding: 10px 28px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.13s, box-shadow 0.11s, color 0.13s;
}
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: linear-gradient(90deg, #516a3c 40%, #7dc440 100%);
  color: #fff;
  box-shadow: 0 2px 14px #a2c36433;
}

/* ===================
   FOOTER
   =================== */
footer {
  background: #e8e2d7;
  color: #425f3e;
  padding: 40px 0 0 0;
  margin-top: 100px;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-radius: 22px 22px 0 0;
  padding-bottom: 32px;
}
footer img {
  height: 42px;
  width: auto;
  margin-bottom: 14px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--cf-green-2);
  transition: color 0.16s;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
footer nav a:hover {
  color: var(--cf-primary);
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 18px;
  }
  footer {
    margin-top: 60px;
  }
}

/* ===================
   COOKIE CONSENT BANNER
   =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  z-index: 2000;
  background: #f6f6ef;
  box-shadow: 0 -2px 24px rgba(177,152,110,0.15);
  padding: 22px 32px;
  transition: transform .33s cubic-bezier(.62,.28,.41,1), opacity .21s;
  opacity: 1;
  transform: translateY(0);
  gap: 18px;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  flex: 1 1 300px;
  font-size: 1rem;
  color: #425f3e;
  margin-bottom: 0;
}
.cookie-btns {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  background: linear-gradient(90deg, #a2c364 0%, #516a3c 100%);
  border: none;
  color: #fff;
  border-radius: 24px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.14s, box-shadow 0.12s, transform 0.09s;
}
.cookie-btn.reject {
  background: #ded5c0;
  color: #6d8838;
}
.cookie-btn.settings {
  background: #fff;
  color: #991B1B;
  border: 1px solid #b79e7f;
}
.cookie-btn:focus{
  outline: 2px dashed #6d8838;
  outline-offset: 2px;
}
.cookie-btn:hover {
  background: #6d8838;
  color: #fff;
}
.cookie-btn.settings:hover {
  background: #fff5e3;
  color: #516a3c;
}
@media (max-width: 570px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 8px;
    gap: 14px;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2111;
  background: rgba(87,92,73,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity .25s cubic-bezier(.49,.41,.48,1.04);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 42px rgba(151,117,51,0.19);
  padding: 36px 30px;
  max-width: 420px;
  width: 97%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modalEnter .37s cubic-bezier(.67,.11,.43,1.12);
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 28px;
  background: none;
  border: none;
  color: #991B1B;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2222;
}
@keyframes modalEnter {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #6d8838;
  transform: scale(1.2);
  margin-right: 6px;
}
.cookie-category span {
  font-weight: 500;
  color: #516a3c;
}
.cookie-category .always-on {
  color: #b79e7f;
  font-style: italic;
  font-size: 0.96em;
}

/* ===================
   ORGANIC DECORATIVE SHAPES
   =================== */
.section:after {
  content: '';
  display: block;
  position: absolute;
  width: 120px;
  height: 62px;
  right: -36px; bottom: -28px;
  background: url('../assets/organic-shape.svg') no-repeat center/contain;
  opacity: 0.08;
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 700px) {
  .section:after { display: none; }
}

/* ===================
   ANIMATIONS
   =================== */
.cta-btn, .card, .testimonial-card, .feature-item, .cookie-btn {
  transition: box-shadow 0.17s, background 0.16s, color 0.13s, transform 0.12s;
}
.cta-btn:hover,
.card:hover,
.testimonial-card:hover,
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(81,106,60,0.11);
  transform: scale(1.018);
}
input[type='text'], input[type='email'], textarea {
  outline: none;
  border: 1px solid #ded5c0;
  background: #f9f7f2;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 1rem;
  color: #3b4637;
  font-family: inherit;
  width:100%;
  margin-bottom: 14px;
  transition: border-color 0.16s, background 0.14s;
}
input[type='text']:focus, input[type='email']:focus, textarea:focus {
  border-color: #8dc86a;
  background: #fff;
}

/* ===================
   TYPOGRAPHY SCALE
   =================== */
@media (min-width: 1020px) {
  h1 { font-size: 3em; }
  h2 { font-size: 2em; }
  h3 { font-size: 1.2em; }
  body { font-size: 1.08em; }
}
@media (max-width: 570px) {
  h1 { font-size: 1.48em; }
  h2 { font-size: 1.22em; }
  h3 { font-size: 1em; }
}

/* ===========
   UTILITIES
   =========== */
.gap-20 { gap: 20px !important; }
.gap-32 { gap: 32px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* Hide elements visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===================
   PRINT STYLES
   =================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  section, .container {
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
  }
}