/*
Theme Name: Emunah
Theme URI: https://domyvesai.wixsite.com/emunah
Author: Antigravity
Description: Custom WordPress theme recreating the Emunah logistics website with a highly premium, modern, glassmorphic aesthetic.
Version: 2.0.0
Text Domain: emunah
*/

/* ==========================================================================
   Premium Design Tokens
   ========================================================================== */
:root {
    --primary-navy: #0B1120;
    /* Extremely deep, rich blue for authority */
    --accent-teal: #0EA5E9;
    /* Vibrant modern teal/blue */
    --accent-green: #10B981;
    /* Vivid success green */

    --bg-white: #FFFFFF;
    --bg-cloud: #F8FAFC;
    /* Soft ambient background */
    --bg-slate: #1E293B;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);

    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: #334155;
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--bg-cloud);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ==========================================================================
   Corporate Header (Two-Tier Structured Layout)
   ========================================================================== */
.site-header {
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--bg-white);
}

.header-top {
    padding: 0; /* Minimized padding to pull the line up */
    background-color: var(--primary-navy);
}

.header-top-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-branding .logo-wrapper {
    display: inline-block;
}

.site-branding .site-logo {
    width: 380px; /* Slightly reduced to help compacting */
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Appropriate for dark backgrounds */
    display: block;
    margin: -45px 0; /* Tighter negative margins to reduce height */
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast; /* Sharpen text and edges */
    image-rendering: crisp-edges;
    filter: invert(1) hue-rotate(180deg) brightness(2) contrast(1.2) saturate(1.2); /* Dynamically converts the original white-bg logo into a crisp, light, transparent version */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
}

