/* ============================================================
   FLORIS – Održavanje okućnica  |  style.css
   ============================================================ */

/* ---- VARIJABLE ---- */
:root {
    --g900: #163b0e;
    --g800: #1e4d14;
    --g700: #2e6b20;
    --g600: #3d8b2f;
    --g500: #52aa3e;
    --g400: #74c45c;
    --g200: #b8e0a4;
    --g100: #d8f0c8;
    --g50:  #edf8e4;
    --pale: #f0f7e6;
    --sky:  #e0f2ff;
    --sky2: #b8dcf8;
    --ora:  #e87c1e;
    --ora2: #f5a030;
    --yel:  #f5c820;
    --white: #ffffff;
    --text:  #1a3010;
    --tmid:  #3d6030;
    --header-h: 88px;
    --radius: 18px;
    --radius-lg: 28px;
    --ease: 0.28s ease;
    --shadow: 0 6px 28px rgba(30, 77, 20, 0.13);
    --shadow-lg: 0 14px 50px rgba(30, 77, 20, 0.20);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: 'Nunito', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

section[id], .onama { scroll-margin-top: var(--header-h); }

/* ---- LAYOUT ---- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section   { padding: 80px 0; }
.bg-pale   { background: var(--pale); }

/* ============================================================
   TIPOGRAFIJA – naslovi
   ============================================================ */
.section-kicker {
    display: inline-block;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--g600);
    margin-bottom: 10px;
}
.kicker--light { color: var(--g200); }

.section-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    font-weight: 900;
    color: var(--g900);
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}
/* Podvlaka u obliku lista */
.section-title::after {
    content: '';
    display: block;
    width: 70%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--g500), var(--g200));
    margin: 10px auto 0;
}
.section-title--left::after { margin: 10px 0 0; }
.section-title--white       { color: var(--white); }
.section-title--white::after{ background: linear-gradient(90deg, var(--g400), rgba(255,255,255,0.3)); }

.section-sub { color: var(--tmid); font-size: 1.05rem; margin-top: 6px; }

.section-header { text-align: center; margin-bottom: 52px; }

/* ============================================================
   GUMBI
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 50px;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.96rem;
    cursor: pointer; transition: all var(--ease); border: 2.5px solid transparent;
    white-space: nowrap;
}
.btn--nav {
    background: var(--g700); color: var(--white);
}
.btn--nav:hover { background: var(--g600); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--hero {
    background: var(--ora); color: var(--white);
    font-size: 1.05rem; padding: 15px 34px;
    box-shadow: 0 6px 24px rgba(232,124,30,0.35);
}
.btn--hero:hover { background: #d46e18; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(232,124,30,0.45); }

.btn--phone {
    background: rgba(255,255,255,0.15); color: var(--white);
    border-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
}
.btn--phone:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.btn--green { background: var(--g700); color: var(--white); }
.btn--green:hover { background: var(--g600); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--blue { background: #2a7ab8; color: var(--white); }
.btn--blue:hover { background: #2266a0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,122,184,0.35); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(30,77,20,0.08);
    transition: box-shadow var(--ease);
}
.header.scrolled { box-shadow: 0 4px 28px rgba(30,77,20,0.16); }

.nav {
    display: flex; align-items: center; gap: 20px;
    padding: 10px 28px; max-width: 1280px; margin: 0 auto;
}
.nav__logo-img { height: 66px; width: auto; flex-shrink: 0; }

.nav__menu { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav__link {
    padding: 8px 13px; border-radius: 10px;
    font-weight: 700; font-size: 0.91rem; color: var(--tmid);
    transition: all var(--ease);
}
.nav__link:hover, .nav__link.active {
    color: var(--g800); background: var(--g100);
}

.nav__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav__phone {
    display: flex; align-items: center; gap: 7px;
    font-weight: 800; color: var(--g800); font-size: 0.93rem;
    transition: color var(--ease);
}
.nav__phone:hover { color: var(--g600); }

.nav__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px; z-index: 1001;
}
.nav__toggle span {
    display: block; width: 26px; height: 2.5px;
    background: var(--g800); border-radius: 3px; transition: all var(--ease);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.38); z-index: 998;
}
.nav__overlay.open { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background-image: url('patuljci.png');
    background-size: cover;
    background-position: center 18%;
    background-repeat: no-repeat;
    padding-top: var(--header-h);
    position: relative;
    overflow: hidden;
    min-height: 88vh;
}

/* Gradijentni overlay – tamno s lijeve strane, prozirno desno */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(14, 42, 8, 0.93) 0%,
        rgba(22, 59, 14, 0.88) 28%,
        rgba(22, 59, 14, 0.65) 50%,
        rgba(22, 59, 14, 0.22) 72%,
        rgba(22, 59, 14, 0.04) 100%
    );
    z-index: 0;
}

