/*
═══════════════════════════════════════════════════════════════════
  SCHICGIRL — site.css  ·  schicgirl.me
  © 2024–2026 Schicgirl. All rights reserved.
  Shared design system for the public-facing pages.
  Fonts: Cormorant Garamond (serif) + Jost (sans).
  Palette: warm gold / cream / rose. Do not alter brand colors.
═══════════════════════════════════════════════════════════════════
*/

/* ─── Design tokens ─── */
:root {
  --bg: #fdf8f2;
  --ink: #2d1a0e;
  --ink-soft: #5a3a22;
  --muted: rgba(45, 26, 14, 0.6);
  --gold: #c9934a;
  --gold-deep: #a06d28;
  --gold-lt: #e8c07e;
  --gold-pale: #f5e8d0;
  --rose: #e8b4a0;
  --rose-deep: #c47a65;
  --cream: rgba(255, 248, 238, 0.9);
  --glass: rgba(255, 252, 246, 0.82);
  --stroke: rgba(201, 147, 74, 0.22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --shadow-s:
    0 1px 2px rgba(62, 38, 28, 0.05), 0 4px 12px rgba(62, 38, 28, 0.06),
    0 12px 28px -8px rgba(62, 38, 28, 0.06);
  --shadow:
    0 2px 4px rgba(62, 38, 28, 0.06), 0 8px 20px rgba(62, 38, 28, 0.1),
    0 24px 48px -12px rgba(62, 38, 28, 0.14);
  --shadow-warm:
    0 1px 2px rgba(62, 38, 28, 0.04), 0 6px 18px rgba(201, 147, 74, 0.1),
    0 18px 38px -10px rgba(201, 147, 74, 0.12);
  --r: 20px;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  padding: 0 18px 90px;
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(232, 180, 160, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(237, 217, 176, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(253, 246, 238, 0.8) 0%, transparent 70%),
    linear-gradient(160deg, #fdf6ee 0%, #f8ece0 100%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}
img { -webkit-user-drag: none; }
a { color: var(--gold-deep); }

/* ─── Layout wrap ─── */
.wrap { max-width: 680px; margin: 0 auto; }
.wrap--narrow { max-width: 560px; }

/* ─── Top bar (back + language toggle) ─── */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; gap: 12px; }
.back { font-size: 13px; font-weight: 600; color: var(--gold-deep); text-decoration: none; white-space: nowrap; }
.back:hover { text-decoration: underline; }
.lang-toggle { display: flex; background: rgba(201, 147, 74, 0.1); border-radius: 100px; padding: 3px; gap: 2px; }
.lang-btn {
  padding: 6px 14px; border: none; border-radius: 100px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  cursor: pointer; background: transparent; color: var(--muted);
  letter-spacing: 0.05em; transition: all 0.2s;
}
.lang-btn.is-active { background: var(--gold); color: #fff; box-shadow: 0 2px 8px rgba(201, 147, 74, 0.4); }

/* ─── Page hero ─── */
.hero { text-align: center; padding: 34px 0 6px; }
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(201, 147, 74, 0.12); border: 1px solid rgba(201, 147, 74, 0.3);
  border-radius: 100px; padding: 6px 15px 6px 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--gold-deep); margin-bottom: 16px;
}
.eyebrow-badge::before { content: "✦"; font-size: 12px; color: var(--gold); }
h1 {
  font-family: var(--serif); font-size: clamp(34px, 9vw, 46px);
  font-weight: 300; line-height: 1.08; margin-bottom: 14px; color: var(--ink);
}
h1 .accent { color: var(--gold-deep); font-style: italic; font-weight: 600; }
.lead {
  font-family: var(--serif); font-size: 18px; font-style: italic;
  color: var(--ink-soft); line-height: 1.55; max-width: 460px; margin: 0 auto;
}

/* ─── Section cards ─── */
.section {
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--r);
  padding: 24px 24px; box-shadow: var(--shadow-warm); margin-top: 18px;
}
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px;
}
h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.18; margin-bottom: 12px; color: var(--ink); }
h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.25; margin: 18px 0 8px; color: var(--ink); }

/* ─── Prose (article + legal body) ─── */
.prose { font-size: 15.5px; line-height: 1.72; color: var(--ink-soft); }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.prose h2 { margin-top: 26px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 4px; list-style: none; }
.prose ul li { position: relative; padding-left: 24px; margin: 9px 0; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; background: var(--gold); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.prose ol { counter-reset: pr; }
.prose ol li { position: relative; padding-left: 28px; margin: 10px 0; counter-increment: pr; }
.prose ol li::before { content: counter(pr); position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--gold-pale); color: var(--gold-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.prose blockquote {
  margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, rgba(232, 180, 160, 0.14), rgba(245, 232, 208, 0.35));
  border-radius: 0 12px 12px 0; font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--ink);
}
.prose hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--stroke), transparent); margin: 24px 0; }

