/*
 * brands.css
 * Custom styles for the brands / product-listing page.
 * Depends on: layout.css (design tokens, fonts, --bg-tinted, etc.)
 */


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

.esc-brands-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100vw;
  height: 430px;
  overflow: hidden;
  isolation: isolate;
  background-position: center;
  background-repeat: no-repeat;
}

.esc-brands-hero--brands {
  background: url("../../img/brands-hero.png");
  background-size: cover;
}

/* Cream gradient overlay */
.esc-brands-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(242, 234, 221, 0.90) 0%,
    rgba(242, 234, 221, 0.70) 50%,
    rgba(242, 234, 221, 0.95) 100%
  );
}

/* Content container */
.esc-brands-hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  padding: 0 192px;
  min-height: 280px;
}

/* Eyebrow */
.esc-brands-hero__eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: 2.534px;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Title (two lines, different type treatments) */
.esc-brands-hero__title {
  display: flex;
  flex-direction: column;
  margin: 0px 0px 8px 0px;
  width: 100%;
  line-height: 0.98;
}

.esc-brands-hero__title-line1,
.esc-brands-hero__title-line2 {
  display: block;
  font-size: 72px;
  letter-spacing: -1.8px;
}

.esc-brands-hero__title-line1 {
  font-family: "Cormorant-Garamond";
  font-weight: 400;
  color: var(--color-text);
}

.esc-brands-hero__title-line2 {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

/* Description */
#esc-brands-hero__description span {
  display: block; /* was inside a bare <span>; block lets max-width apply */
  max-width: 800px;
  font-family: "Poppins";
  font-weight: 400;
  font-size: 18px;
  line-height: 29px;
  color: var(--color-text-faint);
}

/* --- Brand hero: mobile --- */
@media (max-width: 768px) {
  .esc-brands-hero {
    height: 460px;
    display: block;
    padding: 64px 24px 36px;
    width: unset;
  }

  .esc-brands-hero__container {
    padding: 0 12px;
    gap: 20px;
  }

  .esc-brands-hero__title-line1,
  .esc-brands-hero__title-line2 {
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -1.2px;
    max-width: 100%;
  }

  .esc-brands-hero__description {
    font-size: 16px;
    line-height: 26px;
  }
}


/* ==========================================================
   BRANDS LIST  (PrestaShop grid)
========================================================== */

#brands {
  width: 100vw;
  background: var(--color-bg-soft);
}

#esc-brand-list {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 48px;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 24px;
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

/* ==========================================================
   BRAND CARD
========================================================== */

.esc-brand-card {
  width: 600px;
  height: 350px;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;

  padding: 32px;

  background: var(--color-surface-alt);
  border: 1px solid rgba(26, 47, 27, 0.1);
  border-radius: 20px;
}

.esc-brand-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.esc-brand-card-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;

  min-width: 0;
  flex: 1;
}

.esc-brand-card-subtitle {
  margin: 0;

  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;

  color: var(--color-accent);
}

.esc-brand-card-title {
  margin: 0;
}

.esc-brand-card-title a {
  text-decoration: none;

  font-family: 'Cormorant-Garamond', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.3px;

  color: var(--color-text);
}

.esc-brand-card-title a:hover {
  opacity: 0.8;
}

.esc-brand-card-monogram {
  flex-shrink: 0;

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

  width: 64px;
  height: 64px;

  border-radius: 999px;

  background: rgba(168, 191, 168, 0.4);
  border: 1px solid rgba(108, 109, 51, 0.3);
}

.esc-brand-card-monogram span {
  font-family: 'Cormorant-Garamond', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;

  color: var(--color-text);
}

.esc-brand-card-location {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 12px;
}

.esc-brand-card-location-icon {
  width: 12px;
  height: 12px;

  color: var(--color-muted);

  flex-shrink: 0;
}

.esc-brand-card-location-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  line-height: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;

  color: var(--color-muted);
}

.esc-brand-card-description {
  margin-top: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;

  color: rgba(26, 47, 27, 0.75);
}

.esc-brand-card-description p {
  margin: 0;
}

.esc-brand-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 20px;
}

.esc-brand-card-tag {
  display: flex;
  align-items: center;

  padding: 4px 12px;

  border-radius: 999px;

  background: rgba(168, 191, 168, 0.4);
  border: 1px solid rgba(108, 109, 51, 0.2);

  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;

  color: var(--color-text);
}

.esc-brand-card-footer {
  margin-top: 28px;
}

.esc-brand-card-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;

  text-decoration: none;
}

.esc-brand-card-link span {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;

  color: var(--color-text);
}

.esc-brand-card-link-icon {
  width: 16px;
  height: 16px;

  color: var(--color-text);
}

.esc-brand-card-link:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {

  #brands {
    width: unset;
  }

  .esc-brand-card {
    width: unset;
    height: unset;
    min-width: 320px;
    margin: 0 auto;
    flex: 0 0 320px;
  }

  .esc-brand-card-header {
    gap: 16px;
  }

  .esc-brand-card-title a {
    font-size: 26px;
  }

}


/* ==========================================================
   INDIVIDUAL BRAND PAGE
========================================================== */
.esc-brand {
  background: var(--color-bg-soft);
}

