/* =========================================================
   Vira v Sebe — base stylesheet
   ========================================================= */
:root {
  --bg: #f7f3ee;
  --bg-alt: #efe8df;
  --ink: #1f1b18;
  --muted: #6b625b;
  --accent: #a8735a;
  --accent-dark: #8a5b45;
  --line: #ddd3c7;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 238, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .04em; }
.logo span { color: var(--accent); font-style: italic; }
.nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.nav a { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,27,24,.55), rgba(31,27,24,.1)); }
.hero__content { position: relative; z-index: 1; color: var(--white); max-width: 620px; }
.hero__content .eyebrow { color: #f0d9cc; }
.hero__content .lead { color: rgba(255,255,255,.88); }
.hero .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero .btn:hover { background: transparent; color: var(--white); }

/* ---------- Page header ---------- */
.page-header { padding: 72px 0 48px; text-align: center; border-bottom: 1px solid var(--line); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .8rem; color: var(--muted); padding: 20px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); align-items: center; gap: 64px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Product card ---------- */
.card { display: block; }
.card__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-alt); margin-bottom: 16px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__title { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 4px; }
.card__price { color: var(--muted); font-size: .95rem; }

/* ---------- Features ---------- */
.feature { text-align: center; padding: 0 12px; }
.feature__num { font-family: var(--serif); font-size: 2.4rem; color: var(--accent); display: block; margin-bottom: 8px; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding: 24px 0 96px; }
.product__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product__gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg-alt); }
.product__gallery img:first-child { grid-column: 1 / -1; }
.product__info { position: sticky; top: 108px; align-self: start; }
.product__price { font-size: 1.5rem; margin-bottom: 24px; }
.product__meta { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.product__meta li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.product__meta li span:first-child { color: var(--muted); }
.order-box { background: var(--white); border: 1px solid var(--line); padding: 28px; margin-top: 28px; }
.order-box .btn { width: 100%; text-align: center; font-size: 1rem; }
.order-box small { display: block; margin-top: 12px; color: var(--muted); text-align: center; }

/* ---------- Contacts ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.contact-list a { font-family: var(--serif); font-size: 1.5rem; }

/* ---------- Quote ---------- */
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 820px; margin: 0 auto; text-align: center; line-height: 1.35; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfc6bd; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white); font-weight: 500; margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo { color: var(--white); display: inline-block; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #3a342f; margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #8f857c; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .product { grid-template-columns: 1fr; gap: 40px; }
  .product__info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-toggle-label { display: block; cursor: pointer; width: 28px; height: 18px; position: relative; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; left: 0; width: 28px; height: 1.5px; background: var(--ink);
  }
  .nav-toggle-label span { top: 8px; }
  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav ul { flex-direction: column; gap: 0; padding: 12px 24px 24px; }
  .nav li a { display: block; padding: 12px 0; }
  .nav-toggle:checked ~ .nav { display: block; }
}
@media (max-width: 520px) {
  .grid--3, .footer-grid { grid-template-columns: 1fr; }
}
