/*
Theme Name: YDP Wine Packaging
Version: 1.0.0
Text Domain: ydp-wine
*/

:root {
    color-scheme: light;
    --paper: #f8f4eb;
    --ink: #26201b;
    --muted: #665952;
    --wine: #6e2633;
    --line: #ded5c7;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body.wine-site { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.skip { position: absolute; top: 0; left: 1rem; transform: translateY(-110%); z-index: 10; background: white; padding: .6rem; }
.skip:focus { transform: none; }
.frame { width: min(1240px, calc(100% - 100px)); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.wordmark strong { font: 700 31px/1 var(--serif); color: var(--wine); letter-spacing: -.05em; }
.wordmark span { border-left: 1px solid var(--line); padding-left: 10px; font-size: .72rem; line-height: 1.1; font-weight: 700; letter-spacing: .15em; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 48px); }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .93rem; }
.main-nav a:hover, .main-nav [aria-current] { color: var(--wine); text-decoration: underline; text-underline-offset: 6px; }
.button { display: inline-flex; min-height: 46px; padding: .75rem 1.3rem; align-items: center; justify-content: center; border: 1px solid var(--wine); background: var(--wine); color: #fff; cursor: pointer; text-align: center; text-decoration: none; font: 650 .9rem/1.35 var(--sans); }
.button:hover { background: #521a25; border-color: #521a25; }
.secondary { color: var(--wine); background: transparent; }
.secondary:hover { color: #fff; }
.label { color: var(--wine); letter-spacing: .14em; font-size: .8rem; font-weight: 700; text-transform: uppercase; margin: 0 0 1.05rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.03; margin: 0 0 .7em; }
h1 { font-size: clamp(3.35rem, 6.1vw, 6rem); margin-bottom: .27em; }
h1 span { color: var(--wine); }
h2 { font-size: clamp(2.45rem, 4.2vw, 4.2rem); margin-bottom: .32em; }
h3 { font-size: clamp(1.65rem, 2.4vw, 2.3rem); margin-bottom: .35em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.07rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 42ch; }
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(26px, 5vw, 75px); align-items: center; padding-block: 54px; }
.hero-figure { position: relative; margin: 0; background: #e8e2dc; aspect-ratio: 1.16; overflow: hidden; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.hero-figure figcaption { position: absolute; bottom: 0; inset-inline: 0; padding: .9rem 1.2rem; font-size: .85rem; background: rgba(247, 242, 233, .95); }
.hero-figure figcaption a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; text-decoration: none; }
.hero-figure figcaption span { font-weight: 650; }
.home-hero-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: white; }
.home-hero-figure img { min-height: 0; }
.home-hero-figure figcaption { position: static; padding: 0; background: #fffcf6; border-top: 1px solid var(--line); }
.home-hero-figure figcaption a { align-items: center; min-height: 44px; padding: .6rem .9rem; }
.home-hero-figure .hero-case-link { color: var(--wine); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }
.section { padding-block: 66px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading > p, .closing p:last-child { max-width: 32ch; color: var(--muted); }
.section-heading h2 { margin-bottom: 0; }
.format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.format { display: grid; grid-template-columns: .9fr 1fr; gap: 24px; border: 1px solid var(--line); align-items: center; background: #fffcf6; }
.format-image { display: block; background: white; height: 100%; min-height: 205px; }
.format-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.format > div { padding: 18px 18px 18px 0; }
.format p, .project p:not(.label) { color: var(--muted); }
.text-link { display: inline-block; color: var(--wine); font-size: .94rem; font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { color: #421321; }
.showcase { background: #eee5d8; border-block: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-grid-feature { grid-template-columns: minmax(0, 1fr); }
.project-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-grid-feature .project { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-grid-feature .project-image { aspect-ratio: auto; display: flex; align-items: center; }
.project-grid-feature .project-image img { height: auto; max-height: 380px; }
.project { background: #fffcf6; border: 1px solid var(--line); }
.project:target { outline: 2px solid var(--wine); outline-offset: 4px; }
.project-image { aspect-ratio: 1.4; background: white; }
.project-image img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.project-content { padding: 21px; }
.project-content .label { margin-bottom: .65rem; }
.project-content .muted { display: block; margin-top: .6rem; color: var(--muted); }
.detail-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.detail-images img { width: 100%; aspect-ratio: 1; object-fit: contain; background: white; }
.photo-detail { margin: .8rem 0; }
.zoom-photo { display: block; position: relative; cursor: zoom-in; }
.case-study .hero-figure .zoom-photo { height: 100%; }
.zoom-photo::after { content: "+"; position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; background: #fffcf6; border: 1px solid var(--line); color: var(--wine); font-size: 1.2rem; line-height: 1; pointer-events: none; }
.photo-dialog { width: max-content; max-width: calc(100% - 28px); max-height: calc(100% - 28px); padding: 12px; border: 1px solid var(--line); background: #fffcf6; color: var(--ink); }
.photo-dialog::backdrop { background: #201713c9; }
.photo-dialog button { display: block; margin: 0 0 8px auto; min-height: 44px; padding: 6px 12px; font: inherit; font-weight: 650; background: var(--wine); color: white; border: 0; cursor: pointer; }
.photo-dialog-image img { max-height: 75vh; max-height: 75dvh; height: auto; width: auto; object-fit: contain; }
html:has(.photo-dialog[open]) { overflow: hidden; }
summary { cursor: pointer; color: var(--wine); font-weight: 650; }
.closing { margin-bottom: 0; }
.closing h2 { margin-bottom: .2em; }
.product-hero .hero-figure { background: white; }
.product-hero .hero-figure img { object-fit: contain; padding: 22px; }
.product-hero h1, .page-intro h1 { font-size: clamp(3.25rem, 5.6vw, 5.5rem); }
.spirits-hero h1 { font-size: clamp(3rem, 4.4vw, 4.5rem); text-wrap: balance; }
.spec-line { font-weight: 650; color: var(--wine); margin-bottom: 1.4rem; }
.product-info, .quote-layout { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: clamp(25px, 5vw, 64px); }
.product-info p:not(.label), .spec-panel p { color: var(--muted); }
.spec-panel { background: #eee5d8; padding: clamp(20px, 3vw, 36px); }
.spec-panel h2 { font-size: 2.5rem; }
.spec-panel li { margin-bottom: .5em; }
.spec-panel ul { padding-left: 1.2rem; }
ul.wine-contact-links { list-style: none; padding: 0; margin: 1rem 0; }
.wine-contact-links li { margin: .4rem 0; }
.wine-contact-links a { font-weight: 600; text-underline-offset: 4px; overflow-wrap: anywhere; }
.faq details { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.faq details p { margin: .65rem 0 0; }
.page-intro { border-bottom: 1px solid var(--line); padding-block: 58px; }
.page-intro .lead { max-width: 57ch; }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 1.4rem; }
.jump-links a { color: var(--wine); text-underline-offset: 4px; }
.quote-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.wine-site form.wine-form { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid label, .file-label { display: block; font-weight: 650; }
.form-grid small, .file-label small, .form-hint { color: var(--muted); font-size: .88rem; font-weight: 400; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; margin-top: 5px; min-height: 46px; padding: 9px 11px; background: #fffdfa; color: var(--ink); border: 1px solid #aa9a89; border-radius: 0; font: inherit; font-weight: 400; }
.wine-site form.wine-form select { appearance: none; height: 46px; min-height: 46px; padding-right: 36px; background: #fffdfa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%236e2633' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center / 14px 8px no-repeat; }
#quote-moq { display: block; margin-top: .35rem; line-height: 1.4; }
.optional-spec { margin: 22px 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.optional-spec .form-grid { margin-top: 1rem; }
.form-hint { margin: .65rem 0 1rem; }
.wine-form .b2b-lead-feedback { min-height: 0; margin: .5rem 0 1rem; color: var(--muted); }
.wine-form .b2b-lead-feedback:empty { margin: 0; }
.file-label { margin-bottom: 6px; }
.wine-form .wine-artwork { width: 100%; max-width: 100%; font: inherit; }
.clear-file { cursor: pointer; background: transparent; border: 1px solid var(--line); padding: .45rem .7rem; }
#artwork-error { color: #a02337; margin: 0; }
.project-reference { display: flex; align-items: center; gap: 16px; background: #eee5d8; padding: 12px; margin-bottom: 24px; }
.project-reference div { width: 90px; }
.project-reference p, .project-reference .label { margin: 0; }
.project-reference .label { display: block; }
.notice { padding: 1rem; border-left: 3px solid var(--wine); background: #eee5d8; }
.site-footer { background: #352522; color: #f7ede2; border-top: 1px solid #79574c; }
.site-footer :focus-visible { outline-color: #e9c5ad; }
.footer-inner { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(32px, 5vw, 60px); align-items: start; }
.footer-brand .wordmark strong { color: #edc9b1; font-size: 42px; }
.footer-brand .wordmark span { border-color: #79574c; }
.footer-brand p { margin: .85rem 0 1.2rem; color: #e4d2c6; font-size: .93rem; }
.footer-quote { background: #f3e4d6; border-color: #f3e4d6; color: #481f26; }
.footer-quote:hover { background: #edc9b1; border-color: #edc9b1; color: #481f26; }
.footer-title { margin: 0 0 .7rem; color: #edc9b1; font-size: .78rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.footer-nav ul, .footer-contacts .wine-contact-links { list-style: none; padding: 0; margin: 0; }
.footer-nav a, .footer-contacts .wine-contact-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; text-decoration: none; font-size: .94rem; }
.footer-contacts .wine-contact-links li { margin: 0; }
.footer-contacts .wine-contact-links a { font-weight: 500; }
.footer-contacts svg { flex: 0 0 18px; color: #edc9b1; }
.footer-nav a:hover, .footer-contacts .wine-contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-title a, .footer-legal a { text-underline-offset: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.25rem; padding-block: 1.05rem; border-top: 1px solid #79574c; color: #e4d2c6; font-size: .85rem; }
.footer-privacy { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.footer-privacy a { display: inline-flex; align-items: center; min-height: 32px; }
.privacy-cookies { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); scroll-margin-top: 1.25rem; }
.privacy-cookies h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
@media (max-width: 980px) {
    .frame { width: calc(100% - 54px); }
    .format { grid-template-columns: 1fr; gap: 0; }
    .format > div { padding: 17px; }
    .format-image { min-height: 0; height: 185px; }
}
@media (max-width: 820px) {
    .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: 9px 3px; gap: 4px 10px; }
    .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; }
    .main-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: .85rem; white-space: nowrap; }
    .nav-button { grid-column: 2; grid-row: 1; min-height: 44px; padding: .6rem .75rem; white-space: nowrap; }
}
@media (max-width: 720px) {
    .frame { width: calc(100% - 32px); }
    .hero-grid, .product-info, .quote-layout, .project-grid, .project-grid-feature .project { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { padding-block: 35px; gap: 25px; }
    .home-hero .hero-grid { padding-block: 25px; gap: 20px; }
    .home-hero h1, .quote-intro h1 { font-size: clamp(2.45rem, 10.3vw, 3.25rem); }
    .home-hero .label, .quote-intro .label { margin-bottom: .55rem; }
    .home-hero .actions { margin-top: 1rem; }
    .home-hero-figure figcaption { font-size: .8rem; }
    .section { padding-block: 42px; }
    .section-heading { align-items: start; flex-direction: column; gap: 12px; }
    .page-intro { padding-block: 38px; }
    .quote-intro, .quote-layout { padding-block: 24px; }
    .footer-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .format-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
    .actions .button { flex: 1 1 100%; }
    .main-nav a { font-size: .8rem; }
    .nav-button { padding-inline: .55rem; }
    .masthead .wordmark { gap: 7px; }
    .masthead .wordmark strong { font-size: 28px; }
    .masthead .wordmark span { padding-left: 7px; font-size: .65rem; letter-spacing: .085em; }
}
@media (forced-colors: active) {
    .wine-site form.wine-form select { appearance: auto; background-image: none; }
}
.wine-site .b2b-guard-field { display: none; }
.measure-guide { display: flex; align-items: center; gap: 20px; margin: 1rem 0 1.3rem; }
.measure-guide figcaption { font-size: .875rem; line-height: 1.55; }
.measure-drawing { position: relative; width: 82px; height: 120px; flex: 0 0 82px; }
.measure-bottle { position: absolute; inset: 5px 24px 16px 18px; border: 1px solid var(--wine); border-radius: 15px 15px 6px 6px; background: #f8f4eb; margin-top: 17px; }
.measure-bottle::before { content: ""; position: absolute; width: 14px; height: 18px; top: -18px; left: calc(50% - 7px); border: 1px solid var(--wine); background: #f8f4eb; }
.measure-height { position: absolute; top: 5px; bottom: 16px; right: 10px; width: 10px; border: 1px solid var(--wine); border-left: 0; }
.measure-width { position: absolute; bottom: 6px; left: 18px; right: 24px; height: 7px; border: 1px solid var(--wine); border-top: 0; }
.tube-dimensions { margin: 1.5rem 0; border-top: 1px solid var(--line); }
.tube-dimensions dt { font-weight: 700; margin-top: .75rem; }
.tube-dimensions dd { margin: .25rem 0 .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.measure-tube { position: absolute; inset: 6px 24px 16px 19px; border: 1px solid var(--wine); border-radius: 7px / 3px; background: #f8f4eb; }
.measure-tube::before, .measure-tube::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px solid var(--wine); }
.measure-tube::before { top: 16px; }
.measure-tube::after { bottom: 8px; }
.measure-outer { position: absolute; top: 6px; bottom: 16px; right: 10px; width: 10px; border: 1px solid var(--wine); border-left: 0; }
.measure-inner { position: absolute; top: 23px; bottom: 25px; left: 29px; right: 37px; border: 1px dashed var(--wine); border-right: 0; }
.support-link, .case-back { margin-top: 1rem; }
.quote-guidance h3 { margin-top: 1.35rem; }
.quote-guidance ol { padding-inline-start: 1.25rem; }
.quote-guidance li + li { margin-top: .6rem; }
.case-gallery, .sample-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.case-gallery figure, .sample-types > div { margin: 0; background: #fffcf6; border: 1px solid var(--line); }
.case-gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: white; }
.case-gallery figcaption, .sample-types > div { padding: clamp(16px, 3vw, 25px); }
.sample-types p { margin-bottom: 0; }
.closing .actions { margin-top: 0; }
.comparison-examples, .comparison-row dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.comparison-example { display: flex; flex-direction: column; min-width: 0; padding: clamp(14px, 3vw, 28px); background: #fffcf6; border: 1px solid var(--line); }
.comparison-example figure { margin: .4rem 0 1rem; }
.comparison-example figure img { width: 100%; max-width: 440px; height: auto; margin-inline: auto; background: #f8f1e7; }
.comparison-example figcaption { margin-top: .75rem; color: var(--muted); font-size: .94rem; }
.comparison-reference { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.comparison-reference img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; background: white; }
.comparison-row { display: grid; grid-template-columns: minmax(140px, .3fr) 1fr; gap: 22px; border-bottom: 1px solid var(--line); padding-block: 24px; }
.comparison-row h3, .comparison-row dl, .comparison-row dd { margin: 0; }
.comparison-row dt { margin-bottom: .4rem; color: var(--wine); font-weight: 700; }
.comparison-packing, .comparison-brief { max-width: 74ch; }
.comparison-packing { margin: 1.4rem 0 0; }
.comparison-quotes p { margin-bottom: 1rem; }
@media (max-width: 720px) {
    .case-gallery, .sample-types { grid-template-columns: 1fr; }
    .case-study .hero h1, .sampling-intro h1, .comparison-intro h1, .spirits-hero h1 { font-size: clamp(2.5rem, 10.8vw, 3.5rem); }
    .comparison-row dl { gap: 12px; }
    .comparison-row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 540px) {
    .comparison-examples, .footer-inner { grid-template-columns: 1fr; }
    .footer-nav, .footer-contacts { border-top: 1px solid #79574c; padding-top: 1rem; }
    .footer-nav a, .footer-contacts .wine-contact-links a { min-height: 44px; }
}
@media (max-width: 420px) {
    .comparison-intro .actions .button { flex: 1 1 130px; padding-inline: .6rem; }
}
