/* =========================================================
   Marston Robing – home page
   Brand colours match the Admin theme: navy #002557 · gold #B69D74
   Every rule is scoped under .mr-home so no other page is affected.
   ========================================================= */

.mr-home {
    --mr-navy: #002557;
    --mr-navy-900: #001a3f;
    --mr-navy-700: #0a3166;
    --mr-gold: #b69d74;
    --mr-gold-300: #d6c4a3;
    --mr-gold-100: #f3ede2;
    --mr-ink: #1d2433;
    --mr-muted: #5d6577;
    --mr-line: #e4e7ec;
    --mr-page: #f7f6f2;
    color: var(--mr-ink);
}

.mr-home .mr-section {
    padding: 72px 0;
}

.mr-home .mr-section--tint {
    background: var(--mr-page);
}

.mr-home .mr-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mr-gold);
    margin-bottom: 10px;
}

.mr-home .mr-heading {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--mr-navy);
    margin: 0;
}

.mr-home .mr-section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}

.mr-home .mr-lead {
    font-size: 17px;
    line-height: 1.75;
    color: var(--mr-muted);
    margin: 16px 0 0;
}

.mr-home .mr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 30px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .25s, color .25s, transform .25s, box-shadow .25s;
}

.mr-home .mr-btn--gold {
    background: var(--mr-gold);
    color: var(--mr-navy-900);
}

.mr-home .mr-btn--gold:hover {
    background: #fff;
    color: var(--mr-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
}

.mr-home .mr-btn--navy {
    background: var(--mr-navy);
    color: #fff;
}

.mr-home .mr-btn--navy:hover {
    background: var(--mr-gold);
    color: var(--mr-navy-900);
}

/* ---------------------------------------------------------
   Hero slider (markup keeps the theme's slick1 hooks)
   --------------------------------------------------------- */
.mr-home .mr-hero .item-slick1 {
    position: relative;
    height: min(78vh, 720px) !important;
    min-height: 460px;
}

.mr-home .mr-hero .item-slick1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 26, 63, .88) 0%, rgba(0, 37, 87, .62) 42%, rgba(0, 37, 87, .08) 78%);
}

.mr-home .mr-hero__inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 620px;
    padding: 40px 0;
}

.mr-home .mr-hero__eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mr-gold-300);
    padding-left: 54px;
    position: relative;
}

.mr-home .mr-hero__eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--mr-gold);
}

.mr-home .mr-hero__title {
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1.08;
    font-weight: 700;
    color: #fff;
    margin: 18px 0 30px;
}

.mr-home .mr-hero .arrow-slick1 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 30px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
}

.mr-home .mr-hero .arrow-slick1:hover {
    background: var(--mr-gold);
    border-color: var(--mr-gold);
    color: var(--mr-navy-900);
}

.mr-home .mr-hero .next-slick1 { right: 24px; }
.mr-home .mr-hero .prev-slick1 { left: 24px; }

/* ---------------------------------------------------------
   Trust strip
   --------------------------------------------------------- */
.mr-home .mr-trust {
    background: var(--mr-navy);
    color: #fff;
}

.mr-home .mr-trust__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mr-home .mr-trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 20px;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.mr-home .mr-trust__item:first-child {
    border-left: 0;
    padding-left: 0;
}

.mr-home .mr-trust__icon {
    flex: 0 0 auto;
    font-size: 26px;
    color: var(--mr-gold);
}

.mr-home .mr-trust__title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.mr-home .mr-trust__text {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .72);
}

/* ---------------------------------------------------------
   Categories
   --------------------------------------------------------- */
.mr-home .mr-cats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.mr-home .mr-cat {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: var(--mr-gold-100);
    box-shadow: 0 10px 30px -18px rgba(0, 37, 87, .45);
}

.mr-home .mr-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.mr-home .mr-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 26, 63, 0) 45%, rgba(0, 26, 63, .88) 100%);
    transition: opacity .3s;
}

.mr-home .mr-cat__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 20px;
    color: #fff;
}

.mr-home .mr-cat__name {
    display: block;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

.mr-home .mr-cat__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mr-gold-300);
}

.mr-home .mr-cat__link::after {
    content: "\2192";
    display: inline-block;
    margin-left: 6px;
    transition: transform .3s;
}

.mr-home .mr-cat:hover img,
.mr-home .mr-cat:focus-visible img {
    transform: scale(1.07);
}

.mr-home .mr-cat:hover .mr-cat__link::after {
    transform: translateX(5px);
}

.mr-home .mr-cat:focus-visible {
    outline: 3px solid var(--mr-gold);
    outline-offset: 3px;
}

/* ---------------------------------------------------------
   Products
   --------------------------------------------------------- */
.mr-home .mr-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
}

.mr-home .mr-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--mr-line);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .3s, transform .3s, border-color .3s;
}

.mr-home .mr-product:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 18px 36px -20px rgba(0, 37, 87, .45);
}

.mr-home .mr-product__pic {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #fff;
}

/* Product photos are 2:3 on white; contain keeps heads and hems uncropped */
.mr-home .mr-product__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s ease;
}

.mr-home .mr-product:hover .mr-product__pic img {
    transform: scale(1.05);
}

.mr-home .mr-product__quick {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, 20px);
    opacity: 0;
    min-height: 40px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--mr-navy);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4);
    transition: opacity .3s, transform .3s, background-color .25s, color .25s;
}

