/* =========================
   BRAND PAGE
========================= */

.madam-brand-page {
  width: 100%;
  background: var(--color-white);
}

/* =========================
   BRAND HERO
========================= */

.brand-hero {
  position: relative;
  width: 100%;
  min-height: 680px;
  background-image: var(--brand-hero-desktop);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;

  display: flex;
  align-items: center;
}

.brand-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.22) 38%,
    rgba(0, 0, 0, 0.04) 72%
  );
}

.brand-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 680px;

  display: flex;
  align-items: center;
}

.brand-hero-content {
  max-width: 650px;
  color: var(--color-white);
}

.brand-hero-eyebrow {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--color-white);
}

.brand-hero-content h1 {
  margin: 0 0 28px;
  font-family: var(--font-italic);
  font-size: clamp(54px, 6vw, 82px);
  line-height: 1.02;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -1.5px;
  color: var(--color-white);
}

.brand-hero-content p {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--color-white);
}

/* =========================
   BRAND PRODUCTS
========================= */

.brand-products-section {
  width: 100%;
  padding-block: 82px 96px;
  background: var(--color-white);
}

.brand-products-container {
  width: 100%;
}

.brand-products-heading {
  margin-bottom: 52px;
  text-align: center;
}

.brand-products-heading h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--color-dark);
}

.brand-products-heading h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--color-green);
}

/* =========================
   BRAND PRODUCTS TOOLBAR
========================= */

.brand-products-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.brand-products-count {
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(34, 34, 34, 0.62);
}

.brand-products-order-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.brand-products-order-form label {
  margin: 0;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  color: rgba(34, 34, 34, 0.62);
  white-space: nowrap;
}

.brand-products-order-form select {
  min-width: 210px;
  height: 42px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(34, 34, 34, 0.14);
  border-radius: 999px;
  background: #ffffff;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  color: var(--color-dark);
  outline: none;
  cursor: pointer;
}

.brand-products-order-form select:focus {
  border-color: var(--color-green);
}

/* =========================
   BRAND PRODUCTS GRID
========================= */

.brand-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px 28px;
}

.brand-product-card {
  display: block;
  min-width: 0;
  color: var(--color-dark);
  text-decoration: none;
}

.brand-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f6ef;
}

.brand-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 34px;
  will-change: opacity, transform;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-product-img-main {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.brand-product-img-hover {
  z-index: 2;
  opacity: 0;
  transform: scale(1.025);
}

.brand-product-card:hover .brand-product-img-main {
  opacity: 0;
  transform: scale(1.035);
}

.brand-product-card:hover .brand-product-img-hover {
  opacity: 1;
  transform: scale(1);
}

.brand-product-info {
  text-align: center;
}

.brand-product-info h3 {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--color-dark);
}

.brand-product-info p {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-dark);
}

.brand-product-info del {
  margin-right: 6px;
  font-size: 12px;
  color: rgba(34, 34, 34, 0.45);
}

.brand-product-info ins {
  color: #c86b22;
  text-decoration: none;
}

.brand-products-empty {
  padding-block: 40px;
  text-align: center;
}

.brand-products-empty p {
  margin: 0;
  font-size: 16px;
  color: rgba(34, 34, 34, 0.72);
}

/* =========================
   WHY CHOOSE SECTION
========================= */

.brand-why-section {
  width: 100%;
  padding: 80px 0 90px;
  background: #f3f6ef;
}

.brand-why-heading {
  margin-bottom: 44px;
  text-align: center;
}

.brand-why-heading h2 {
  margin: 0;
  font-family: var(--font-main);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--color-dark);
}

.brand-why-heading h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: #7f8a71;
}

.brand-why-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.brand-why-card {
  min-height: 265px;
  padding: 38px 26px 34px;
  border: 1px solid rgba(34, 34, 34, 0.10);
  border-radius: 8px;
  background: transparent;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-why-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  color: rgba(34, 34, 34, 0.78);

  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-why-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-why-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--color-dark);
}

.brand-why-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(34, 34, 34, 0.72);
}

/* =========================
   BRAND IMAGE BANNER
========================= */

.brand-image-banner {
  position: relative;
  width: 100%;
  min-height: 640px;
  background-image: var(--brand-banner-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.brand-image-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.28);
}

.brand-image-banner-inner {
  position: relative;
  z-index: 2;
  min-height: 640px;
  padding-bottom: 92px;

  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.brand-image-banner-content {
  max-width: 760px;
  color: var(--color-white);
  text-align: center;
}

.brand-image-banner-content h2 {
  margin: 0 0 18px;
  font-family: var(--font-main);
  font-size: 54px;
  line-height: 1.08;
  font-weight: 500;
  color: var(--color-white);
}

.brand-image-banner-content h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--color-white);
}

.brand-image-banner-content p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--color-white);
}

.brand-image-banner-content p strong {
  font-weight: 700;
  color: var(--color-white);
}

/* =========================
   BRAND OVERLAP SECTION
========================= */

