/* =========================================================
   CUSTOM SUITS PAGE
   Uses the colour variables and shared components in global.css
   ========================================================= */

.custom-suits-page {
  --custom-paper: var(--paper-light, #f7f2e9);
  --custom-paper-deep: var(--paper, #eee6d8);
  --custom-gold: var(--gold, #b38e59);
  --custom-gold-hover: var(--gold-hover, #b3946b);
  --custom-green: var(--dark-bg, #091613);
  --custom-green-soft: var(--dark-secondary, #0d1d19);
  --custom-ink: #111513;
  --custom-line: rgba(17, 21, 19, 0.14);

  /* padding-top: 72px; */
  overflow: hidden;
  color: var(--custom-ink);
  background: var(--custom-paper);
}

.custom-page-container {
  width: min(100%, 1460px);
  padding-inline: clamp(24px, 4.8vw, 76px);
}

.custom-section-heading {
  margin-bottom: 18px;
  text-align: center;
}

.custom-section-heading h2 {
  margin: 0;
  color: var(--custom-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
}

.custom-section-heading--light h2 {
  color: #f7f0e4;
}

.custom-heading-ornament {
  position: relative;
  display: block;
  width: 82px;
  height: 13px;
  margin: 8px auto 0;
}

.custom-heading-ornament::before,
.custom-heading-ornament::after {
  position: absolute;
  top: 50%;
  width: 33px;
  height: 1px;
  content: "";
  background: var(--custom-gold);
}

.custom-heading-ornament::before {
  left: 0;
}

.custom-heading-ornament::after {
  right: 0;
}

.custom-heading-ornament i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--custom-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.custom-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.45px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.custom-btn:hover {
  transform: translateY(-2px);
}

.custom-btn--gold {
  color: #07110e;
  background: var(--custom-gold);
  border-color: var(--custom-gold);
}

.custom-btn--gold:hover {
  color: #07110e;
  background: var(--custom-gold-hover);
  border-color: var(--custom-gold-hover);
}

.custom-btn--outline {
  color: #fff;
  background: rgba(4, 16, 12, 0.42);
  border-color: var(--custom-gold);
}

.custom-btn--outline:hover {
  color: #07110e;
  background: var(--custom-gold);
}

.custom-btn--outline .fa-whatsapp {
  color: #45d572;
  font-size: 1.15rem;
}

.custom-btn--outline:hover .fa-whatsapp {
  color: #0a6f31;
}

/* HERO */
.custom-suits-hero {
  position: relative;
  min-height: 568px;
  overflow: hidden;
  color: #fff;
  background: #030706;
}

.custom-suits-hero::before {
  position: absolute;
  inset: 0 0 0 34%;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 7, 6, 0.92) 0%, rgba(3, 7, 6, 0.18) 33%, rgba(3, 7, 6, 0.02) 70%),
    url("../img/custom-suits/CSHERO.webp") center 44% / cover no-repeat;
  background-position: top;
}

.custom-suits-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, #030706 0%, rgba(3, 7, 6, 0.99) 35%, rgba(3, 7, 6, 0.60) 49%, rgba(3, 7, 6, 0.04) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.17), transparent 38%);
}

.custom-suits-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 468px;
  max-width: 565px;
  flex-direction: column;
  justify-content: center;
  padding-block: 100px 48px;
}

.custom-suits-hero h1 {
  margin: 0 0 6px;
  color: #fffaf3;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.05rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.97;
}

.custom-suits-hero__subtitle {
  margin: 0 0 19px;
  color: #c4a06a;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2vw, 1.68rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
}

.custom-suits-hero__copy {
  max-width: 520px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.91);
  font-size: 0.82rem;
  line-height: 1.72;
}

.custom-suits-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* BENEFITS */
.custom-benefits {
  padding: 26px 0 31px;
  background: var(--custom-paper);
  border-bottom: 1px solid var(--custom-line);
}

.custom-benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 5px;
}

.custom-benefit {
  min-height: 170px;
  padding: 7px clamp(18px, 2vw, 32px) 5px;
  border-right: 1px solid var(--custom-line);
  text-align: center;
}

.custom-benefit:last-child {
  border-right: 0;
}

.custom-benefit__icon {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--custom-gold);
  font-size: 2.55rem;
  line-height: 1;
}

.custom-benefit__icon--tape {
  font-size: 2.2rem;
  transform: rotate(-8deg);
}

.custom-benefit h3 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.custom-benefit p {
  max-width: 190px;
  margin: 0 auto;
  color: #252a27;
  font-size: 0.67rem;
  line-height: 1.55;
}

/* PROCESS */
.custom-process {
  padding: 27px 0 34px;
  background: #fbf7ef;
}

.custom-process__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 24px);
  margin-top: 4px;
}

.custom-process-card {
  position: relative;
  min-width: 0;
  text-align: center;
}

