/* CSS RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #4a3320;
  background-color: #F4EADB;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: #A57C50;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #675140;
}
button, .cta-btn, input[type="submit"] {
  font-family: 'Roboto', Arial, sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.2s, transform 0.12s, color 0.2s, box-shadow 0.12s;
}

/* CUSTOM FONT - DM Serif Display */
@import url('https://fonts.googleapis.com/css?family=DM+Serif+Display:400&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: #675140;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
.subtitle {
  font-size: 1.25rem;
  color: #A57C50;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 24px;
}

/* SECTIONS AND CONTAINERS */
main > section,
footer > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: inherit;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Spacing utility */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* FLEX LAYOUTS  */
.features-grid,
.category-grid,
.services-list,
.team-list,
.products-list,
.service-grid,
.testimonials-slider,
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 6px 28px 0 rgba(165,124,80,0.10), 0 1.5px 3px 0 rgba(165,124,80,0.07);
  min-width: 240px;
  max-width: 360px;
  width: 100%;
  margin-bottom: 20px;
  color: #4a3320;
  font-size: 1.04rem;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 1.5px 3px 0 rgba(165,124,80,0.12);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 10px 36px #a57c50cc;
  transform: translateY(-3px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/*************** HEADER **************/
header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(165,124,80,0.07);
  position: relative;
  z-index: 200;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px 10px;
  min-height: 68px;
}
.main-nav > a img {
  height: 48px;
  transition: transform 0.16s;
}
.main-nav > a img:hover {
  transform: scale(1.07) rotate(-5deg);
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.main-nav ul li {
  margin: 0 2px;
}
.main-nav ul li a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #4a3320;
  border-radius: 12px;
  padding: 8px 14px;
  transition: background 0.18s, color 0.18s, transform 0.1s;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: #F4EADB;
  color: #A57C50;
  transform: scale(1.09);
}
.cta-btn {
  min-width: 44px;
  padding: 12px 28px;
  background: #A57C50;
  color: #fff;
  border-radius: 20px 20px 28px 12px;
  font-size: 1.1rem;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  box-shadow: 0 2px 12px #a57c5099;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.cta-btn:after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: -75%;
  width: 60%;
  height: 100%;
  background: #F5C58A88;
  border-radius: 0 40px 40px 0;
  transform: skewX(-30deg);
  transition: left 0.3s;
  z-index: 0;
}
.cta-btn:hover:after {
  left: 120%;
}
.cta-btn:hover, .cta-btn:focus {
  background: #4a3320;
  color: #fff;
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 4px 28px #a57c5099;
}

/* Hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #A57C50;
  margin-left: 10px;
  z-index: 600;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F4EADB;
  border-radius: 12px;
  color: #675140;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(0.86,0,0.07,1);
  box-shadow: 0 6px 50px #67514033;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  font-size: 2rem;
  color: #A57C50;
  border: none;
  padding: 16px 24px 0 0;
  margin-bottom: 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #4a3320;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 28px 0 32px;
}
.mobile-nav a {
  color: #4a3320;
  font-size: 1.3rem;
  font-family: 'DM Serif Display', serif;
  padding: 14px 12px;
  margin: 0;
  border-radius: 14px;
  background: #F4EADB;
  width: 94vw;
  max-width: 400px;
  transition: background 0.15s, color 0.16s, transform 0.12s;
  box-shadow: 0 1px 3px rgba(165,124,80,0.09);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A57C50;
  color: #fff;
  transform: scale(1.04) translateX(8px);
}
@media (max-width: 1050px) {
  .main-nav ul {
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .main-nav ul {
    gap: 6px;
    font-size: 0.98rem;
  }
}

@media (max-width: 768px) {
  .main-nav ul, .main-nav .cta-btn {
    display: none;
  }
  .main-nav {
    padding: 10px 5px;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 15px;
  }
}

/*************** HERO SECTIONS **************/
.hero, .about-hero, .catalog-hero, .services-hero, .workshop-hero, .contact-hero {
  background: #fff6e9;
  border-radius: 40px 100px 60px 0;
  margin-bottom: 40px;
  padding: 24px 0 32px 0;
  box-shadow: 0 6px 36px #ffdeac22;
  overflow: hidden;
  animation: heroPopIn 1s 0.08s cubic-bezier(0.17,0.67,0.83,0.67);
}
@keyframes heroPopIn {
  0% { transform: scale(.97) translateY(60px); opacity: 0; }
  75%{ opacity: 1; }
  100%{ transform: scale(1) translateY(0); opacity: 1; }
}
.hero h1, .about-hero h1, .catalog-hero h1, .services-hero h1, .workshop-hero h1, .contact-hero h1 {
  font-size: 2.5rem;
  color: #A57C50;
  margin-bottom: 10px;
}
.hero .subtitle {
  color: #675140;
}

/************ FEATURES, CARDS, CATEGORIES *************/
.features-grid > div, .category-grid > div, .services-list > div, .products-list > div, .team-list > div, .service-grid > div {
  background: #fff;
  border-radius: 20px;
  padding: 26px 22px 24px 22px;
  box-shadow: 0 4px 18px #a57c5022, 0 1.5px 2.5px #f4eadb55;
  width: calc(33% - 16px);
  min-width: 180px;
  max-width: 340px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.14s;
  position: relative;
  overflow: hidden;
}
.features-grid > div:hover, .category-grid > div:hover, .services-list > div:hover, .products-list > div:hover, .team-list > div:hover, .service-grid > div:hover {
  transform: scale(1.045) rotate(-1.8deg);
  box-shadow: 0 9px 36px #a57c50cc;
  z-index: 2;
}
.features-grid img, .category-grid img {
  width: 58px;
  margin-bottom: 16px;
  border-radius: 18px 50% 18px 18px;
  box-shadow: 0 2px 9px #a57c5011;
  background: #F4EADB;
}
.features-grid h3, .category-grid h3, .services-list h3, .products-list h3, .service-grid h3 {
  color: #A57C50;
  margin: 10px 0 7px 0;
  font-size: 1.19rem;
  font-family: 'DM Serif Display', serif;
}
.features-grid p, .category-grid p, .services-list p, .products-list p, .service-grid p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
  margin-bottom: 6px;
  color: #675140;
}
.features-grid span, .category-grid span, .services-list span, .service-grid span {
  font-weight: bold;
  color: #A57C50;
  background: #fff6e9;
  border-radius: 10px;
  padding: 2.5px 9px;
  font-size: 0.99rem;
}

