/* ===== GLOBAL VARIABLES ===== */
:root {
    --primary: #1a5ba8;
    --primary-dark: #0d3a6e;
    --primary-light: #2d7dd2;
    --accent: #d4a853;
    --text-dark: #1a1a2e;
    --text-light: #4a4a5a;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(26, 91, 168, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 91, 168, 0.12);
    --shadow-strong: 0 12px 60px rgba(26, 91, 168, 0.18);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Bonim colors */
    --bonim-blue: #0069a8;
    --bonim-blue-dark: #004d7a;
    --bonim-green: #aacc00;
    --bonim-green-dark: #8fb300;
    --bonim-light: #f0f9ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 90px;
    width: auto;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

.nav.scrolled .logo-img {
    height: 60px;
    filter: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: var(--transition);
}

.nav.scrolled .nav-links a::after {
    background: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: rgba(255,255,255,0.8);
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

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

.nav-cta::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.nav.scrolled .mobile-menu-btn span {
    background: var(--primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow-medium);
    z-index: 999;
}

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

.mobile-menu a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eef7 50%, #dce5f2 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(26, 91, 168, 0.03) 0%, transparent 70%);
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(26, 91, 168, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(26, 91, 168, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26, 91, 168, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Hero Video */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.hero-video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-stats {
    position: absolute;
    bottom: -30px;
    right: 30px;
    left: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 10rem 2rem 5rem;
    text-align: center;
    color: white;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("../images/ריבועי הלוגו החדש.png");
    background-size: 120px auto;
    opacity: 0.15;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 8rem 0;
    background: var(--bg-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(26, 91, 168, 0.08);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
}

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

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-feature span {
    font-weight: 500;
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 20px;
    z-index: -1;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 8rem 0;
    background: var(--bg-light);
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 8rem 0;
    background: var(--bg-white);
}

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

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-light);
}

.project-content {
    padding: 1.75rem;
}

.project-location {
    display: inline-block;
    background: rgba(26, 91, 168, 0.08);
    color: var(--primary);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.project-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("../images/ריבועי הלוגו החדש.png");
    background-size: 120px auto;
    opacity: 0.15;
}

.contact .section-title,
.contact .section-description {
    color: white;
}

.contact .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    color: white;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateX(-5px);
}

.contact-method-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-method-text {
    display: flex;
    flex-direction: column;
}

.contact-method-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

.contact-method-value {
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}

.contact-form h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 91, 168, 0.1);
}

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

.btn-submit {
    width: 100%;
    padding: 1.15rem;
    font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO FULL-WIDTH VIDEO BACKGROUND ===== */
.hero-video-fullwidth {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 58, 110, 0.55) 0%,
        rgba(26, 91, 168, 0.45) 50%,
        rgba(13, 58, 110, 0.55) 100%
    );
    z-index: 1;
}

.hero-fullwidth-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 8rem 2rem 4rem;
    animation: fadeInUp 1s ease-out;
}

