/* radisha.hr — katalog Radisha
 * Svijetla studijska paleta (pozadina iz Radishinog studija), srebrni žig, boje specijalista.
 */

:root {
  --bg: #eceef2;
  --bg-card: #f8f9fb;
  --ink: #141619;
  --ink-2: #2b2f36;
  --muted: #5a606a;
  --line: rgba(20, 22, 25, 0.12);
  --dark: #111317;
  --on-dark: #eceef2;
  --on-dark-muted: #a4a9b3;

  --green: #7bd24b;
  --green-ink: #2f7d12;
  --blue: #1f5fd6;
  --violet: #6d3ad6;
  --amber: #a86d00;

  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::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;
  background:
    radial-gradient(ellipse 70% 50% at 70% 0%, rgba(255, 255, 255, 0.85), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- zaglavlje ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; }
.top .logo img { display: block; height: 54px; width: auto; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 28px); font-weight: 600; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

/* ---------- naslovnica ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "rjecnik roboti"
    "naslov naslov"
    "gumbi gumbi";
  gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(36px, 6vh, 72px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.hero .dictionary { grid-area: rjecnik; max-width: none; }
.hero .trio { grid-area: roboti; }
.hero .actions { grid-area: gumbi; margin-top: 0; }
.hero h1 {
  grid-area: naslov;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  font-weight: 780;
  font-stretch: 86%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero .lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 90%;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.55); }
.btn::after { content: " →"; color: var(--green); }
.link-more { font-weight: 600; text-underline-offset: 0.25em; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trio figure { margin: 0; }
.trio img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4.2; object-fit: cover; object-position: 50% 40%;
  transform: scale(1.07); transform-origin: 50% 12%;
}
/* okvir reže svijetlu traku ispod ruba stola na dnu kadra */
.ph { overflow: hidden; border-radius: 14px; background: #c9ccd4; box-shadow: 0 24px 50px -30px rgba(20, 22, 25, 0.45); }
.trio figure:nth-child(2) { transform: translateY(-18px); }
.trio figcaption { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- katalog ---------- */
.catalog { padding-bottom: clamp(56px, 9vh, 104px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 760; font-stretch: 86%; }
.section-head p { color: var(--muted); max-width: 30em; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  --c: var(--ink);
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.card[data-area="tehnika"] { --c: var(--blue); }
.card[data-area="brojke"] { --c: var(--violet); }
.card[data-area="pisanje"] { --c: var(--amber); }
a.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(20, 22, 25, 0.5); }
.tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.card h3 { font-size: 1.28rem; font-weight: 720; font-stretch: 90%; line-height: 1.15; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 0.85rem; }
.works { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.works::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(123, 210, 75, 0.25); }
.more { font-weight: 700; color: var(--ink); }

/* ---------- kako se uvodi ---------- */
.steps-sec { padding-bottom: clamp(56px, 9vh, 104px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 16px; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.steps h3 { font-size: 1.15rem; font-weight: 720; font-stretch: 90%; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }

/* ---------- tamna traka s pozivom ---------- */
.band { background: var(--dark); color: var(--on-dark); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: clamp(48px, 8vh, 80px); padding-bottom: clamp(48px, 8vh, 80px); }
.band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 780; font-stretch: 86%; margin-bottom: 10px; }
.band p { color: var(--on-dark-muted); max-width: 34em; }
.band .btn { background: var(--green); color: var(--dark); }
.band .btn::after { color: var(--dark); }
.band .mail { display: block; margin-top: 12px; color: var(--on-dark-muted); font-size: 0.95rem; }
.band .mail a { color: var(--on-dark); }

/* ---------- podnožje ---------- */
.foot { background: #0a0b0e; color: #8b909a; font-family: var(--mono); font-size: 0.76rem; line-height: 1.8; }
.foot .wrap { padding-top: 32px; padding-bottom: 40px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.foot img { height: 56px; width: auto; }
.foot strong { color: #eceef2; font-weight: 500; }
.foot a { color: #c9ccd3; }

/* ---------- stranica jednog Radishe ---------- */
.crumbs { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding-top: 26px; }
.crumbs a { color: var(--ink-2); }
.item-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: 22px; padding-bottom: clamp(40px, 7vh, 80px); }
.item-page { --c: var(--ink); }
.item-page[data-area="tehnika"] { --c: var(--blue); }
.item-page[data-area="brojke"] { --c: var(--violet); }
.item-page[data-area="pisanje"] { --c: var(--amber); }
.item-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 780; font-stretch: 86%; line-height: 1; letter-spacing: -0.03em; margin-bottom: 20px; }
.item-hero .lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.item-hero .ph { border-radius: 16px; box-shadow: 0 28px 60px -32px rgba(20, 22, 25, 0.5); }
.item-hero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 38%; transform: scale(1.07); transform-origin: 50% 12%; }

.item-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 9vh, 104px); }
.item-body section h2 { font-size: 1.5rem; font-weight: 740; font-stretch: 88%; margin-bottom: 14px; }
.item-body ol, .item-body ul { margin: 0; padding-left: 1.2em; }
.item-body li { margin: 0 0 10px; color: var(--ink-2); }
.item-body li::marker { color: var(--c); font-weight: 700; }
.rights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; grid-column: 1 / -1; }
.rights > div { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.rights h3 { font-size: 1.1rem; font-weight: 720; font-stretch: 90%; margin-bottom: 10px; }
.rights .sam { border-top: 3px solid var(--c); }
.rights .vi { border-top: 3px solid var(--ink); }
.proof { grid-column: 1 / -1; background: var(--dark); color: var(--on-dark); border-radius: 16px; padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.proof img { width: 76px; height: auto; }
.proof h2 { color: var(--on-dark); }
.proof p { color: #d3d6dc; font-size: 1.08rem; line-height: 1.6; max-width: 46em; }


/* ---------- rječnik (isti kao na informacija.hr, serif) ---------- */
.dictionary {
  background: #fff;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  padding: 22px 26px 20px;
  border-radius: 4px;
  border-top: 5px double var(--ink);
  box-shadow: 0 24px 50px -32px rgba(20, 22, 25, 0.4);
  max-width: 36em;
}
.dictionary dl { margin: 0; }
.dict-title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.entry + .entry { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.entry dt { font-size: 1.05rem; line-height: 1.3; }
.headword { font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; }
.gram { font-style: italic; text-decoration: none; color: var(--muted); margin-left: 4px; }
.forms { font-style: italic; color: var(--muted); font-size: 0.95rem; }
.entry dd { margin: 6px 0 0; font-size: 1.1rem; line-height: 1.5; }
.entry dd.examples { margin-top: 10px; }
.examples-label { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.examples q { display: block; font-style: italic; color: var(--ink-2); quotes: "„" "”"; }
.examples q + q { margin-top: 2px; }

/* ---------- mobitel ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .logo img { height: 44px; }
  .top nav { gap: 14px; font-size: 0.9rem; }
  .top nav .hide-m { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "rjecnik" "roboti" "naslov" "gumbi"; }
  .item-hero, .item-body, .rights { grid-template-columns: 1fr; }
  .trio figure:nth-child(2) { transform: none; }
  .grid, .steps { grid-template-columns: 1fr; }
  .item-hero img { aspect-ratio: 16 / 11; }
  .proof { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
}
