/* ---------------------------------------------------------------
   McHenry Fragrance House — Cascade Cowboy
   Brand palette: gold #957127 · navy #0D1922 · cream #F9F0DA
   Type: Montserrat (Google Fonts), with custom logo art as imagery
   --------------------------------------------------------------- */

:root {
    --gold: #957127;
    --gold-light: #B8923D;
    --navy: #0D1922;
    --navy-soft: #1C2832;
    --cream: #F9F0DA;
    --cream-dim: #EFE5C9;
    --cream-deep: #E5D9B6;
    --line: rgba(13, 25, 34, 0.12);
    --line-on-dark: rgba(249, 240, 218, 0.18);
    --shadow: 0 18px 48px -16px rgba(13, 25, 34, 0.22);
    --max-w: 1240px;
    --pad-x: clamp(20px, 5vw, 64px);
    --section-y: clamp(80px, 12vw, 160px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--navy);
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

p {
    margin: 0 0 1em;
}

/* -------- Typography -------- */

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 18px;
}

.eyebrow-dark { color: var(--gold-light); }

.display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5.6vw, 72px);
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin: 0 0 24px;
    text-transform: uppercase;
}

.display-serif-feel {
    /* Use Montserrat Bold with wide tracking + small caps style spacing */
    letter-spacing: 0.04em;
}

.section-title {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.lede {
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.6;
    max-width: 58ch;
    color: var(--navy-soft);
}

.notes-list {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.9;
}

/* -------- Layout -------- */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

.section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

.section-dim { background: var(--cream-dim); }
.section-dark {
    background: var(--navy);
    color: var(--cream);
}
.section-dark .eyebrow { color: var(--gold-light); }

.rule {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 0 0 28px;
    border: 0;
}

.rule-center {
    margin-left: auto;
    margin-right: auto;
}

/* -------- Nav -------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 18px var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(249, 240, 218, 0);
    transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.nav.scrolled {
    background: rgba(249, 240, 218, 0.92);
    padding-top: 12px;
    padding-bottom: 12px;
    box-shadow: 0 1px 0 var(--line);
}

.nav-brand img {
    height: 36px;
    width: auto;
    transition: opacity 0.3s var(--ease);
}

.nav-brand .logo-dark { display: none; }
.nav.scrolled .nav-brand .logo-light { display: none; }
.nav.scrolled .nav-brand .logo-dark { display: block; }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--cream);
    transition: color 0.2s var(--ease);
}

.nav.scrolled .nav-links a {
    color: var(--navy);
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav.scrolled .nav-links a:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 8px;
}

/* -------- Buttons -------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    border: 2px solid currentColor;
    background: transparent;
    color: inherit;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: var(--navy);
    color: var(--cream);
    border-color: var(--navy);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--cream);
}

.btn-gold:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--cream);
}

.btn-cream-on-dark {
    color: var(--cream);
    border-color: var(--cream);
}

.btn-cream-on-dark:hover {
    background: var(--cream);
    color: var(--navy);
    border-color: var(--cream);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 6px;
    transition: gap 0.2s var(--ease);
}

.btn-link:hover {
    gap: 14px;
}

/* -------- Hero -------- */

.hero {
    position: relative;
    min-height: 100vh;
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at top, #2A2418 0%, #0F1119 55%, #0D1922 100%),
        linear-gradient(to bottom, #1A1812 0%, #0D1922 100%);
    background-size: cover;
    background-position: center;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    position: absolute;
    inset: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(13, 25, 34, 0.25) 0%, rgba(13, 25, 34, 0.65) 70%, rgba(13, 25, 34, 0.85) 100%),
        linear-gradient(to bottom, rgba(13, 25, 34, 0.55) 0%, rgba(13, 25, 34, 0.35) 45%, rgba(13, 25, 34, 0.75) 100%);
}

/* film grain overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-inner {
    padding: 120px var(--pad-x) 100px;
    max-width: 900px;
}

.hero-mark {
    height: clamp(80px, 12vw, 140px);
    margin: 0 auto 36px;
    opacity: 0.95;
}

.hero h1 {
    font-size: clamp(24px, 3.8vw, 50px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9em;
}

.hero h1 span {
    display: block;
}

/* Desktop: each sentence stays on one line, period. No ugly mid-phrase wraps. */
@media (min-width: 768px) {
    .hero h1 span { white-space: nowrap; }
}

.hero .lede {
    color: rgba(249, 240, 218, 0.85);
    max-width: 52ch;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(249, 240, 218, 0.6);
    z-index: 2;
}

.hero-scroll::after {
    content: "";
    display: block;
    width: 1px;
    height: 40px;
    margin: 12px auto 0;
    background: linear-gradient(to bottom, rgba(249, 240, 218, 0.6), transparent);
    animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* -------- Story -------- */

.story {
    text-align: center;
}

.story-eagle {
    width: clamp(80px, 9vw, 120px);
    margin: 0 auto 32px;
    opacity: 0.95;
}

.story h2 {
    margin: 0 auto 28px;
    max-width: 18ch;
}

.story .lede {
    margin: 0 auto 36px;
}

/* -------- Product (Cascade Cowboy) -------- */

.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.product-media {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--cream-deep);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.product-media .placeholder img {
    width: 45%;
    height: auto;
    margin-bottom: 24px;
    object-fit: contain;
    opacity: 0.85;
}

.product-media .placeholder .placeholder-label {
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
}

.product-body h2 {
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.product-meta {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--navy-soft);
    margin: 0 0 32px;
}

.product-meta span + span::before {
    content: "·";
    margin: 0 12px;
    color: var(--gold);
}

.product-notes {
    margin: 0 0 36px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-notes .eyebrow {
    color: var(--navy);
    opacity: 0.55;
    margin-bottom: 14px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 32px;
}

.product-price .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.product-price .price-meta {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--navy-soft);
    opacity: 0.7;
}

.product-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

/* Side-by-side size selector — one is always active (gold border + tinted bg) */
.size-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 14px;
    background: transparent;
    border: 2px solid rgba(13, 25, 34, 0.18);
    color: var(--navy);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
    text-align: center;
}

.size-option:hover {
    border-color: rgba(13, 25, 34, 0.6);
}

.size-option.is-selected {
    border-color: var(--gold);
    background: rgba(149, 113, 39, 0.1);
    color: var(--gold);
}

.size-option .size-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.size-option .size-price {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-fullwidth {
    width: 100%;
    margin-bottom: 16px;
}

.product-sample {
    font-size: 13px;
    color: var(--navy-soft);
}

.product-sample a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    font-weight: 600;
}

/* Stock toggle: by default show "buy" state. Add .out-of-stock to .product to switch. */
.product.out-of-stock .stock-in { display: none; }
.product:not(.out-of-stock) .stock-out { display: none; }

/* -------- Maker -------- */

.maker {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.maker-media {
    aspect-ratio: 3/4;
    background: var(--navy-soft);
    overflow: hidden;
    position: relative;
}

.maker-media .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maker-media .placeholder img {
    width: 55%;
    opacity: 0.4;
}

/* -------- Newsletter / Herd -------- */

.herd {
    text-align: center;
}

.herd-badge {
    width: clamp(80px, 9vw, 120px);
    margin: 0 auto 28px;
}

.herd h2 {
    margin: 0 auto 18px;
    max-width: 22ch;
}

.herd p {
    margin: 0 auto 36px;
    max-width: 46ch;
    color: rgba(249, 240, 218, 0.78);
}

.herd-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    border-bottom: 1px solid var(--line-on-dark);
    gap: 12px;
}

.herd-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 16px 4px;
    font-family: inherit;
    color: var(--cream);
    font-size: 15px;
    letter-spacing: 0.05em;
    outline: none;
}