.hero-badge-light {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title-light {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-title-light span {
    color: #7dd3fc;
    text-shadow: 0 4px 30px rgba(125, 211, 252, 0.3);
}

.hero-description-light {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-buttons-light {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary-light:hover {
    background: #f0f9ff;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

.hero-stats-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item-light {
    padding: 1.75rem 3rem;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item-light:last-child {
    border-left: none;
}

.stat-number-light {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label-light {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        position: static;
        margin-top: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo-img {
        height: 45px;
    }

    .hero-video,
    .hero-image {
        height: 350px;
    }

    /* Hero fullwidth responsive */
    .hero-fullwidth-content {
        padding: 7rem 1.5rem 12rem;
    }

    .hero-title-light {
        font-size: 2.25rem;
    }

    .hero-description-light {
        font-size: 1rem;
    }

    .hero-stats-bottom {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(8px);
    }

    .stat-item-light {
        padding: 1rem;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stat-item-light:last-child {
        border-bottom: none;
    }

    .stat-number-light {
        font-size: 1.75rem;
    }

    .page-header {
        padding: 9rem 1.5rem 3rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 1rem;
    }
}

/* ===== BONIM MEHADASH PAGE STYLES ===== */
.bonim-hero {
    padding-top: 120px;
}

.bonim-blue {
    color: var(--bonim-blue);
}

/* ===== GENERAL MOBILE GRID OVERRIDE ===== */
@media (max-width: 768px) {
    /* Override all inline grid-template-columns on mobile */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 2fr 3fr"],
    div[style*="grid-template-columns: 3fr 2fr"],
    div[style*="grid-template-columns: repeat(2"],
    div[style*="grid-template-columns: repeat(3"],
    div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
    /* Navigation fixes */
    .nav {
        padding: 0.5rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 100px !important;
    }

    .nav.scrolled .logo-img {
        height: 80px !important;
    }

    .mobile-menu {
        top: 120px;
    }

    .nav.scrolled .mobile-menu {
        top: 100px;
    }

    /* Page header mobile */
    .page-header {
        padding: 6rem 1rem 2.5rem;
    }

    /* Services page mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem !important;
    }

    /* Contact section mobile */
    .contact {
        padding: 4rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-methods {
        gap: 1rem;
    }

    .contact-method {
        padding: 1rem !important;
        border-radius: 12px !important;
    }

    /* Projects page mobile */
    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    /* About page mobile */
    .about {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .about-features {
        grid-template-columns: 1fr !important;
    }

    /* Footer mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    /* Section headers mobile */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    /* Container padding mobile */
    .container {
        padding: 0 1rem;
    }

    /* Buttons mobile */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-buttons,
    .hero-buttons-light {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn,
    .hero-buttons-light .btn-primary-light,
    .hero-buttons-light .btn-secondary-light {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Bonim/Yizmut page mobile */
    .bonim-hero {
        padding-top: 80px;
    }

    .bonim-hero .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .bonim-hero h1 {
        font-size: 2rem !important;
    }

    /* CTA sections mobile */
    section[style*="padding: 5rem"] {
        padding: 3rem 0 !important;
    }

    section[style*="padding: 6rem"] {
        padding: 3rem 0 !important;
    }

    /* Map section mobile */
    section[style*="height: 400px"] {
        height: 250px !important;
    }

    /* Yizmut diyarim specific */
    .bonim-hero img[style*="height: 160px"] {
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 80px !important;
    }

    .nav.scrolled .logo-img {
        height: 70px !important;
    }

    .mobile-menu {
        top: 100px;
    }

    .nav.scrolled .mobile-menu {
        top: 90px;
    }

    .page-header {
        padding: 8rem 1rem 2rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .hero-fullwidth-content {
        padding-bottom: 14rem;
    }

    .hero-title-light {
        font-size: 1.75rem;
    }

    .hero-description-light {
        font-size: 0.9rem;
    }

    .stat-item-light {
        padding: 0.75rem;
    }

    .stat-number-light {
        font-size: 1.5rem;
    }

    .stat-label-light {
        font-size: 0.8rem;
    }

    .contact-form h4 {
        font-size: 1.25rem;
    }

    .form-input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .bonim-hero h1 {
        font-size: 1.75rem !important;
    }

    .section-title {
        font-size: 1.35rem;
    }

    /* Services yizmut highlight section */
    .yizmut-highlight-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .yizmut-highlight-grid h2 {
        font-size: 1.75rem !important;
    }

    .yizmut-highlight-grid p {
        font-size: 1rem !important;
    }

    .yizmut-highlight-grid img {
        max-width: 100%;
        height: auto;
    }

    /* CTA sections mobile fix */
    section[style*="padding: 5rem"] h2,
    section[style*="padding: 6rem"] h2 {
        font-size: 1.5rem !important;
    }

    section[style*="padding: 5rem"] p,
    section[style*="padding: 6rem"] p {
        font-size: 1rem !important;
    }
}
