@import url("fonts/dejavu.css");

/* Minimalistički: jedna nježna boja (krem i smeđa s logotipa), bez animacija. Svijetli način je zadani. */
:root {
  --bg: #FDF6EF;
  --tint: #F7EBDF;
  --text: #6C2F02;
  --soft: #9A6F52;
  --line: rgba(108, 47, 2, .14);
  --btn-bg: #6C2F02;
  --btn-text: #FDF6EF;
  --radius: 22px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #23170F;
  --tint: #2E2016;
  --text: #F6E6D6;
  --soft: #CDB09A;
  --line: rgba(246, 230, 214, .15);
  --btn-bg: #F1DFCE;
  --btn-text: #3A1B05;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DejaVu Serif Web", "DejaVu Serif", Georgia, serif; font-size: 16px; line-height: 1.7; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--btn-bg); color: var(--btn-text); padding: .6rem 1rem; border-radius: 999px; }
:focus-visible { outline: 2px solid var(--soft); outline-offset: 3px; border-radius: 6px; }

/* Logo je uvijek isti: smeđi na krem krugu */
.logo-badge { display: inline-block; border-radius: 50%; background: #FDF6EF; }
.logo-badge img { width: 100%; height: 100%; }

/* Gumb */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .95rem 2rem; border-radius: 999px; border: 0; cursor: pointer; background: var(--btn-bg); color: var(--btn-text); font: inherit; font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.btn:hover { opacity: .88; }
.btn-sm { padding: .8rem 1.4rem; font-size: .8rem; }

/* Gornja traka: radnje lijevo, logo desno */
.topbar { background: var(--tint); padding: 18px max(var(--gutter), (100% - var(--max)) / 2); margin-bottom: clamp(1.5rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar .brand { width: clamp(84px, 12vw, 150px); aspect-ratio: 1; flex: none; }
.topbar .actions { display: flex; gap: .5rem; align-items: center; }
.icon-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Naslovna: slika lijevo, priča desno */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding: clamp(.5rem, 2vw, 1.5rem) 0 clamp(3rem, 7vw, 5rem); }
.story-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 78svh; object-fit: cover; border-radius: var(--radius); }
.story-text h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 14ch; }
.story-text p { color: var(--soft); max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.12rem); }
.story-text .tagline { margin: 0 0 1.2rem; font-size: clamp(.75rem, 1.6vw, .85rem); letter-spacing: .32em; text-transform: uppercase; }
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story-photo img { aspect-ratio: 1; max-height: 60svh; }
}
@media (max-width: 400px) {
  .topbar { gap: .5rem; }
  .topbar .actions { gap: .35rem; }
  .btn-sm { padding: .75rem 1rem; letter-spacing: .06em; }
  .icon-btn { width: 38px; height: 38px; }
  .topbar .brand { width: 76px; }
}

/* Naslov odjeljka */
.kicker { margin: 0 0 1rem; font-size: clamp(.72rem, 1.5vw, .8rem); letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.section-head p:not(.kicker) { color: var(--soft); margin: 0; }

/* Domaći sastojci: slika i tekst kao jedna kartica, naizmjence lijevo i desno */
.ingredients { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 5rem); }
.row { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(380px, 40vw, 500px); margin-bottom: clamp(1rem, 2.5vw, 1.6rem); }
.row-photo { display: block; }
.row-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius) 0 0 var(--radius); }
.row-text { background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(1.6rem, 4.5vw, 3.8rem); display: flex; flex-direction: column; justify-content: center; }
.row.flip .row-photo { order: 2; }
.row.flip .row-photo img { border-radius: 0 var(--radius) var(--radius) 0; }
.row.flip .row-text { border-radius: var(--radius) 0 0 var(--radius); }
.row-text h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.25; margin: 0 0 .7em; }
.row-text p:not(.kicker) { color: var(--soft); max-width: 40ch; margin: 0; font-size: clamp(1rem, 1.3vw, 1.08rem); }

/* Pogled iznutra */
.inside { padding-bottom: clamp(1rem, 3vw, 2rem); }
.feature { display: block; margin-bottom: clamp(.8rem, 1.6vw, 1.2rem); }
.feature img { width: 100%; height: clamp(300px, 64vh, 640px); object-fit: cover; border-radius: var(--radius); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 1.6vw, 1.2rem); }
.gallery picture { display: block; }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }

/* Poziv na upit */
.cta { text-align: center; padding: clamp(3.5rem, 9vw, 6rem) var(--gutter); }
.cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.cta p { color: var(--soft); max-width: 36ch; margin: 0 auto 1.8rem; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; min-height: 0; }
  .row-photo img, .row.flip .row-photo img { height: auto; aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
  .row-text, .row.flip .row-text { border-radius: 0 0 var(--radius) var(--radius); }
  .row.flip .row-photo { order: 0; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 4 / 3; }
}

/* Podnožje */
.footer { background: var(--tint); padding: 2.2rem 0; font-size: .85rem; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }
.footer small { color: var(--soft); font-size: .8rem; }

/* Upit */
.order { padding: clamp(.5rem, 2vw, 1.5rem) 0 4rem; }
.order .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.order-photo { display: block; }
.order-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.order h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: .3em; }
.order .intro { color: var(--soft); margin-bottom: 1.6rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; }
.field .opt { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--tint); border: 1px solid transparent; border-radius: 14px; padding: .85rem 1rem; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--soft); }
.field .hint { font-size: .8rem; color: var(--soft); }
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: .3rem; font-size: .85rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { flex: 1 1 200px; display: flex; align-items: center; gap: .6rem; background: var(--tint); border: 1px solid transparent; border-radius: 14px; padding: .85rem 1rem; cursor: pointer; }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: #6C2F02; flex: none; }
.chip:has(input:checked) { border-color: var(--soft); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--soft); }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: #6C2F02; flex: none; }
.hp { display: none !important; }
.form .btn { grid-column: 1 / -1; width: 100%; margin-top: .3rem; }
.form-status { grid-column: 1 / -1; display: none; padding: 1rem 1.2rem; border-radius: 14px; background: var(--tint); font-weight: 700; }
.form-status.ok, .form-status.err { display: block; }
@media (max-width: 860px) {
  .order .wrap { grid-template-columns: 1fr; }
  .order-photo img { aspect-ratio: 16 / 9; max-height: 230px; }
}
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* Pravila privatnosti i 404 */
.legal { padding: clamp(.5rem, 2vw, 1.5rem) 0 4rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
.legal h2 { font-size: 1.2rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--soft); }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.back { display: inline-block; color: var(--soft); text-decoration: none; font-size: .9rem; margin-bottom: 1.2rem; }
.center-page { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem var(--gutter); }
.center-page .logo-badge { width: 180px; height: 180px; margin-bottom: 1.5rem; }