.brand-overlap-section {
  width: 100%;
  padding-block: 90px 96px;
  background: var(--color-white);
}

.brand-overlap-container {
  position: relative;
  min-height: 560px;

  display: flex;
  align-items: center;
}

.brand-overlap-image {
  width: 68%;
  height: 560px;
  overflow: hidden;
  border-radius: 8px;
}

.brand-overlap-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-overlap-card {
  position: absolute;
  top: 50%;
  right: var(--page-padding);
  transform: translateY(-50%);
  width: 39%;
  max-width: 520px;
  min-height: 410px;
  padding: 58px 54px;
  border-radius: 8px;
  background: #f3f6ef;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-overlap-card h2 {
  margin: 0 0 22px;
  font-family: var(--font-main);
  font-size: 36px;
  line-height: 1.22;
  font-weight: 500;
  color: var(--color-dark);
}

.brand-overlap-card p {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.58;
  font-weight: 400;
  color: rgba(34, 34, 34, 0.82);
}

/* =========================
   BRAND FAQ SECTION
========================= */

.brand-faq-section {
  width: 100%;
  padding-block: 82px 96px;
  background: #f3f6ef;
}

.brand-faq-heading {
  margin-bottom: 46px;
  text-align: center;
}

.brand-faq-heading h2 {
  margin: 0 0 10px;
  font-family: var(--font-main);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--color-dark);
}

.brand-faq-heading a {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(88, 104, 79, 0.8);
  text-decoration: none;
}

.brand-faq-heading a:hover {
  color: #606b57;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.brand-faq-item {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
}

.brand-faq-question {
  width: 100%;
  min-height: 72px;
  padding: 0 28px 0 24px;
  border: none;
  background: transparent;
  cursor: pointer;

  display: grid;
  grid-template-columns: 32px 1fr 14px;
  align-items: center;
  gap: 18px;

  font-family: var(--font-main);
  color: var(--color-dark);
  text-align: left;
}

.brand-faq-icon {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(34, 34, 34, 0.72);
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
  line-height: 1;
  font-weight: 500;
  color: rgba(34, 34, 34, 0.72);
}

.brand-faq-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(34, 34, 34, 0.82);
}

.brand-faq-arrow {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid rgba(34, 34, 34, 0.72);
  border-bottom: 1.5px solid rgba(34, 34, 34, 0.72);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.brand-faq-item.is-open .brand-faq-arrow {
  transform: rotate(-135deg);
}

.brand-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.brand-faq-answer p {
  margin: 0;
  padding: 0 30px 26px 74px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(34, 34, 34, 0.72);
}

/* =========================
   BRAND SINGLE PRODUCT HERO
========================= */

.brand-single-hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  background-image: var(--brand-single-hero-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.brand-single-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.28);
}

.brand-single-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand-single-hero-content {
  width: min(100%, 560px);
  margin-right: 4%;
  color: var(--color-white);
  text-align: left;
}

.brand-single-hero-eyebrow {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-white);
}

.brand-single-hero-content h1 {
  margin: 0 0 20px;
  font-family: var(--font-main);
  font-size: clamp(54px, 6vw, 82px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: var(--color-white);
}

.brand-single-hero-content h1 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--color-white);
}

.brand-single-hero-content p {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--color-white);
}

