* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-title-family: "New York", Iowan Old Style, Apple Garamond, Baskerville,
    "Times New Roman", "Droid Serif", Times, "Source Serif Pro", serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-body-family: Assistant, sans-serif;
  --page-width: 1400px;
  --section-padding: clamp(1.5rem, 8vw, 8rem);
}

body {
  font-family: var(--font-body-family);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.6;
  color: #54565A;
  background-color: #FFFFFF;
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-title-family);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.header-container {
  width: calc(min(100%, var(--page-width)) - clamp(1rem, 8vw, 10rem));
  margin: 0 auto;
}

.content-wrapper{
  padding: var(--section-padding);
}

.mp-intro-heading-content-wrapper {
  padding-bottom: 0;
}

.mp-intro-bottom-content-wrapper {
  padding: clamp(1.5rem, 3vw, 3rem) var(--section-padding)  5rem;
  background-color: #CBA977;
}

.mp-intro-content-wrapper {
  padding: 1px clamp(1.5rem, 3vw, 3rem);
  background-color: #CBA977;
}

.top-sellers-content-wrapper {
  padding-top: 0;
}

.footer-content-wrapper {
  padding: 0 var(--section-padding) 2rem;
  background-color: #54565A;
}

h2 {
  font-size: clamp(18px, 2.2vw, 30px);
  margin-bottom: clamp(1rem, 1.2vw, 1.3rem);
}

h3 {
  font-size: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(1rem, 1.2vw, 1.3rem);
}

h4 {
  font-size: clamp(14px, 2vw, 18px);
}

ul {
  list-style: disc;
  padding-left: 1.1em;
}

/* Header & Nav */
#header {
  position: relative;
  z-index: 100;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 1.5vw, 1.8rem) clamp(1rem, 1.5vw, 3rem);
  background-color: rgba(56, 54, 45, 0.8);
  border-radius: clamp(0.8rem, 1.5vw, 1.2rem);
  margin-top: clamp(1rem, 2vw, 2rem);
}

.logo img {
  width: clamp(150px, 12vw, 200px);
  height: auto;
}

.header-menu ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

.header-menu a {
  text-decoration: none;
  color: #ffffff;
}

.header-menu a:hover {
  color: #CBA977;
}

/* mobile hamburger – hidden on desktop */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 16px;
  height: 1px;
  background: white;
}

/* mobile menu styling */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .header-menu {
    position: absolute;
    top: 100%;
    left: clamp(0.5rem, 4vw, 5rem);
    width: calc(min(100%, var(--page-width)) - clamp(1rem, 8vw, 10rem));
    background: white;
    padding: 1rem 1.8rem;
    display: none;
    flex-direction: column;
    border-radius: clamp(0.8rem, 1.5vw, 1.2rem);
  }

  .header-menu.open {
    display: flex;
  }

  .header-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .header-menu a {
    color: #54565A;
    text-decoration: none;
  }
}
/* Hero Section */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

#hero {
  position: relative;
  z-index: 1;
  margin-top: -8rem;
}

.hero-text {
  position: absolute;
  top: 74%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: block;
  max-width: 1000px;
  width: 80%;
}

.hero-title {
  font-size: clamp(20px, 3.5vw, 56px);
  margin-bottom: clamp(1rem, 2vw, 2.5rem);
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(12px, 1.5vw, 18px);
  margin-bottom: clamp(1rem, 3vw, 3.5rem);
  color: #CCC3B5;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: #fff;
  color: #CBA977;
  text-decoration: none;
  padding: clamp(0.5rem, 1.2vw, 0.8rem) clamp(1rem, 2vw, 2.2rem);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: clamp(12px, 1.2vw, 18px);
  transition: none;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #101010;
  width: clamp(1.5rem, 2.4vw, 2rem);
  height: clamp(1.5rem, 2.4vw, 2rem);
  flex-shrink: 0;
}

.hero-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  text-indent: -9999px;
}

/* Hero Below */
#hero-below .content-wrapper {
  background-color: #7F6847;
  color: #CCC3B5;
  text-align: center;
  padding-top: 0 !important;
}

#hero-below .hero-below-text {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-below-text p {
  margin-bottom: clamp(1.5rem, 2vw, 2.8rem);
}

.hero-below-three-core {
  background-color: #CFAD7D;
  color: #ffffff;
  text-align: left;
  padding: clamp(1.8rem, 2vw, 2.5rem) clamp(3rem, 4.5vw, 8rem);
  max-width: clamp(350px, 78vw, 800px);
  border-radius: 10px;
  margin: clamp(2rem, 3vw, 4rem) auto clamp(2rem, 3vw, 4rem);
}

