/* ============================================================
   UNA LOU — static replica of unalouwine.com
   Adapted from the original public.css (jQuery/PHP removed).
   ============================================================ */

/* --- reset (trimmed from original) --- */
*,*:before,*:after{box-sizing:border-box}
html{font-family:sans-serif;-webkit-text-size-adjust:100%}
body,td,th,li,ol,ul,h1,h2,h3,h4,h5,p,button,form,dd,dt,dl{margin:0;padding:0;border:0;list-style-type:none;background:none}
img{border-style:none}
button,input,select,textarea{font:inherit;margin:0}
button{overflow:visible;text-transform:none;-webkit-appearance:button;user-select:none}
a:focus,button:focus{outline:0}
a:focus-visible,button:focus-visible{outline:2px solid #92311e;outline-offset:2px}

/* --- fonts (self-hosted) --- */
@font-face{
  font-family:'highway gothic';font-style:normal;font-weight:normal;font-display:swap;
  src:url("../assets/fonts/highway-gothic-wide.woff") format("woff"),
      url("../assets/fonts/highway-gothic-wide.ttf") format("truetype");
}
@font-face{
  font-family:'lydian';font-style:normal;font-weight:normal;font-display:swap;
  src:url("../assets/fonts/lydian-bt-roman.woff") format("woff"),
      url("../assets/fonts/lydian-bt-roman.ttf") format("truetype");
}

/* --- brand tokens --- */
:root{
  --pink:#e7a09a;
  --rust:#92311e;
  --paper:rgba(219,216,212,0.9);
}

html{overflow-y:scroll}
body{background:var(--pink)}
html,html body{height:100%;min-width:320px}
body,a,p,div,button,input,select,textarea{font:12px 'highway gothic';color:var(--rust);text-decoration:none}
input,select,textarea{background:#FFF}
button,button img{border:0;border-radius:0;padding:0;margin:0;background:none;cursor:pointer}
h1,h2,h3,h4{position:relative;font-weight:normal;display:block;text-transform:uppercase;text-align:center}
h1{font-size:18px;width:100%}
h2{font-size:16px}
h3{font-size:14px}

#wrapper{width:100%;min-height:100%;position:fixed;z-index:100;background:var(--pink) center center no-repeat;background-size:cover}

/* --- video background --- */
#video,#video video{position:relative;z-index:1;width:100%;height:100vh}
#video video{object-fit:cover}

/* --- popups (About / Press / Shop) --- */
.popup{
  position:absolute;width:650px;left:-10000px;top:0;margin-left:-325px;
  background:var(--paper);padding:10px;z-index:1;margin-bottom:10px;
  max-height:calc(100% - 20px);overflow-y:auto
}
.popup::-webkit-scrollbar{width:5px}
.popup::-webkit-scrollbar-thumb{background:var(--rust)}
.popup.on{z-index:1000;left:50%}
.popup>div{position:relative;border:4px solid var(--rust);padding:55px 30px}
.popup>div button.close{position:absolute;top:6px;z-index:2;right:6px;width:30px;height:30px;line-height:32px;text-align:center;font-size:24px}
.popup>div h1,.popup>div h2,.popup>div p,.popup>div a,.popup>div button,.popup>div input,.popup>div label{color:#93301d}
.popup>div h2,.popup>div p,.popup>div a,.popup>div form button,.popup>div input,.popup>div label{font-family:'lydian'}
.popup>div h1{letter-spacing:2px;margin:0 auto}
.popup>div h2{padding:8px 0 9px;font-size:16px;line-height:1.4em;text-transform:none}
.popup>div p,.popup>div a{font-size:16px}
.popup>div #instagram,.popup>div #instagram a{letter-spacing:1px;text-transform:uppercase}
.popup>div p{line-height:1.4em;padding-top:20px;text-align:center}
.popup>div a:hover{text-decoration:underline}
.popup>div form{text-align:center;padding-top:20px}
.popup>div form button,.popup>div form input{margin:0 auto;display:block;height:30px;width:140px;line-height:30px}
.popup>div form input{margin-top:11px;margin-bottom:15px;border:0;border-radius:0;background:#FFF;text-align:center;width:240px}
.popup>div form label{font-size:14px;width:240px;margin:0 auto;text-align:center;display:block}
.popup>div form button{background:var(--rust);color:#FFF;text-align:center;font-size:12px;letter-spacing:2px;font-family:'highway gothic'}
.popup>div .letter{display:block;width:100%;height:auto}
.popup .lead{font-size:12px;font-family:'highway gothic';letter-spacing:1px;text-transform:uppercase}
.popup .thanks{display:none}

#press_links a,#press_links span{margin-top:30px;display:block}
#press_links a img,#press_links span img{margin:0 auto;display:block;max-height:50px;max-width:100px;width:auto}

/* --- home frame: lettering, symbols, menu --- */
#home{width:100%;min-height:100%;position:relative}
#home #menu{width:570px;position:absolute;z-index:101;bottom:44px;height:20px;left:50%;margin-left:-285px;display:flex;justify-content:center;align-items:center}
#home #menu button,#home #menu a.textlink{
  position:relative;text-transform:uppercase;letter-spacing:3px;display:block;
  margin-left:33px;height:20px;font:12px/20px 'highway gothic';color:var(--rust)
}
#home #menu button.on:after,#home #menu a.textlink.on:after{position:absolute;bottom:0;left:-3px;width:100%;content:'.';border-bottom:2px solid var(--rust)}
#home #menu button#l_home,#home #menu a#l_home{margin-left:0}
#home #menu a.instagram{display:block;height:18px;margin-left:33px}
#home #menu a.instagram img{display:block;height:100%}
#home>img,#home img#rose{display:block;position:absolute;z-index:100}
#home a.title{display:contents}
#home img#rose{top:41px;left:50%;margin-left:-290px;width:580px;height:auto}


#home>img#una,#home>img#lou{top:50%;margin-top:-120px;width:48px;height:240px}
#home>img#una{left:46px}
#home>img#lou{right:44px}
#home>img#plant,#home>img#fruit,#home>img#flower,#home>img#astro{width:50px;height:50px}
#home>img#plant{top:50px;left:40px}
#home>img#astro{top:50px;right:40px}
#home>img#flower{bottom:50px;left:40px}
#home>img#fruit{bottom:50px;right:40px}
.mobile-social{display:none}

/* --- inner pages (Shop / Find) share the frame but scroll --- */
/* The texture is a screen-sized layer pinned behind the page, not a fixed background:
   iPhone Safari ignores background-attachment:fixed and would stretch the texture over
   the whole page length (blown-up grain on long pages). 100vh, not bottom:0, so it does
   not resize while Safari's toolbars collapse. Pages that load c7-theme.css use the
   same layer on html instead (see "Page veil" there). */
body.inner{background:var(--pink)}
body.inner::before{
  content:'';position:fixed;top:0;left:0;right:0;height:100vh;z-index:-1;pointer-events:none;
  background:var(--pink) url("../assets/images/surface-background.webp") center center / cover no-repeat
}
body.inner #wrapper{position:relative;min-height:100vh;background:none}
body.inner #home{min-height:100vh;padding:154px 90px 120px}
body.inner #home #menu{bottom:auto;top:96px}
/* frame ornaments stay locked in place while the page scrolls */
body.inner #home>img#una,body.inner #home>img#lou,
body.inner #home>img#plant,body.inner #home>img#astro,
body.inner #home>img#flower,body.inner #home>img#fruit{position:fixed}
body.inner .page{max-width:820px;margin:0 auto;text-align:center}
body.inner .page h2{font:18px 'highway gothic';letter-spacing:3px;margin:40px 0 18px}
body.inner .page h2:first-child{margin-top:0}
body.inner .page p,body.inner .page li{font:15px/1.6 'lydian'}
body.inner .page ul{margin-bottom:10px}
body.inner .page ul ul{margin:0 0 4px}
body.inner .page ul ul li{font-size:13px;line-height:1.5;color:#92311e}
/* Find: Northern / Southern California headings, each region list in two columns (one on phones) */
/* Privacy and Terms: left-aligned reading column */
body.inner .page.legal{max-width:640px;text-align:left}
body.inner .page.legal h2{text-align:center;margin-bottom:28px}
body.inner .page.legal h3{font:13px 'highway gothic';letter-spacing:2px;line-height:1.5;color:#92311e;text-transform:uppercase;margin:32px 0 8px}
body.inner .page.legal p{margin-bottom:12px}
body.inner .page.legal .warning{margin-top:36px;font-size:13px}

body.inner .page.find{max-width:900px}
body.inner .page.find section+section{margin-top:64px}
body.inner .page.find h2{font-size:20px;color:#92311e;margin:0 0 28px}
body.inner .find-cols{columns:2;column-gap:60px}
body.inner .find-cols .region{break-inside:avoid;padding-bottom:22px}
body.inner .page.find h3{font:15px 'highway gothic';letter-spacing:3px;margin:0 0 12px}
@media screen and (max-width:760px){
  body.inner .find-cols{columns:1}
}

/* shop grid — hover fades the photo and reveals title + tasting notes (as on the original store) */
.shop-note{font:15px/1.5 'lydian';margin-bottom:40px}
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:40px 30px;align-items:end}
.product{outline:0}
.product .photo{position:relative;margin-bottom:16px}
.product .photo img{display:block;max-height:475px;width:100%;object-fit:contain;transition:opacity 200ms ease-out}
.product .info{
  position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);
  opacity:0;visibility:hidden;transition:all 400ms ease-out;text-align:center;padding:0 10px
}
.product .info h3{font:14px 'highway gothic';letter-spacing:2px;margin-bottom:12px}
.product .info p{font:14px/1.5 'lydian';max-width:290px;margin:0 auto 12px}
.product .info p.notes{font:12px 'highway gothic';letter-spacing:1px;text-transform:uppercase}
.product .info p em{font-style:italic}
.product .photo:hover img,.product:focus-within .photo img{opacity:.1}
.product .photo:hover .info,.product:focus-within .info{opacity:1;visibility:visible}
.product .price{font:15px 'lydian';margin-bottom:12px}
.product .price small{display:block;font-size:11px;letter-spacing:1px;text-transform:uppercase;font-family:'highway gothic';margin-top:4px}
.product .buy{display:inline-flex;align-items:stretch;border:1px solid var(--rust)}
.product .buy input{width:38px;text-align:center;border:0;background:#FFF;font:13px 'lydian';color:var(--rust)}
.product .buy button{background:var(--rust);padding:0 18px;line-height:32px;font:12px 'highway gothic';letter-spacing:2px;color:#fff}
.product .soon{font:14px 'lydian';padding-top:8px}
/* below desktop the original shows the info inline instead of on hover */
@media screen and (max-width:1024px){
  .product .info{position:static;transform:none;opacity:1;visibility:visible;margin-bottom:12px}
  .product .photo:hover img,.product:focus-within .photo img{opacity:1}
}

/* --- responsive (from original) --- */
@media screen and (max-width:760px){
  .popup{width:300px;margin-left:-150px;padding:5px}
  .popup>div{border:2px solid var(--rust);padding:26px 15px}
  .popup>div button.close{width:28px;height:28px;line-height:30px;font-size:14px}
  .popup>div h1{font-size:16px;width:auto}
  .popup>div p{padding-top:8px}
  .popup>div form{padding-top:10px}
  #home #menu{width:480px;margin-left:-238px;top:83px;bottom:auto}
  #home #menu button,#home #menu a.textlink{font-size:12px}
  #home #menu button#l_home{display:none}
  #home #menu button#l_shop{margin-left:1px}
  #home #menu a.instagram{margin-left:10px}
  #home #menu .instagram{display:none}
  #home img#rose{top:36px;margin-left:-190px;width:380px}
  #home>img#una,#home>img#lou{margin-top:-90px;width:36px;height:180px}
  #home>img#una{left:35px}
  #home>img#lou{right:35px}
  #home>img#plant,#home>img#fruit,#home>img#flower,#home>img#astro{width:40px;height:40px}
  #home>img#plant{top:40px;left:30px}
  #home>img#astro{top:40px;right:30px}
  #home>img#flower{bottom:40px;left:30px}
  #home>img#fruit{bottom:40px;right:30px}
  .mobile-social{display:block;position:absolute;bottom:45px;left:50%;transform:translateX(-50%);z-index:101}
  .mobile-social img{width:20px}
  body.inner #home{padding:140px 60px 100px}
}
@media screen and (max-width:520px){
  #home #menu{width:250px;margin-left:-124px;height:18px;top:57px}
  /* Two-line menu on phones: see "Phone menu" in c7-theme.css (spacing is a gap there) */
  #home #menu button,#home #menu a.textlink{font-size:10px;letter-spacing:1.5px;line-height:18px;height:18px;margin-left:0}
  #home #menu button#l_shop{margin-left:0}
  #home #menu a.instagram{margin-left:0}
  /* Current-page underline: hide the '.' it is drawn with, which shows before the word here */
  #home #menu button.on:after,#home #menu a.textlink.on:after{color:transparent;left:0}
  /* Bottle photos: the C7 images are 188x450, so keep them from filling the whole screen */
  .product .photo img{max-height:320px}
  #home img#rose{top:22px;margin-left:-140px;width:280px}
  #home>img#una,#home>img#lou{margin-top:-60px;width:24px;height:120px}
  #home>img#una{left:20px}
  #home>img#lou{right:20px}
  #home>img#plant,#home>img#fruit,#home>img#flower,#home>img#astro{width:30px;height:30px}
  #home>img#plant{top:25px;left:15px}
  #home>img#astro{top:25px;right:15px}
  #home>img#flower{bottom:25px;left:15px}
  #home>img#fruit{bottom:25px;right:15px}
  .mobile-social{bottom:25px}
  body.inner #home{padding:128px 50px 80px}
  body.inner #home #menu{top:57px}
}
@media screen and (max-height:480px){
  #home>img#una{left:-1000px}
  #home>img#lou{right:-1000px}
}