.hero__inner {
    max-width: 1180px; margin: 0 auto;
    padding: 90px 28px 80px;
    display: flex;
    align-items: center;
    position: relative; z-index: 1;
    min-height: calc(88vh - var(--header-h));
}

/* --- Sadržaj hero-a (tekst) --- */
.hero__content {
    max-width: 580px;
}

.hero__tag {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: var(--g200); padding: 7px 20px; border-radius: 50px;
    font-size: 0.87rem; font-weight: 700; letter-spacing: 0.03em;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.hero__title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 900; color: var(--white); line-height: 1.05;
    margin-bottom: 4px;
    text-shadow: 0 3px 20px rgba(0,0,0,0.35);
}
.hero__script {
    font-family: 'Dancing Script', cursive;
    font-size: 1.25em; color: var(--g400);
    display: block; line-height: 1.1;
    text-shadow: 0 3px 16px rgba(0,0,0,0.30);
}

.hero__lead {
    color: rgba(255,255,255,0.85); font-size: 1.1rem;
    margin: 18px 0 24px; max-width: 460px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.30);
    line-height: 1.7;
}

.hero__checklist {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 36px;
}
.hero__checklist li {
    display: flex; align-items: center; gap: 11px;
    color: var(--white); font-weight: 700; font-size: 1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.hero__checklist li::before {
    content: '';
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; min-width: 22px;
    background: var(--g500); border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 12px; background-repeat: no-repeat; background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    flex-shrink: 0;
}

.hero__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

@keyframes floatScene {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-10px) rotate(0.3deg); }
}

/* --- Trava na dnu hero-a --- */
.grass-bottom {
    line-height: 0; position: relative; z-index: 1;
    margin-top: 0;
    margin-bottom: -4px;
}
.grass-bottom svg { width: 100%; display: block; }


/* ============================================================
   TRAVA – prijelazi između sekcija
   ============================================================ */
.grass-divider { line-height: 0; background: var(--pale); margin-top: -2px; margin-bottom: -1px; }
.grass-divider svg { width: 100%; display: block; }

.grass-divider--flip { background: var(--white); margin-top: -1px; margin-bottom: -1px; }
.grass-divider--dark { background: var(--white); margin-top: -1px; margin-bottom: -1px; }

/* ============================================================
   O NAMA – hero stil
   ============================================================ */
.onama {
    background: linear-gradient(135deg, var(--g900) 0%, var(--g800) 50%, var(--g700) 100%);
    padding: 88px 0 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--header-h);
}

/* Dekorativni listovi u pozadini */
.onama__leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf { position: absolute; }
.leaf--1 { width: 140px; top: -20px; right: 8%; opacity: 1; }
.leaf--2 { width: 90px;  bottom: 80px; left: 4%; opacity: 1; }
.leaf--3 { width: 70px;  top: 40%; right: 2%; opacity: 1; }

.onama__container {
    max-width: 800px; margin: 0 auto; padding: 0 28px;
    position: relative; z-index: 1;
}

/* Naslov O nama – Nunito 900 kao u hero sekciji */
.onama__title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    text-shadow: 0 3px 16px rgba(0,0,0,0.25);
}

/* --- Tekstualna strana --- */
.onama__body { padding: 8px 0; }

.onama__uvod {
    font-size: 1.06rem; color: rgba(255,255,255,0.80);
    line-height: 1.80; margin-bottom: 16px;
}


/* Trava na dnu O nama */
.grass-bottom--light { background: transparent; line-height: 0; margin-top: 56px; position: relative; z-index: 1; }
.grass-bottom--light svg { width: 100%; display: block; }

/* ============================================================
   USLUGE – kartice
   ============================================================ */
.usluge { background: var(--white); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.usluga-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0 0 28px;
    text-align: center;
    border: 2px solid var(--g100);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--ease);
}
.usluga-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--g400);
}

