/* ===========================================================
   byou.ro — revistă de modă & lifestyle
   Design editorial. Fără dependențe externe grele.
   =========================================================== */

:root {
  --ink: #1b1a18;
  --ink-soft: #4a453f;
  --muted: #8a8079;
  --line: #e6ded4;
  --paper: #fbf8f4;
  --paper-2: #f3ece2;
  --card: #ffffff;
  --accent: #b5544a;      /* terracotta */
  --accent-deep: #8f3f37;
  --gold: #a98a56;
  --max: 1200px;
  --radius: 4px;
  --shadow: 0 8px 30px rgba(27,26,24,.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,244,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em;
  color: var(--ink);
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft);
}
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: stretch; }
.hero-feature {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 460px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow);
}
.hero-feature .cover { position: absolute; inset: 0; }
.hero-feature .overlay {
  position: relative; z-index: 2; padding: 36px;
  background: linear-gradient(180deg, transparent, rgba(20,18,16,.82));
  color: #fff; width: 100%;
}
.hero-feature .overlay h1 { color: #fff; margin-bottom: .3em; }
.hero-feature .overlay .eyebrow { color: #ffd9c2; }
.hero-feature .overlay p { color: rgba(255,255,255,.85); margin-bottom: 0; max-width: 52ch; }

.hero-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 24px; }
.mini {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; padding: 0; transition: transform .2s, box-shadow .2s;
}
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini .cover { height: 100%; min-height: 120px; }
.mini .mini-body { padding: 16px 18px 16px 0; }
.mini h3 { font-size: 1.12rem; margin-bottom: .25em; }
.mini .meta { font-size: .74rem; color: var(--muted); }

/* ---------- Covers (image placeholders via gradient + monogram) ---------- */
.cover {
  background: linear-gradient(135deg, var(--c1, #d8c3b0), var(--c2, #b5544a));
  position: relative;
}
.cover.has-img { background-size: cover; background-position: center; }
.cover::after {
  content: attr(data-mono);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 900;
  font-size: 3rem; color: rgba(255,255,255,.28);
  letter-spacing: .05em;
}
.cover.has-img::after { content: none; }

/* ---------- Section ---------- */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--accent); }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .cover { aspect-ratio: 3/2; }
.card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card .cat { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.card h3 { font-size: 1.3rem; margin-bottom: .4em; }
.card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1em; }
.card .meta { margin-top: auto; font-size: .76rem; color: var(--muted); }

/* ---------- Categories strip ---------- */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-chip {
  display: block; text-align: center; padding: 26px 14px;
  background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700; transition: .2s;
}
.cat-chip:hover { background: var(--ink); color: #fff; }
.cat-chip small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 600; }
.cat-chip:hover small { color: rgba(255,255,255,.7); }

/* ---------- Newsletter ---------- */
.news { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 48px; text-align: center; }
.news h2 { color: #fff; }
.news p { color: rgba(255,255,255,.75); max-width: 54ch; margin: 0 auto 1.4em; }
.news form, .news-form { max-width: 460px; margin: 0 auto; }
.news-row { display: flex; gap: 10px; }
.news-row input {
  flex: 1; padding: 14px 16px; border: 0; border-radius: var(--radius); font-size: 1rem; font-family: var(--sans);
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--ink-soft); line-height: 1.4; text-align: left; margin-top: 12px; }
.consent a { text-decoration: underline; }
.consent input { margin-top: 3px; flex: 0 0 auto; }
.news .consent { color: rgba(255,255,255,.72); }
.news .consent a { color: #fff; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 14px 26px; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; transition: background .2s;
}
.btn:hover { background: var(--accent-deep); color: #fff; }

/* ---------- Article page ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 50px 24px 20px; }
.article .cat { color: var(--accent); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .74rem; }
.article h1 { margin: .3em 0 .3em; }
.article .byline { color: var(--muted); font-size: .85rem; margin-bottom: 28px; }
.article .lead { font-size: 1.25rem; color: var(--ink-soft); font-family: var(--serif); font-style: italic; line-height: 1.5; margin-bottom: 30px; }
.article-cover { aspect-ratio: 16/7; border-radius: var(--radius); margin: 0 0 34px; box-shadow: var(--shadow); }
.article-body p { font-size: 1.08rem; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.4em; font-size: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  border-left: 3px solid var(--accent); margin: 1.6em 0; padding: .3em 0 .3em 22px;
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft);
}
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0; }
.tag { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; background: var(--paper-2); border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px; color: var(--ink-soft); font-weight: 600; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 40px; }
.share-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.share-btn { cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); font: inherit; font-size: .82rem; font-weight: 600; padding: 8px 15px; border-radius: 100px; transition: background .2s, color .2s, border-color .2s; }
.share-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.x:hover { background: #111; border-color: #111; }
.share-btn.wa:hover { background: #25d366; border-color: #25d366; }
.share-btn.pin:hover { background: #e60023; border-color: #e60023; }

/* ---------- Page header (categorii/despre) ---------- */
.page-head { text-align: center; padding: 60px 0 20px; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 60px; padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; }
.footer-brand span { color: var(--accent); }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: .8rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Poliția Modei ---------- */
.pm-note { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; font-size: .88rem; color: var(--ink-soft); margin: 22px 0; }
.pm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0 34px; }
.pm-look { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: transform .2s, box-shadow .2s; }
.pm-look:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pm-ill { display: block; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(27,26,24,.12)); }
.pm-look h4 { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 4px; }
.pm-look .pm-desc { font-size: .9rem; color: var(--ink-soft); margin: 0 0 8px; line-height: 1.5; }
.pm-verdict { font-size: .84rem; font-weight: 600; margin: 0; }
.pm-verdict.wow { color: #2e7d4f; }
.pm-verdict.hm { color: var(--accent); }
.pm-why { font-size: .86rem; color: var(--ink); margin: 0 0 8px; line-height: 1.55; }
.pm-why strong { color: var(--accent); }
.pm-source { font-size: .74rem; margin: 6px 0 0; }
.pm-source a { color: var(--muted); text-decoration: underline; }
.pm-source a:hover { color: var(--accent); }
.pm-gallery { display: inline-block; margin: 4px 0 30px; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.pm-gallery:hover { color: var(--accent-deep); }
@media (max-width: 620px) { .pm-grid { grid-template-columns: 1fr; } }

/* ---------- Animații ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .cats .reveal:nth-child(2) { transition-delay: .07s; }
.grid .reveal:nth-child(3), .cats .reveal:nth-child(3) { transition-delay: .14s; }
.cats .reveal:nth-child(4) { transition-delay: .21s; }
.cats .reveal:nth-child(5) { transition-delay: .28s; }
.card .cover { transition: transform .5s ease; }
.card:hover .cover { transform: scale(1.05); }
.hero-feature .cover { transition: transform .9s ease; }
.hero-feature:hover .cover { transform: scale(1.05); }
.cat-chip { transition: background .2s, color .2s, transform .2s; }
.cat-chip:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card:hover .cover, .hero-feature:hover .cover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1500px) {
  :root { --max: 1320px; }
  body { font-size: 18px; }
}
@media (max-width: 1024px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .news { padding: 30px 20px; }
  .news-row { flex-direction: column; }
  .mini { grid-template-columns: 96px 1fr; }
  .hero { padding: 30px 0 20px; }
  .hero-feature { min-height: 340px; }
  .hero-feature .overlay { padding: 24px; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .article { padding: 34px 20px 10px; }
  .article .lead { font-size: 1.12rem; }
}
@media (max-width: 400px) {
  body { font-size: 15px; }
  .brand { font-size: 1.5rem; }
  .hero-feature { min-height: 300px; }
  .news { padding: 24px 16px; }
  .card .card-body { padding: 18px; }
}