.mr-home .mr-product:hover .mr-product__quick,
.mr-home .mr-product__quick:focus-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.mr-home .mr-product__quick:hover {
    background: var(--mr-navy);
    color: #fff;
}

.mr-home .mr-product__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mr-home .mr-product__name {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--mr-ink);
}

.mr-home .mr-product__name:hover {
    color: var(--mr-navy-700);
    text-decoration: underline;
}

.mr-home .mr-product__price {
    margin-top: auto;
    font-size: 16px;
    font-weight: 700;
    color: var(--mr-navy);
}

.mr-home .mr-products__more {
    text-align: center;
    margin-top: 44px;
}

/* ---------------------------------------------------------
   Why Marston Robing
   --------------------------------------------------------- */
.mr-home .mr-why {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.mr-home .mr-why__card {
    grid-column: span 2;
    background: #fff;
    border: 1px solid var(--mr-line);
    border-top: 3px solid var(--mr-gold);
    border-radius: 14px;
    padding: 28px 26px;
}

/* 5 cards: second row of two sits wider */
.mr-home .mr-why__card:nth-child(n+4) {
    grid-column: span 3;
}

.mr-home .mr-why__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mr-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.mr-home .mr-why__title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mr-navy);
    margin: 0 0 10px;
}

.mr-home .mr-why__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mr-muted);
    margin: 0;
}

.mr-home .mr-why__text a {
    color: var(--mr-navy-700);
    text-decoration: underline;
}

/* ---------------------------------------------------------
   Closing banner
   --------------------------------------------------------- */
.mr-home .mr-cta {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 40px;
    border-radius: 16px;
    background: linear-gradient(120deg, var(--mr-navy-900), var(--mr-navy-700));
    color: #fff;
}

.mr-home .mr-cta__text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 720px;
}

.mr-home .mr-cta .mr-btn {
    flex: 0 0 auto;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1199px) {
    .mr-home .mr-cats { grid-template-columns: repeat(3, 1fr); }
    .mr-home .mr-products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .mr-home .mr-section { padding: 56px 0; }
    .mr-home .mr-heading { font-size: 28px; }
    .mr-home .mr-trust__list { grid-template-columns: repeat(2, 1fr); }
    .mr-home .mr-trust__item { padding: 18px 16px; }
    .mr-home .mr-trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
    .mr-home .mr-trust__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
    .mr-home .mr-why__card,
    .mr-home .mr-why__card:nth-child(n+4) { grid-column: span 3; }
    .mr-home .mr-why__card:last-child { grid-column: span 6; }
    .mr-home .mr-cta { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
}

@media (max-width: 767px) {
    .mr-home .mr-hero .item-slick1 { height: 70vh !important; min-height: 420px; }
    .mr-home .mr-hero .item-slick1::before {
        background: linear-gradient(180deg, rgba(0, 26, 63, .45) 0%, rgba(0, 26, 63, .85) 100%);
    }
    .mr-home .mr-hero__inner { justify-content: flex-end; padding-bottom: 48px; }
    .mr-home .mr-hero .arrow-slick1 { display: none !important; }
    .mr-home .mr-cats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .mr-home .mr-cat:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
    .mr-home .mr-products { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
    .mr-home .mr-product__quick { display: none; }
    .mr-home .mr-product__body { padding: 12px 12px 14px; }
    .mr-home .mr-why { grid-template-columns: 1fr; }
    .mr-home .mr-why__card,
    .mr-home .mr-why__card:nth-child(n+4),
    .mr-home .mr-why__card:last-child { grid-column: auto; }
}

@media (max-width: 479px) {
    .mr-home .mr-trust__list { grid-template-columns: 1fr; }
    .mr-home .mr-trust__item,
    .mr-home .mr-trust__item:nth-child(odd) { border-left: 0; padding-left: 0; }
    .mr-home .mr-trust__item + .mr-trust__item { border-top: 1px solid rgba(255, 255, 255, .12); }
}

@media (prefers-reduced-motion: reduce) {
    .mr-home * { transition: none !important; }
}

/* ---------------------------------------------------------
   Typography
   The Theme ships one @font-face per weight (Poppins-Regular,
   Poppins-SemiBold, ...), so weight is chosen by family name.
   --------------------------------------------------------- */
.mr-home,
.mr-home p,
.mr-home a,
.mr-home span {
    font-family: Poppins-Regular, Arial, sans-serif;
}

.mr-home .mr-product__name {
    font-family: Poppins-Medium, Arial, sans-serif;
    font-weight: normal;
}

.mr-home .mr-eyebrow,
.mr-home .mr-btn,
.mr-home .mr-hero__eyebrow,
.mr-home .mr-trust__title,
.mr-home .mr-cat__name,
.mr-home .mr-cat__link,
.mr-home .mr-product__quick,
.mr-home .mr-why__title {
    font-family: Poppins-SemiBold, Arial, sans-serif;
    font-weight: normal;
}

.mr-home .mr-product__price,
.mr-home .mr-why__num {
    font-family: Poppins-Bold, Arial, sans-serif;
    font-weight: normal;
}

.mr-home .mr-heading,
.mr-home .mr-hero__title {
    font-family: PlayfairDisplay-Bold, Georgia, serif;
    font-weight: normal;
}
