/* ============================================
   שליבו שריר בניה ויזמות — Landing Page Styles
   ============================================ */

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 4px; /* below the copper accent bar */
    left: 0; right: 0;
    z-index: 9000;
    padding: .65rem 0;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

.navbar.scrolled {
    background: rgba(12, 12, 16, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,.25);
    padding: .5rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 38px;
    width: auto;
    opacity: 0;
    transition: opacity .3s ease;
}

.navbar.scrolled .nav-logo {
    opacity: .85;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.3rem;
    background: var(--copper);
    color: #fff;
    font-family: var(--body);
    font-size: .88rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    transition: background .2s ease, transform .15s ease;
    opacity: 0;
    transform: translateY(-4px);
}

.navbar.scrolled .nav-cta {
    opacity: 1;
    transform: translateY(0);
}

.nav-cta:hover {
    background: var(--copper-light);
}

.nav-cta:active {
    transform: scale(.96);
}

/* ---- UTILITIES ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: var(--display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    text-align: center;
    margin-bottom: .6rem;
    color: var(--text-dark);
}

.section-sub {
    text-align: center;
    color: var(--text-dark);
    font-size: clamp(.95rem, 1.8vw, 1.15rem);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ---- SECTION DIVIDER ---- */
.divider-angle {
    margin-top: -1px;
    background: var(--bg-dark);
    line-height: 0;
}
.divider-angle svg {
    width: 100%;
    height: clamp(40px, 5vw, 70px);
    display: block;
}

/* ---- SERVICES ---- */
.services {
    background: var(--bg-warm);
    padding: var(--section-py) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    border: 1px solid rgba(0,0,0,.05);
    border-top: 3px solid transparent;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--copper);
    box-shadow: 0 12px 40px rgba(0,0,0,.07);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--copper-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--copper);
}
.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-family: var(--body);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .5rem;
    color: var(--text-dark);
}

.service-card p {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- ABOUT / TRUST ---- */
.about {
    background: var(--bg-card);
    padding: var(--section-py) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-title {
    text-align: right;
    margin-bottom: 1.2rem;
}

.about-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.owner-photo-placeholder {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-warm);
    border: 3px solid rgba(191,117,53,.15);
}

.owner-photo {
    width: 100%;
    height: auto;
    display: block;
}

.ivrit-badge {
    width: clamp(120px, 20vw, 180px);
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.08));
}

.about-text p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.about-lead {
    font-size: 1.2rem !important;
    font-weight: 500;
    color: var(--text-dark) !important;
}

.trust-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.2rem 1.4rem;
    background: linear-gradient(135deg, rgba(191,117,53,.06), rgba(191,117,53,.02));
    border: 1px solid rgba(191,117,53,.15);
    border-radius: var(--radius);
}

.trust-highlight svg {
    flex-shrink: 0;
    color: var(--copper);
    margin-top: .15rem;
}

.trust-highlight strong {
    display: block;
    font-size: 1.12rem;
    color: var(--text-dark);
    margin-bottom: .25rem;
}

.trust-highlight span {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-title {
        text-align: center;
    }
    .about-image {
        order: -1;
    }
    .owner-photo-placeholder {
        max-width: 280px;
        margin: 0 auto;
    }
    .trust-highlight {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ---- REVIEWS / RECOMMENDATIONS ---- */
.reviews {
    background: var(--bg-warm);
    padding: var(--section-py) 0;
}

.reviews-screenshots {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: .5rem 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--copper) transparent;
}

.reviews-screenshots::-webkit-scrollbar {
    height: 4px;
}
.reviews-screenshots::-webkit-scrollbar-track {
    background: transparent;
}
.reviews-screenshots::-webkit-scrollbar-thumb {
    background: var(--copper);
    border-radius: 4px;
}

.review-screenshot {
    flex: 0 0 auto;
    width: clamp(280px, 35vw, 380px);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    scroll-snap-align: start;
    transition: transform .25s ease, box-shadow .25s ease;
    background: #1a1a2e;
}

.review-screenshot:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.review-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

/* ---- GALLERY ---- */
.gallery {
    background: var(--bg-card);
    padding: var(--section-py) 0;
}

.gallery-carousel {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero image */
.gallery-hero {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #ddd;
    margin-bottom: 1rem;
    cursor: pointer;
}

.gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .35s ease;
}

.gallery-hero img.fade {
    opacity: 0;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 2.5rem 1.5rem 1.2rem;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
    pointer-events: none;
}

/* Thumbnail strip */
.gallery-thumbs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: .25rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--copper) transparent;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}
.gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--copper);
    border-radius: 4px;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 120px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #ddd;
    padding: 0;
    transition: border-color .2s ease, opacity .2s ease;
    scroll-snap-align: start;
    opacity: .5;
}

