/**
 * Ziko.co.il - Layout Components
 * Header, Footer, Navigation
 */

/* ===================================================
   HEADER
   =================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 26px;
    font-weight: var(--font-weight-extrabold);
    color: var(--text);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-normal);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Header CTA Button */
.header-cta {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.header-cta:hover {
    background: var(--primary-dark);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    padding: 0 0 24px;
    background: linear-gradient(180deg, #0c1322 0%, #0f172a 40%, #131d33 100%);
    color: var(--text-on-dark-muted);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(196, 30, 58, 0.5) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
    padding: 48px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.footer-logo span {
    font-size: 24px;
    font-weight: var(--font-weight-extrabold);
    color: var(--white);
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.7;
}

.footer-contact {
    margin-top: 16px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-fast);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-right: -12px;
}

.footer-contact a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--white);
    padding-right: 4px;
}

/* Legacy footer-links support */
.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-on-dark-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-normal);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0 0;
    text-align: center;
}

.footer-legal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* Group endorsement (group-standards §3) */
.footer-dogware {
    margin: 8px 0 0;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.footer-dogware span {
    color: rgba(255, 255, 255, 0.5);
    font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===================================================
   WIZARD (Checkout Flow)
   =================================================== */
.wizard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
    background: var(--bg);
}

.wizard-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px var(--container-padding);
}

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.wizard-step.active {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
}

.wizard-step.done {
    color: var(--success);
}

.wizard-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
}

.wizard-step.active .wizard-step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.wizard-step.done .wizard-step-num {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.wizard-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px var(--container-padding);
}

.wizard-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-md);
}

.wizard-card h2 {
    font-size: 26px;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 8px;
    text-align: center;
}

.wizard-card .subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input[type="url"],
.form-group input[type="email"] {
    direction: ltr;
    text-align: left;
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Preview Card */
.preview-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.preview-url {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.preview-favicon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.preview-favicon img {
    width: 28px;
    height: 28px;
}

.preview-domain {
    font-size: 17px;
    font-weight: var(--font-weight-semibold);
    direction: ltr;
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.preview-info i {
    color: var(--primary);
}

/* Payment */
.payment-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.payment-header {
    background: var(--primary);
    color: var(--white);
    padding: 24px;
    text-align: center;
}

.payment-header h3 {
    font-size: 18px;
    font-weight: var(--font-weight-bold);
}

.payment-price {
    font-size: 40px;
    font-weight: var(--font-weight-extrabold);
    margin-top: 8px;
}

.payment-iframe {
    width: 100%;
    height: 420px;
    border: none;
}

/* ===================================================
   ENTERPRISE HEADER (site-header.php)
   =================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #e94560 40%, var(--primary-dark) 100%);
    opacity: 0.9;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
    border-bottom-color: transparent;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 26px;
    font-weight: var(--font-weight-extrabold);
    color: var(--text);
    transition: opacity 0.2s;
}

.site-header__logo:hover {
    opacity: 0.8;
}

.site-header__logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-header__link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.site-header__dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.2s;
}

.site-header__dropdown.open .site-header__dropdown-toggle i {
    transform: rotate(180deg);
}

.site-header__dropdown {
    position: relative;
}

.site-header__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03), 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
    min-width: 300px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 110;
}

.site-header__dropdown.open .site-header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.site-header__dropdown-item:hover {
    background: var(--bg);
}

.site-header__dropdown-item > i {
    font-size: 18px;
    color: var(--primary);
    margin-top: 2px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.site-header__dropdown-item strong {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 2px;
}

.site-header__dropdown-item span {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.site-header__cta {
    background: linear-gradient(135deg, var(--primary) 0%, #e94560 100%);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}

.site-header__cta:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Hamburger */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

.site-header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.2s;
}

/* Mobile Overlay */
.site-header__mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.site-header__mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.site-header__mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.site-header__mobile-menu.open {
    transform: translateX(0);
}

.site-header__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.site-header__mobile-header .site-header__logo {
    font-size: 20px;
}

.site-header__mobile-header .site-header__logo img {
    width: 32px;
    height: 32px;
}

.site-header__mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    margin-inline-end: -8px;
}

.site-header__mobile-nav {
    flex: 1;
    padding: 12px 0;
}

.site-header__mobile-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}

.site-header__mobile-accordion-toggle i {
    font-size: 11px;
    transition: transform 0.2s;
}

.site-header__mobile-accordion-toggle.open i {
    transform: rotate(180deg);
}

.site-header__mobile-accordion-panel {
    display: none;
    padding: 0 20px 8px 36px;
}

.site-header__mobile-accordion-panel.open {
    display: block;
}

.site-header__mobile-accordion-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--bg);
}

.site-header__mobile-accordion-panel a:last-child {
    border-bottom: none;
}

.site-header__mobile-accordion-panel a i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.site-header__mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
}

.site-header__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 20px 20px;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 15px;
}

@media (max-width: 968px) {
    .site-header__nav,
    .site-header__cta {
        display: none;
    }

    .site-header__hamburger {
        display: flex;
    }
}

/* ===================================================
   FOOTER TRUST BAR
   =================================================== */
.footer-trust {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0;
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.footer-trust-badge:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
}

.footer-trust-badge i {
    font-size: 15px;
    color: var(--success);
}

/* ===================================================
   RESPONSIVE (legacy)
   =================================================== */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .wizard-card {
        padding: 28px 20px;
    }

    .wizard-steps {
        gap: 24px;
    }

    .wizard-step span:not(.wizard-step-num) {
        display: none;
    }

    .footer-trust {
        gap: 16px;
    }

    .footer-trust-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ===================================================
   FLOATING WHATSAPP
   =================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999990;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}
