/* Nicolas Vin — stylesheet
   Same look as the original nicolasvin.se: Bodoni headings, Basic Sans italic body (Adobe Fonts kit sbs7fvi),
   light-brown paper, dark-brown "multiply" boxes over photos, green pill buttons. */

:root {
  --white: #fff;
  --green: #52911c;
  --light-brown: #f8e9df;
  --middle-brown: #e6d4cb;
  --border-brown: #f0e0d5;
  --brown: #9d7f79;
  --dark-brown: #704545;
  --dark-red: #421c12;
  --red: #b3261e;
  --nav-bg: rgba(66, 28, 18, .95);

  --text: var(--dark-red);
  --bg: var(--light-brown);

  --sans: "basic-sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "bodoni-urw", "Bodoni 72", "Didot", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: italic 400 20px/1.43 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (max-width: 1440px) { body { font-size: 18px; } }
@media (max-width: 425px)  { body { font-size: 16px; } }

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 10px; }
ul { margin: 0 0 10px; }

a { color: var(--dark-brown); text-decoration: underline; transition: opacity .3s ease-in-out; }
a:hover { opacity: .5; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 30px;
  font: normal 400 2em/1.43 var(--serif);
}

.visually-hidden, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 3000; background: var(--dark-red); color: #fff; padding: 8px 12px; }

.t-center { text-align: center; }
.img-center { margin: 0 auto; }
.mt-50 { margin-top: 50px; }

/* ---------- Grid ---------- */
.container { margin: 0 auto; padding: 0 15px; width: 100%; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid > * { min-width: 0; }
@media (min-width: 768px) {
  .grid-7-5 { grid-template-columns: 7fr 5fr; }
  .grid-6-6 { grid-template-columns: 1fr 1fr; }
}
.col-center { align-self: center; }
.col-flex { display: flex; flex-direction: column; justify-content: space-evenly; }
.col-flex p { font-size: 1.1em; }

/* ---------- "Multiply" boxes over photos ---------- */
.bg-multiply { position: relative; color: var(--white); }
.bg-multiply::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-color: var(--dark-brown); mix-blend-mode: multiply; opacity: .9;
}
.bg-multiply-content { position: relative; z-index: 2; }

/* ---------- Header ---------- */
.header {
  background: url("../../img/home/champagne-vin.jpg") center top / cover no-repeat;
  padding-bottom: 20px;
  min-height: 225px;
}
.page-start .header { min-height: 80vh; }
@media (max-height: 960px) { .page-start .header { min-height: 100vh; } }

.header-top { display: grid; grid-template-columns: 290px 1fr; gap: 20px; }
.header-logo { display: flex; align-items: center; height: 220px; }
.header-logo::before { background: linear-gradient(180deg, var(--dark-brown) 0%, var(--white) 100%); }
.header-logo a { display: block; width: 100%; }
.header-logo img { width: 100%; }
.header-right { padding-top: 90px; }

.stick-logo { display: none; }
.stick-logo img { max-width: 200px; }

.header-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 20px; }
.sub-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; }
.nav-item {
  display: block; text-align: center; padding: 10px 15px;
  color: var(--white); text-decoration: none;
}
.nav-item:hover { opacity: .75; }
.nav-item[aria-current="page"]::after {
  content: ""; position: absolute; bottom: 0; left: 50%; z-index: 3;
  width: 50px; height: 4px; margin-left: -25px; background: var(--white);
}

/* Sticky bar (class added by main.js once the menu scrolls out of view) */
.stick.is-sticky {
  position: fixed; top: 0; left: 0; z-index: 2010; width: 100%;
  background: var(--nav-bg);
}
.stick.is-sticky .stick-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 15px;
  display: grid; grid-template-columns: 256px 1fr; align-items: center; gap: 20px;
}
.stick.is-sticky .stick-logo { display: block; }
.stick.is-sticky .nav-item { padding: 5px 15px; }
.stick.is-sticky .sub-nav { margin-top: 10px; }

