/* style.css – Tessera Glow Meble – Scandinavian Clean Design */

/* 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: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #3A2317;
  background: #F6F3EC;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
a:focus {
  outline: 2px solid #b6a379;
  outline-offset: 2px;
}

/* TYPOGRAPHY SCALE */
h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 20px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
p, ul, ol, dl {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
dt {
  font-weight: 600;
  margin-bottom: 6px;
}
dd {
  margin-bottom: 14px;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container,
.features-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(58,35,23,0.07);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  padding: 20px 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(58,35,23,0.09);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 540px;
  flex-direction: column;
}
.testimonial-card p {
  color: #3A2317;
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-style: italic;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #b6a379;
  font-weight: 600;
}

/* HERO SECTION */
.hero {
  background: #fff;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 4px 22px 0 rgba(58,35,23,0.08);
  padding: 54px 0 48px 0;
  margin-bottom: 48px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  max-width: 720px;
}
.hero h1 {
  color: #3a2317;
}
.hero p {
  color: #66513a;
  font-size: 1.2rem;
  margin-bottom: 32px;
  max-width: 550px;
}

/* BUTTONS & CALL TO ACTIONS */
.cta-primary,
button.cta-primary {
  display: inline-block;
  background: #b6a379;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 14px 36px;
  border: none;
  border-radius: 32px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(182, 163, 121, .09);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s, transform 0.13s;
}

.cta-primary:hover,
.cta-primary:focus,
button.cta-primary:hover,
button.cta-primary:focus {
  background: #3A2317;
  color: #fff;
  box-shadow: 0 4px 16px rgba(58,35,23,0.15);
  transform: translateY(-2px) scale(1.04);
}

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: #b6a379;
  border: 2px solid #b6a379;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 12px 28px;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border 0.18s;
}
.cta-secondary:hover,
.cta-secondary:focus {
  background: #b6a379;
  color: #fff;
  border: 2px solid #b6a379;
}

button, input[type="submit"], input[type="button"] {
  font-family: inherit;
  cursor: pointer;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 12px rgba(58,35,23,0.06);
  padding: 0;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
header .brand a {
  display: flex;
  align-items: center;
  gap: 13px;
}
header .brand img {
  height: 41px;
  width: auto;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, Geneva, Tahoma, sans-serif;
  font-size: 1rem;
  color: #3A2317;
  letter-spacing: 0.01em;
  padding: 8px 8px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.12s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: #F6F3EC;
  color: #B6A379;
}
header nav .cta-primary {
  margin-left: 10px;
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 28px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #3A2317;
  margin-left: 10px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.16s;
  z-index: 101;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #F6F3EC;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(58,35,23,0.98);
  z-index: 110;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.65,.05,.36,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: #fff;
  color: #3A2317;
  border: none;
  font-size: 2rem;
  padding: 13px 18px 13px 13px;
  cursor: pointer;
  border-radius: 50%;
  margin: 24px 28px 2px 0;
  transition: background 0.15s;
  z-index: 120;
  align-self: flex-end;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #b6a379;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 24px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(246,243,236,0.10);
  transition: background 0.13s, color 0.15s;
  min-width: 100vw;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #b6a379;
  color: #fff;
}

/* Hide desktop nav, show mobile menu on small screens */
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid #f0eadd;
  padding: 42px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding-bottom: 30px;
}
footer .brand img {
  height: 46px;
  width: auto;
}
footer nav {
  display: flex;
  gap: 16px;
}
footer nav a {
  color: #B6A379;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.16s;
}
footer nav a:hover,
footer nav a:focus {
  color: #3A2317;
}
footer .contact-short {
  font-size: 0.97rem;
  color: #66513a;
  text-align: left;
  max-width: 300px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 18px;
  background: #fff;
  color: #3A2317;
  border-radius: 18px;
  box-shadow: 0 4px 27px -5px rgba(58,35,23,0.15);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 30px 20px 24px;
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity .25s, transform .27s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
}
.cookie-banner p {
  margin-bottom: 10px;
  color: #3A2317;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  border: none;
  border-radius: 22px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  cursor: pointer;
  margin-right: 0px;
  transition: background 0.15s, color 0.13s;
}
.cookie-banner .accept {
  background: #b6a379;
  color: #fff;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #3A2317;
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  border: 2px solid #b6a379;
  color: #b6a379;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #b6a379;
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #3A2317;
  border: 2px solid #3A2317;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #b6a379;
  color: #fff;
  border-color: #b6a379;
}