/* =========================
   BRAND PAGE RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .brand-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-why-card:nth-child(5) {
    display: none;
  }
}

@media (max-width: 768px) {

  /* =========================
     BRAND HERO MOBILE
  ========================= */

  .brand-hero {
    min-height: 640px;
    background-image: var(--brand-hero-mobile);
    background-size: cover;
    background-position: center bottom;
    align-items: flex-start;
  }

  .brand-hero-overlay {
    background: rgba(0, 0, 0, 0.52);
  }

  .brand-hero-inner {
    min-height: 640px;
    padding-top: 56px;

    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .brand-hero-content {
    width: 100%;
    max-width: 92%;
    margin-inline: auto;
    text-align: center;
  }

  .brand-hero-eyebrow {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.35;
  }

  .brand-hero-content h1 {
    margin-bottom: 18px;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.8px;
  }

  .brand-hero-content p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
  }

  /* =========================
     BRAND PRODUCTS MOBILE
  ========================= */

  .brand-products-section {
    padding-block: 58px 70px;
  }

  .brand-products-heading {
    margin-bottom: 34px;
  }

  .brand-products-heading h2 {
    font-size: 31px;
  }

  .brand-products-toolbar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(34, 34, 34, 0.1);
  }

  .brand-products-count {
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
  }

  .brand-products-order-form {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
  }

  .brand-products-order-form label {
    font-size: 13px;
    line-height: 1;
    color: rgba(34, 34, 34, 0.72);
  }

  .brand-products-order-form select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 42px 0 18px;
    font-size: 13px;
  }

  .brand-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .brand-product-image {
    margin-bottom: 14px;
  }

  .brand-product-image img {
    padding: 18px;
  }

  .brand-product-info h3 {
    font-size: 14px;
    line-height: 1.35;
  }

  .brand-product-info p {
    font-size: 14px;
  }

  .brand-product-info del {
    font-size: 11px;
  }

  /* =========================
     WHY CHOOSE MOBILE
  ========================= */

  .brand-why-section {
    padding-block: 58px 68px;
  }

  .brand-why-heading {
    margin-bottom: 34px;
  }

  .brand-why-heading h2 {
    font-size: 31px;
  }

  .brand-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .brand-why-card {
    min-height: 210px;
    padding: 30px 18px 26px;
  }

  .brand-why-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
  }

  .brand-why-card h3 {
    font-size: 16px;
    line-height: 1.3;
  }

  .brand-why-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  /* =========================
     IMAGE BANNER MOBILE
  ========================= */

  .brand-image-banner {
    min-height: 640px;
    background-image: var(--brand-banner-mobile);
    background-size: cover;
    background-position: center;
  }

  .brand-image-banner-overlay {
    background: rgba(0, 0, 0, 0.42);
  }

  .brand-image-banner-inner {
    min-height: 640px;
    padding-bottom: 64px;

    align-items: flex-end;
    justify-content: center;
  }

  .brand-image-banner-content {
    max-width: 92%;
    margin-inline: auto;
    text-align: center;
  }

  .brand-image-banner-content h2 {
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1.08;
  }

  .brand-image-banner-content p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* =========================
     OVERLAP IMAGE + TEXT MOBILE
  ========================= */

  .brand-overlap-section {
    padding-block: 58px 70px;
  }

  .brand-overlap-container {
    min-height: auto;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-overlap-image {
    width: 100%;
    height: 430px;
    border-radius: 8px;
  }

  .brand-overlap-card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    z-index: 2;
    width: calc(100% - 8%);
    max-width: none;
    min-height: auto;
    margin: -64px auto 0;
    padding: 38px 26px;
    text-align: center;
  }

  .brand-overlap-card h2 {
    font-size: 31px;
    line-height: 1.18;
  }

  .brand-overlap-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  /* =========================
     FAQS MOBILE
  ========================= */

  .brand-faq-section {
    padding-block: 58px 70px;
  }

  .brand-faq-heading {
    margin-bottom: 34px;
  }

  .brand-faq-heading h2 {
    font-size: 31px;
  }

  .brand-faq-heading a {
    font-size: 14px;
  }

  .brand-faq-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand-faq-question {
    min-height: 68px;
    padding: 0 18px;
    grid-template-columns: 28px 1fr 12px;
    gap: 14px;
  }

  .brand-faq-icon {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .brand-faq-title {
    font-size: 15px;
    line-height: 1.35;
  }

  .brand-faq-answer p {
    padding: 0 22px 22px 60px;
    font-size: 14px;
    line-height: 1.55;
  }

  /* =========================
     BRAND SINGLE HERO MOBILE
  ========================= */

  .brand-single-hero {
    min-height: 640px;
    background-image: var(--brand-single-hero-mobile);
    background-position: center;
    background-size: cover;
  }

  .brand-single-hero-overlay {
    background: rgba(0, 0, 0, 0.36);
  }

  .brand-single-hero-inner {
    min-height: 640px;
    align-items: center;
    justify-content: center;
  }

  .brand-single-hero-content {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
  }

  .brand-single-hero-eyebrow {
    margin-bottom: 14px;
    font-size: 15px;
  }

  .brand-single-hero-content h1 {
    margin-bottom: 16px;
    font-size: 52px;
  }

  .brand-single-hero-content p {
    font-size: 16px;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .brand-hero,
  .brand-hero-inner {
    min-height: 600px;
  }

  .brand-hero-inner {
    padding-top: 48px;
  }

  .brand-hero-content h1 {
    font-size: 38px;
  }

  .brand-products-order-form {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
  }

  .brand-products-order-form select {
    height: 40px;
    font-size: 12.5px;
  }

  .brand-product-image img {
    padding: 14px;
  }

  .brand-why-card {
    min-height: 195px;
    padding: 26px 14px 24px;
  }

  .brand-why-icon {
    width: 38px;
    height: 38px;
  }

  .brand-image-banner,
  .brand-image-banner-inner {
    min-height: 600px;
  }

  .brand-image-banner-inner {
    padding-bottom: 52px;
  }

  .brand-image-banner-content h2 {
    font-size: 34px;
  }

  .brand-overlap-image {
    height: 360px;
  }

  .brand-overlap-card {
    width: calc(100% - 6%);
    margin-top: -52px;
    padding: 32px 22px;
  }

  .brand-overlap-card h2 {
    font-size: 28px;
  }

  .brand-faq-question {
    padding-inline: 16px;
  }

  .brand-faq-answer p {
    padding-left: 58px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  .brand-product-image img,
  .brand-faq-answer,
  .brand-faq-arrow {
    transition-duration: 0.01ms !important;
  }
}