/* Hamburger */
.nav-toggle {
  display: none; position: relative; z-index: 2100;
  width: 44px; height: 38px; margin: 3px 0 3px auto; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span[aria-hidden] {
  position: absolute; left: 0; width: 100%; height: 3px; border-radius: 9px;
  background: var(--white); transition: .25s ease-in-out;
}
.nav-toggle span:nth-child(1) { top: 8px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(135deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { left: -60px; opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 18px; transform: rotate(-135deg); }

@media (max-width: 992px) {
  .header-logo { height: 120px; }
  .header-right { padding-top: 20px; }
  .nav-toggle { display: block; }
  .stick.is-sticky .stick-logo img { max-width: 150px; }
  .stick.is-sticky .stick-inner { grid-template-columns: 1fr auto; }

  .nav-all {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 2050;
    width: 0; overflow: hidden; padding-top: 130px;
    background: var(--nav-bg); transition: width .5s ease;
  }
  .nav-all.is-open { width: 40%; overflow-y: auto; }
  .header-nav, .sub-nav { display: block; margin: 0; }
  .sub-nav { border-top: 1px solid var(--brown); margin-top: 20px; padding-top: 20px; }
  .nav-item { text-align: left; white-space: nowrap; }
  .nav-item::before { content: none; }
  .nav-item[aria-current="page"] { background: var(--dark-brown); }
  .nav-item[aria-current="page"]::after { content: none; }
}
@media (max-width: 768px) { .nav-all.is-open { width: 80%; } }
@media (max-width: 425px) { .header-top { grid-template-columns: 170px 1fr; } }

/* Start page hero text */
.hero-box { max-width: 690px; margin: 8% auto 0; padding: 1.8em 2.8em; }
.hero-box h1 { margin-bottom: 20px; }
.hero-box ul { margin: 0; padding-left: 1.1em; }
@media (min-height: 1240px) { .hero-box { margin-top: 12%; } }
@media (max-width: 600px) { .hero-box { padding: 1.2em 1.4em; } .hero-box h1 { font-size: 1.5em; } }

/* ---------- Sections ---------- */
.section { padding: 50px 0; }

.title, .title-main { color: var(--dark-brown); }
.title-main { font-size: 4em; margin-bottom: 10px; text-align: center; line-height: 1.2; }
.title-page {
  font: italic 400 1.6em/1.43 var(--sans);
  color: var(--dark-brown);
  border-top: 1px solid; border-bottom: 1px solid;
  padding: 5px 0; margin: 0 0 30px;
}
@media (max-width: 425px) { .title-main { font-size: 2em; } .title-page { font-size: 1em; } }

.sub-title { text-align: center; font-size: 1.5em; margin-bottom: 30px; color: var(--dark-brown); }

.separator { position: relative; width: 100%; max-width: 1170px; margin: 0 auto; padding: 50px 15px; }
.separator::before, .separator::after {
  content: ""; position: absolute; top: 50%; height: 1px; width: 35%; background: var(--brown);
}
.separator::before { left: 15px; }
.separator::after { right: 15px; }
.separator span, .separator-icon {
  display: block; width: 180px; height: 90px; margin: 0 auto;
  background: url("../../img/icon/separator.svg") center / 100% no-repeat;
}
.separator-icon { margin: 30px auto; }

.badges { display: flex; justify-content: space-around; align-items: center; gap: 10px; margin: 30px 0; }
@media (max-width: 992px) { .badges img { max-width: 140px; } }
@media (max-width: 425px) { .badges img { max-width: 100px; } }

/* Bottle tiles (start page) */
.bottles { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 10px; }
.bottle {
  position: relative; display: block; height: 380px;
  background: var(--white); box-shadow: 0 0 5px var(--brown);
  text-decoration: none;
}
.bottle img { max-height: calc(100% - 70px); margin: 0 auto; }
.bottle-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--middle-brown); color: var(--dark-brown);
  padding: 15px; text-align: center; font-size: 1.3em; font-weight: 700; line-height: 1.2;
}
@media (max-width: 992px) and (min-width: 768px) { .bottle-title { font-size: 1em; } }
@media (max-width: 526px) { .bottle-title { font-size: 1em; } .bottle { height: 300px; } .bottles { gap: 15px; } }

/* Rounded photo frame */
.img-border {
  width: 100%; max-height: 406px; object-fit: cover;
  border-radius: 10em; border: 2em solid var(--border-brown);
}
.img-stack { display: flex; flex-direction: column; justify-content: space-around; gap: 30px; }

/* Full-width photo above the footer */
.section-last { height: 600px; margin-top: 50px; }
.section-last img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .section-last { height: 360px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; min-width: 250px; margin: 30px auto 0; padding: 10px 30px;
  border: 0; border-radius: 50px;
  font: italic 700 1.2em/1.43 var(--sans); text-align: center; text-decoration: none;
  color: var(--white); cursor: pointer;
  transition: opacity .3s ease-in-out, background-color .3s ease-in-out;
}
.btn:hover { opacity: .5; }
.btn-action { background: var(--green); }
.btn-invert { background: var(--white); color: var(--green); border: 5px solid var(--green); }
.btn-info { color: var(--dark-brown); border: 5px solid var(--dark-brown); }
@media (max-width: 425px) { .btn { min-width: 0; width: 100%; } }

/* ---------- Sortiment ---------- */
.champ-wine { font-size: 1.5em; margin-top: 30px; color: var(--dark-brown); }
.champ-wine a { margin: 0 10px; }
.champ-wine .title { font-size: 1.33em; margin-bottom: 10px; }

.boxes { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 80px; }
@media (min-width: 768px) { .boxes { grid-template-columns: 1fr 1fr; gap: 80px 20px; } }
.product-box { display: flex; flex-direction: column; background: var(--middle-brown); }
.product-box-title {
  font: italic 700 1.2em/1.43 var(--sans); color: var(--dark-brown);
  padding: 10px 30px; margin: 0;
}
.product-box-img { background: var(--white); }
.product-box-img img { margin: 0 auto; }
.product-box-listing { padding: 20px 30px; line-height: 1.2; color: var(--dark-brown); font-style: normal; flex: 1; }
.product-box-listing p { margin-bottom: 0; }
.product-box-listing ul { margin: 0; padding: 0; list-style: none; }
.product-box-artnr { padding: 0 30px 20px; margin: 0; font-size: .9em; font-weight: 700; color: var(--dark-brown); }
.product-box-action { text-align: center; padding: 0 30px 20px; }
.product-box-action .btn { margin-top: 0; padding: 10px 50px; }
@media (max-width: 768px) { .product-box-action br { display: none; } }

.product-info {
  display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: center;
  background: var(--middle-brown); padding: 20px 30px; margin-top: 30px;
  scroll-margin-top: 90px;
}
.product-info-title { font-size: 2.25em; color: var(--dark-red); margin-bottom: 0; }
.product-info .champ-wine { margin-top: 0; }
.product-info-text { font-size: 1.1em; }
.product-info-text p { margin-bottom: 15px; }
.product-info-awards {
  background: var(--light-brown); padding: 20px 10px; margin: 40px 0 0;
  font-weight: 700; line-height: 1.2;
}
.product-info-img { background: var(--white); }
.product-info-img img { height: 511px; max-height: 100%; margin: 0 auto; object-fit: contain; }
@media (max-width: 768px) {
  .product-info { grid-template-columns: 1fr; padding: 20px; }
  .product-info-img { order: -1; }
  .product-info-img img { height: 360px; }
}

.private-import { padding: 20px 0; }
.private-import-content { font-size: 1.1em; }
.private-import-content p { margin-bottom: 20px; }
.private-import-content .title { font: italic 400 1.4em/1.43 var(--sans); color: var(--dark-red); margin: 50px 0 10px; }

.company { text-align: center; }
.company-country, .company-info { font-size: 1.5em; }
.company-name { font: normal 400 3em/1.2 var(--serif); margin-bottom: 10px; }

[id] { scroll-margin-top: 90px; }

/* ---------- Producent ---------- */
.producent-content { font-size: 1.1em; }
.producent-content p { margin-bottom: 30px; }
.producent-content strong { font-weight: 600; }
.producent-content ul { padding: 0; margin: 0 0 30px; list-style: none; }
.producent-content .quote { font-size: 1.15em; }

/* ---------- Contact form ---------- */
.form { max-width: 600px; margin: 50px auto 0; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; color: var(--dark-brown); }
.form-input {
  display: block; width: 100%; padding: 5px;
  font: inherit; font-style: normal; color: var(--dark-red);
  background: var(--middle-brown);
  border: 0; border-bottom: 1px solid var(--dark-brown); border-radius: 0;
  outline: none;
}
.form-input:focus { border-bottom: 2px solid var(--green); padding-bottom: 4px; }
.form-input[aria-invalid="true"] { border-bottom: 2px solid var(--red); padding-bottom: 4px; }
select.form-input { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--middle-brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23704545' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center no-repeat;
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-error { margin: 6px 0 0; padding: 0 5px; font-size: .75em; color: var(--red); }
.form-note { font-size: .8em; color: var(--dark-brown); }
.form-button {
  display: block; min-width: 350px; margin: 30px auto 0; padding: 10px 30px;
  font: italic 700 1.2em/1.43 var(--sans);
  color: var(--white); background: var(--green);
  border: 0; border-radius: 2em; cursor: pointer;
  transition: opacity .3s ease-in-out;
}
.form-button:hover, .form-button:focus-visible { opacity: .5; }
@media (max-width: 425px) { .form-button { min-width: 0; width: 100%; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { padding: 10px 15px; margin-bottom: 30px; text-align: center; color: var(--white); }
.flash-ok { background: rgba(66, 169, 69, .8); }
.flash-error { background: var(--red); }

/* ---------- Footer ---------- */
.footer {
  background: url("../../img/footer/champagne-vin-nicolas-vin.jpg") center / cover no-repeat;
  color: var(--light-brown);
  padding: 3em 0 4.5em;
}
.footer h2 { font-size: 1.5em; margin-bottom: 20px; }
.footer a { color: var(--light-brown); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 20px; }
.footer-legal { margin-top: 30px; font-size: .9em; }

/* ---------- Go to top ---------- */
.go-top {
  position: fixed; right: 25px; bottom: 25px; z-index: 99;
  width: 35px; height: 35px;
  background: url("../../img/icon/go-to-top.png") center / 35px no-repeat;
}
.go-top[hidden] { display: none; }
@media (max-width: 768px) { .go-top { right: 15px; width: 30px; height: 30px; background-size: 30px; } }

/* ---------- Age confirmation ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .65);
}
.age-gate[hidden] { display: none; }
.age-gate-box {
  width: 80%; max-width: 900px; padding: 50px 30px; text-align: center;
  background: rgba(230, 212, 203, .9);
}
.age-gate-box p { max-width: 350px; margin: 0 auto; font-weight: 700; font-size: 1.2em; }
.age-gate-box .btn { width: 100%; max-width: 350px; }
.age-gate-no { display: inline-block; margin-top: 16px; font-size: .9em; }
@media (max-width: 600px) { .age-gate-box { width: 100%; padding: 36px 20px; } }
html.gate-open { overflow: hidden; }
