* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Heebo", Arial, serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #ffd54f;
    outline-offset: 4px;
}

.readable-letter {
    font-family: Arial, sans-serif;
}

.accessibility-statement-link {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.accessibility-statement-link a {
    color: #005f94;
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body {
    direction: rtl;
    background-image: url('../images/website-background.webp');
    background-repeat: repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body.dialog-open {
    overflow: hidden;
}

/* Body Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    z-index: 0;
}

/* Ensure all content is above the overlay */
.navbar,
.header,
.action-buttons,
.about-section {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
}

/* Fancy Button with Animation */
.fancy-button {
    position: relative;
    overflow: hidden;
    border: none;
    color: #C0954F;
    display: inline-block;
    font-size: 1.2rem;
    padding: 18px 40px;
    text-decoration: none;
    cursor: pointer;
    background: #121212;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.fancy-button span {
    position: relative;
    font-weight: bold;
    z-index: 10;
    transition: color 450ms cubic-bezier(0.48, 0, 0.12, 1);
}

.fancy-button:after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #C0954F;
    transform-origin: bottom center;
    transition: transform 450ms cubic-bezier(0.48, 0, 0.12, 1);
    transform: skewY(9.3deg) scaleY(0);
    z-index: 5;
}

.fancy-button:hover:after {
    transform-origin: bottom center;
    transform: skewY(9.3deg) scaleY(2);
}

.fancy-button:hover span {
    color: #121212;
}

.fancy-button:active {
    transform: translateY(2px);
}

/* Header */
.header {
    height: 80vh;
    position: relative;
    background-image: url('/assets/images/barbershop.webp');
    background-size: cover;
    background-position: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-toggle {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.62);
    color: #fff;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.82;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.video-toggle:hover {
    background: rgba(18, 18, 18, 0.88);
    border-color: #fff;
    opacity: 1;
}

.video-toggle:active {
    transform: scale(0.94);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.overlay img {
    max-width: 200px;
}

.site-title {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 700;
    text-align: center;
}

.site-tagline {
    color: #fff;
    font-size: 1.05rem;
    text-align: center;
}

.overlay .fancy-button {
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, .5);
    -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, .5);
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, .5);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    border-top: 6px solid #C0954F;
    border-bottom: 6px solid #C0954F;
}

.action-button {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #121212;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-button:hover {
    background: #161616;
}

.action-button i {
    font-size: 2rem;
    color: #C0954F;
}

.action-button .title {
    margin-top: 16px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
}

.action-button .description {
    margin-top: 8px;
    color: #ccc;
    text-align: center;
}

/* About Section */
.about-section {
    margin: 60px 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 60px 0;
}

.about-section h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: bold;
}

.about-content {
    text-align: right;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #fff;
}

.about-content .strong {
    font-weight: bold;
    color: #C0954F;
}

/* Media Queries */
@media (max-width: 768px) {
    .about-section {
        margin: 40px 0;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-content {
        font-size: 1rem;
    }
}

.location-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: white;
    border-top: 6px solid #C0954F;
}

.gallery-section {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 60vh);
    gap: 0;
    overflow: hidden;
    border-top: 6px solid #C0954F;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
    pointer-events: none;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.location-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.location-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.location-icon {
    font-size: 3rem;
    color: #C0954F;
    margin-bottom: 20px;
}

.location-section h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.location-address {
    font-style: normal;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #C0954F;
    background: #121212;
    color: #C0954F;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    background: #C0954F;
    color: #121212;
    transform: translateY(-5px);
}

.nav-button img {
    position: relative;
    z-index: 2;
    width: 50%;
    height: 50%;
}

.nav-button.waze {
    border: none;
    background: #05C8F7;
}

.nav-button.google-maps {
    border: none;
    background: #fff;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg);
}

.work-gallery-section {
    position: relative;
    padding: 80px 20px;
    border-top: 6px solid #C0954F;
    color: #fff;
    text-align: center;
    background: #121212;
    overflow: hidden;
}

.work-gallery-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.work-gallery-section h2 {
    margin-bottom: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.work-gallery-swiper {
    width: 100%;
    max-width: 920px;
    height: clamp(240px, 40vh, 380px);
    margin: 0 auto;
    border: 1px solid rgba(192, 149, 79, 0.45);
    border-radius: 8px;
    background: #080808;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
}

.work-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080808;
}

.work-gallery-swiper img,
.work-gallery-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-gallery-video {
    background: #000;
}

.work-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    margin-top: 0;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.72);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.work-gallery-prev {
    right: 16px;
    left: auto;
}

.work-gallery-next {
    left: 16px;
    right: auto;
}

.work-gallery-nav::after,
.work-gallery-prev::after,
.work-gallery-next::after {
    content: none !important;
    display: none !important;
}

