/*
Theme Name: Hishayim
Author: Antigravity
Description: A custom modular theme for Hishayim.
Version: 1.0
*/

/* Fonts */
@font-face {
    font-family: 'Simona Pro';
    src: url('assets/fonts/SimonaPro-Regular.woff2') format('woff2'),
        url('assets/fonts/SimonaPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Simona Pro';
    src: url('assets/fonts/SimonaPro-Medium.woff2') format('woff2'),
        url('assets/fonts/SimonaPro-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Simona Pro';
    src: url('assets/fonts/SimonaPro-Bold.woff2') format('woff2'),
        url('assets/fonts/SimonaPro-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Simona Pro', sans-serif;
    /* Default font */
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* =========================================
   Header Styles
   ========================================= */
.site-header {
    position: absolute;
    /* Overlay on hero */
    top: 0;
    left: 0;
    width: 100%;
    padding: 50px 50px 0 50px;
    z-index: 300;
    /* Increased to stay above Menu Overlay (200) */
    direction: rtl;
    /* RTL Layout */
    box-sizing: border-box;

    /* Fade In Animation */
    /* Fade In Animation handled by JS/Keyframes */
    animation: fadeInHeader 1.5s ease-out 0.5s forwards;
    /* Slowed down to 1.5s with 0.5s delay */
    /* Updated to sync with hero content */
}

/* ... (middle content omitted) ... */



@keyframes fadeInHeader {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.header-container {
    max-width: 1804px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Right Side: Hamburger + Logo */
.header-right {
    display: flex;
    align-items: center;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger-menu:hover span:nth-child(1) {
    transform: translateX(-5px);
}

.hamburger-menu:hover span:nth-child(2) {
    transform: translateX(5px);
}

.hamburger-menu:hover span:nth-child(3) {
    transform: translateX(-5px);
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #fff;
    /* White lines */
    transition: transform 0.3s ease;
}

.site-logo {
    display: flex;
    /* Fix alignment */
    align-items: center;
    margin-right: 112px;
    /* Gap from hamburger */
}

.site-logo img {
    max-height: 80px;
    /* Constrain height */
    width: auto;
}

/* Left Side: Phone + Button */
.header-left {
    display: flex;
    align-items: center;
}

/* Phone Link */
.header-phone {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-family: 'Simona Pro', sans-serif;
    font-size: 24px;
    font-weight: 400;
    text-align: right;
    margin-left: 44px;
    /* GAP: 44px between Phone and Button */
    flex-direction: row;
    /* [Text] [Icon] naturally in flex? No, [Start] [End]. */
    /* Icon is last in HTML? No, HTML is: Text, Icon. */
    /* We want Visual: [Icon] [Text]. */
    /* If HTML is Text, Icon. */
    /* Then Icon is 2nd. */
    /* Flex RTL: Start is Right. 1st is Right. */
    /* So Text is Right. Icon is Left. */
    /* Visual: [Icon] [Text]. This is correct for "Svg first on the left". */
}

.phone-text {
    order: 1;
    /* Ensure it's on the right (Start) */
    position: relative;
    top: -2px;
    /* Visual adjustment for font baseline */
}

.phone-icon {
    display: flex;
    align-items: center;
    margin-right: 14px;
    /* Fix: Margin-RIGHT pushes against the Text (which is on the Right in RTL) */
    order: 2;
    /* Ensure it's on the left (End) */
}


/* Contact Button */
.contact-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center text */
    width: 215px;
    height: 50px;
    border: 1px solid #fff;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-family: 'Simona Pro', sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-align: right;
    transition: color 0.3s;
    /* Smooth text color change only */
    padding-left: 40px;
    /* Make space for the absolute icon on the left */
    box-sizing: border-box;
    /* Ensure padding doesn't affect width */
    overflow: hidden;
    /* For sliding background */
    z-index: 1;
    line-height: 1;
    /* Reset line-height to fix vertical centering offset */
}

/* Sliding White Background */
.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    /* Slide from right */
    width: 0;
    /* Start empty */
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
    /* Smooth slide */
    z-index: -1;
    /* Behind text */
}

.contact-btn:hover {
    color: #212338;
    /* Change text color */
    /* REMOVED scale transform */
}

.contact-btn:hover::before {
    width: 100%;
    /* Fill width */
}

/* REMOVED filter inversion - SVG stays green/original */


.btn-text {
    /* Centered by flex parent (taking padding into account) */
    position: relative;
    z-index: 2;
    top: -2px;
    /* Visual adjustment for font baseline */
}

.btn-icon {
    position: absolute;
    left: 10px;
    /* 10px from Left */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

.contact-btn:hover .btn-icon {
    transform: translateY(-50%) rotate(-45deg);
}

/* =========================================
   Hero Section
   ========================================= */
.hero-scroll-track {
    position: relative;
    width: 100%;
    height: 300vh;
    /* Deep scroll track */
}

.hero-section {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%) scale(1.3);
    /* Static zoom 130% */
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: 49% 30%;
    /* Balanced LEFT (50 -> 48 -> 49) and kept UP (30) */
    will-change: transform, opacity;
}

/* =========================================
   Hero Content
   ========================================= */
.hero-content {
    position: absolute;
    bottom: 120px;
    /* Updated bottom padding */
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 0 50px;
    /* Outer padding matching header */
    box-sizing: border-box;
    direction: rtl;
}

.hero-content-inner {
    max-width: 1500px;
    /* Content width request */
    width: 90%;
    /* Percentage responsive fallback */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align bottom */
}

/* Right Side: Heading */
.hero-text-right h1 {
    color: #FFF;
    text-align: right;
    font-family: 'Simona Pro', sans-serif;
    font-size: 120px;
    font-weight: 700;
    line-height: 110px;
    /* 91.667% */
    margin: 0;
    /* opacity: 0; Removed for fallback visibility */
}

.hero-text-right .dot {
    color: #32E855;
    /* Green Dot */
    /* opacity: 0; Removed for fallback visibility */
}

/* Left Side: Paragraph + Buttons */
.hero-text-left {
    max-width: 600px;
    /* Limit width for reading */
    /* padding-bottom: 20px; removed to align bottom with heading */
}

.hero-text-left p {
    color: #FFF;
    text-align: right;
    font-family: 'Simona Pro', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 30px;
    margin-bottom: 30px;
    /* opacity: 0; Removed for fallback visibility */
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Button overrides for Hero section */
.hero-btn {
    width: auto;
    min-width: 260px;
    padding-left: 50px;
    padding-right: 30px;
    padding-right: 30px;
    /* opacity: 0; Removed for fallback visibility */
    border: none !important;
    /* Remove white border inherited from .contact-btn */
}

/* ... (existing hero button styles) ... */

/* =========================================
   Side Menu Overlay
   ========================================= */
.side-menu-overlay {
    position: fixed;
    top: 0;
    right: -450px;
    /* Hidden (width) */
    width: 450px;
    /* Request: 450px width */
    height: 100vh;
    background: url('assets/images/menubg.jpg') no-repeat center center/cover;
    z-index: 200;
    /* Above header */
    transition: right 0.5s ease-in-out;
    /* Slide animation */
    display: flex;
    /* Centering content? No, user implied specific padding. */
    flex-direction: column;
    /* padding-top: 92px; from close button? Close button is hamburger? */
}

.side-menu-overlay.active {
    right: 0;
}

/* Close Button Position (Hamburger transforms to this) */
/* Actually, hamburger is in header. If overlay covers header, we need a new close button OR hamburger needs to be z-index > overlay. */
/* Hamburger z-index is likely lower than 200 if header is 100. */
/* Let's make header z-index higher or move hamburger to absolute? */
/* Or, inside the menu overlay, we have a "Close" button. */
/* "the hamburger lines will animate to close button." -> Implies the SAME element transforms. */
/* So Hamburger must be visible ON TOP of the menu. */
/* Header z-index: 100. Menu z-index: 90? No, menu should cover hero. Hero is 0. */
/* Menu should probably be UNDER the header if the header stays visible? */
/* "on top of the menubg will appear one by one this menus". */
/* If menu bg covers the site, header needs to be transparent? layout is tricky. */
/* Let's assume: Menu Overlay takes up full screen (or part of it), and Header (with Hamburger) stays on top. */
/* So .site-header z-index: 300. Menu Overlay z-index: 200. */

/* Hamburger Animation */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Specific tweaks to make an X */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Note: Original gap is 7px. span height 2px. Total height ~20px. 9px shift is approx correct. */


/* Menu List */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 150px;
    top: 200px;
    right: 58px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 55px;
}

/* List Items (Animation Targets) */
.menu-list li {
    opacity: 0;
    /* Hidden for staggered animation */
    transform: translateX(20px);
}

/* Links */
.menu-list a {
    text-decoration: none;
    color: #FFF;
    /* Always White */
    font-family: 'Simona Pro', sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: normal;
    position: relative;
    display: inline-block;
    /* transition: color 0.3s; Removed color transition */
}

/* Base Underline (Hidden) */
.menu-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    /* Anchor to right */
    width: 0;
    /* Start hidden */
    height: 3px;
    background-color: #32E855;
    transition: width 0.3s ease;
    /* Animate width */
}

/* Active State (WordPress Class) */
.menu-list .current-menu-item>a::after,
.menu-list .current_page_item>a::after {
    width: 100%;
    /* Full width for active */
}

/* Hover effect */
.menu-list a:hover {
    color: #FFF;
    /* Keep White */
}

.menu-list a:hover::after {
    width: 100%;
    /* Grow from right to left */
}


/* =========================================
   Moved Button Styles (Specificity Fix)
   ========================================= */

/* Green Button (Organization) */
.hero-btn-green {
    background-color: #32E855;
    color: #212338;
    border: none;
}

.hero-btn-green .btn-text {
    color: #212338;
}

.hero-btn-green .btn-icon img {
    filter: none;
    /* Native SVG is dark */
}

.hero-btn-green:hover {
    color: #212338;
}

.hero-btn-green::before {
    background: #fff;
    /* Hover BG White */
}

/* White Button (Private) */
.hero-btn-white {
    background-color: #fff;
    color: #212338;
    border: none;
}

.hero-btn-white .btn-text {
    color: #212338;
    transition: color 0.3s;
}

.hero-btn-white .btn-icon img {
    filter: none;
    /* Native SVG is green */
}

.hero-btn-white:hover {
    color: #fff !important;
    /* Text becomes white */
}

.hero-btn-white:hover .btn-text {
    color: #fff !important;
}

.hero-btn-white::before {
    background: #171727;
    /* Hover BG Black */
}


/* Fix Side Menu Background */
.side-menu-overlay {
    background-size: 100% 100%;
    /* Force fit */
    /* background-size: cover; previously caused zooming */
}

/* Ensure Hamburger Interaction */
.hamburger-menu {
    position: relative;
    z-index: 400;
    /* Higher than header(300) and overlay(200) */
}

/* =========================================
   Business Section
   ========================================= */
.business-scroll-track {
    position: relative;
    width: 100%;
    height: 300vh;
    /* Deep scroll track for pinning */
    z-index: 100;
    /* Fixed: High Z-Index to cover Hero */
}

.business-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #fff;
    z-index: 100;
    /* Fixed: High Z-Index */
}

.business-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    /* Controlled by JS */
}

.business-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centered on screen */

    display: flex;
    flex-direction: column;
    direction: rtl;
    /* Fixed: Force RTL for Right Alignment */
    align-items: flex-start;
    /* Right in RTL */
    justify-content: center;

    z-index: 20;
    width: auto;
    text-align: right;
}

.business-title-large {
    font-family: 'Simona Pro', sans-serif;
    font-size: 240px;
    font-weight: 900;
    color: #212338;
    line-height: 1;
    margin: 0;
    text-align: right;
    opacity: 1;
}

.business-title-small {
    font-family: 'Simona Pro', sans-serif;
    font-size: 62px;
    font-weight: 700;
    color: #212338;
    margin: 0 0 -20px 0;
    text-align: right;
    line-height: 1;
    opacity: 1;
}

.bus-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 30;
    /* Higher than text (20) */
}

.business-bus {
    position: absolute;
    bottom: 200px;
    /* Requested: 200px from bottom */
    right: 0;
    width: 80vw;
    /* Responsive width */
    max-width: 1542px;
    /* User's exact width */
    height: auto;
    /* Maintain Aspect Ratio */
}

/* =========================================
   Hero VIP Button
   ========================================= */
.hero-vip-btn {
    position: absolute;
    left: 40px;
    /* Outside content width */
    bottom: 120px;
    /* Aligned with Hero Content bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 20;
}

.vip-text {
    color: #fff;
    font-family: 'Simona Pro', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    transition: opacity 0.3s;
    position: relative;
    /* Anchor */
}

.hero-vip-btn:hover .vip-text {
    opacity: 0.8;
}

.vip-line {
    position: absolute;
    bottom: 100%;
    /* Start above the text */
    margin-bottom: 15px;
    /* Gap */
    width: 1px;
    background-color: #fff;
    height: 0;
    animation: vipLineAnim 5s infinite;
}

@keyframes vipLineAnim {
    0% {
        height: 0;
    }

    40% {
        height: 100px;
    }

    100% {
        height: 0;
    }
}