/* ============================================
   For-Each Agrobot — site.css
   Single-page website styles
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
    --green-900: #0f3d2e;
    --green-700: #1e6b43;
    --green-600: #2e8b57;
    --green-500: #3ea76a;
    --green-300: #a8d5b9;
    --green-50:  #eef7f1;

    --earth-900: #1b1f1d;
    --earth-700: #3a403d;
    --earth-500: #6b7470;
    --earth-300: #c9cfcc;
    --earth-100: #f2f5f3;

    --accent:     #f5b400;
    --whatsapp:   #25d366;
    --viber:      #7360f2;

    --text:       #1b1f1d;
    --text-muted: #5b6763;
    --bg:         #ffffff;
    --bg-soft:    #f6faf7;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(15, 61, 46, 0.06), 0 2px 6px rgba(15, 61, 46, 0.04);
    --shadow:    0 6px 18px rgba(15, 61, 46, 0.08), 0 2px 6px rgba(15, 61, 46, 0.05);
    --shadow-lg: 0 20px 40px rgba(15, 61, 46, 0.15);

    --container: 1120px;

    --font-sans: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; color: var(--earth-900); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ---------- Top bar ---------- */
.top-bar {
    background: var(--green-900);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}
.top-bar__icon {
    display: inline-block;
    margin-right: 0.4rem;
}
.top-bar strong { color: var(--accent); }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--earth-100);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--earth-900);
    letter-spacing: -0.01em;
}
.logo__mark {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.logo__text em { color: var(--green-700); font-style: normal; }

.nav {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}
.nav a {
    color: var(--earth-700);
    position: relative;
    padding: 0.4rem 0;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--green-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav a:hover { color: var(--green-700); }
.nav a:hover::after { transform: scaleX(1); }

.socials {
    display: flex;
    gap: 0.4rem;
}
.socials a {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-700);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.socials a:hover {
    background: var(--green-700);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    color: #fff;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(62, 167, 106, 0.35), transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(245, 180, 0, 0.18), transparent 50%),
        linear-gradient(135deg, #0f3d2e 0%, #1e6b43 50%, #2e8b57 100%);
}
.hero__content { position: relative; text-align: center; max-width: 820px; }
.hero__content { margin-inline: auto; }

.hero__eyebrow {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; margin-bottom: 0.75rem; }
.hero__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.hero__sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    max-width: 560px;
    margin-inline: auto;
}

.hero__stats {
    margin-top: 2.75rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 720px;
    margin-inline: auto;
}
.hero__stats > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 1rem 0.75rem;
    backdrop-filter: blur(6px);
}
.hero__stats strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}
.hero__stats span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}
@media (max-width: 600px) {
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--accent);
    color: var(--earth-900);
}
.btn--primary:hover { background: #ffc633; color: var(--earth-900); }

.btn--whatsapp {
    background: var(--whatsapp);
    color: #fff;
}
.btn--whatsapp:hover { background: #1ebe57; color: #fff; }

.btn--viber {
    background: var(--viber);
    color: #fff;
}
.btn--viber:hover { background: #5f4ce0; color: #fff; }

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.cta .btn--ghost {
    color: var(--earth-900);
    border-color: var(--earth-300);
}
.cta .btn--ghost:hover {
    background: var(--earth-100);
    color: var(--earth-900);
}

.btn--lg { padding: 0.95rem 1.6rem; font-size: 1rem; }

/* ---------- Image banner (iznad Usluga) ---------- */
.image-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: clamp(180px, 28vw, 320px);
    display: flex;
    align-items: center;
}
.image-banner__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}
.image-banner__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 61, 46, 0.55) 0%, rgba(15, 61, 46, 0.3) 60%, rgba(15, 61, 46, 0.65) 100%);
}
.image-banner__content {
    text-align: center;
    color: #fff;
}
.image-banner__tagline {
    margin: 0;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ---------- Section general ---------- */
.section {
    position: relative;
    isolation: isolate;
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}

/* Suptilna pozadina za Usluge sekciju */
#usluge {
    background:
        radial-gradient(ellipse at 15% 10%, rgba(62, 167, 106, 0.12), transparent 45%),
        radial-gradient(ellipse at 85% 90%, rgba(46, 139, 87, 0.1), transparent 45%),
        var(--bg-soft);
    overflow: hidden;
}
#usluge::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(46, 139, 87, 0.18) 1px, transparent 1.5px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    opacity: 0.7;
}
#usluge::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px; height: 420px;
    right: -140px; top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 167, 106, 0.22), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.section--alt {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(62, 167, 106, 0.45), transparent 55%),
        radial-gradient(ellipse at 15% 90%, rgba(245, 180, 0, 0.12), transparent 55%),
        linear-gradient(135deg, #0f3d2e 0%, #1e6b43 55%, #0f3d2e 100%);
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.section--alt::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.06) 75%, transparent 75%);
    background-size: 40px 40px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}
.section--alt h2 { color: #fff; }
.section--alt .section__kicker {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}
.section__kicker {
    display: inline-block;
    color: var(--green-700);
    background: var(--green-50);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
.section__intro {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---------- Services cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}
.card {
    background: #fff;
    border: 1px solid var(--earth-100);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--green-300);
}
.card__icon {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-50), #fff);
    color: var(--green-700);
    margin-bottom: 1rem;
    border: 1px solid var(--green-300);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin: 0; }

/* ---------- Advantages ---------- */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.advantage {
    position: relative;
    padding: 2rem 1.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.92);
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.advantage:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}
.advantage__num {
    position: absolute;
    top: -14px; left: 24px;
    display: inline-grid;
    place-items: center;
    min-width: 52px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--earth-900);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-sm);
}
.advantage h3 { margin-top: 0.5rem; color: #fff; }
.advantage p  { color: rgba(255, 255, 255, 0.85); margin: 0; }

/* ---------- CTA ---------- */
.cta {
    background:
        radial-gradient(ellipse at top left, rgba(46, 139, 87, 0.15), transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(245, 180, 0, 0.12), transparent 60%),
        #fff;
    padding: clamp(3rem, 6vw, 5rem) 0;
    border-top: 1px solid var(--earth-100);
    border-bottom: 1px solid var(--earth-100);
    text-align: center;
}
.cta__inner { max-width: 740px; margin-inline: auto; }
.cta p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.75rem; }
.cta__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer p { margin: 0 0 0.4rem; }
.footer a { color: #fff; }
.footer a:hover { color: var(--accent); }
.footer__brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.6rem !important;
}
.footer__label {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem !important;
}
.footer__bottom {
    padding-top: 1.25rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ---------- Floating WhatsApp button ---------- */
.fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 100;
    display: inline-grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform .2s ease, background .2s ease;
}
.fab:hover { transform: scale(1.08); background: #1ebe57; color: #fff; }
.fab::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--whatsapp);
    opacity: 0.3;
    animation: pulse 2.2s infinite;
    z-index: -1;
}
@keyframes pulse {
    0%   { transform: scale(1);   opacity: 0.35; }
    70%  { transform: scale(1.4); opacity: 0;    }
    100% { transform: scale(1.4); opacity: 0;    }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

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