/****** TESTIMONIAL SLIDER (STATIC FLEX) ******/
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  flex: 1 1 270px;
  min-width: 230px;
  max-width: 350px;
  background: #fff;
  color: #4a3320;
  border-left: 7px solid #A57C50;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px #a57c5022;
  padding: 22px 18px 18px 30px;
  border-radius: 18px;
  transition: box-shadow 0.14s, transform 0.12s;
  font-family: 'Roboto', sans-serif;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px #F5C58Aaa;
  transform: translateY(-4px) scale(1.03) rotate(-0.5deg);
}
.testimonial-card p {
  margin-bottom: 10px;
  color: #675140;
  font-size: 1.06rem;
}
.testimonial-card strong {
  font-size: 0.97rem;
  color: #A57C50;
}

/*************** FOOTER **************/
footer {
  background: #fff6e9;
  border-top: 3px solid #F4EADB;
}
footer > section {
  padding: 38px 20px 36px 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 12px;
  margin-bottom: 24px;
}
.footer-nav a {
  font-family: 'DM Serif Display', serif;
  color: #A57C50;
  font-size: 1.05rem;
  padding: 6px 16px;
  border-radius: 10px 14px 10px 18px;
  background: #fff;
  transition: color 0.18s, background 0.19s, transform 0.09s;
}
.footer-nav a:hover {
  color: #fff;
  background: #A57C50;
  transform: scale(1.06) rotate(-2deg);
}
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.98rem;
  color: #675140;
  padding-top: 12px;
}
.brand-footer img {
  height: 38px;
  margin-bottom: 4px;
}
.brand-footer p {
  margin-bottom: 2px;
}

/************ CONTACT FORM *************/
form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 8px;
}
label {
  font-family: 'DM Serif Display', serif;
  color: #A57C50;
  font-size: 1.1rem;
  margin-bottom: 3px;
}
input[type="text"],
input[type="email"],
textarea {
  font-family: 'Roboto', Arial, sans-serif;
  padding: 10px 14px;
  border: 2px solid #F5C58A;
  border-radius: 14px;
  font-size: 1rem;
  margin-bottom: 2px;
  background: #fffefc;
  color: #4a3320;
  transition: border 0.16s;
  resize: vertical;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border: 2px solid #A57C50;
}
button[type='submit'], form button {
  background: #A57C50;
  color: #fff;
  border-radius: 16px 32px 16px 8px;
  padding: 10px 32px;
  margin-top: 10px;
  font-size: 1.12rem;
  font-family: 'DM Serif Display', serif;
  box-shadow: 0 2px 12px #a57c5040;
}
button[type='submit']:hover, form button:hover, button[type='submit']:focus {
  background: #4a3320;
  transform: scale(1.04) rotate(-1deg);
}

/******* LEGAL PAGE TEXT ********/
.legal-text {
  color: #675140;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0.92;
  font-size: 1.01rem;
  border-left: 6px solid #A57C50;
  padding-left: 18px;
  background: #fff;
  border-radius: 10px 22px 10px 10px;
  box-shadow: 0 3px 12px #a57c500f;
}
.legal-text h2 {
  font-size: 1.16rem;
  margin: 16px 0 3.5px 0;
  color: #A57C50;
}

