/*
Theme Name: Safety First Consulting
Theme URI: https://safetyfirst.co.il
Author: Your Name
Author URI: https://yourwebsite.com
Description: תבנית וורדפרס עבור חברת ייעוץ בטיחות אש ובניין
Version: 1.0
License: GPL v2 or later
Text Domain: safety-first
RTL: true
*/

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

body {
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #334155; /* slate-700 */
    background-color: #ffffff;
}

/* =Typography
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #0f172a; /* slate-900 */
}

h1 { font-size: 3.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #f97316; /* orange-500 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ea580c; /* orange-600 */
}

/* =Layout
-------------------------------------------------------------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =Header Styles
-------------------------------------------------------------- */
.top-bar {
    background-color: #0f172a; /* slate-900 */
    color: #ffffff;
    padding: 0.5rem 1rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.top-bar-contacts {
    display: flex;
    gap: 1.5rem;
}

.top-bar-contacts a {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.top-bar-contacts a:hover {
    color: #f97316; /* orange-500 */
}

/* =Main Navigation
-------------------------------------------------------------- */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0; /* slate-200 */
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.main-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.site-logo:hover .logo-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.site-tagline {
    font-size: 0.75rem;
    color: #64748b; /* slate-500 */
    font-weight: 500;
}

/* =Desktop Navigation
-------------------------------------------------------------- */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

.desktop-nav a {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #334155; /* slate-700 */
    transition: all 0.2s ease;
}

.desktop-nav a:hover {
    background-color: #f1f5f9; /* slate-100 */
}

.desktop-nav a.current-menu-item {
    background-color: #f97316; /* orange-500 */
    color: #ffffff;
}

/* =CTA Button
-------------------------------------------------------------- */
.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: block;
    }
}

.btn-primary {
    background-color: #f97316; /* orange-500 */
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #ea580c; /* orange-600 */
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0f172a;
}

/* =Mobile Menu
-------------------------------------------------------------- */
.mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle:hover {
    background-color: #f1f5f9; /* slate-100 */
}

.mobile-menu {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
    background-color: #f1f5f9;
}

.mobile-menu a.current-menu-item {
    background-color: #f97316;
    color: #ffffff;
}

/* =Hero Section
-------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #ffffff;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(249, 115, 22, 0.2);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    color: #fb923c; /* orange-400 */
    font-weight: 500;
    font-size: 0.875rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(to right, #fb923c, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: #cbd5e1; /* slate-300 */
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-stat-card {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background-color: #ffffff;
    color: #0f172a;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* =Stats Section
-------------------------------------------------------------- */
.stats-section {
    padding: 4rem 0;
    background-color: #f8fafc; /* slate-50 */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
}

.stat-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #fed7aa; /* orange-100 */
    border-radius: 50%;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 32px;
    height: 32px;
    color: #f97316; /* orange-500 */
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #475569; /* slate-600 */
}

/* =Services Section
-------------------------------------------------------------- */
.services-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.service-icon.orange {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.service-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.service-icon.dark {
    background: linear-gradient(135deg, #334155, #0f172a);
}

/* =CTA Section
-------------------------------------------------------------- */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.25rem;
    color: #475569;
    margin-bottom: 2rem;
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background-color: #0f172a; /* slate-900 */
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #94a3b8; /* slate-400 */
    max-width: 400px;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    color: #94a3b8;
}

.footer-widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #f97316;
}

.footer-bottom {
    border-top: 1px solid #1e293b; /* slate-800 */
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* =Forms
-------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0f172a;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

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

/* =Utilities
-------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

@media (max-width: 640px) {
    .sm-hidden { display: none; }
}

/* =WordPress Core
-------------------------------------------------------------- */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.wp-block-button__link {
    background-color: #f97316;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.wp-block-button__link:hover {
    background-color: #ea580c;
    color: #ffffff;
}
