/* =========================
   ROOT & RESET
========================= */
:root {
    --yellow: #ffd237;
    --purple: #6a59a6;
    --green: #00b3b2;
    --muted: #f3f1f6;
    --container: 1200px;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-family: 'Alexandria','Cairo', system-ui, Arial, sans-serif;
    background: #fff;
    color: #333;
}

body {
    direction: rtl;
    text-align: right;
}

/* =========================
   FONTS
========================= */
@font-face{
    font-family: 'Alexandria';
    src: url('fonts/Alexandria-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

.container {
    max-width: var(--container);
    margin: auto;
    padding: 0 20px;
}

/* =========================
   PREMIUM NAVBAR
========================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* LAYOUT */
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

/* LOGO */
.logo-wrap img {
    height: 70px;
    transition: transform 0.2s;
}

.logo-wrap:hover img {
    transform: scale(1.05);
}


.lang-toggle {
    
    
   
    border: none;
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-toggle:hover {
    transform: translateY(-10%) scale(1.03);
}
/* Default */
.mobile-only {
    display: none;
}

/* Mobile behavior */
@media (max-width: 768px) {

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
        width: 100%;
        margin-top: 15px;
        text-align: center;
        background: var(--yellow);
        border-radius: var(--radius);
        padding: 12px;
        font-weight: bold;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
    }
}
@media (max-width: 768px) {

    .lang-toggle {
        position: static;     /* stop floating */
        transform: none;
        order: 5;             /* push it to bottom */
        margin-top: 10px;
        width: fit-content;
        align-self: center; /* or center */
    }

    .nav-inner {
        display: flex;
        flex-wrap: wrap;
    }
}

body.ltr {
    direction: ltr;
    text-align: left;
}

body.ltr .main-nav a::after {
    right: auto;
    left: 0;
}

body.ltr .hero-inner {
    justify-content: flex-start;
}

body.ltr .hero-copy {
    padding-left: 50px;
    padding-right: 0;
}

body.ltr .text-side {
    text-align: left;
    
}
/* NAV LINKS */
.main-nav {
    display: flex;
    gap: 40px;
    position: relative;
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: #8c8c8c;
    font-weight: 600;
    font-size: 16px;
    padding: 6px 0;
    transition: color 0.25s ease;
}

/* HOVER EFFECT (premium underline) */
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0%;
    height: 3px;
    background: var(--yellow);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--purple);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ACTIVE LINK */
.main-nav a.active {
    color: var(--purple);
}

.main-nav a.active::after {
    width: 100%;
}

/* BUTTON */
.download-btn {
    background: var(--yellow);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 212, 59, 0.4);
}

/* BUTTON HOVER */
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 212, 59, 0.6);
}

/* CLICK EFFECT */
.download-btn:active {
    transform: scale(0.96);
}



/* =========================
   HERO
========================= */
.hero {
    background-image: url('assets/shadad header.png');
    background-position: right;
    background-repeat: no-repeat;
    background-color: var(--yellow);
    width: 100%;
    height: 80vh;
    padding: 0 0 80px;
    position: relative;
    overflow: hidden;
    align-content: center;
}

.hero-inner {
    display: flex;
    justify-content: flex-end;
    
    
}

/* TEXT */
.hero-text {
    width: 100%;
    z-index: 1;
    padding-right: 50px;
    
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    color: var(--purple);
    line-height: 1.05;
    justify-items: center;  
}

/* HIGHLIGHT */
.hero-title .accent {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.hero-title .accent::before {
    content: "";
    position: absolute;
    bottom: 10px;
    right: -10px;
    width: 110%;
    height: 40%;
    background: white;
    z-index: -1;
}

/* TEXT */
.lead {
    color: white;
    margin-top: 20px;
    font-size: 28px;
    line-height: 1.6;
}
.lead1 {
    color: var(--purple);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.6;
}

/* BUTTONS */
.badges {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.badge {
    border: 3px solid #fff;
    padding: 5px 10px;
    border-radius: 12px;
    color: white;
    background: transparent;
}
.badge img {
    vertical-align: middle;
    filter: brightness(0) invert(1);
    margin-left: 8px;
}
.badge:hover img {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(45deg) saturate(5);
}
.badge:hover {
    background: white;
    color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    
}
.badge span {
    display: block;
    font-size: 9px;
    margin-bottom: 4px;
    text-align: center;
}




/* =========================
   SECTION TITLE
========================= */
.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--purple);
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 6px;
    right: 0;
    width: 110%;
    height: 35%;
    background: var(--yellow);
    z-index: -1;
}

/* =========================
   SERVICES
========================= */
.services {
    padding: 70px 0;
    
}

.services-grid {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.service{
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 0 10px;
    
        
        
}
.service:not(:last-child){
    border-left: var(--purple);
    border-left-style: solid;
    border-width: 5px;
}

.service:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #dcd6ec;
    
}