.hero-below-three-core h4 {
  text-align: center;
  margin-bottom: clamp(1.5rem, 1.5vw, 1.8rem);
}

/* Sub-Brands Overview */
.sub-brand-overview-heading {
  margin-bottom: clamp(3rem, 2.8vw, 6rem);
}

.sub-brand-overview-slide {
  margin: 0 auto;
  margin-bottom: clamp(3rem, 3vw, 6rem);
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
}

.slides {
  position: relative;
  width: 100%;
  height: 420px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: none;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.slide.active {
  display: flex;
  opacity: 1;
  z-index: 1;
}

.slide-content {
  flex: 1;
}

.slide-content h2 {
  font-size: clamp(1.8rem, 3vw, 3.5rem);
  letter-spacing: 1px;
  font-weight: 400;
}

.slide-content h2 span {
  font-weight: 600;
}

.slide-content p {
  margin-top: 1rem;
  line-height: 1.6;
}

.slide-content .btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: #54565A;
  color: #FFFFFF;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slide img {
  width: clamp(220px, 35vw, 340px);
  height: auto;
}

.slide-content .logo {
  width: 100%;
  max-width: 400px;
}

.slide-content .logo-2 {
  width: 100%;
  max-width: 300px;
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  gap: 1rem;
}

.dot {
  width: 80px;
  height: 2px;
  background: #ccc;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #444;
}

/* MPS Introduction */
#mps-intro .container{
  background-color: #FBF9F5;
}

#mps-intro h2, #mps-intro h3 {
  color: #CBA977;
}

#mps-intro .mps-intro-heading p {
  margin-bottom: clamp(1rem, 1.2vw, 1.4rem);
}

#mps-intro .mps-intro-heading p:first-of-type {
  margin-bottom: clamp(1.5rem, 2vw, 3rem);
}

.compare-read-more, .compare-read-more:hover {
  text-decoration: underline;
}

.intro-compare-brand {
  margin: clamp(1rem, 3vw, 3rem) auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.mp-intro-compare-brand {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.intro-compare-brand .brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.intro-compare-brand .brand .content {
  background-color: #F2EADD;
  padding: clamp(1rem, 1.2vw, 1.4rem);
}

.mp-intro-compare-brand .brand .content {
  background-color: #D3B68B;
}

.intro-compare-brand .madison-park-highlight {
  background-color: #CBA977;
  padding: clamp(1rem, 1.2vw, 1.4rem);
  color: #ffffff;
}

.madison-park-highlight img {
  display: block; 
  max-width: 200px; 
  margin: 0 auto; 
  margin-bottom: 1rem;
}

.intro-compare-brand .madison-park-brand {
  background-color: #555565;
}

.intro-compare-brand ul li:not(:last-child){
  font-size: clamp(10px, 1.1vw, 14px);
  margin-bottom: clamp(0.5rem, 1.2vw, 0.6rem);
}

.intro-compare-brand img,  .intro-compare-brand h4{
  margin-bottom: clamp(0.5rem, 1.2vw, 0.6rem);
}

@media (max-width: 880px) {
  .intro-compare-brand {
    grid-template-columns: 1fr;
  }

  .intro-compare-brand .brand .content {
    width: 100%;
  }
}

.intro-bottom-content {
  text-align: center;
}

.intro-bottom-content h3{
  text-align: left;
}

.explore-the-collection {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: #fff;
  color: #CBA977;
  text-decoration: none;
  padding: clamp(0.5rem, 1.2vw, 0.6rem) clamp(1rem, 2vw, 1.6rem);
  border-radius: 5px;
  border: 2px #CBA977 solid;
  transition: none;
  margin-top: clamp(1.5rem, 2vw, 4rem);
}
/* MP Introduction */
#mp-intro .container {
  background-color: #CBA977;
  color:#ffffff;
}

.intro-heading h3 {
  margin-top: clamp(1.5rem, 2vw, 3rem);
}

.intro-heading p {
  margin-bottom: clamp(1.2rem, 1.2vw, 1.5rem);
}

#mp-intro-bottom .broad-solutions-affordable-style {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #C1AC8D;
  background-color: #A88A5F;
  padding: clamp(1.5rem, 2vw, 3rem);
  border-radius: 10px;
}

.mp-intro-according {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mp-intro-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: right;
}

