/* ============================================================
   ScanEat refaktor — vlastiti stilovi povrh naslijeđene teme.
   Sve nove/izmijenjene komponente stilizirati ovdje, ne u
   theme datotekama (style.css, appset.css…).
   ============================================================ */

/* ---- Hero ---- */

.hero-new {
    background: linear-gradient(160deg, #2495db 0%, #1581ca 50%, #0d74c1 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/dotted-map.png') center / cover no-repeat;
    opacity: 0.35;
    pointer-events: none;
}

.hero-new .hero-inner {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-new .hero-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
}

.hero-new .nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
}

.hero-new .nav-brand img {
    height: 40px;
    width: auto;
    display: block;
}

.hero-new .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.hero-new .nav-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-new .nav-cta {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1c98e0;
    background: #fff;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
}

.hero-new .nav-cta:hover {
    color: #1c98e0;
    opacity: 0.92;
}

.hero-new .hero-grid {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    padding-top: 40px;
}

.hero-new .hero-copy {
    flex: 1 1 55%;
    padding-bottom: 90px;
}

.hero-new .hero-copy h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #fff;
}

.hero-new .hero-sub {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 480px;
    margin-bottom: 30px;
}

.hero-new .hero-cta {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 16px 34px;
    text-decoration: none;
    transition: background 0.2s;
}

.hero-new .hero-cta:hover,
.hero-new .hero-cta:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-new .hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.hero-new .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 40px;
    padding: 9px 18px;
    font-size: 0.875rem;
}

.hero-new .hero-trust .stars {
    color: #ffc832;
    letter-spacing: 2px;
    font-size: 0.9375rem;
    line-height: 1;
}

.hero-new .trust-strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #fff;
}

.hero-new .trust-label {
    color: rgba(255, 255, 255, 0.85);
}

.hero-new .hero-visual {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
}

.hero-new .hero-visual img {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin-bottom: -80px;
}

@media (max-width: 860px) {
    .hero-new .hero-nav { gap: 18px; }
    .hero-new .nav-link.nav-anchor { display: none; }

    .hero-new .hero-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 24px;
        gap: 0;
    }

    .hero-new .hero-copy { padding-bottom: 44px; }
    .hero-new .hero-copy h1 { font-size: 1.75rem; }
    .hero-new .hero-sub { font-size: 1rem; margin-left: auto; margin-right: auto; }
    .hero-new .hero-trust { justify-content: center; flex-wrap: wrap; }

    .hero-new .hero-visual img {
        max-width: 320px;
        margin-bottom: -60px;
    }
}

/* "Budi obaviješten na vrijeme": slika ne smije dirati gornji rub sive pozadine */
@media (min-width: 768px) {
    #why_appSet .section-inner-wrap { padding-top: 60px; }
}

/* manje praznog prostora ispod slika u obje sekcije */
#about .content-img,
#why_appSet .content-img { margin-bottom: 0; }

/* izjednači sliku "Doznaj što jedeš" s onom o povučenim proizvodima
   (tema na .content-6-img stavlja margin-top: -100px, a na mobitelu i
   bočne margine/padding kojih slika o povučenima nema) */
#about .content-6-img {
    margin: 0;
    padding: 0;
}

#about #content-2 { padding-bottom: 30px; }
#why_appSet .section-inner-wrap { padding-bottom: 50px; }

/* na desktopu "Doznaj što jedeš" izjednači s povučenima:
   manji vlastiti padding + manji bijeli pojas prije sive kutije povučenih */
@media (min-width: 768px) {
    #about #content-2 {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    #why_appSet #content-6 {
        padding-top: 40px;
    }
}

/* prazna WP spacer sekcija iznad "Doznaj što jedeš" — makni na svim širinama */
section.vc_section:has(+ #about),
section.vc_section:has(+ .vc_row-full-width + #about) { display: none; }

@media (max-width: 767px) {
    /* "Budi obaviješten na vrijeme": na mobitelu tekst prije slike */
    #why_appSet .vc_row.vc_row-flex > .wpb_column:first-child { order: 2; }

    /* manje praznog prostora iznad "Doznaj što jedeš" */
    #about #content-2 { padding-top: 10px; }
}

/* ---- ScanEat Premium (#content-10) ---- */

/* tamnija plava, usklađena s hero gradijentom */
#content-10 .section-inner-wrap {
    background-color: #1581ca;
}

#content-10 .content-boxes {
    padding: 60px 40px 25px;
    align-items: flex-start; /* kartice s kraćim tekstom ne centriraj vertikalno */
}

#content-10 .fbox-5 {
    margin-bottom: 35px;
    text-align: center;
}

#content-10 .premium-icon-wrap {
    margin-bottom: 20px;
}

#content-10 .premium-icon {
    width: 60px;
    height: 60px;
}

#content-10 .fbox-5-txt {
    padding-left: 0;
    overflow: visible;
}

#content-10 .fbox-5-txt h5 {
    margin-bottom: 12px;
}

#content-10 .fbox-5-txt p {
    max-width: 300px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    #content-10 .content-boxes .wpb_column {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ---- FAQ (#faq) ---- */

#faq .faq-list {
    max-width: 760px;
    margin: 0 auto;
}

#faq .faq-item {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    margin-bottom: 12px;
}

#faq .faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 54px 18px 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: #333;
    position: relative;
}

#faq .faq-item summary::-webkit-details-marker {
    display: none;
}

