/* Pasco Lima: stil naslovnice */

@font-face { font-family: "Newsreader"; src: url("../fonts/pasco/newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Newsreader"; src: url("../fonts/pasco/newsreader-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF; }
@font-face { font-family: "Figtree"; src: url("../fonts/pasco/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Figtree"; src: url("../fonts/pasco/figtree-latin-ext.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02AF; }

:root {
    --bg: #fffdf9;
    --sand: #f4ecdf;
    --forest: #1f3a2d;
    --forest-soft: #2f5441;
    --on-forest: #dbe5dc;
    --text: #2b3442;
    --muted: #5a6370;
    --accent: #b04a2a;
    --accent-dark: #8f3a20;
    --accent-pale: #f6dfd3;
    --peach: #f0c674;
    --rule: #e2d9c9;
    --gutter: clamp(20px, 5vw, 64px);
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Figtree", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 18px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, p, dl, dd, ul, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, blockquote { font-family: var(--serif); font-weight: 400; color: var(--forest); }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.nowrap { white-space: nowrap; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 8px 14px; background: var(--forest); color: #fff; }
.skip-link:focus { top: 12px; }

/* Zaglavlje */

.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); box-shadow: 0 1px 0 var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 6px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 25px/1 var(--serif); color: var(--forest); text-decoration: none; }
.site-nav { order: 3; display: flex; gap: 22px; width: 100%; padding-bottom: 12px; overflow-x: auto; white-space: nowrap; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-header__phone { font-weight: 700; font-size: 16px; color: var(--accent); text-decoration: none; }

/* Uvod */

.intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(48px, 8vw, 96px) clamp(120px, 21vw, 300px);
    background: var(--forest);
    color: #fff;
}
.intro__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 44, 66, .55), rgba(20, 44, 66, .28) 60%, transparent 85%); }
.intro__grid { display: grid; gap: 44px; }
.intro h1 { color: #fff; font-size: clamp(46px, 7vw, 84px); line-height: 1.04; letter-spacing: -.015em; text-shadow: 0 1px 18px rgba(10, 30, 45, .35); }
.intro__lead { max-width: 32em; margin-top: 24px; font-size: 20px; text-shadow: 0 1px 10px rgba(10, 30, 45, .5); }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

.btn {
    display: inline-block;
    padding: 15px 28px;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font: 600 17px/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
    transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* Podsjetnik (post-it) */

.ledger {
    position: relative;
    padding: 22px 26px 30px;
    background: linear-gradient(170deg, #fff6b0, #fdec8c);
    color: #3a3620;
    transform: rotate(-1.2deg);
    box-shadow: 2px 18px 28px -14px rgba(0, 0, 0, .55);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}
.ledger::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, #d9c75f 50%, transparent 50%); }
.ledger > div { display: grid; gap: 1px; padding-block: 11px; border-bottom: 1px solid rgba(90, 80, 20, .22); }
.ledger > div:last-child { border-bottom: 0; }
.ledger dt { color: #6a6235; font-size: 15px; }
.ledger dd { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: #2f2c18; }
.ledger .ledger__year { font-size: 40px; line-height: 1.1; color: var(--accent-dark); }

/* Odjeljci */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand); }
.section h2, .section-title h2 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.1; }
.section-title { margin-bottom: clamp(28px, 4vw, 48px); }
.section-title p { margin-top: 10px; font-size: 20px; color: var(--muted); }

.icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-pale);
    color: var(--accent-dark);
}
.icon--solid { background: var(--forest); color: #fff; }
.icon svg, .values svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.services { display: grid; gap: 16px; }
.service {
    padding: 26px;
    border-radius: 10px;
    background: var(--bg);
    box-shadow: 0 10px 26px -18px rgba(31, 58, 45, .5);
    transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(31, 58, 45, .6); }
.service h3 { margin-top: 16px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--forest); }
.service p { margin-top: 6px; font-size: 17px; color: var(--muted); }

.clients { display: grid; gap: 32px; }
.client h3 { margin-top: 16px; font: 500 27px/1.2 var(--serif); color: var(--forest); }
.client p { margin-top: 6px; font-size: 17px; color: var(--muted); }

/* O nama */

.about {
    padding-block: clamp(64px, 9vw, 120px);
    background: linear-gradient(rgba(24, 48, 40, .68), rgba(24, 48, 40, .68)), var(--forest) url("../images/dunav.jpg") center / cover no-repeat;
    color: #fff;
}
.about__text { max-width: 38em; margin-top: 18px; font-size: 19px; }
.about__grid { display: grid; gap: 32px; }
.about h2 { font: 600 16px/1.4 var(--sans); color: #fbe3d6; }
.about blockquote { margin-top: 14px; color: #fff; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.18; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; align-content: center; }
.values li { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 500; }
.values svg { flex: none; stroke-width: 2.2; }

/* Kontakt */

.contact { border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 24px 50px -28px rgba(31, 58, 45, .6); }
.contact__side {
    padding: clamp(28px, 4vw, 48px);
    background: linear-gradient(rgba(24, 48, 34, .78), rgba(24, 48, 34, .62)), var(--forest) url("../images/maslacak.jpg") center bottom / cover no-repeat;
    color: var(--on-forest);
}
.contact__side h2 { color: #fff; font-size: clamp(34px, 4vw, 46px); }
.contact-list { margin-top: 22px; }
.contact-list > div { padding-block: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-list dt { color: var(--peach); font-size: 15px; font-weight: 600; }
.contact-list dd { color: #fff; }
.contact-list a { text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); overflow-wrap: anywhere; }

.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 48px); align-content: start; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--forest); }
.field input, .field textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b5ae9f;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: 400 17px/1.4 var(--sans);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-pale); }
.field textarea { resize: vertical; }
.form__note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.form__status { margin-top: 10px; font-weight: 600; color: var(--forest); }
.form__status:empty { display: none; }

/* Podnožje */

.site-footer { padding-block: 26px; background: var(--forest); font-size: 15px; color: var(--on-forest); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.site-footer a { text-underline-offset: 3px; }

/* Jednostavne stranice */

.page h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.page h2 { margin-top: 36px; font-size: 26px; }
.page p { max-width: 36em; margin-top: 10px; }
.page { min-height: 50vh; }

/* Pojavljivanje pri pomicanju */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .service.reveal.is-visible:hover { transform: translateY(-4px); }

@media (max-width: 480px) {
    .logo { gap: 6px; font-size: 20px; white-space: nowrap; }
    .logo img { width: 40px; height: 40px; }
    .site-header__phone { font-size: 15px; white-space: nowrap; }
}

@media (min-width: 640px) {
    .ledger > div { grid-template-columns: 8.5em 1fr; gap: 16px; align-items: baseline; }
    .services, .clients { grid-template-columns: repeat(2, 1fr); }
    .form { grid-template-columns: repeat(2, 1fr); }
    .field--wide { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
    html { scroll-padding-top: 72px; }
    .site-header__inner { flex-wrap: nowrap; min-height: 72px; }
    .site-nav { order: 0; width: auto; padding: 0; overflow: visible; gap: 32px; font-size: 16px; }
    .intro__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
    .ledger { transform: rotate(1.6deg); }
    .services { grid-template-columns: repeat(3, 1fr); }
    .service:last-child { grid-column: 1 / -1; }
    .clients { grid-template-columns: repeat(4, 1fr); }
    .about__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
    .values { grid-template-columns: 1fr; }
    .contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .service { transition: none; }
}
