/* ========================
   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.6;
  background: #FAF8F4;
  color: #262730;
}

a {
  color: #8C5637;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #D9B08C;
  outline: none;
}

img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}

/* Font Setup */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Source+Sans+Pro:wght@400;600&display=swap');

body {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #FAF8F4;
  color: #262730;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #8C5637;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }

/* Typography Hierarchy */
p, li, blockquote, cite, dl, dd {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  color: #262730;
}
blockquote {
  font-style: italic;
  color: #A87451;
  margin-bottom: 6px;
}
cite {
  font-weight: 600;
  color: #262730;
}
strong { font-weight: bold; }

/* ===============================
   CONTAINER, SECTION, LAYOUTS
=============================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 3px 22px 0 rgba(217, 176, 140, .10), 0 1.5px 4px 0 rgba(110,82,59,0.05);
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
}

/* Card Container */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(110, 82, 59, 0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 26px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 400px;
  transition: box-shadow .22s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(110, 82, 59, 0.14);
}

/* Content grid for any layout */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF8F3;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(217, 176, 140, 0.11);
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  border: 1px solid #F2E5DD;
  color: #222;
}
.testimonial-card blockquote {
  color: #8C5637;
}
.testimonial-card cite {
  color: #262730;
  font-size: 15px;
}

/*.card { ... } already above*/

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid, .service-list, .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: flex-start;
}
@media (max-width: 768px) {
  .feature-grid, .service-list, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
}
.service-item {
  background: #FFFDF9;
  border-radius: 16px;
  padding: 26px 22px;
  min-width: 240px;
  box-shadow: 0 2px 12px rgba(217,176,140,0.06);
  flex: 1 1 300px;
  margin-bottom: 20px;
  border: 1px solid #F3EAE2;
  transition: box-shadow .2s;
}
.service-item:hover {
  box-shadow: 0 8px 24px rgba(217,176,140,0.18);
}

/********************************
 HEADER & NAVIGATION
*********************************/
header {
  background: #FAF8F4;
  box-shadow: 0 1px 10px rgba(217, 176, 140, 0.16);
  padding: 12px 0;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header .container {
  padding-top: 0;
  padding-bottom: 0;
}
header img[alt="StilReich"] {
  height: 44px;
  border-radius: 10px;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-size: 1rem;
  color: #8C5637;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px;
  transition: background .18s, color .18s;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus {
  background: #D9B08C;
  color: #fff;
}

/* Responsive main nav */
@media (max-width: 1000px) {
  .main-nav { gap: 14px; }
}
@media (max-width: 840px) {
  .main-nav { gap: 6px; }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
}

/********************************
 MOBILE MENU (BURGER)
*********************************/
.mobile-menu-toggle {
  background: #D9B08C;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 10px;
  padding: 8px 14px 8px 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(140,86,55,0.09);
  transition: background .2s;
  z-index: 41;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #8C5637;
}
@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,39,48, 0.93);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 32px 0 0;
  background: none;
  color: #fff;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
}
.mobile-nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}
.mobile-nav a {
  font-size: 1.4rem;
  padding: 12px 26px;
  border-radius: 10px;
  background: #fff;
  color: #8C5637;
  font-weight: 600;
  box-shadow: 0 2px 13px rgba(217,176,140,0.11);
  transition: background .21s, color .2s, box-shadow .22s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #D9B08C;
  color: #fff;
  box-shadow: 0 3px 22px rgba(217,176,140,0.22);
}

/********************************
 BUTTONS
*********************************/
.button-primary, .button-secondary {
  display: inline-block;
  padding: 13px 34px;
  margin-top: 10px;
  font-size: 1.15rem;
  border-radius: 12px;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background .22s, color .22s, box-shadow .21s;
  box-shadow: 0 2px 10px rgba(217,176,140,0.07);
}
.button-primary {
  background: #D9B08C;
  color: #fff;
}
.button-primary:hover, .button-primary:focus {
  background: #8C5637;
  color: #fff;
  box-shadow: 0 6px 22px rgba(217,176,140,0.18);
}
.button-secondary {
  background: #CED9DE;
  color: #8C5637;
}
.button-secondary:hover, .button-secondary:focus {
  background: #D9B08C;
  color: #fff;
}