#faq .faq-item summary::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #1c98e0;
    border-bottom: 2px solid #1c98e0;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

#faq .faq-item.faq-open summary::after {
    transform: translateY(-30%) rotate(225deg);
}

#faq .faq-item .faq-answer {
    padding: 0 54px 18px 22px;
}

#faq .faq-item .faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 767px) {
    #faq .faq-item summary {
        font-size: 0.9375rem;
        padding: 15px 46px 15px 18px;
    }

    #faq .faq-item .faq-answer {
        padding: 0 18px 15px;
    }
}

/* Manji razmak između sekcije privatnosti i statistike */
#newsletter-1 .wide-80 {
    padding-bottom: 20px;
}

#statistic-2 .wide-60 {
    padding-top: 40px;
}

/* ---- Recenzije s Google Playa i App Storea ---- */
#reviews-3 .reviews-grid {
    columns: 3;
    column-gap: 20px;
    margin-top: 10px;
}

#reviews-3 .review-card {
    break-inside: avoid;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 24px 24px 18px;
    margin: 0 0 20px;
}

#reviews-3 .review-stars {
    color: #ffc832;
    font-size: 1.05rem;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 14px;
}

#reviews-3 .review-text {
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.55;
    font-weight: 300;
    font-style: normal;
    padding: 0;
    margin-bottom: 14px;
}

#reviews-3 .review-card.review-clamp:not(.expanded) .review-text {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#reviews-3 .review-more {
    background: none;
    border: none;
    padding: 0;
    margin: -6px 0 14px;
    color: #1e88e5;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
}

#reviews-3 .review-more:hover {
    text-decoration: underline;
}

#reviews-3 .review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eef1f4;
    padding-top: 14px;
}

#reviews-3 .review-initials {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
}

#reviews-3 .initials-blue { background: #e3f1fc; color: #1e88e5; }
#reviews-3 .initials-green { background: #e4f4ea; color: #2e9e5b; }
#reviews-3 .initials-amber { background: #fdf3e0; color: #c9821c; }
#reviews-3 .initials-coral { background: #fdecec; color: #d85454; }

#reviews-3 .review-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

#reviews-3 .review-platform {
    flex: none;
    margin-left: auto;
    width: 16px;
    height: 16px;
    fill: #9aa3ab;
}

@media (max-width: 991px) {
    #reviews-3 .reviews-grid { columns: 2; }
}

@media (max-width: 767px) {
    #reviews-3 .reviews-grid { columns: 1; }
}

/* Istaknuta ključna rečenica u sadržajnim sekcijama (varijanta A) */
.content-txt .content-callout {
    border-left: 3px solid #1e88e5;
    border-radius: 0;
    padding: 2px 0 2px 14px;
    margin-top: 18px;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.5;
    color: #1e88e5;
}

/* ---- Footer ---- */

.footer-new {
    background: #fff;
    font-size: 0.9375rem;
    color: #555;
}

.footer-new .footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-new .footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-new .footer-col {
    flex: 1 1 0;
    min-width: 220px;
}

.footer-new .footer-col h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #333;
    margin: 0 0 18px;
}

.footer-new .footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer-new .footer-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.footer-new .footer-tagline {
    color: #777;
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: 280px;
}

.footer-new .footer-contact a {
    color: #1e88e5;
    font-weight: 500;
    text-decoration: none;
}

.footer-new .footer-contact a:hover {
    text-decoration: underline;
}

.footer-new .footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-new .footer-badges img {
    width: 150px;
    height: 47px;
    display: block;
}

.footer-new .footer-socials {
    display: flex;
    gap: 10px;
}

.footer-new .footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e3e6ea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.footer-new .footer-socials a svg {
    width: 17px;
    height: 17px;
    fill: #6b7680;
    transition: fill 0.2s;
}

.footer-new .footer-socials a:hover {
    border-color: #1e88e5;
}

.footer-new .footer-socials a:hover svg {
    fill: #1e88e5;
}

.footer-new .footer-partners {
    border-top: 1px solid #e8ecf0;
    padding: 28px 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-new .partner-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

.footer-new .partner-logos a {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
}

.footer-new .partner-logos img {
    height: 44px;
    width: auto;
    display: block;
}

.footer-new .footer-partners p {
    font-size: 0.75rem;
    line-height: 1.55;
    color: #9aa3ab;
    flex: 1;
    min-width: 260px;
    margin: 0;
}

.footer-new .footer-bottom {
    border-top: 1px solid #e8ecf0;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: #8a939c;
}

.footer-new .legal-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-new .legal-links a {
    color: #8a939c;
    text-decoration: none;
}

.footer-new .legal-links a:hover {
    color: #1e88e5;
}

.footer-new .legal-links .dot {
    color: #c5ccd3;
}

@media (max-width: 767px) {
    .footer-new .footer-cols {
        flex-direction: column;
        gap: 36px;
        padding: 44px 0 32px;
        text-align: center;
    }

    .footer-new .footer-brand { justify-content: center; }
    .footer-new .footer-tagline { margin-left: auto; margin-right: auto; }
    .footer-new .footer-badges { justify-content: center; }
    .footer-new .footer-socials { justify-content: center; }

    .footer-new .footer-partners {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 0;
    }

    .footer-new .partner-logos {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .footer-new .partner-logos img {
        height: 34px;
        max-width: 100%;
    }

    .footer-new .footer-partners p { min-width: 0; }

    .footer-new .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