body.ltr .service:not(:first-child){
    border-left: var(--purple);
    border-left-style: solid;
    border-width: 5px;
    }

body.ltr .service:not(:first-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #dcd6ec;
    
}
.service img {
    width: 175px;
    margin-bottom: 15px;
}

.service .label {
    font-size: 24px;
    color: #7c7c7c;
    
}

/* =========================
   FORM
========================= */
.request {
    padding: 60px 0;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.row label {
    flex: 1;
}

.request input,
.request select,
.request textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid #ddd;
    margin-top: 6px;
    background: #fafafa;
    font-family: 'Alexandria', 'Cairo', system-ui, Arial, sans-serif;
}

.request textarea {
    min-height: 120px;
}

.slot {
    padding: 12px;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.slot.active {
    background: var(--yellow);
    border-color: var(--yellow);
}

/* Modal */
.map-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.map-modal.active {
    display: flex;
}

.map-content {
    width: 90%;
    max-width: 800px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

#map {
    width: 100%;
    height: 400px;
    margin: 10px 0;
    border-radius: 10px;
}
.close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: red;
    
}
#detectLocation {
    margin-bottom: 10px;
    background: #eee;
}

/* Responsive for map-modal */
@media (max-width: 768px) {
    .map-content {
        width: 95%;
        padding: 10px;
    }
   
    #map {
        height: 300px;
    }
    .close-btn {
        font-size: 20px;
    }
    body.ltr .hero-inner {
    justify-content: flex-start;
}

body.ltr .hero-copy {
    padding-left: 0px;
    align-self: flex-start;
    text-align: center;
}



body.ltr .text-side {
    text-align: left;
    
}
body.ltr .lead {
        font-size: 12px;
    }
body.ltr .hero-title {
        font-size: 22px;
    }
body.ltr .badge {
        width: 55%;
        height: fit-content;
        font-size: 9px;
        align-self: flex-start;
}
}

@media (min-width: 1024px) {
    .map-content {
        max-width: 900px;
        width: 70%;
    }
   
    #map {
        height: 50vh;
    }
}

@media (min-width: 1440px) {
    .map-content {
        max-width: 1100px;
    }
    
    #map {
        height: 60vh;
    }
}

/* PRICE BOX */
.price-box {
    
    min-width: 120px;
    background: var(--yellow);
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.price-box span {
    font-size: 14px;
}

.price-box strong {
    font-size: 20px;
}

.date {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid #ddd;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.date:hover {
    background: var(--yellow);
}

.form-actions {
    text-align: center;
}
.date.active {
    background: var(--yellow);
    border-color: var(--yellow);
    font-weight: bold;
}

.btn {
    font-family: 'Alexandria', 'Cairo', system-ui, Arial, sans-serif;
    padding: 17px 45px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
}

.btn.primary::hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn.primary {
    background: var(--purple);
    color: #fff;
   
}
/* Responsive */
@media (max-width: 768px) {
    .dates {
        flex-wrap: wrap;
    }

    .price-box {
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }
}


/* Title Styling */
.section-title {
    text-align: right;
    margin-bottom: 40px;
}



.about-section {
    background-image: url('assets/New Project-1.png');
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  width: 100%;
  min-height: 590px;
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    
    justify-content: flex-end;
}

body.ltr .about-section {
    background-image: url('assets/New Project.png');
}

/* 1. The Title Style */


.main-layout {
   display: flex;
    flex-direction: column;
    flex: 0.5;
    align-items: flex-start;
    justify-content: center;
    width: 50%;
    height: 100%;
    padding-left: 40px;
}

/* 2. The Text Content */
.text-side {
  
  max-width: 100%;
  width: 100%;
  text-align: right;
}

.quote-icon {
  font-size: 20rem;        /* Font size will be 5% of the screen width */
  display: block;          /* change from inline-block */
  line-height: 0.7;        /* reduce internal spacing */
  margin-bottom: -40px;
  color: var(--yellow);
  
}

.description-text {
  font-size: 18px;
  color: #666;
 
}



/* =========================
   CONTACT
========================= */


.contact {
    background-image: url('assets/Artboard 1_1.png'); 
   
       
    background-repeat: no-repeat;
    background-size:  cover; 
    
   padding: 100px 0;
    position: relative;
    overflow: hidden;
}

body.ltr .contact {
    background-image: url('assets/Artboard 1_1 En.png');
    background-position: left;
}


.contact-form-wrap{
    
    display: flex;
    flex-direction: column;
    flex:1;
    align-items: flex-start;

}
.contact-lead{
    font-size: 36px;
    margin-bottom: 100px;
    color: #fff;
    padding-right: 0;
}

.contact-form {
   padding-right: 0;
    flex: 1;
    row-gap: 20px;
}

.contact-form label {
    color: var(--yellow);
    display: block;
    margin-bottom: 10px;
    padding: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    margin-bottom: 10px;
}
body.ltr #contactSubmitBtn {
    display: flex;
    justify-self: flex-end;
}