/********************************
 HOMEPAGE HERO AND SECTIONS
*********************************/
.hero {
  background: linear-gradient(90deg,#FFF6F1 60%, #FFF8F3 100%);
  border-radius: 32px;
  padding: 54px 26px 44px;
  box-shadow: 0 12px 38px rgba(217,176,140,0.14);
  margin-bottom: 60px;
}
@media (max-width: 768px) {
  .hero { padding: 28px 10px 26px; margin-bottom: 36px; }
}
.content-wrapper {
  gap: 26px;
}

/********************************
 BLOG LIST
*********************************/
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.blog-list li {
  padding: 18px 18px 6px 18px;
  background: #FFFDF9;
  border-radius: 15px;
  border: 1px solid #F2E6DD;
  transition: box-shadow .18s;
}
.blog-list li:hover {
  box-shadow: 0 6px 24px rgba(217,176,140,0.14);
}
.blog-categories {
  margin: 20px 0 0 0;
  font-size: 1rem;
  color: #8C5637;
}

/********************************
 COLLECTIONS & STYLE THEMES
*********************************/
.collection-overview h3 {
  margin-top: 22px;
  color: #A87451;
  font-weight: 700;
}
.style-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 26px 0 0 0;
}
.style-themes li {
  background: #F7F0EB;
  border-radius: 16px;
  padding: 12px 24px;
  color: #222;
  font-size: 1.05rem;
}

/********************************
 GENERIC/UTILITY CLASSES
*********************************/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.03rem;
}
.brand-promise, .mission {
  color: #A87451;
  font-weight: 600;
  margin-top: 12px;
}

