/* ============================================================
   COMPONENTS.CSS — AppBlend v3
   ============================================================ */

/* ============================================================
   1. SEKCIJA HELPERI
   ============================================================ */
.ab-section {
    position: relative;
    padding: var(--pad-v) var(--pad-h);
}

.ab-section--white  { background: var(--ab-white); }
.ab-section--soft   { background: var(--ab-bg-soft); }
.ab-section--dark   { background: var(--ab-dark); }
.ab-section--darker { background: var(--ab-dark-soft); }
.ab-section--red    { background: var(--ab-red); }

.ab-container {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}

/* Section label */
.ab-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ab-red);
    display: block;
    margin-bottom: 10px;
}

/* ============================================================
   2. GUMBI
   ============================================================ */
.ab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: var(--r-sm);
    padding: 13px 26px;
    cursor: pointer;
    transition: all var(--t);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.ab-btn:hover { transform: translateY(-1px); }

.ab-btn--red {
    background: var(--ab-red);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.ab-btn--red:hover { background: var(--ab-red-hover); color: #fff; }

.ab-btn--outline {
    background: transparent;
    color: var(--ab-text);
    border: 1.5px solid var(--ab-border-mid);
}
.ab-btn--outline:hover { border-color: var(--ab-text); }

.ab-btn--outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.ab-btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.ab-btn--dark {
    background: var(--ab-dark);
    color: #fff;
}
.ab-btn--dark:hover { background: var(--ab-dark-mid); color: #fff; }

/* Arrow link */
.ab-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ab-red);
    transition: gap var(--t);
    text-decoration: none;
}
.ab-arrow-link:hover { gap: 11px; }
.ab-arrow-link--white { color: #fff; }

/* ============================================================
   3. HEADER
   ============================================================ */
.site-header,
.elementor-location-header .elementor-section:first-child {
    background: #ffffff !important;
    border-bottom: 1px solid var(--ab-border) !important;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    transition: box-shadow var(--t-sl) !important;
}

.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.10) !important;
}

/* Nav linkovi */
.elementor-nav-menu .elementor-item {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #444 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.elementor-nav-menu .elementor-item:hover,
.elementor-nav-menu .elementor-item.elementor-item-active {
    color: var(--ab-red) !important;
}
.elementor-nav-menu--indicator-underline .elementor-item::after {
    background: var(--ab-red) !important;
    height: 2px !important;
}

/* ============================================================
   4. HERO
   ============================================================ */
.ab-hero {
    background: var(--ab-white);
    padding: 100px var(--pad-h) 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 88vh;
    position: relative;
    overflow: hidden;
}

.ab-hero__title {
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 900;
    line-height: 1.05;
    color: var(--ab-text);
    margin-bottom: 20px;
}

.ab-hero__title .red { color: var(--ab-red); }

/* Podvlaka ispod "donose rezultate" */
.ab-hero__title .underline {
    position: relative;
    display: inline-block;
}

.ab-hero__title .underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ab-red);
    border-radius: 2px;
}

.ab-hero__desc {
    font-size: 15px;
    color: var(--ab-text-soft);
    max-width: 460px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.ab-hero__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* Checkmarks ispod gumba */
.ab-hero__checks {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ab-hero__check {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ab-text-soft);
}

.ab-hero__check-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ab-red-bg);
    border: 1px solid var(--ab-red-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ab-red);
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Hero vizual */
.ab-hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ab-hero__visual img {
    width: 100%;
    max-width: 600px;
    border-radius: var(--r-lg);
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.15));
}

/* ============================================================
   5. STATS STRIP — crna pozadina
   ============================================================ */
.ab-stats {
    background: var(--ab-dark);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 var(--pad-h);
    max-width: 100%;
}

.ab-stat {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 32px 28px;
    border-right: 1px solid var(--ab-dark-border);
}

.ab-stat:last-child { border-right: none; }

.ab-stat__icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: rgba(211,47,47,0.12);
    border: 1px solid rgba(211,47,47,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ab-red);
    font-size: 22px;
}