.esc-brand__hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100vw;
  height: 600px;
  overflow: hidden;
  isolation: isolate;
  background-position: center;
  background-repeat: no-repeat;
}

/* Cream gradient overlay */
.esc-brand__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(247, 243, 235, 0.7) 0%, rgba(247, 243, 235, 0.85) 50%, #F7F3EB 100%);
}

/* Content container */
.esc-brand__hero-container{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  padding: 0px 192px 32px;
  min-height: 280px;
}

/* Eyebrow */
.esc-brand__hero-eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: 2.534px;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Title (two lines, different type treatments) */
.esc-brand__hero-title {
  display: flex;
  flex-direction: column;
  margin: 0px 0px 8px 0px;
  width: 100%;
  line-height: 0.98;
}

.esc-brand__hero-title-line1,
.esc-brand__hero-title-line2 {
  display: block;
  font-size: 72px;
  letter-spacing: -1.8px;
}

.esc-brand__hero-title-line1 {
  font-family: "Cormorant-Garamond";
  font-weight: 400;
  color: var(--color-text);
}

.esc-brand__hero-title-line2 {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.esc-brand__hero-subtitle {
  font-family: Fraunces;
  font-weight: 400;
  font-style: Italic;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: var(--color-accent);
} 

.esc-brand__hero-location {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 12px;
}

.esc-brand__hero-location-icon {
  width: 12px;
  height: 12px;

  color: var(--color-muted);

  flex-shrink: 0;
}

.esc-brand__hero-location-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  line-height: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;

  color: var(--color-muted);
}


/* Description */
#esc-brand__hero-description {
  display: block;
  max-width: 800px;
  font-family: "Poppins";
  font-weight: 400;
  font-size: 18px;
  line-height: 29px;
  color: var(--color-text-faint);
}

#esc-breadcrumb {
  margin-right: unset;
  margin-left: unset;
}


/* ==========================================
   Brand story
   ========================================== */

.esc-brand-story {
  padding: 96px 0px;
  background: #f7f3eb;
}

.esc-brand-story__container {
  display: flex;
  align-items: flex-start;
  gap: 64px;

  width: 100%;
  padding: 0px 192px;
  margin: 0 auto;
}

/* Left column
   ========================================== */

.esc-brand-story__sidebar {
  display: flex;
  flex: 0 0 425px;
  flex-direction: column;
  align-items: flex-start;
}

.esc-brand-story__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 0;

  color: #57735d;
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 2.534px;
  text-transform: uppercase;
}

.esc-brand-story__title {
  display: flex;
  flex-direction: column;

  margin: 23px 0 0;

  color: #1a2f1b;
  font-family: "Cormorant-Garamond", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 50px;
  letter-spacing: -0.48px;
}

.esc-brand-story__title em {
  color: #6c6d33;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
}

/* Definition list */

.esc-brand-story__details {
  display: flex;
  flex-direction: column;
  gap: 20px;

  width: 100%;
  margin: 40px 0 0;
}

.esc-brand-story__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.esc-brand-story__detail dt {
  margin: 0;

  color: #57735d;
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: 2.534px;
  text-transform: uppercase;
}

.esc-brand-story__detail dd {
  margin: 0;

  color: rgba(26, 47, 27, 0.85);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.esc-brand-story__detail:first-child dd {
  color: #1a2f1b;
  font-family: "Cormorant-Garamond", serif;
  font-size: 20px;
  line-height: 28px;
}

/* Right column
   ========================================== */

.esc-brand-story__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 24px;

  min-width: 0;
}

.esc-brand-story__content > p {
  margin: 0;

  color: rgba(26, 47, 27, 0.85);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 29px;
}

/* Quotation */

.esc-brand-story__quote {
  position: relative;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 16px;

  width: 100%;
  margin: 0;
  padding: 56px 40px 40px;

  background: rgba(168, 191, 168, 0.3);
  border: 1px solid rgba(108, 109, 51, 0.2);
  border-radius: 20px;
}

.esc-brand-story__quote-icon {
  position: absolute;
  top: 0;
  left: 32px;

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

  width: 32px;
  height: 32px;

  color: #6c6d33;
  background: #f7f3eb;
  border-radius: 50%;

  transform: translateY(-1px);
}

.esc-brand-story__quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.esc-brand-story__quote blockquote p {
  margin: 0;

  color: #1a2f1b;
  font-family: "Fraunces", serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
  line-height: 41px;
}

.esc-brand-story__quote figcaption {
  color: #57735d;
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 2.534px;
  text-transform: uppercase;
}

/* --- BRAND hero: mobile --- */
@media (max-width: 768px) {
  .esc-brand__hero {
    display: block;
    padding: 64px 24px 0px;
    width: 100%;
  }

  .esc-brand__hero-container {
    padding: 0 12px;
    gap: 20px;
  }

  .esc-brand__hero-title-line1,
  .esc-brand__hero-title-line2 {
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -1.2px;
    max-width: 100%;
  }

  .esc-brand_hero-description {
    font-size: 16px;
    line-height: 26px;
  }

  .esc-brand-story {
    padding: 0px;
  }

  .esc-brand-story__container {
    flex-direction: column;
    padding: 36px 24px 36px;
  }
}
