@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");

/* ==================================================
   Variables
================================================== */

:root {
    --textile-cream: #f1e8d8;
    --textile-gold: #b48a2b;
    --textile-light-gold: #ddcba9;
    --textile-white: #fffdf8;
    --textile-text: #20201e;
    --textile-black: #0c0c0b;
    --textile-max-width: 1640px;
}

/* ==================================================
   Page base
================================================== */

.textile-page {
    width: 100%;
    margin: 0;
    background: var(--textile-cream);
    color: var(--textile-text);
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.textile-page *,
.textile-page *::before,
.textile-page *::after {
    box-sizing: border-box;
}

.textile-page h1,
.textile-page h2,
.textile-page h3,
.textile-page p {
    margin-top: 0;
}

.textile-page h1,
.textile-page h2,
.textile-page h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
}

.textile-page a {
    color: inherit;
    text-decoration: none;
}

/* ==================================================
   Shared horizontal alignment
================================================== */

.textile-hero-inner,
.textile-content {
    width: min(
        calc(100% - 15.2vw),
        var(--textile-max-width)
    );
    margin-right: auto;
    margin-left: auto;
}

/* ==================================================
   Hero section
================================================== */

.textile-hero {
    position: relative;
    min-height: 414px;
    padding: 56px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--textile-black);
    color: var(--textile-white);
}

/*
   This path expects the image here:

   images/textile-collection-hero.jpg
*/
.textile-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;

    background-image:
        url("../images/textile-collection-hero.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    content: "";
    filter: grayscale(100%);
    transform: scale(1.01);
}

/* Dark image overlay */
.textile-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.72) 43%,
            rgba(0, 0, 0, 0.38) 100%
        );

    content: "";
}

.textile-hero-inner {
    position: relative;
    z-index: 1;
    text-align: left;
}

/* ==================================================
   Breadcrumbs
================================================== */

.textile-breadcrumbs {
    margin: 0 0 44px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--textile-white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    line-height: 1.4;
    text-transform: uppercase;
}

.textile-breadcrumbs a {
    color: var(--textile-white);
    transition: color 180ms ease;
}

.textile-breadcrumbs a:hover,
.textile-breadcrumbs a:focus-visible {
    color: var(--textile-gold);
}

/* ==================================================
   Hero text
================================================== */

.textile-eyebrow {
    margin: 0 0 12px;
    color: var(--textile-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.7px;
    line-height: 1.3;
    text-transform: uppercase;
}

.textile-hero h1 {
    max-width: 700px;
    margin: 0;
    color: var(--textile-white);
    font-size: clamp(58px, 6vw, 86px);
    line-height: 0.88;
    letter-spacing: -3px;
}

.textile-hero-description {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--textile-white);
    font-size: 16px;
    line-height: 1.55;
}

/* ==================================================
   Main content
================================================== */

.textile-content {
    padding-top: 98px;
    padding-bottom: 125px;
}

.textile-content-grid {
    display: grid;
    grid-template-columns:
        minmax(180px, 27%)
        minmax(0, 1fr);
    column-gap: 7.5vw;
    align-items: start;
}

/* ==================================================
   Contact card
================================================== */

.textile-contact-card {
    width: 100%;
    margin: 0;
    padding-top: 15px;
    border-top: 2px solid var(--textile-light-gold);
    color: var(--textile-text);
    font-size: 14px;
}

.textile-contact-title {
    margin: 0 0 14px;
    color: #90702d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.4;
    text-transform: uppercase;
}

.textile-contact-card address {
    margin: 0 0 18px;
    font-style: normal;
    line-height: 1.5;
}

.textile-contact-card > p {
    margin: 0 0 18px;
}

.textile-contact-card > p:last-child {
    margin-bottom: 0;
}

.textile-phone {
    color: #997529;
    font-weight: 700;
    transition: color 180ms ease;
}

.textile-phone:hover,
.textile-phone:focus-visible {
    color: var(--textile-text);
}

/* ==================================================
   Collection details
================================================== */

.textile-collection-details {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.textile-collection-details h2 {
    max-width: 900px;
    margin: 0;
    color: var(--textile-text);
    font-size: clamp(42px, 4vw, 55px);
    line-height: 1;
    letter-spacing: -2px;
}

.textile-collection-details p {
    max-width: 820px;
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.55;
}

/* ==================================================
   Medium screens
================================================== */

@media (max-width: 1000px) {
    .textile-content-grid {
        grid-template-columns:
            minmax(170px, 25%)
            minmax(0, 1fr);
        column-gap: 5vw;
    }

    .textile-collection-details h2 {
        font-size: clamp(38px, 5vw, 50px);
    }
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 850px) {
    .textile-hero {
        min-height: auto;
        padding: 52px 0 60px;
    }

    .textile-hero-inner,
    .textile-content {
        width: calc(100% - 14vw);
    }

    .textile-content {
        padding-top: 70px;
        padding-bottom: 85px;
    }

    .textile-content-grid {
        grid-template-columns: 1fr;
        row-gap: 45px;
    }

    .textile-contact-card,
    .textile-collection-details {
        grid-column: 1;
    }

    .textile-contact-card {
        max-width: 280px;
    }

    .textile-hero h1 {
        font-size: clamp(54px, 10vw, 76px);
        letter-spacing: -2.5px;
    }
}

/* ==================================================
   Mobile
================================================== */

@media (max-width: 560px) {
    .textile-hero {
        padding: 44px 0 52px;
    }

    .textile-hero-inner,
    .textile-content {
        width: calc(100% - 12vw);
    }

    .textile-breadcrumbs {
        margin-bottom: 34px;
        font-size: 10px;
    }

    .textile-hero h1 {
        font-size: 54px;
        letter-spacing: -2px;
    }

    .textile-hero-description {
        font-size: 15px;
    }

    .textile-collection-details h2 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .textile-collection-details p {
        font-size: 15px;
    }
}