/* Highlight callout */
.callout {
  background: linear-gradient(135deg, rgba(232, 180, 160, 0.18), rgba(245, 232, 208, 0.4));
  border: 1px solid var(--stroke); border-radius: var(--r);
  padding: 18px 20px; margin: 18px 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* ─── FAQ ─── */
.faq dt { font-weight: 700; margin-top: 16px; font-size: 15px; color: var(--ink); }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 5px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ─── Buttons ─── */
.btn {
  display: inline-block; text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  padding: 15px 26px; border-radius: 100px; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(201, 147, 74, 0.42); transition: filter 0.2s, transform 0.1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.99); }
.btn--block { display: block; width: 100%; }
.btn--ghost { background: transparent; color: var(--gold-deep); border: 1.5px solid var(--stroke); box-shadow: none; }
.btn--ghost:hover { background: rgba(201, 147, 74, 0.08); filter: none; }
/* keep button text white even when the button sits inside .prose (which styles <a> gold + underline) */
.prose a.btn { color: #fff; text-decoration: none; }
.prose a.btn:hover { color: #fff; }
.prose a.btn--ghost { color: var(--gold-deep); }

/* ─── Contact form ─── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 147, 74, 0.15);
}

/* ─── Contact method tiles ─── */
.contact-grid { display: grid; gap: 12px; }
.contact-tile {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, rgba(232, 180, 160, 0.18), rgba(253, 246, 238, 0.85));
  border: 1px solid var(--stroke); border-radius: var(--r); padding: 16px 18px;
  box-shadow: var(--shadow-warm); transition: transform 0.2s, box-shadow 0.2s;
}
.contact-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-tile .ico {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--rose), var(--gold-lt));
}
.contact-tile .ct-title { font-size: 14.5px; font-weight: 700; }
.contact-tile .ct-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ─── Blog index cards ─── */
.post-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 560px) { .post-grid { grid-template-columns: 1fr 1fr; } }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-warm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .pc-thumb {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; background: linear-gradient(135deg, var(--gold-pale), rgba(201, 147, 74, 0.28));
}
.post-card .pc-body { padding: 16px 18px 18px; }
.post-card .pc-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.post-card .pc-title { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.2; margin: 6px 0 6px; }
.post-card .pc-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.post-card .pc-meta { font-size: 11.5px; color: var(--muted); margin-top: 12px; display: flex; gap: 10px; align-items: center; }

/* Article meta line */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.article-meta .dot { color: var(--gold); }

/* ─── Google AdSense slots ─── */
.ad-slot { margin: 22px 0; text-align: center; min-height: 90px; overflow: hidden; }
.ad-slot ins { display: block; }
.ad-label { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); opacity: 0.55; margin-bottom: 4px; }

/* ─── Footer (with nav links) ─── */
.site-footer { text-align: center; margin-top: 40px; padding: 0 6px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.site-footer .footer-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 147, 74, 0.25), transparent); margin: 0 0 18px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin-bottom: 14px; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; padding: 0 12px; font-size: 12.5px; }
.footer-nav a:not(:last-child) { border-right: 1px solid var(--stroke); }
.footer-nav a:hover { color: var(--gold-deep); }
.site-footer .legal { font-size: 11px; }
.site-footer strong { color: var(--gold-deep); }

/* ═══ Real-blog layout (main + sidebar) ═══ */
.wrap--blog { max-width: 1000px; }
.blog-layout { display: grid; gap: 26px; align-items: start; margin-top: 8px; }
@media (min-width: 880px) { .blog-layout { grid-template-columns: minmax(0, 1fr) 290px; } }
.blog-main { min-width: 0; }
.blog-aside { display: grid; gap: 16px; }
@media (min-width: 880px) { .blog-aside { position: sticky; top: 14px; } }

/* sidebar widgets */
.widget {
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: var(--r);
  padding: 18px 18px; box-shadow: var(--shadow-warm);
}
.widget-title {
  font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink);
  margin-bottom: 14px; display: flex; align-items: center; gap: 9px; line-height: 1.1;
}
.widget-title::before { content: ""; width: 4px; height: 17px; border-radius: 2px; background: linear-gradient(var(--gold), var(--gold-deep)); flex-shrink: 0; }