/* =========================
   FLOATING BUTTONS
========================= */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.fab-scroll-up {
    background: var(--purple);
    color: white;
}

.fab-scroll-up:hover {
    background: #4a2d85;
    transform: transformY(-3px);
    box-shadow: 0 6px 16px rgba(91, 58, 166, 0.4);
}

.fab-whatsapp {
    background: transparent;
    color: white;
}

.fab-whatsapp:hover {
    background: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.fab-whatsapp img {
    width: 24px;
    height: 24px;
}

.fab-contact {
    background: var(--yellow);
    color: var(--purple);
}

.fab-contact:hover {
    background: var(--yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 212, 59, 0.4);
}

.fab:active {
    transform: scale(0.95);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    background: var(--yellow);
    padding: 18px 0;
    
}
.footer-brand{
    align-self: center ;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* LOGO (RIGHT) */
.footer-brand img {
    height: 70px;
}
.footer-title{
    
    font-size: 20px;
    font-weight: 600;
    color: var(--purple);
}

/* LINKS (CENTER) */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 18px;
    transition: 0.2s;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* SOCIAL (LEFT) */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.footer-social .footer-title {
    flex-basis: 100%;
    margin: 0;
    margin-bottom: 16px;
    margin-top: 16PX;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* make icons white */
    transition: 0.2s;
}

.footer-social a:hover img {
    transform: translateY(-2px);
    opacity: 0.8;
}
.site-footer {
    border-bottom: 4px solid rgba(0,0,0,0.05);
}
.footer-bottom {
    text-align: center;
    padding: 12px 0;
    background: rgba(0,0,0,0.05);
    font-size: 14px;
    color: #555;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transition: 0.3s;
}

/* MOBILE MENU */
@media (max-width: 768px) {
  .nav {
    position: relative;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    transform: translateY(-150%);
    transition: 0.4s;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    transform: translateY(0);
  }

  .nav-action {
    display: none;
  }
}

/* =========================
   SCROLL ANIMATIONS (APPLE STYLE)
========================= */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    .section-title {
        font-size: 28px;
    }

    .main-nav {
        gap: 25px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .hero{
        background-position: center;
        background-size: cover;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
        align-items: flex-end;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-illustration {
        position: static;
        margin-top: 20px;
    }

    .services-grid {
        flex-direction: row;
        justify-content: space-around;
    }

    .service {
        flex: 0 1 calc(50% - 20px);
        min-width: 160px;
         
    }

    /* .service:not(:last-child) {
        border-left: none;
        border-bottom: 5px solid var(--purple);
        padding-bottom: 20px;
    } */
    

    .service:nth-child(odd) {
        margin-bottom: 20px;
    }

    .row {
        flex-direction: column;
    }

    .contact-lead {
        font-size: 28px;
        margin-bottom: 40px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
        line-height: 1.2;
    }

    .lead {
        font-size: 16px;
    }

    .lead1 {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .services-grid {
        flex-direction: column;
    }

    .service {
        flex: 1 1 100%;
        min-width: auto;
        padding: 20px 10px;
    }

    /* .service:not(:last-child) {
        border-left: none;
        border-bottom: 5px solid var(--purple);
        padding-bottom: 20px;
        margin-bottom: 20px;
    } */

    .service img {
        width: 120px;
    }

    .service .label {
        font-size: 18px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links a {
        font-size: 16px;
    }

    .row {
        flex-direction: column;
    }

    .badges {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }

    .badge {
        width: 55%;
        height: fit-content;
        font-size: 9px;
    }

    .badge span{
        font-size: 7px;
    }
    .badge img{
        width: 16px;
        height: 16px;
    }
    .contact{
        background-position: right;
        opacity: 0.9;
    }

    .contact-lead {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .contact-form-wrap {
        padding: 20px 0;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .hero {
        height: auto;
        padding: 40px 0;
        background-position: center;
    }

    .hero-title {
        font-size: 26px;
    }

    .lead {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .services-grid {
        gap: 10px;
    }

    .service {
        padding: 15px 5px;
    }

    .service img {
        width: 100px;
        margin-bottom: 10px;
    }

    .service .label {
        font-size: 14px;
    }

        .about-section {
        min-height: max-content;
        padding: 40px 0;
        background-size: contain;
        
    }

    .quote-icon {
        font-size: 60px;
    }

    .description-text {
        font-size: 9px;
        line-height: 1.5;
    }

    .dates {
        flex-direction: column;
        gap: 10px;
    }

    .date {
        padding: 10px;
        font-size: 12px;
    }

    .request input,
    .request select,
    .request textarea,
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 15px;
    }

    .footer-brand img {
        height: 28px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-social img {
        width: 18px;
        height: 18px;
    }

    .floating-buttons {
        bottom: 20px;
        left: 20px;
        gap: 12px;
    }

    .fab {
        width: 48px;
        height: 48px;
    }

    .fab svg {
        width: 20px;
        height: 20px;
    }
}