.custom-process-card:not(:last-child)::after {
  position: absolute;
  top: 56px;
  right: calc(clamp(14px, 1.5vw, 24px) / -1 - 4px);
  content: "›";
  color: var(--custom-gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.05rem;
  font-weight: 400;
  line-height: 1;
}

.custom-process-card__image {
  position: relative;
  aspect-ratio: 1 / 0.94;
  overflow: visible;
  border: 1px solid rgba(179, 142, 89, 0.48);
  background: #202823;
}

.custom-process-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.custom-process-card__image span {
  position: absolute;
  bottom: -16px;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--custom-gold);
  border: 2px solid #fbf7ef;
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  transform: translateX(-50%);
}

.custom-process-card h3 {
  margin: 25px 0 5px;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.custom-process-card p {
  max-width: 165px;
  margin: 0 auto;
  color: #2d322f;
  font-size: 0.64rem;
  line-height: 1.5;
}

/* FABRIC BRANDS */
.custom-fabrics {
  position: relative;
  padding: 28px 0 25px;
  overflow: hidden;
  color: #f6efe2;
  background:
    linear-gradient(rgba(3, 16, 13, 0.68), rgba(3, 16, 13, 0.73)),
    url("../img/custom-suits/premium-fabric-background.webp") center / cover no-repeat;
  border-top: 1px solid rgba(179, 142, 89, 0.22);
  border-bottom: 1px solid rgba(179, 142, 89, 0.24);
}

.custom-fabrics::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(179, 142, 89, 0.09), transparent 48%);
}

.custom-fabrics .custom-page-container {
  position: relative;
  z-index: 1;
}

.custom-fabrics__brands {
  display: grid;
  grid-template-columns: 1.12fr 0.9fr 1.55fr 1.35fr 0.9fr 1fr;
  align-items: center;
  gap: clamp(20px, 2.8vw, 45px);
  margin: 14px 0 20px;
}

.custom-fabric-brand {
  min-width: 0;
  color: #d5b277;
  text-align: center;
}

.custom-fabric-brand strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 1.75vw, 1.72rem);
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.custom-fabric-brand small {
  display: block;
  margin-top: 8px;
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 2.2px;
  line-height: 1;
  text-transform: uppercase;
}

.custom-fabric-brand--script strong,
.custom-fabric-brand--script-small strong {
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

.custom-fabric-brand--script strong {
  font-size: clamp(1.8rem, 2.45vw, 2.45rem);
}

.custom-fabric-brand--script-small strong {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.custom-fabric-brand--wide strong {
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  letter-spacing: 2.3px;
}

.custom-fabrics__button {
  min-width: 185px;
}

/* FINAL CTA */
.custom-consultation {
    height: 200px;
  display: grid;
  /* min-height: 190px; */
  grid-template-columns: minmax(245px, 0.82fr) minmax(430px, 1.55fr) minmax(310px, 0.92fr);
  align-items: stretch;
  color: #fff;
  background:
    linear-gradient(90deg, #202828 0%, #27302f 50%, #1e2825 100%);
}

.custom-consultation__image {
  position: relative;
  overflow: hidden;
  background: #070c0b;
}

.custom-consultation__image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 55%, #202828 100%);
}

.custom-consultation__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.custom-consultation__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 29px 35px;
  text-align: center;
}

.custom-consultation__content h2 {
  margin: 0 0 6px;
  color: #fffaf2;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
}

.custom-consultation__content p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
}

.custom-consultation__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.custom-consultation__details {
  align-self: center;
  margin: 20px clamp(24px, 4vw, 55px) 20px 0;
  padding: 21px 23px;
  background: #06261c;
  border: 1px solid rgba(179, 142, 89, 0.22);
}

.custom-contact-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.custom-contact-line + .custom-contact-line {
  margin-top: 13px;
}

.custom-contact-line > i {
  padding-top: 2px;
  color: var(--custom-gold);
  font-size: 1.12rem;
}

.custom-contact-line strong,
.custom-contact-line span,
.custom-contact-line a {
  display: block;
}

.custom-contact-line strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.custom-contact-line span,
.custom-contact-line a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.58rem;
  line-height: 1.45;
}

.custom-contact-line a:hover {
  color: var(--custom-gold);
}

/* RESPONSIVE */
@media (max-width: 1199.98px) {
  .custom-suits-page {
    /* padding-top: 68px; */
  }

  .custom-suits-hero,
  .custom-suits-hero__content {
    min-height: 440px;
  }

  .custom-benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .custom-benefit:nth-child(3) {
    border-right: 0;
  }

  .custom-benefit:nth-child(n + 4) {
    margin-top: 20px;
  }

  .custom-process__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 30px;
  }

  .custom-process-card:nth-child(3)::after,
  .custom-process-card:nth-child(6)::after {
    display: none;
  }

  .custom-process-card__image {
    aspect-ratio: 1.22 / 1;
  }

  .custom-fabrics__brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 30px;
  }

  .custom-consultation {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .custom-consultation__details {
    grid-column: 1 / -1;
    width: min(620px, calc(100% - 48px));
    margin: 0 auto 26px;
  }
}

