/*
Theme Name: Eve Home Canada
Description: Curtain catalogue and link hub for Eve Home Canada.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 8.0
Author: Flexicodal
Text Domain: eve-home
*/

@font-face {
    font-family: "Instrument Serif";
    src: url("assets/fonts/instrument-serif.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("assets/fonts/dm-sans.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --paper: #f9f6f0;
    --navy: #152735;
    --navy-deep: #10212e;
    --gold: #805d38;
    --light-gold: #dfbb8a;
    --muted: #52606a;
    --line: #dcd4c8;
    --soft: #eee8dd;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
    --wrap: 1260px;
    --gutter: clamp(22px, 5.35vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 26px; }
body {
    margin: 0;
    color: var(--navy);
    background: var(--paper);
    font: 400 1rem/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c18b50; outline-offset: 4px; }
.screen-reader-text, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100000;
    background: var(--paper);
    color: var(--navy);
    padding: 12px 18px;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; }
h2 { font-size: clamp(3.25rem, 6vw, 5.35rem); letter-spacing: -.022em; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--wrap)); margin-inline: auto; }

.site-header { position: relative; z-index: 2; background: var(--paper); }
.site-header__inner {
    width: min(calc(100% - var(--gutter) * 2), 1420px);
    min-height: 83px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    place-items: center;
    column-gap: 32px;
}
.wordmark { width: max-content; display: inline-grid; text-align: center; text-decoration: none; line-height: 1; }
.wordmark span { font: 400 2.6rem/.82 var(--serif); letter-spacing: -.045em; }
.wordmark small { font-size: .57rem; font-weight: 700; letter-spacing: .33em; margin-block-start: 8px; padding-inline-start: .33em; }
.site-header .wordmark { justify-self: start; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3.5vw, 54px); }
.main-nav a, .header-contact {
    font-weight: 600;
    font-size: .86rem;
    text-decoration: none;
    white-space: nowrap;
}
.main-nav a:hover, .header-contact:hover { text-decoration: underline; text-underline-offset: .38em; }
.header-contact { justify-self: end; }
.header-contact span { color: var(--gold); padding-inline-start: 5px; }
.mobile-nav { display: none; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
    min-height: clamp(500px, 47vw, 715px);
    background: var(--navy);
    color: var(--paper);
}
.hero__content {
    padding: clamp(48px, 6vw, 108px) clamp(24px, 4vw, 60px) clamp(45px, 5vw, 85px) max(var(--gutter), calc((100vw - 1420px) / 2));
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}
.eyebrow { color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: var(--light-gold); margin-block-end: 19px; }
.hero h1 {
    max-width: 8em;
    font-size: clamp(4.5rem, 7.6vw, 8.75rem);
    line-height: .92;
    letter-spacing: -.025em;
}
.hero h1 em { display: block; color: #e4c79f; font-weight: 400; }
.hero__description { color: #dedfdc; max-width: 29ch; margin-top: 23px; font-size: clamp(1rem, 1.35vw, 1.17rem); }
.hero__location { color: #e3d9c9; font-size: .8rem; margin-top: 20px; }
.hero__location span { margin: 0 4px; color: var(--light-gold); }
.hero .button { margin-top: 27px; }
.hero__visual { min-width: 0; min-height: 0; position: relative; background: #a29583; overflow: hidden; }
.hero__visual img { position: absolute; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }

.button {
    width: fit-content;
    max-width: 100%;
    min-height: 50px;
    padding: 11px 18px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button span { font-size: 1.05rem; font-weight: 400; }
.button--light { background: var(--paper); color: var(--navy); }
.button--light:hover { background: #e9d5b8; }
.button--dark { background: var(--navy); color: var(--paper); }
.button--dark:hover { background: #2e4757; }
.button--outline { border-color: #7e6b56; }
.button--outline:hover { background: var(--navy); border-color: var(--navy); color: var(--paper); }

.collection { padding-block: clamp(57px, 8vw, 113px); }
.collection__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: clamp(25px, 3.2vw, 45px);
}
.collection__head p { margin-top: 10px; color: var(--muted); }
.filters { display: inline-flex; flex-wrap: wrap; width: max-content; max-width: 100%; gap: 6px; }
.filters button {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--navy);
    min-height: 42px;
    padding: 7px 14px;
    font-size: .78rem;
    cursor: pointer;
    white-space: nowrap;
}
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.collection__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px clamp(14px, 2.4vw, 32px); }
.product-card__link { display: block; text-decoration: none; }
.product-card__image { aspect-ratio: 1.14; overflow: hidden; background: var(--soft); }
.product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.product-card__caption {
    position: relative;
    border-bottom: 1px solid var(--line);
    min-height: 114px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 36px 17px 0;
}
.product-card__caption h3 { font-size: clamp(1.9rem, 3vw, 2.8rem); margin-top: 5px; }
.product-card__price { margin-top: auto; padding-top: 8px; font-size: .87rem; font-weight: 700; }
.product-card__price span { color: var(--muted); font-weight: 400; }
.product-card__arrow {
    display: grid;
    place-items: center;
    position: absolute;
    right: 0;
    bottom: 19px;
    border: 1px solid var(--line);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.product-card__link:hover .product-card__image img { transform: scale(1.045); }
.product-card__link:hover .product-card__arrow { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.collection__empty { padding-block: 25px; color: var(--muted); }

.order { padding-block: clamp(45px, 6.5vw, 98px); background: #eee8df; }
.order__inner { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); align-items: center; gap: clamp(44px, 8vw, 124px); }
.order__photo { height: clamp(390px, 41vw, 565px); background: #d4cec5; }
.order__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.order__content { max-width: 540px; }
.order-list { list-style: none; margin: 28px 0 25px; padding: 0; counter-reset: order-step; }
.order-list li { counter-increment: order-step; display: grid; grid-template-columns: 28px 1fr; gap: 13px; padding: 13px 0; border-top: 1px solid #d0c7ba; }
.order-list li::before { content: counter(order-step, decimal-leading-zero); color: var(--gold); font: 400 1.35rem/1.2 var(--serif); }
.order-list strong { font-size: .94rem; }
.order-list p { margin-top: 3px; color: var(--muted); font-size: .93rem; }
.vip { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-block: clamp(50px, 7vw, 94px); }
.vip h2 { font-size: clamp(2.9rem, 5vw, 4.4rem); }
.vip p { margin-top: 9px; color: var(--muted); }

.site-footer { color: var(--paper); background: var(--navy-deep); }
.site-footer__main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: clamp(25px, 8vw, 132px);
    padding-block: 46px 40px;
}
.site-footer__main p { color: #d9d9d6; font-size: .78rem; margin-top: 17px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav span { color: var(--light-gold); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 64px; border-top: 1px solid #43515b; color: #d9d9d6; }
.site-footer__bottom small { font-size: .75rem; }
.site-credit { display: inline-flex; align-items: center; gap: 5px; color: inherit; font-size: .75rem; text-decoration: none; white-space: nowrap; }
.site-credit__symbol { width: 15px; }
.site-credit__wordmark { width: 92px; }
.site-credit:hover span { text-decoration: underline; }

.product-page { padding-block: 30px clamp(55px, 8vw, 112px); }
.breadcrumb { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .8rem; margin-bottom: clamp(20px, 3vw, 35px); color: var(--muted); }
.breadcrumb a { color: var(--navy); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(0, .91fr); align-items: start; gap: clamp(32px, 6.5vw, 90px); }
.product-detail__photo { display: grid; place-items: center; background: var(--soft); }
.product-detail__photo img { display: block; max-height: 740px; width: 100%; object-fit: contain; }
.product-detail__copy { padding-block: 8px; }
.product-detail__copy h1 { font-size: clamp(3.4rem, 6.2vw, 6.25rem); margin-block: 9px 14px; letter-spacing: -.025em; }
.product-detail__price { font-size: 1.36rem; font-weight: 700; }
.product-detail__price span { font-size: .9rem; font-weight: 400; color: var(--muted); }
.product-detail__description { margin-block: 17px 24px; color: var(--muted); }
.product-detail__description p + p { margin-top: 10px; }
.specs { margin: 0 0 26px; }
.specs > div { display: grid; grid-template-columns: minmax(112px, .85fr) minmax(0, 1.15fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--muted); }
.product-detail__delivery { color: var(--muted); margin-top: 12px; font-size: .83rem; }
.basic-page { padding-block: 70px; }
.basic-page h1 { font-size: clamp(3.2rem, 7vw, 5.4rem); margin-bottom: 15px; }
.basic-page .button { margin-top: 20px; }

@media (max-width: 950px) {
    .collection__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero h1 { font-size: clamp(4rem, 8vw, 5.5rem); }
    .collection__head { flex-direction: column; align-items: start; }
}

@media (max-width: 740px) {
    .site-header__inner { min-height: 69px; grid-template-columns: 1fr auto; gap: 16px; }
    .site-header .wordmark span { font-size: 2.3rem; }
    .main-nav, .header-contact { display: none; }
    .mobile-nav { display: block; justify-self: end; }
    .mobile-nav summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        gap: 9px;
        align-items: center;
        padding: 10px 0 10px 12px;
        font-size: .89rem;
        font-weight: 600;
    }
    .mobile-nav summary::-webkit-details-marker { display: none; }
    .mobile-nav summary span { width: 15px; height: 8px; border-block: 1px solid; }
    .mobile-nav nav {
        position: absolute;
        z-index: 1;
        top: 100%;
        inset-inline: 0;
        display: grid;
        padding: 8px var(--gutter) 14px;
        color: var(--navy);
        background: var(--paper);
        border-top: 1px solid var(--line);
        box-shadow: 0 12px 18px rgb(0 0 0 / 10%);
    }
    .mobile-nav nav a { min-height: 45px; display: flex; align-items: center; gap: 5px; text-decoration: none; }
    .mobile-nav nav a + a { border-top: 1px solid var(--line); }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero__content { padding: 36px var(--gutter) 34px; }
    .hero h1 { font-size: clamp(3.8rem, 10.6vw, 6.35rem); }
    .hero__description { margin-top: 13px; max-width: 35ch; }
    .hero .eyebrow { margin-bottom: 12px; }
    .hero .button { margin-top: 19px; }
    .hero__location { margin-top: 13px; }
    .hero__visual { aspect-ratio: 1.4; min-height: 0; }
    .order__inner { grid-template-columns: 1fr; gap: 28px; }
    .order__photo { height: clamp(200px, 55vw, 420px); }
    .order__photo img { object-position: center 44%; }
    .order__content { max-width: 610px; }
    .product-detail { grid-template-columns: 1fr; gap: 23px; }
    .product-detail__photo img { max-height: 520px; }
}

@media (max-width: 480px) {
    .collection__grid { grid-template-columns: 1fr; gap: 24px; }
    .product-card__image { aspect-ratio: 1.2; }
    .product-card__caption { min-height: 0; }
    .product-card__caption h3 { font-size: 2.25rem; }
    .vip { align-items: start; flex-direction: column; gap: 17px; }
    .site-footer__main { grid-template-columns: 1fr 1fr; padding-block: 34px 28px; }
    .site-footer__main > div { grid-column: 1 / -1; }
    .site-footer__bottom { flex-wrap: wrap; padding-block: 13px; }
    .site-credit__symbol { width: 14px; }
    .site-credit__wordmark { width: 86px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