/* Ilustracija na vrhu kartice */
.usluga-card__top {
    height: 168px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #f5faf0;
}
.usluga-card__top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    transform: scale(1.18);
    transform-origin: center center;
    display: block;
}

.usluga-card__title {
    font-size: 1rem; font-weight: 900; color: var(--g900);
    margin: 16px 16px 8px; line-height: 1.2;
}
.usluga-card__text {
    font-size: 0.88rem; color: var(--tmid);
    line-height: 1.6; padding: 0 16px;
}

/* ============================================================
   SPLIT – Čišćenje kuće & Plovila
   ============================================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

/* Na mobitelu tijelo uvijek gore */
.split .split__visual { order: 2; }
.split .split__body   { order: 1; }

.split__img-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.split__img {
    width: 100%;
    display: block;
    transform: scale(1.08);
    transform-origin: 45% 45%;
}

.split--flip .split__visual { order: 1; }
.split--flip .split__body   { order: 2; }

.split__lead {
    font-size: 1.06rem; color: var(--tmid);
    margin: 8px 0 22px; line-height: 1.7;
}

.icon-list {
    display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px;
}
.icon-list li {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 1.02rem; color: var(--text);
}
.icon-list__icon {
    width: 28px; height: 28px; min-width: 28px;
    background: var(--g600); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
}
.icon-list__icon svg { width: 16px; height: 16px; display: block; }

/* Ilustrirani box (ikona) */
.illustrated-box {
    width: 240px; height: 240px; border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    animation: floatScene 5s ease-in-out infinite;
    border: 4px solid rgba(255,255,255,0.9);
}
.illustrated-box--green {
    background: radial-gradient(circle at 40% 40%, var(--g100), var(--g200));
}
.illustrated-box--blue  {
    background: radial-gradient(circle at 40% 40%, var(--sky), var(--sky2));
}
.illustrated-box__svg { width: 80px; height: 80px; color: var(--g800); }
.illustrated-box__label {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem; font-weight: 700;
    color: var(--g800);
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt {
    background: linear-gradient(135deg, var(--g900) 0%, var(--g800) 60%, var(--g700) 100%);
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Dekorativni uzorak */
.kontakt::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(82,170,62,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.kontakt__inner { position: relative; z-index: 1; }
.kontakt__sub { color: rgba(255,255,255,0.70); font-size: 1.07rem; margin: 8px 0 44px; }

.kontakt__btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.phone-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--white); color: var(--g800);
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.79rem, 1.5vw, 1.09rem);
    font-weight: 900;
    padding: 14px 36px; border-radius: 50px;
    box-shadow: 0 14px 50px rgba(0,0,0,0.28);
    transition: all var(--ease);
    border: 3px solid rgba(255,255,255,0.3);
    width: 100%; max-width: 380px; justify-content: center;
}
.phone-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 60px rgba(0,0,0,0.36);
}
.phone-btn svg { color: var(--g600); flex-shrink: 0; width: 24px; height: 24px; }

.email-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.88rem, 1.6vw, 1rem);
    font-weight: 800;
    padding: 13px 36px; border-radius: 50px;
    transition: all var(--ease);
    border: 2px solid rgba(255,255,255,0.40);
    width: 100%; max-width: 380px; justify-content: center;
}
.email-btn:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.70);
    transform: scale(1.03);
}
.email-btn svg { color: rgba(255,255,255,0.70); flex-shrink: 0; }

.trust-row {
    display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-item__icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.20);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--g300);
}
.trust-item__icon svg { width: 28px; height: 28px; }
.trust-item__label { font-weight: 800; font-size: 1rem; color: rgba(255,255,255,0.88); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--g900); padding: 26px 0; }
.footer__inner {
    display: flex; align-items: center;
    justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer__logo   { height: 64px; width: auto; }
.footer__copy   { color: rgba(255,255,255,0.36); font-size: 0.87rem; }
.footer__credit { color: rgba(255,255,255,0.30); font-size: 0.82rem; }
.footer__credit a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--ease); }
.footer__credit a:hover { color: var(--g400); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--g700); color: var(--white);
    border: none; font-size: 1.3rem; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(30,77,20,0.40);
    transition: all var(--ease);
    opacity: 0; transform: translateY(14px); pointer-events: none; z-index: 990;
}
.scroll-top.visible  { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover    { background: var(--g600); transform: translateY(-3px); }

/* ============================================================
   FADE-IN ANIMACIJA
   ============================================================ */
.fade-in {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.60s ease, transform 0.60s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONZIVNOST
   ============================================================ */

/* --- Tablet (do 1060px) --- */
@media (max-width: 1060px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); }
    .cards-grid .usluga-card:nth-child(4) { grid-column: 1; }
    .cards-grid .usluga-card:nth-child(5) { grid-column: 2; }
}