.work-gallery-nav svg {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.work-gallery-nav:hover,
.work-gallery-nav:focus-visible {
    border-color: #C0954F;
    background: #C0954F;
    color: #121212;
    outline: none;
}

.work-gallery-nav.swiper-button-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.work-gallery-swiper .work-gallery-pagination {
    bottom: 16px;
}

.work-gallery-pagination .swiper-pagination-bullet {
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0 1px !important;
    background: transparent;
    opacity: 1;
}

.work-gallery-pagination .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    transform: translate(-50%, -50%);
}

.work-gallery-pagination .swiper-pagination-bullet-active {
    background: transparent;
}

.work-gallery-pagination .swiper-pagination-bullet-active::before {
    background: #C0954F;
    opacity: 1;
}

.working-hours {
    margin-top: 40px;
    padding: 20px;
    background: rgba(18, 18, 18, 0.8);
    border-radius: 10px;
    border: 1px solid #C0954F;
}

.working-hours h3 {
    color: #C0954F;
    margin-bottom: 15px;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.hours-item {
    padding: 10px;
    border-bottom: 1px solid rgba(192, 149, 79, 0.3);
}

.hours-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .gallery-section {
        grid-template-rows: repeat(2, 40vh);
    }

    .location-address {
        font-size: 1.2rem;
    }

    .map-container {
        height: 300px;
    }
}

/* Footer Styles */
.footer-section {
    position: relative;
    background: #121212;
    color: #fff;
    padding: 60px 20px 20px;
    border-top: 6px solid #C0954F;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.footer-contact div {
    margin: 10px 0;
}

.footer-contact i {
    color: #C0954F;
    margin-left: 10px;
}

.footer-contact a {
    color: #fff;
    text-decoration: none;
}

.footer-link {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.footer-social h3 {
    color: #C0954F;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #C0954F;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-pulse {
    position: absolute;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    background: #25D366;
    opacity: 0.5;
    animation: pulse 2s ease-out infinite;
}

.whatsapp-pulse:nth-child(2) {
    animation-delay: 0.5s;
}

.whatsapp-icon {
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Dialog Styles */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.dialog-overlay[hidden] {
    display: none;
}

.dialog-overlay.active {
    display: flex;
    opacity: 1;
}

.dialog-content {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid #C0954F;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dialog-overlay.active .dialog-content {
    transform: translateY(0);
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: #121212;
    border: 1px solid #C0954F;
    color: #C0954F;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
}

.dialog-content h2 {
    color: #C0954F;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.hours-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px;
    border-bottom: 1px solid rgba(192, 149, 79, 0.2);
    color: #fff;
}

.hours-item dt,
.hours-item dd {
    margin: 0;
}

.dialog-contact {
    text-align: center;
    color: #fff;
}

.dialog-contact p {
    margin: 10px 0;
}

.dialog-contact i {
    color: #C0954F;
    margin-left: 10px;
}

.dialog-contact a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}


/* Responsive Adjustments for Tablets */
@media (max-width: 768px) {
    .fancy-button {
        font-size: 1rem;
        padding: 15px 30px;
    }

    .header {
        height: 70vh;
    }

    .overlay img {
        max-width: 150px;
    }

    .site-title {
        font-size: 1.7rem;
    }

    .site-tagline {
        font-size: 1rem;
    }

    .about-section h2 {
        font-size: 1.8rem;
    }

    .about-content {
        font-size: 0.95rem;
    }

    .work-gallery-section h2 {
        font-size: 1.8rem;
    }

    .work-gallery-swiper {
        max-width: 100%;
        height: clamp(220px, 34vh, 300px);
    }

    .work-gallery-nav {
        width: 40px;
        height: 40px;
    }

    .location-address {
        font-size: 1rem;
    }

    .map-container {
        height: 250px;
    }
}

/* Responsive Adjustments for Phones */
@media (max-width: 480px) {
    .gallery-section {
        grid-template-rows: repeat(2, 30vh);
    }

    .fancy-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .header {
        height: 60vh;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .about-content {
        font-size: 0.85rem;
    }

    .work-gallery-section {
        padding: 60px 12px;
    }

    .work-gallery-section h2 {
        font-size: 1.5rem;
    }

    .work-gallery-swiper {
        height: clamp(200px, 30vh, 250px);
    }

    .work-gallery-nav {
        width: 36px;
        height: 36px;
    }

    .location-address {
        font-size: 0.9rem;
    }

    .map-container {
        height: 200px;
    }
}

/* Add padding to the sides of the "about-section" for smaller screens */
@media (max-width: 768px) {
    .about-section {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 0 10px;
    }
}

/* Stack action buttons vertically for smaller screens */
@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .action-button {
        width: 90%;
        margin: 0 auto;
    }
}

/* Increase footer text size for phones */
@media (max-width: 480px) {
    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Add credit line to footer */
.footer-bottom::after {
    content: "האתר נבנה ע\"י בנאל חלפון";
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #C0954F;
}

/* Full-width buttons without spacing between them */
@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column;
        gap: 0;
    }

    .action-button {
        width: 100%;
        margin: 0;
        border-radius: 0;
        /* Ensure they align flush */
    }
}