/* search */
.sg-search { display: flex; gap: 8px; }
.sg-search input {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--stroke);
  border-radius: 100px; padding: 10px 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.sg-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 147, 74, 0.15); }
.sg-search button {
  border: none; cursor: pointer; border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; font-size: 15px;
}

/* category list */
.cat-list { display: grid; gap: 2px; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500;
  padding: 8px 10px; border-radius: 10px; transition: background 0.15s, color 0.15s;
}
.cat-list a:hover { background: rgba(201, 147, 74, 0.08); color: var(--gold-deep); }
.cat-list a.is-active { background: rgba(201, 147, 74, 0.14); color: var(--gold-deep); font-weight: 700; }
.cat-list .cat-count {
  font-size: 11px; font-weight: 700; color: var(--gold-deep);
  background: var(--gold-pale); border-radius: 100px; padding: 2px 9px; min-width: 24px; text-align: center;
}

/* recent posts */
.recent-list { display: grid; gap: 4px; }
.recent-item { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 7px; border-radius: 12px; transition: background 0.15s; }
.recent-item:hover { background: rgba(201, 147, 74, 0.07); }
.recent-thumb {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-pale), rgba(201, 147, 74, 0.28));
}
.recent-body { min-width: 0; }
.recent-title { font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.2; }
.recent-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* gift / newsletter widget */
.widget-cta { text-align: center; background: linear-gradient(150deg, var(--rose), var(--gold)); color: #fff; border: none; }
.widget-cta .widget-title { color: #fff; justify-content: center; }
.widget-cta .widget-title::before { display: none; }
.widget-cta p { font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; opacity: 0.95; }
.widget-cta .btn { background: #fff; color: var(--gold-deep); box-shadow: 0 6px 16px rgba(62, 38, 28, 0.18); }

/* about widget */
.about-widget { text-align: center; }
.about-widget img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; border: 2px solid var(--gold-lt); }
.about-widget p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.about-widget a { color: var(--gold-deep); font-weight: 600; text-decoration: none; }

/* tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: rgba(201, 147, 74, 0.1); border: 1px solid var(--stroke); border-radius: 100px; padding: 5px 12px; text-decoration: none; transition: all 0.15s; }
.tag-cloud a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* active filter banner + empty state */
.filter-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(201, 147, 74, 0.1); border: 1px solid var(--stroke); border-radius: 100px; padding: 8px 8px 8px 18px; margin-bottom: 4px; font-size: 13px; color: var(--ink-soft); }
.filter-banner b { color: var(--gold-deep); }
.filter-banner button { border: none; cursor: pointer; background: var(--gold); color: #fff; font-weight: 600; font-size: 12px; border-radius: 100px; padding: 7px 14px; }
.blog-empty { text-align: center; color: var(--muted); padding: 40px 10px; font-family: var(--serif); font-style: italic; font-size: 18px; }

/* ═══ Blog hero carousel (swipeable) ═══ */
.hero-carousel { position: relative; max-width: 620px; margin: 6px auto 0; }
.hc-track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: var(--r); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hc-track::-webkit-scrollbar { display: none; }
.hc-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--gold-pale), rgba(232, 180, 160, 0.45)); }
.hc-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.hc-slide .hc-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(45, 26, 14, 0.55), transparent);
  color: #fff; font-family: var(--serif); font-style: italic; font-size: 16px; text-align: center;
}
.hc-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 252, 246, 0.9); color: var(--gold-deep); font-size: 17px;
  box-shadow: var(--shadow-s); display: flex; align-items: center; justify-content: center;
}
.hc-btn:hover { background: #fff; }
.hc-prev { left: 10px; } .hc-next { right: 10px; }
.hc-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.hc-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: var(--stroke); transition: all 0.2s; }
.hc-dots button.is-active { background: var(--gold); width: 22px; border-radius: 100px; }

/* article featured image */
.article-cover { margin: 16px 0 2px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-warm); background: linear-gradient(135deg, var(--gold-pale), rgba(232, 180, 160, 0.4)); }
.article-cover img { display: block; width: 100%; height: 360px; object-fit: contain; object-position: center; }

/* image thumbnails on post cards + recent list */
.post-card .pc-thumb-img { width: 100%; height: 130px; object-fit: cover; object-position: center 28%; display: block; background: linear-gradient(135deg, var(--gold-pale), rgba(201, 147, 74, 0.28)); }
.recent-thumb-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; object-position: center 25%; flex-shrink: 0; background: var(--gold-pale); }

/* ─── Bilingual helpers ─── */
[data-lang].hide { display: none !important; }
.hide { display: none !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