.gallery-thumb:hover {
    opacity: .8;
}

.gallery-thumb.active {
    border-color: var(--copper);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* lightbox overlay */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}
.gallery-lightbox.active {
    display: flex;
}
.gallery-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.lightbox-close:hover {
    background: rgba(255,255,255,.2);
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- MARQUEE STRIP ---- */
.marquee-strip {
    background: var(--bg-dark);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    direction: ltr; /* force LTR so the marquee scrolls correctly */
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-family: var(--display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--copper-light);
    padding: 0 .5rem;
    flex-shrink: 0;
    direction: rtl; /* keep Hebrew text rendering RTL */
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- CONTACT FORM ---- */
.contact {
    background: var(--bg-warm);
    padding: var(--section-py) 0;
}

.form-wrapper {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
    position: relative;
}

.form-group {
    position: relative;
    margin-bottom: 1.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem .6rem;
    font-family: var(--body);
    font-size: 1rem;
    border: 1.5px solid #ddd;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-dark);
    transition: border-color .2s ease;
    direction: rtl;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--copper);
}

/* floating labels */
.form-group label {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: .95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all .2s ease;
    background: var(--bg-card);
    padding: 0 .3rem;
}
.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: .78rem;
    color: var(--copper);
}
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -.5rem;
    font-size: .78rem;
    color: var(--copper);
}

/* validation states */
.form-group.error input,
.form-group.error textarea {
    border-color: #e53935;
}
.form-group .error-msg {
    display: none;
    font-size: .78rem;
    color: #e53935;
    margin-top: .3rem;
}
.form-group.error .error-msg {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--copper);
    color: #fff;
    font-family: var(--body);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
.submit-btn:hover {
    background: var(--copper-light);
}
.submit-btn:active {
    transform: scale(.98);
}

.form-note {
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* success state */
.form-success {
    display: none;
    text-align: center;
    padding: 1rem 0;
}
.form-success.show {
    display: block;
    animation: fadeUp .5s ease;
}
.form-success .success-check {
    margin-bottom: 1.5rem;
}
.form-success h3 {
    font-family: var(--display);
    font-size: 1.5rem;
    margin-bottom: .8rem;
    color: var(--text-dark);
}
.form-success p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: .95rem;
}
.form-success .cta-btn {
    font-size: .95rem;
    padding: .85rem 1.8rem;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-dark);
    color: var(--text-subtle);
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
}

.footer-logo {
    width: 48px;
    height: auto;
    margin-bottom: .3rem;
}

.footer-brand h3 {
    font-family: var(--display);
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: .4rem;
}
.footer-brand p {
    font-size: .88rem;
    color: var(--text-muted);
}

.footer-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.footer-contact a {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-subtle);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s ease;
}
.footer-contact a:hover {
    color: var(--copper-light);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: .78rem;
    color: var(--text-muted);
}

/* ---- FLOATING WHATSAPP ---- */
.floating-wa {
    position: fixed;
    bottom: 1.8rem;
    left: 1.8rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.35);
    z-index: 9000;
    transition: transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
}
.floating-wa:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,.45);
}
.floating-wa:active {
    transform: scale(.95);
}

/* pulse ring */
.floating-wa::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--green);
    animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
    0%   { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* tooltip */
.float-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--text-dark);
    font-family: var(--body);
    font-size: .82rem;
    font-weight: 500;
    padding: .45rem .9rem;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,.12);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateY(-50%) translateX(8px);
}
.float-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
}
.floating-wa:hover .float-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---- SCROLL REVEAL ANIMATION ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger cards */
.services-grid .reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4) { transition-delay: .24s; }
.services-grid .reveal:nth-child(5) { transition-delay: .32s; }
.services-grid .reveal:nth-child(6) { transition-delay: .4s; }

.stats-grid .reveal:nth-child(1) { transition-delay: 0s; }
.stats-grid .reveal:nth-child(2) { transition-delay: .1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: .2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: .3s; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- SELECTION ---- */
::selection {
    background: var(--copper);
    color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
    .stat-item:nth-child(3)::before {
        display: none;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-card {
        padding: 1.5rem 1.3rem;
    }
    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-btn {
        min-width: unset;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item + .stat-item::before {
        display: none;
    }
    .form-wrapper {
        padding: 1.5rem 1.2rem;
    }
    .footer-contact {
        flex-direction: column;
        gap: .8rem;
    }
    .floating-wa {
        width: 54px;
        height: 54px;
        bottom: 1.2rem;
        left: 1.2rem;
    }
    .float-tooltip {
        display: none;
    }
    .hero {
        padding: 2rem 1rem 3rem;
    }
    .hero-badge {
        font-size: .75rem;
        padding: .35rem 1rem;
    }
}