/* COOKIE MODAL (hidden by default) */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3300;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(58,35,23,0.46);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fadeIn 0.22s;
}
@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 95vw;
  padding: 38px 32px 30px 32px;
  box-shadow: 0 8px 48px rgba(58,35,23,0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  color: #3A2317;
}
.cookie-modal h3 {
  margin-bottom: 17px;
  color: #3A2317;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #F6F3EC;
  border: none;
  border-radius: 50%;
  font-size: 1.33rem;
  color: #3A2317;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #b6a379;
  color: #fff;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  background: #F6F3EC;
  border-radius: 8px;
  padding: 10px 16px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.cookie-switch {
  width: 44px;
  height: 24px;
  border-radius: 16px;
  background: #ddd;
  position: relative;
  transition: background 0.18s;
  margin-left: 4px;
}
.cookie-switch input[type='checkbox'] {
  display: none;
}
.cookie-switch .slider {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px; top: 1px;
  box-shadow: 0 1px 3px rgba(58,35,23,0.08);
  transition: left 0.18s;
}
.cookie-switch input[type='checkbox']:checked ~ .slider {
  left: 20px;
  background: #b6a379;
}
.cookie-switch input[type='checkbox']:checked ~ .slider {
  background: #b6a379;
}
.cookie-category.essential .cookie-switch {
  background: #ddd;
  cursor: not-allowed;
}
.cookie-category.essential label {
  color: #bbb;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cookie-modal .cookie-modal-actions button {
  padding: 10px 22px;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  background: #b6a379;
  color: #fff;
  transition: background 0.16s, color 0.15s;
}
.cookie-modal .cookie-modal-actions button.reject {
  background: #fff;
  color: #b6a379;
  border: 2px solid #b6a379;
}
.cookie-modal .cookie-modal-actions button:hover,
.cookie-modal .cookie-modal-actions button:focus {
  background: #3A2317;
  color: #fff;
  border-color: #3A2317;
}

/* CARDS, FEATURE GRIDS, GALLERY */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  background: #fff;
  border-radius: 10px;
  padding: 24px 18px;
  box-shadow: 0 1px 6px rgba(58,35,23,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 210px;
  max-width: 330px;
  flex: 1 1 210px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.13s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 18px rgba(182,163,121,0.14);
  transform: translateY(-2px) scale(1.03);
}
.features-grid img {
  height: 38px;
  width: 38px;
  object-fit: contain;
}
.features-grid h3 {
  margin-bottom: 9px;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.contact-details > div {
  background: #fff;
  border-radius: 8px;
  padding: 17px 24px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: 0 1px 6px rgba(58,35,23,0.08);
  font-size: 1rem;
  margin-bottom: 10px;
}
.contact-details img {
  height: 24px;
  width: 24px;
  margin-right: 9px;
}

.map-location {
  margin-top: 12px;
  background: #F6F3EC;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 0.99rem;
  color: #3A2317;
}

/* FORMS (if any, for completeness) */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border: 1px solid #edebdf;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 16px;
  background: #faf8f5;
  color: #3A2317;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #b6a379;
}

/* Section spacings */
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
main > section:last-child {
  margin-bottom: 0;
}

/* Responsive SECTION STACKS & FLEXDIRECTION */
.text-image-section,
.features-grid,
.card-grid,
.content-grid,
.card-container,
.contact-details,
footer .content-wrapper {
  flex-direction: row;
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  .section, main > section {
    padding: 25px 5px;
    margin-bottom: 32px;
  }
  .hero {
    padding: 34px 0 28px 0;
    margin-bottom: 28px;
    border-radius: 0 0 14px 14px;
  }
  .contact-details,
  .features-grid,
  .card-grid,
  .content-grid,
  .card-container,
  .text-image-section,
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
}

/* Micro-INTERACTIONS & Transitions */
.card, .testimonial-card, .features-grid > div, .cta-primary, .cta-secondary, .cookie-banner, .cookie-modal, .mobile-menu, .mobile-menu-close {
  transition: box-shadow 0.16s, transform 0.15s, background 0.18s, color 0.16s;
}
button:focus, a:focus {
  outline: 2px solid #b6a379;
  outline-offset: 1.5px;
}

/* Z-INDEX for overlays */
.mobile-menu, .cookie-modal-overlay, .cookie-banner {
  z-index: 3000;
}
.mobile-menu {
  z-index: 3100;
}

/* Accessibility improvements for focusable elements */
.cta-primary:focus, .cta-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus,
footer nav a:focus {
  box-shadow: 0 0 0 2px #b6a379;
}

/* Visual QB: Ensure no overlap between cards */
.card, .testimonial-card, .features-grid > div {
  margin-bottom: 20px;
}
.features-grid, .card-grid {
  gap: 24px;
}

/* Print improvements */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; margin-bottom: 24px; }
}
