/* components.css — buttons, cards, badges, cookie, misc */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-decoration: none; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-hero); color: #fff; box-shadow: 0 8px 22px rgba(108,76,241,.32); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(108,76,241,.40); }
.btn--warm { background: var(--grad-warm); color: #fff; box-shadow: 0 8px 22px rgba(255,77,141,.30); }
.btn--warm:hover { color:#fff; transform: translateY(-2px); }
.btn--ghost { background: var(--c-card); color: var(--c-ink); border: 1px solid var(--c-line); }
.btn--ghost:hover { border-color: var(--c-grape); color: var(--c-grape-d); transform: translateY(-2px); }

/* ---- Cards ---- */
.card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius-l); padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-s);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); border-color: transparent; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }

.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card-link:hover { color: inherit; }
.card-link .more {
  margin-top: auto; padding-top: 14px; font-family: var(--font-head);
  font-weight: 700; font-size: .9rem; color: var(--c-grape-d);
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link:hover .more { gap: 12px; color: var(--c-pink); }

.card-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 16px; color: #fff;
}
.card-icon svg { width: 28px; height: 28px; }
.bg-grape { background: var(--grad-violet); }
.bg-cool { background: var(--grad-cool); }
.bg-warm { background: var(--grad-warm); }
.bg-lime { background: linear-gradient(135deg, var(--c-lime), var(--c-sky)); }
.bg-amber { background: linear-gradient(135deg, var(--c-amber), var(--c-coral)); }
.bg-blue { background: linear-gradient(135deg, var(--c-blue), var(--c-grape)); }

/* feature tile with gradient bg */
.tile {
  border-radius: var(--radius-l); padding: clamp(22px,3vw,32px);
  color: #fff; position: relative; overflow: hidden; min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .25s;
}
.tile:hover { transform: translateY(-5px); }
.tile h3, .tile h2 { color: #fff; }
.tile p { color: rgba(255,255,255,.88); }
.tile--hero { background: var(--grad-hero); }
.tile--warm { background: var(--grad-warm); }
.tile--cool { background: var(--grad-cool); }
.tile .tile-kicker { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing:.06em; text-transform: uppercase; opacity: .85; margin-bottom: 8px; }
.tile-pattern::after {
  content: ""; position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.6) 1.5px, transparent 0);
  background-size: 22px 22px;
}

/* ---- Badges / pills ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; font-family: var(--font-head);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(108,76,241,.10); color: var(--c-grape-d);
}
.badge--pink { background: rgba(255,77,141,.12); color: var(--c-pink); }
.badge--lime { background: rgba(47,208,122,.14); color: #149953; }
.badge--amber { background: rgba(255,176,32,.16); color: #b9760a; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* country flag chip */
.flag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: 999px; padding: 6px 13px 6px 6px; font-size: .9rem; font-weight: 600; color: var(--c-ink);
  box-shadow: var(--shadow-s);
}
.flag .dot { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; }

/* stat */
.stat { text-align: left; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem,5vw,2.8rem); line-height: 1; background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--c-ink-soft); font-size: .92rem; margin-top: 6px; }

/* numbered step */
.step { display: flex; gap: 18px; }
.step .n {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  color: #fff; background: var(--grad-violet); font-size: 1.1rem;
}
.step h3 { margin-bottom: 4px; }
.step p { font-size: .97rem; }

/* quote */
.quote {
  border-radius: var(--radius-l); padding: clamp(24px,3vw,36px);
  background: var(--c-card); border: 1px solid var(--c-line); position: relative;
  box-shadow: var(--shadow-s);
}
.quote::before {
  content: "”"; font-family: var(--font-head); font-size: 5rem; line-height: .7;
  color: var(--c-pink); position: absolute; top: 18px; right: 24px; opacity: .25;
}
.quote blockquote { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem,2.2vw,1.45rem); color: var(--c-ink); }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: .92rem; color: var(--c-ink-soft); }

/* photo frame (hotlink optional) */
.photo {
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m);
  background: var(--grad-hero); position: relative; aspect-ratio: 4/3;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 3/4; }

/* divider */
.rule { height: 1px; background: var(--c-line); border: 0; margin: clamp(28px,5vw,48px) 0; }

/* ---- Cookie banner ---- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  max-width: 720px; margin: 0 auto;
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius-m); box-shadow: var(--shadow-l);
  padding: 18px 20px; display: none;
  gap: 14px 18px; align-items: center;
}
.cookie.is-visible { display: flex; flex-wrap: wrap; }
.cookie p { font-size: .92rem; flex: 1 1 280px; margin: 0; }
.cookie .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 18px; font-size: .9rem; }

/* ---- Page hero (inner) ---- */
.page-hero {
  background: var(--grad-hero); color: #fff; border-radius: 0 0 var(--radius-l) var(--radius-l);
  padding: clamp(48px,8vw,84px) 0 clamp(40px,6vw,64px); position: relative; overflow: hidden;
}
.page-hero::after {
  content:""; position:absolute; inset:0; opacity:.22; pointer-events:none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.7) 1.5px, transparent 0);
  background-size: 26px 26px;
}
.page-hero .eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.page-hero .eyebrow::before { background: #fff; }
.page-hero h1 { color: #fff; max-width: 18ch; position: relative; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 60ch; margin-top: 14px; position: relative; }

/* breadcrumb */
.crumbs { font-size: .85rem; color: var(--c-ink-soft); margin-bottom: 10px; }
.crumbs a { color: var(--c-grape-d); }
.crumbs .sep { margin: 0 7px; opacity: .5; }

/* article body */
.prose { max-width: 72ch; }
.prose h2 { margin: clamp(28px,4vw,44px) 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { font-size: 1.04rem; }
.prose ul, .prose ol { margin: 8px 0 8px; }
.prose figure { margin: 26px 0; }
.prose figcaption { font-size: .85rem; color: var(--c-ink-soft); margin-top: 8px; text-align: center; }
.callout {
  background: rgba(47,107,255,.06); border-left: 4px solid var(--c-blue);
  padding: 16px 18px; border-radius: 0 14px 14px 0; margin: 22px 0;
}
.callout strong { color: var(--c-blue); }

/* meta row for articles */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--c-ink-soft); font-size: .9rem; margin: 14px 0 0; }
.article-meta .sep { opacity: .4; }

/* contact cards */
.contact-line { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ic { width: 46px; height:46px; border-radius: 14px; display:grid; place-items:center; color:#fff; flex:0 0 auto; }
.contact-line .ic svg { width: 22px; height: 22px; }
.contact-line .k { font-size:.8rem; color: var(--c-ink-soft); }
.contact-line .v { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--c-ink); }
.contact-line a.v:hover { color: var(--c-grape-d); }

/* TOC */
.toc { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius-m); padding: 20px 22px; box-shadow: var(--shadow-s); }
.toc h4 { font-family: var(--font-head); font-size: .82rem; letter-spacing:.08em; text-transform: uppercase; color: var(--c-ink-soft); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; margin: 0 0 7px; }
.toc a { display: flex; gap: 10px; font-weight: 600; font-size: .95rem; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--c-pink); font-family: var(--font-head); }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