/****** RESPONSIVE BREAKPOINTS ******/
@media (max-width: 1050px) {
  .features-grid > div, .category-grid > div, .services-list > div, .products-list > div, .service-grid > div {
    max-width: 45%;
    min-width: 160px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 95vw;
    padding: 0 3vw;
  }
  .content-wrapper,
  .features-grid,
  .category-grid,
  .services-list,
  .products-list,
  .team-list,
  .service-grid,
  .testimonials-slider,
  .footer-nav,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div, .category-grid > div, .services-list > div, .products-list > div, .team-list > div, .service-grid > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 20px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
  .brand-footer {
    align-items: flex-start;
    font-size: 0.97rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.1rem; }
  .testimonial-card {
    font-size: 0.99rem;
    padding: 11px 6px 10px 12px;
  }
  .footer-nav {
    gap: 10px 2px;
    font-size: 0.93rem;
    flex-wrap: wrap;
  }
}

/********* COOKIE CONSENT BANNER *********/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff6e9;
  color: #4a3320;
  border-top: 3px solid #A57C50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -3px 22px #a57c500e;
  z-index: 1900;
  animation: slideUpCookie 0.68s cubic-bezier(.51,.34,.34,1.02);
}
@keyframes slideUpCookie {
  0% {transform: translateY(120%);} 75% {opacity:1;} 100%{transform: translateY(0);opacity:1;}}
.cookie-consent-banner p {
  color: #675140;
  font-size: 0.99rem;
  text-align: center;
}
.cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 0 auto;
}
.cookie-btn-row button {
  font-size: 1rem;
  font-family: 'DM Serif Display', serif;
  padding: 11px 24px;
  border-radius: 11px 19px 18px 8px;
  background: #A57C50;
  color: #fff;
  margin: 0;
  box-shadow: 0 1px 7px #a57c503e;
  border: none;
  min-width: 100px;
  transition: background 0.18s, color 0.14s, transform 0.11s;
}
.cookie-btn-row button.cookie-reject {
  background: #ffa79e;
  color: #543119;
}
.cookie-btn-row button.cookie-settings {
  background: #A57C50;
  color: #FFF6E9;
  border: 1.5px dashed #675140;
}
.cookie-btn-row button:hover,
.cookie-btn-row button:focus {
  background: #4a3320;
  color: #fff;
  transform: scale(1.06) rotate(-1deg);
}
.cookie-preferences-modal {
  position: fixed;
  left: 50%;
  bottom: 20vh;
  transform: translateX(-50%) scale(1.06);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 7px 40px #a57c50cc;
  padding: 38px 24px 28px 24px;
  min-width: 300px;
  max-width: 95vw;
  z-index: 2200;
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalIn 0.42s cubic-bezier(.62,.12,.39,1.1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: translateX(-50%) scale(0.86);}
  100% { opacity: 1; transform: translateX(-50%) scale(1.06);}
}
.cookie-preferences-modal.active {
  display: flex;
}
.cookie-preferences-modal h3 {
  color: #A57C50;
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1.5px dashed #f0dcc2;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category .category-label {
  font-size: 1rem;
  color: #4a3320;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle {
  padding: 0;
  width: 44px;
  height: 24px;
  background: #F4EADB;
  border-radius: 14px;
  border: 2px solid #A57C50;
  position: relative;
  appearance: none;
  transition: background 0.15s;
  vertical-align: middle;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #A57C50;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3.5px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s, background 0.19s;
  box-shadow: 0 1px 2px #67514017;
}
.cookie-toggle:checked:before {
  left: 23px;
  background: #F4EADB;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 5px;
}
.cookie-modal-actions button {
  background: #A57C50;
  color: #fff;
  border-radius: 12px 20px 11px 6px;
  padding: 7px 18px;
  border: none;
  font-size: 1rem;
}
.cookie-modal-actions button:hover {
  background: #4a3320;
}

/******* PLAYFUL MICRO-ANIMATION & EFFECTS *******/
h1, h2, h3, h4, h5, h6 {
  animation: headingDrop 0.9s cubic-bezier(0.19, 1, 0.22, 1) backwards;
}
@keyframes headingDrop {
  from { opacity: 0; transform: translateY(-24px) scale(.98) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
.card, .testimonial-card, .cta-btn, .footer-nav a, .features-grid > div, .category-grid > div, .service-grid > div {
  transition: box-shadow 0.15s, transform 0.13s, background 0.14s;
}

/******** FIX: Prevent overlapping ********/
section, .container, .content-wrapper, .footer-nav, .brand-footer {
  min-width: 0;
}
@media (max-width: 510px) {
  .cookie-consent-banner {
    padding: 14px 8px 10px 8px;
  }
  .cookie-preferences-modal {
    padding: 19px 6px 17px 7px;
    min-width: unset;
  }
}

/******* Misc. helpers *******/
::-webkit-input-placeholder { color: #A57C50aa; }
::-moz-placeholder { color: #A57C50aa; }
:-ms-input-placeholder { color: #A57C50aa; }
::placeholder { color: #A57C50aa; }

/**** Hide mobile menu by default ****/
.mobile-menu {
  display: flex;
  flex-direction: column;
  /* Invisible by default, visible only with .open class */
}

/* --- End of style.css --- */