/* --- Tablet manji / Mobitel (do 780px) --- */
@media (max-width: 780px) {

    /* Nav – mobilni ladičar */
    .nav__menu {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--white);
        flex-direction: column; align-items: flex-start;
        padding: 96px 28px 48px; gap: 6px;
        box-shadow: -4px 0 40px rgba(0,0,0,0.14);
        transition: right var(--ease); z-index: 999;
    }
    .nav__menu.open { right: 0; }
    .nav__link { font-size: 1.1rem; padding: 12px 14px; width: 100%; }

    .nav__toggle { display: flex; }
    .nav__phone span { display: none; }
    .nav__actions .btn--nav { display: none; }

    /* Valovi – sakriti na mobitelu */
    .grass-bottom,
    .grass-bottom--light,
    .grass-divider,
    .grass-divider--flip,
    .grass-divider--dark { display: none; }

    /* Hero */
    .hero {
        min-height: 100svh;
        background-position: 65% 18%;
    }
    .hero__overlay {
        background: linear-gradient(
            160deg,
            rgba(14, 42, 8, 0.93) 0%,
            rgba(22, 59, 14, 0.88) 45%,
            rgba(22, 59, 14, 0.78) 70%,
            rgba(22, 59, 14, 0.60) 100%
        );
    }
    .hero__inner {
        text-align: center;
        padding: 60px 24px 64px;
        justify-content: center;
        min-height: calc(100svh - var(--header-h));
    }
    .hero__content { max-width: 100%; }
    .hero__lead { margin-left: auto; margin-right: auto; }
    .hero__checklist li { justify-content: center; }
    .hero__ctas { justify-content: center; }

    /* O nama */
    .onama { padding-top: 44px; }
    .onama__container { padding: 0 24px; text-align: center; }
    .onama__title::after { margin: 10px auto 0; }
    .onama__body { padding-bottom: 40px; }

    /* Usluge */
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid .usluga-card:nth-child(n) { grid-column: auto; }

    /* Split */
    .split {
        grid-template-columns: 1fr; gap: 36px; text-align: center;
    }
    .split .split__visual,
    .split--flip .split__visual { order: 2; }
    .split .split__body,
    .split--flip .split__body { order: 1; }
    .section-title--left::after { margin: 10px auto 0; }
    .icon-list li { justify-content: center; }
    .split__body .btn { margin: 0 auto; display: flex; max-width: 260px; }

    /* Kontakt */
    .phone-btn { font-size: 1rem; padding: 12px 24px; }
    .email-btn { font-size: 1rem; padding: 12px 24px; max-width: 380px; width: 100%; }
    .kontakt__btns { width: 100%; }
    .trust-row { gap: 36px; }

    /* Footer */
    .footer__inner { justify-content: center; text-align: center; }
}

/* --- Mali mobitel (do 480px) --- */
@media (max-width: 480px) {
    :root { --header-h: 78px; }

    .nav { padding: 10px 16px; }
    .nav__logo-img { height: 56px; }
    .nav__phone { display: none; }

    .section { padding: 60px 0; }
    .container { padding: 0 18px; }

    .hero__title { font-size: 3.44rem; }

    .cards-grid { grid-template-columns: 1fr; }

    .illustrated-box { width: 180px; height: 180px; }
    .illustrated-box__emoji { font-size: 4.2rem; }

    .phone-btn { font-size: 0.95rem; padding: 11px 18px; gap: 8px; }
    .phone-btn svg { width: 28px; height: 28px; }
    .email-btn { font-size: 0.95rem; padding: 11px 18px; gap: 8px; max-width: 100%; width: 100%; }
    .email-btn svg { width: 20px; height: 20px; }
    .kontakt__btns { width: 100%; padding: 0 4px; }

    .scroll-top { bottom: 16px; right: 16px; }

    .onama__container { padding: 0 18px; }
}