.ab-stat__body { flex: 1; }

.ab-stat__num {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -1px;
}

.ab-stat__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: 4px;
}

/* ============================================================
   6. USLUGE — bijela, 3x2 grid
   ============================================================ */
.ab-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--ab-border);
    border: 1px solid var(--ab-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.ab-service {
    background: var(--ab-white);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: background var(--t);
    position: relative;
}

.ab-service:hover { background: var(--ab-bg-soft); }

.ab-service__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    background: var(--ab-red-bg);
    border: 1px solid var(--ab-red-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ab-red);
    font-size: 20px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.ab-service__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ab-text);
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.ab-service__desc {
    font-size: 13px;
    color: var(--ab-text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.ab-service__arrow {
    color: var(--ab-red);
    font-size: 18px;
    opacity: 0.5;
    transition: opacity var(--t), transform var(--t);
    display: inline-block;
    margin-top: auto;
}

.ab-service:hover .ab-service__arrow {
    opacity: 1;
    transform: translate(3px, -2px);
}

/* ============================================================
   7. PROJEKTI — crna pozadina, featured + 3 manje
   ============================================================ */
.ab-projects-dark {
    background: var(--ab-dark);
    padding: var(--pad-v) var(--pad-h);
}

.ab-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Featured projekt */
.ab-proj-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--ab-dark-mid);
    border: 1px solid var(--ab-dark-border2);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.ab-proj-featured__info {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ab-proj-featured__label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ab-red);
    margin-bottom: 8px;
}

.ab-proj-featured__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.ab-proj-featured__type {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}

.ab-proj-featured__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.75;
    margin-bottom: 22px;
}

/* Tech tagovi */
.ab-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.ab-tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.2px;
}

.ab-proj-featured__thumb {
    overflow: hidden;
    position: relative;
    min-height: 360px;
}

.ab-proj-featured__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ab-proj-featured:hover .ab-proj-featured__thumb img {
    transform: scale(1.03);
}

/* Male kartice — 3 u redu */
.ab-projects-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ab-proj-small {
    background: var(--ab-dark-mid);
    border: 1px solid var(--ab-dark-border2);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--t), transform var(--t);
    text-decoration: none;
    display: block;
}

.ab-proj-small:hover {
    border-color: rgba(211,47,47,0.35);
    transform: translateY(-3px);
}

.ab-proj-small__thumb {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--ab-dark);
    position: relative;
}

.ab-proj-small__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ab-proj-small:hover .ab-proj-small__thumb img {
    transform: scale(1.05);
}

.ab-proj-small__body {
    padding: 18px 20px 16px;
}

.ab-proj-small__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}

.ab-proj-small__type {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
}

.ab-proj-small__desc {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 14px;
}

.ab-proj-small__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--ab-dark-border);
}

.ab-proj-small__arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--ab-dark-border2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: background var(--t), color var(--t);
    flex-shrink: 0;
}

.ab-proj-small:hover .ab-proj-small__arrow {
    background: var(--ab-red);
    border-color: var(--ab-red);
    color: #fff;
}

/* ============================================================
   8. PROCES — bijela, horizontalni
   ============================================================ */
.ab-process {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    position: relative;
}

.ab-process::before {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(100% / 12);
    right: calc(100% / 12);
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--ab-red-border) 0, var(--ab-red-border) 6px,
        transparent 6px, transparent 14px
    );
    z-index: 0;
}

.ab-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 4px;
    position: relative;
    z-index: 1;
}

.ab-step__circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    transition: all var(--t);
    box-shadow: var(--shadow-sm);
}

.ab-step:hover .ab-step__circle {
    background: var(--ab-red);
    border-color: var(--ab-red);
}

.ab-step__icon {
    font-size: 22px;
    transition: filter var(--t);
}

.ab-step__num {
    position: absolute;
    top: -8px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ab-red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-step__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--ab-text);
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
}

.ab-step__desc {
    font-size: 12px;
    color: var(--ab-text-muted);
    line-height: 1.55;
}

