/*
Theme Name: הובלות חכמות בצפון
Theme URI: https://example.com/
Author: Custom
Description: דף נחיתה מותאם אישית עבור הובלות חכמות בצפון. נבנה עבור עסקים בישראל. RTL, נגיש, SEO-ready, דו-לשוני (עברית + רוסית).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hobahot-hakhamot
Tags: rtl-language-support, custom-colors, one-column, accessibility-ready
*/

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
    --color-text:         #1a1a1a;
    --color-bg:           #ffffff;
    --color-bg-alt:       #f5f5f5;
    --color-muted:        #666666;
    --color-accent:       #1565C0;
    --color-accent-hover: #0d47a1;
    --color-accent-light: #e3f0ff;
    --color-white:        #ffffff;
    --container-max:      1200px;
    --section-py:         80px;
    --section-py-mob:     48px;
    --radius:             6px;
    --transition:         200ms ease;
    --shadow-sm:          0 2px 8px rgba(0,0,0,.08);
    --shadow-md:          0 4px 20px rgba(0,0,0,.12);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Heebo', 'Arial Hebrew', 'Tahoma', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    direction: rtl;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
em { font-style: normal; font-weight: 500; }

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

ul, ol { list-style: none; }

/* =============================================
   Layout Helpers
   ============================================= */
.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 20px;
}

.container-narrow { max-width: 800px; }

.section-alt { background: var(--color-bg-alt); }

section {
    padding-block: var(--section-py);
}

.section-title {
    text-align: center;
    margin-block-end: 48px;
}
.section-title h2 { margin-block-end: 12px; }
.section-title p { color: var(--color-muted); font-size: 1.1rem; }

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.btn-outline:hover, .btn-outline:focus-visible {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    border-color: #25D366;
}
.btn-whatsapp:hover, .btn-whatsapp:focus-visible {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: var(--color-white);
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =============================================
   Skip Link (Accessibility)
   ============================================= */
.skip-link {
    position: absolute;
    inset-block-start: -100px;
    inset-inline-start: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 12px 20px;
    z-index: 10000;
    transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 0; }

/* =============================================
   Site Header
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 16px;
}

.site-branding { flex-shrink: 0; }

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    line-height: 1.2;
}
.site-title:hover { color: var(--color-accent-hover); }

.site-title-sub {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.lang-switch:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

.header-phone {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    white-space: nowrap;
}
.header-phone:hover { color: var(--color-accent); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   Hero Section
   ============================================= */
.section-hero {
    background: linear-gradient(135deg, #1565C0 0%, #0d47a1 100%);
    color: var(--color-white);
    padding-block: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 1; }

.section-hero h1 {
    color: var(--color-white);
    margin-block-end: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: var(--color-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 500;
    margin-block-end: 20px;
}

.hero-sub {
    font-size: 1.2rem;
    color: rgba(255,255,255,.9);
    max-width: 600px;
    margin-inline: auto;
    margin-block-end: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn-hero-phone {
    background: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-white);
}
.btn-hero-phone:hover {
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-color: var(--color-accent-light);
}

/* =============================================
   Services Section
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-inline: auto;
    margin-block-end: 20px;
    color: var(--color-accent);
}

.service-icon svg { width: 64px; height: 64px; }

.service-card h3 {
    margin-block-end: 12px;
    color: var(--color-accent);
}

.service-card p { color: var(--color-muted); }

/* =============================================
   Why Us Section
   ============================================= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.why-item {
    background: var(--color-white);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.why-icon {
    font-size: 2.5rem;
    margin-block-end: 16px;
}

.why-item h3 {
    margin-block-end: 12px;
    color: var(--color-accent);
}

.why-item p { color: var(--color-muted); font-size: .95rem; }

/* =============================================
   Coverage Section
   ============================================= */
.coverage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-block-start: 8px;
}

.coverage-tag {
    background: var(--color-accent-light);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
    font-size: .95rem;
}

/* =============================================
   Contact / Form Section
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 { margin-block-end: 16px; }

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block-end: 16px;
    font-size: 1rem;
}

.contact-detail svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-detail a { color: var(--color-text); font-weight: 600; }
.contact-detail a:hover { color: var(--color-accent); }

/* CF7 form styling */
.wpcf7-form .form-row {
    margin-block-end: 20px;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    margin-block-end: 6px;
    font-size: .95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition);
    text-align: start;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--color-accent);
}

.wpcf7-form textarea { resize: vertical; min-height: 120px; }

.wpcf7-submit {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    padding: 14px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background var(--transition);
}
.wpcf7-submit:hover { background: var(--color-accent-hover); }

/* =============================================
   Footer
   ============================================= */
.site-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,.8);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-block: 60px;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-block-end: 16px;
    padding-block-end: 12px;
    border-block-end: 2px solid var(--color-accent);
    display: inline-block;
}

.footer-col p, .footer-col li { font-size: .9rem; margin-block-end: 8px; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
    border-block-start: 1px solid rgba(255,255,255,.1);
    padding-block: 20px;
    text-align: center;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}

/* =============================================
   Floating Buttons
   ============================================= */
.float-buttons {
    position: fixed;
    inset-block-end: 90px;
    inset-inline-start: 20px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--color-white);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    color: var(--color-white);
}

.float-btn svg { width: 28px; height: 28px; }

.float-whatsapp { background: #25D366; }
.float-phone    { background: var(--color-accent); }

/* =============================================
   Page Content (Legal Pages)
   ============================================= */
.page-content {
    padding-block: 60px;
}

.entry-content h1 { margin-block-end: 24px; }
.entry-content h2 { margin-block: 32px 16px; font-size: 1.3rem; }
.entry-content h3 { margin-block: 24px 12px; }
.entry-content p  { margin-block-end: 16px; }
.entry-content ul, .entry-content ol {
    list-style: disc;
    padding-inline-start: 24px;
    margin-block-end: 16px;
}
.entry-content li { margin-block-end: 8px; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    section { padding-block: var(--section-py-mob); }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }

    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; justify-content: center; }

    .header-phone { display: none; }

    .float-buttons { inset-block-end: 80px; }
}

@media (max-width: 480px) {
    .services-grid, .why-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