/********************************
 FAQ STYLES
*********************************/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.faq-list dt {
  font-family: 'Playfair Display', serif;
  color: #8C5637;
  font-size: 1.13rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.faq-list dd {
  margin-left: 10px;
  color: #262730;
  font-size: 1rem;
  margin-bottom: 8px;
}

/********************************
 FOOTER
*********************************/
footer {
  background: #262730;
  color: #fff;
  padding: 50px 0 0 0;
  position: relative;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  padding: 0 16px;
}
footer .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
}
@media (max-width: 960px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-nav a {
  color: #D9B08C;
  font-weight: 600;
  background: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background .19s, color .19s;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #fff;
  color: #A87451;
}
.footer-contact, .footer-legal {
  color: #F2E5DD;
  margin-bottom: 8px;
  font-size: 0.98rem;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  transition: color .17s;
}
.footer-contact a:hover {
  color: #D9B08C;
}
.footer-legal a {
  color: #fff5;
  font-size: 0.96rem;
}
.footer-legal a:hover { color: #D9B08C; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-social img {
  width: 27px;
  height: 27px;
  filter: grayscale(0) brightness(1.05);
  transition: filter .22s;
  border-radius: 7px;
}
.footer-social img:hover {
  filter: brightness(1.22) drop-shadow(0 1px 8px #D9B08C44);
}

/********************************
 COOKIE CONSENT BANNER & MODAL
*********************************/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 16px;
  background: #FFF8F3;
  color: #8C5637;
  box-shadow: 0 -3px 18px rgba(217,176,140,0.12);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  animation: slideUpFadeIn .7s cubic-bezier(0.63,0.28,0.23,1) 1;
}
@keyframes slideUpFadeIn {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner button {
  min-width: 130px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  border: none;
  padding: 10px 22px;
  background: #D9B08C;
  color: #fff;
  font-weight: 600;
  margin: 0 2px;
  cursor: pointer;
  transition: background .16s;
}
.cookie-banner button.settings {
  background: #CED9DE;
  color: #8C5637;
}
.cookie-banner button.reject {
  background: #CED9DE;
  color: #8C5637;
}
.cookie-banner button.settings:hover,
.cookie-banner button.reject:hover {
  background: #A6B6BA;
  color: #fff;
}
.cookie-banner button.accept:hover {
  background: #8C5637;
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38,39,48,0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .18s;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff8f3;
  color: #262730;
  border-radius: 18px;
  box-shadow: 0 8px 36px rgba(217,176,140,0.23);
  padding: 42px 32px 30px 32px;
  min-width: 320px;
  max-width: 98vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popIn .2s cubic-bezier(0.5,0.33,0.37,1);
}
@keyframes popIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #8C5637;
  margin-bottom: 9px;
  font-size: 1.55rem;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #D9B08C;
  margin-right: 3px;
}
.cookie-category.essential {
  opacity: 0.6;
}
.cookie-modal .actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .actions button {
  font-size: 1rem;
  border-radius: 7px;
  border: none;
  padding: 10px 22px;
  background: #D9B08C;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.cookie-modal .actions button.settings {
  background: #CED9DE;
  color: #8C5637;
}
.cookie-modal .actions button.reject {
  background: #CED9DE;
  color: #8C5637;
}
.cookie-modal .actions button.settings:hover, .cookie-modal .actions button.reject:hover {
  background: #A6B6BA;
  color: #fff;
}
.cookie-modal .actions button.accept:hover {
  background: #8C5637;
}
.cookie-modal .cookie-close {
  background: none;
  border: none;
  color: #8C5637;
  font-size: 2rem;
  position: absolute;
  top: 20px;
  right: 34px;
  cursor: pointer;
}

/********************************
 RESPONSIVE LAYOUT
*********************************/
@media (max-width: 1200px) {
  .container { max-width: 1000px; }
}
@media (max-width: 1024px) {
  .container { max-width: 860px; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
}
@media (max-width: 768px) {
  html { font-size: 96%; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 600px) {
  .container { padding: 0 7px; }
  html { font-size: 93%; }
  h1 { font-size: 1.5rem; }
  .feature-grid, .service-list, .testimonials {
    flex-direction: column;
  }
  .footer-social img { width: 22px; height: 22px; }
  .card, .service-item, .testimonial-card {
    min-width: 80vw;
    max-width: 98vw;
    padding: 16px 10px;
  }
}

/* Style scrollbars for more friendliness */
::-webkit-scrollbar {
  width: 9px;
  background: #f7eee4;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: #D9B08Caa;
  border-radius: 12px;
}

/* Misc Utility */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ============
   MICROINTERACTIONS & EFFECTS
============ */
.card, .service-item, .testimonial-card, .blog-list li {
  transition: box-shadow .22s, transform .18s;
}
.card:hover,
.service-item:hover,
.blog-list li:hover,
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(217,176,140,0.17);
  transform: translateY(-6px) scale(1.015);
}

.button-primary, .button-secondary, .cookie-banner button, .cookie-modal .actions button {
  transition: background .19s, color .19s, box-shadow .17s, transform .16s;
}
.button-primary:active, .button-secondary:active, .cookie-banner button:active, .cookie-modal .actions button:active {
  transform: scale(0.97);
}

input, textarea, select {
  border-radius: 9px;
  border: 1px solid #D9B08C;
  padding: 8px 13px;
  font-size: 1rem;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: #FFFDF8;
  margin-bottom: 18px;
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #8C5637;
  outline: none;
}

/* ==============
   FOCUS VISIBLE
=============== */
:focus-visible {
  outline: 2.8px dotted #A87451;
  outline-offset: 2px;
}

/********************************
 HIGH CONTRAST FOR TESTIMONIALS
*********************************/
.testimonial-card {
  background: #FFF8F3;
  color: #222;
  border: 1.3px solid #FAEBD8;
}
.testimonial-card blockquote {
  color: #8C5637;
  font-size: 1.09rem;
}
.testimonial-card cite {
  color: #222;
  font-size: 0.99rem;
}

/********************************
 BRAND COLOR UTILS
*********************************/
.bg-primary { background: #262730; color: #fff; }
.bg-secondary { background: #CED9DE; color: #222; }
.bg-accent { background: #D9B08C; color: #fff; }
.text-primary { color: #262730; }
.text-accent { color: #D9B08C; }
.text-secondary { color: #CED9DE; }

/********************************
 Print Reset (for legal/infos)
*********************************/
@media print {
  * { background: none !important; box-shadow: none !important; color: #161616 !important; }
  a, a:visited { text-decoration: underline; color: #222 !important; }
}