/* ============================================================
   9. ZAŠTO APPBLEND — 2x2 grid
   ============================================================ */
.ab-why {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ab-why-card {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    border-radius: var(--r-md);
    padding: 28px 26px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: box-shadow var(--t), border-color var(--t);
}

.ab-why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--ab-red-border);
}

.ab-why-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    background: var(--ab-red-bg);
    border: 1px solid var(--ab-red-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--ab-red);
}

.ab-why-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ab-text);
    margin-bottom: 6px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
}

.ab-why-card__desc {
    font-size: 13px;
    color: var(--ab-text-muted);
    line-height: 1.65;
}

/* ============================================================
   10. CTA BANNER — crvena
   ============================================================ */
.ab-cta {
    background: var(--ab-red);
    padding: 72px var(--pad-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.ab-cta::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    pointer-events: none;
}

.ab-cta__logo {
    position: absolute;
    left: 40px;
    bottom: -10px;
    opacity: 0.08;
    width: 120px;
    pointer-events: none;
}

.ab-cta__text h2 {
    font-size: clamp(26px, 3.5vw, 42px);
    color: #fff;
    font-weight: 900;
    margin-bottom: 8px;
}

.ab-cta__text p {
    color: rgba(255,255,255,0.82);
    font-size: 15px;
}

/* ============================================================
   11. FOOTER — svijetli
   ============================================================ */
.ab-footer {
    background: var(--ab-bg-soft);
    border-top: 1px solid var(--ab-border);
    padding: 60px var(--pad-h) 0;
}

.ab-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--ab-border);
    max-width: var(--container);
    margin: 0 auto;
}

.ab-footer__col-title {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ab-text-light);
    margin-bottom: 18px;
}

.ab-footer__links a {
    display: block;
    font-size: 14px;
    color: var(--ab-text-soft);
    padding: 5px 0;
    transition: color var(--t);
}

.ab-footer__links a:hover { color: var(--ab-red); }

.ab-footer__contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 13px;
}

.ab-footer__contact-icon { color: var(--ab-red); flex-shrink: 0; margin-top: 1px; }
.ab-footer__contact-text { font-size: 13px; color: var(--ab-text-soft); line-height: 1.5; }

.ab-footer__social { display: flex; gap: 8px; margin-top: 20px; }

.ab-footer__social a {
    width: 34px; height: 34px;
    border: 1px solid var(--ab-border-mid);
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--ab-text-muted);
    font-size: 14px;
    font-weight: 700;
    transition: all var(--t);
}

.ab-footer__social a:hover { border-color: var(--ab-red); color: var(--ab-red); }

.ab-footer__bottom {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.ab-footer__bottom p { font-size: 12px; color: var(--ab-text-light); }

/* ============================================================
   12. FADE-UP ANIMACIJA
   ============================================================ */
.ab-fade {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.ab-fade.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    :root { --pad-h: 36px; --pad-v: 72px; }
    .ab-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
    .ab-hero__visual { order: -1; }
    .ab-stats { grid-template-columns: repeat(2, 1fr); }
    .ab-stat:nth-child(2) { border-right: none; }
    .ab-proj-featured { grid-template-columns: 1fr; }
    .ab-proj-featured__thumb { min-height: 240px; }
    .ab-process { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .ab-process::before { display: none; }
    .ab-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --pad-h: 20px; --pad-v: 56px; }
    .ab-services-grid { grid-template-columns: 1fr; }
    .ab-projects-small { grid-template-columns: 1fr; }
    .ab-why { grid-template-columns: 1fr; }
    .ab-stats { grid-template-columns: 1fr; }
    .ab-stat { border-right: none; border-bottom: 1px solid var(--ab-dark-border); }
    .ab-stat:last-child { border-bottom: none; }
    .ab-process { grid-template-columns: repeat(2, 1fr); }
    .ab-cta { flex-direction: column; text-align: center; }
    .ab-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .ab-hero__checks { gap: 12px; }
}