@media (max-width: 991.98px) {
  .custom-page-container {
    padding-inline: 30px;
  }

  .custom-suits-hero::before {
    left: 20%;
  }

  .custom-suits-hero::after {
    background: linear-gradient(90deg, rgba(3, 7, 6, 0.98) 0%, rgba(3, 7, 6, 0.92) 42%, rgba(3, 7, 6, 0.32) 100%);
  }

  .custom-suits-hero__content {
    max-width: 525px;
  }

  .custom-benefit {
    padding-inline: 20px;
  }
}

@media (max-width: 767.98px) {
  .custom-suits-page {
    /* padding-top: 64px; */
  }

  .custom-page-container {
    padding-inline: 20px;
  }

  .custom-section-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .custom-suits-hero,
  .custom-suits-hero__content {
    min-height: 570px;
  }

  .custom-suits-hero::before {
    inset: 0;
    background: url("../img/custom-suits/CSHERO.webp") 61% center / cover no-repeat;
  }

  .custom-suits-hero::after {
    background:
      linear-gradient(90deg, rgba(3, 7, 6, 0.94), rgba(3, 7, 6, 0.48)),
      linear-gradient(0deg, rgba(3, 7, 6, 0.93) 0%, rgba(3, 7, 6, 0.20) 58%, rgba(3, 7, 6, 0.35) 100%);
  }

  .custom-suits-hero__content {
    justify-content: flex-end;
    padding-block: 88px 45px;
  }

  .custom-suits-hero h1 {
    font-size: clamp(3rem, 13vw, 4.25rem);
  }

  .custom-suits-hero__copy {
    max-width: 100%;
    font-size: 0.78rem;
  }

  .custom-suits-hero__actions,
  .custom-consultation__actions {
    width: 100%;
    flex-direction: column;
  }

  .custom-suits-hero__actions .custom-btn,
  .custom-consultation__actions .custom-btn {
    width: 100%;
  }

  .custom-benefits {
    padding-block: 28px;
  }

  .custom-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .custom-benefit,
  .custom-benefit:nth-child(3) {
    border-right: 1px solid var(--custom-line);
  }

  .custom-benefit:nth-child(even) {
    border-right: 0;
  }

  .custom-benefit:nth-child(n + 3) {
    margin-top: 22px;
  }

  .custom-benefit:last-child {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .custom-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .custom-process-card::after {
    display: none;
  }

  .custom-process-card__image {
    aspect-ratio: 1 / 0.9;
  }

  .custom-process-card h3 {
    font-size: 0.88rem;
  }

  .custom-process-card p {
    font-size: 0.61rem;
  }

  .custom-fabrics__brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .custom-fabric-brand strong {
    white-space: normal;
  }

  .custom-consultation {
    grid-template-columns: 1fr;
  }

  .custom-consultation__image {
    min-height: 260px;
  }

  .custom-consultation__image::after {
    background: linear-gradient(0deg, #202828 0%, transparent 50%);
  }

  .custom-consultation__image img {
    object-position: center 18%;
  }

  .custom-consultation__content {
    padding: 12px 22px 28px;
  }

  .custom-consultation__details {
    width: calc(100% - 40px);
    margin-bottom: 25px;
  }
}

@media (max-width: 479.98px) {
  .custom-page-container {
    padding-inline: 16px;
  }

  .custom-suits-hero,
  .custom-suits-hero__content {
    min-height: 610px;
  }

  .custom-suits-hero__content {
    padding-bottom: 28px;
  }

  .custom-suits-hero h1 {
    font-size: 3rem;
  }

  .custom-suits-hero__subtitle {
    font-size: 1.22rem;
  }

  .custom-benefits__grid {
    grid-template-columns: 1fr;
  }

  .custom-benefit,
  .custom-benefit:nth-child(3),
  .custom-benefit:nth-child(even),
  .custom-benefit:last-child {
    grid-column: auto;
    margin-top: 0;
    padding-block: 17px;
    border-right: 0;
    border-bottom: 1px solid var(--custom-line);
  }

  .custom-benefit:last-child {
    border-bottom: 0;
  }

  .custom-benefit__icon {
    margin-bottom: 3px;
  }

  .custom-process__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .custom-process-card__image {
    aspect-ratio: 1.25 / 1;
  }

  .custom-process-card p {
    max-width: 225px;
  }

  .custom-fabrics__brands {
    grid-template-columns: 1fr;
  }

  .custom-consultation__image {
    min-height: 225px;
  }

  .custom-consultation__details {
    width: calc(100% - 32px);
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-btn,
  .custom-btn:hover {
    transform: none;
    transition: none;
  }
}