.contact-details {
    display: flex;
    gap: 40px;
    text-align: right;
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-item strong {
    color: var(--primary-navy);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 16px;
    color: #475569;
    margin: 0;
    font-weight: 500;
}

.header-cta {
    background-color: var(--primary-navy);
    color: var(--bg-white) !important;
    padding: 16px 35px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.header-cta:hover {
    background-color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* Header Bottom / Main Nav */
.header-bottom {
    background-color: var(--primary-navy);
    border-top: 2px solid var(--accent-teal);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Centered menu */
    margin: 0;
    padding: 0;
}

.main-navigation>ul>li {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    /* subtle separator */
}

.main-navigation>ul>li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.main-navigation>ul>li>a {
    display: block;
    padding: 12px 25px; /* Even more compact */
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bg-white);
    letter-spacing: 1px;
    transition: background 0.3s;
}

.main-navigation>ul>li:hover>a,
.main-navigation>ul>li.current-menu-item>a {
    background-color: var(--accent-teal);
    color: var(--bg-white);
}

.main-navigation>ul>li>a::after {
/* Removed the line under hover to fit full block nav style */
}

.menu-toggle {
    display: none;
}

/* Submenu Dropdown Styles */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 3px solid var(--accent-teal);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.main-navigation li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    padding: 0;
    width: 100%;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 18px 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-navy);
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.main-navigation .sub-menu a:hover {
    color: var(--accent-teal);
    padding-left: 32px;
    background: #f8fafc;
}


/* ==========================================================================
   Hero Section with Glow Effect
   ========================================================================== */
.hero-section {
    background-color: var(--bg-cloud);
    padding: 80px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Ambient glow orb behind image */
.hero-section::after {
    content: '';
    position: absolute;
    right: 5%;
    top: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-text h2 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 24px;
    font-weight: 400;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-image {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.2s;
    position: relative;
}

.hero-image img {
    border-radius: 40px;
    box-shadow: 0 30px 60px -15px rgba(11, 17, 32, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Carousel Section
   ========================================================================== */
.carousel-section {
    padding: 30px 0 10px; /* Slight breathing room at bottom */
    background-color: var(--bg-white);
    overflow: hidden;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track img {
    height: 400px;
    width: 600px;
    object-fit: cover;
    margin-right: 30px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
    filter: grayscale(10%);
}

.carousel-track img:hover {
    transform: translateY(-10px);
    filter: grayscale(0%);
    box-shadow: 0 20px 50px -10px rgba(14, 165, 233, 0.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

/* ==========================================================================
   Mission & Values - Modern Cards
   ========================================================================== */
.mission-values-section {
    padding: 30px 0 100px; /* Moderate top padding for balanced separation */
    background: var(--bg-cloud);
    text-align: center;
    position: relative;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* Reduced gap */
    margin-bottom: 40px; /* Reduced bottom margin */
    align-items: stretch;
}

.mission-block,
.vision-block {
    padding: 50px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mission-block h2,
.vision-block h2,
.values-block h2,
.nosotros-block h2 {
    font-size: 38px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--bg-slate) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mission-block p,
.vision-block p,
.values-block p,
.nosotros-block p {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.8;
    color: #475569;
}

.values-block,
.nosotros-block {
    max-width: 900px;
    margin: 0 auto 40px; /* No top margin to let it stick close */
    padding: 50px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.nosotros-image {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nosotros-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.values-list {
    list-style: none;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.7;
    text-align: left;
    display: inline-block;
    color: #475569;
    margin: 0;
    padding: 0;
}

.values-list li {
    margin-bottom: 15px;
}

/* ==========================================================================
   Floating Socials
   ========================================================================== */
.floating-socials {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-smooth);
    border: 2px solid var(--bg-white);
}

.social-btn svg {
    width: 26px;
    height: 26px;
}

.social-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2 0%, #0c5dc7 100%);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-navy);
    color: var(--bg-cloud);
    position: relative;
    overflow: hidden;
}

.footer-bg-wrapper {
    background-color: transparent;
    padding: 0;
}

/* Footer ambient glow */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center top, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px; /* Reduced from 70px */
    position: relative;
    z-index: 1;
    text-align: center; /* Center the text for better balance across 3 columns */
    max-width: 900px; /* Compress the width to bring columns closer */
    margin: 0 auto; /* Center the compacted grid */
}

.footer-col p {
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.footer-col strong {
    display: block;
    margin-bottom: 15px;
    color: var(--bg-white);
    font-size: 18px;
    letter-spacing: 0.5px;
}

.footer-col a {
    color: #94A3B8;
}

.footer-col a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    background-color: #050810;
    color: #64748B;
    text-align: center;
    padding: 15px 0; /* Reduced from 25px */
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.footer-bottom a {
    color: var(--accent-teal);
    margin: 0 15px;
    font-weight: 500;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Volume Calculator Section
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-cloud);
    text-align: center;
}

.calculator-section .section-title {
    font-size: 42px;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.calculator-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-smooth);
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-header h3 {
    font-size: 24px;
    color: var(--accent-teal);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-cloud);
    padding-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg-cloud);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.dimensions-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: #94A3B8;
    margin: 25px 0 15px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.result-group {
    margin-top: 20px;
    padding-top: 25px;
    border-top: 2px dashed #E2E8F0;
    text-align: left;
}

.result-group label {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-green);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.result-group input {
    width: 100%;
    padding: 15px;
    border: none;
    background: #F0FDF4;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-green);
    text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .values-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .mission-block h2,
    .vision-block h2,
    .values-block h2 {
        font-size: 42px;
    }

    .hero-text h2 {
        font-size: 48px;
    }

    .site-header {
        width: 100%;
        flex-direction: column;
        gap: 0;
        border-radius: 0;
        padding: 0;
        position: relative;
    }

    body {
        padding-top: 0;
    }

    .header-bottom {
        background-color: var(--primary-navy);
        border-top: 2px solid var(--accent-teal);
        position: sticky;
        top: 0;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-branding .site-logo {
        width: 280px;
        margin: -25px 0;
    }
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .mission-block,
    .vision-block,
    .values-block {
        padding: 40px 20px;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .logistics-content h2 {
        font-size: 2.2rem;
    }

    .carousel-track img {
        height: 200px; /* Slightly shorter for better vertical space */
        width: 85vw;   /* Responsive width based on screen */
        margin-right: 15px;
    }

    .floating-socials {
        right: 15px;
        bottom: 15px;
        gap: 12px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   Logistics Page Styles
   ========================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.logistics-item-section {
    padding: 120px 0;
    position: relative;
}

.logistics-item-section.alternate {
    background-color: var(--bg-cloud);
}

.logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.logistics-content h2 {
    font-size: 3rem;
    color: var(--primary-navy);
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.logistics-content h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 6px;
    background: linear-gradient(to right, var(--accent-teal), var(--accent-green));
    border-radius: 3px;
}

.logistics-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 25px;
    font-weight: 500;
}

.logistics-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.logistics-content ul li {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logistics-content ul li:hover {
    transform: translateX(10px);
}

.logistics-content ul li i {
    font-size: 1.4rem;
    width: 30px;
}

.logistics-image {
    position: relative;
    z-index: 1;
}

.logistics-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.5s ease;
}

.logistics-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .logistics-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .logistics-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .logistics-image img {
        height: 400px;
    }
    
    .page-hero h1 {
        font-size: 3rem;
    }

    /* Reverse Mobile order for alternating sections */
    .logistics-grid.reverse-mobile .logistics-content {
        order: 2;
    }
    .logistics-grid.reverse-mobile .logistics-image {
        order: 1;
    }

    /* Mobile Menu Styles */
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        background: none;
        border: none;
        color: var(--bg-white);
        padding: 15px 20px;
        cursor: pointer;
        width: 100%;
        justify-content: center;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .main-navigation ul {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-navy);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        margin-top: 0;
        box-shadow: none;
    }

    .main-navigation ul.is-open {
        display: flex;
    }

    .main-navigation > ul > li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-navigation > ul > li > a {
        padding: 18px 25px;
        text-align: center;
    }

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        border-bottom: none;
    }

    .main-navigation .sub-menu a {
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
        padding-left: 25px;
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
}

/* Footer Mobile Optimizations */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .site-footer .container img {
        width: 90% !important; /* Scale footer banner */
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }
}