.mp-intro-img img {
  width: 100%;
  height: auto;
  max-width: 450px;
  border-radius: 8px;
  display: block;
}

.accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  color: #F2EDE7;
  transition: max-height 0.4s ease;
}

.mp-intro-according .active .accordion-content {
  max-height: 400px;
  padding-top: clamp(1.2rem, 1.5vw, 1.5rem);
}

.mp-intro-according .active .accordion-header h4 {
  color: #FFFFFF;
}

.accordion-item.active .accordion-header img {
  filter: brightness(0) invert(1);
}

.accordion-header img{
  padding-right: 10px;
}

.mp-intro-bottom-text {
   padding: clamp(1.5rem, 2vw, 3rem);
   text-align: center;
   background-color: #E1CDB0;
   border-radius: 2rem 2rem 0 0;
   margin-top: -2rem;
}

.mp-intro-according hr {
  border: none;
  height: 2px;
  background-color: #D0BFA8;
  margin: clamp(1.5rem, 1.5vw, 2rem) 0;
}

.mp-intro-bottom-text a {
  background-color: #CBA977;
  color: #F2E9DD;
  margin-top: clamp(1.5rem, 1.5vw, 2rem);
  box-shadow: none;
  font-size: clamp(12px, 1.1vw, 14px);;
}

/* MPE Introduction */
.mpe-intro-heading h2 {
  color: #CBA977;
}

.mpe-intro-heading p {
  margin-bottom: clamp(1rem, 1.2vw, 1.2rem);
}

.mpe-intro-heading ul li {
  margin-bottom: clamp(1rem, 1.2vw, 1.2rem);
}

/* TOP Sellers */
.top-sellers-heading p {
  margin-top: clamp(1.4rem, 1.5vw, 2.2rem);
}

.top-sellers-products {
  margin-top: clamp(1.8rem, 2vw, 2.8rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1rem);
  text-align: center;
  align-items: center;
  justify-content: center;
}

.top-sellers-products img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.top-sellers-products  p{
  line-height: 1.4;
  padding: 0.8rem;
}

.top-sellers-products  button{
  background-color: #FAF7F3;
  border-radius: 50px;
  color: #D7BC96;
  text-align: center;
  padding: clamp(0.3rem, 1.2vw, 0.5rem) clamp(3rem, 3vw, 4rem);
  border: none;
}
/* Perfect Bedding With MP */
#perfect-bedding .container {
  background-color: #54565A;
  color: #FFFFFF;
}

.perfect-bedding-heading h2 {
  color: #CBA977;
}

.perfect-bedding-heading p:not(:last-of-type) {
  margin-bottom: clamp(1rem, 1.2vw, 1.2rem);
}

.perfect-bedding-heading a {
  text-decoration: underline;
}

#footer {
  text-align: center;
  color: #FFFFFF;
}

.intro-heading .expand-target, .mps-intro-heading .expand-target{
  overflow: hidden;
  max-height: 0;
  margin-bottom: 0 !important;
  transition: max-height 0.35s ease, margin-bottom 0.35s ease;
}

.intro-heading .expand-target.is-open, .mps-intro-heading .expand-target.is-open {
  margin-bottom: clamp(1.2rem, 1.2vw, 1.5rem) !important;
}

/* Mobile Style */
@media (max-width: 768px) {

  /* Adjust mob hero height */
  #hero .container {
    height: 70vh;
    max-height: 650px;
  }

  .hero-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .hero-text {
    width: 90%;
  }

  .sub-brand-overview-heading, .sub-brand-overview-text{
    text-align: center;
  }

  .slides {
    height: clamp(600px, 100vw, 680px);
  }

  .slide {
    flex-direction: column;
    text-align: center;
    justify-content: start;
  }

  .slide img {
    order: -1;
    width: 100%;
    margin: 0 auto;
  }

  .slide-content {
    max-width: 100%;
  }

  #mp-intro-bottom .broad-solutions-affordable-style {
    flex-direction: column;
  }

  #mp-intro-bottom .broad-solutions-affordable-style .mp-intro-img {
    padding-bottom: clamp(1.5rem, 2vw, 3rem);;
    order: -1;
  }

  #mp-intro-bottom .broad-solutions-affordable-style .mp-intro-img img {
    max-width: 100%;
  }

  .top-sellers-products {
    grid-template-columns: 1fr;
  }

  .top-sellers-products a div {
    margin-top: 0.8rem;
  }
}

@media (max-width: 880px) {
  .mp-intro-content-wrapper {
    padding: 1px var(--section-padding);
  }
}