.herd-form input[type="email"]::placeholder {
    color: rgba(249, 240, 218, 0.5);
}

.herd-form button {
    background: transparent;
    border: 0;
    color: var(--gold-light);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 8px 6px;
    transition: color 0.2s var(--ease);
}

.herd-form button:hover { color: var(--cream); }

.herd-fineprint {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(249, 240, 218, 0.5);
    margin-top: 24px;
}

/* -------- Footer -------- */

.footer {
    background: var(--navy);
    color: var(--cream);
    padding: 64px var(--pad-x) 32px;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-on-dark);
}

.footer-brand img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    max-width: 32ch;
    font-size: 14px;
    color: rgba(249, 240, 218, 0.7);
    line-height: 1.6;
}

.footer h4 {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin: 0 0 18px;
    font-weight: 700;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer a {
    color: rgba(249, 240, 218, 0.78);
    transition: color 0.2s var(--ease);
}

.footer a:hover { color: var(--gold-light); }

.footer-bottom {
    max-width: var(--max-w);
    margin: 32px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(249, 240, 218, 0.5);
}

/* -------- Responsive -------- */

@media (max-width: 880px) {
    .product,
    .maker {
        grid-template-columns: 1fr;
    }

    .maker-media {
        aspect-ratio: 4/3;
        max-height: 480px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 680px) {
    body { font-size: 16px; }

    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 80px 32px;
        transition: right 0.35s var(--ease);
    }

    .nav-links.open { right: 0; }
    .nav-links a { color: var(--cream); }

    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 320px; }
}

/* -------- Subtle reveal animations -------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    .hero-scroll::after { animation: none; }
}

/* Print preview (for PDF export of the site as a marketing mockup). */
@media print {
    .reveal { opacity: 1 !important; transform: none !important; }
    .nav { position: static !important; background: var(--cream) !important; box-shadow: none !important; }
    .nav.scrolled { background: var(--cream) !important; }
    .nav-brand .logo-light { display: none !important; }
    .nav-brand .logo-dark { display: block !important; }
    .nav-links a { color: var(--navy) !important; }
    .hero { min-height: 800px !important; page-break-after: always; }
    .hero-scroll { display: none !important; }
    .section { page-break-inside: avoid; padding-top: 60px; padding-bottom: 60px; }
    .footer { page-break-before: avoid; }
}
