/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design Variables - Your Custom Colors */
:root {
    --primary: #334140;        /* Dark teale - main color */
    --primary-light: #4a5d5b;   /* Lighter version for hover */
    --secondary: #789A92;       /* Soft sage - second color */
    --secondary-light: #8fb2a8; /* Lighter sage for accents */
    --accent: #f4f7f6;          /* Soft background from secondary tint */
    --text-primary: #1e2b2a;     /* Very dark teale for text */
    --text-secondary: #4f6361;   /* Medium teale for secondary text */
    --text-light: #6f8884;       /* Light text */
    --white: #ffffff;
    --border-light: #d9e3e0;     /* Border color with sage tint */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(51, 65, 64, 0.1), 0 2px 4px -1px rgba(51, 65, 64, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(51, 65, 64, 0.1), 0 10px 10px -5px rgba(51, 65, 64, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    background-color: var(--white);

}

/* RTL Global Text Alignment */
html[dir="rtl"] body {
    text-align: right;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 4.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
p { color: var(--text-secondary); font-size: 1.125rem; }

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header - Clean & Minimal */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    /* justify-content: space-between naturally respects 'dir' attribute */
    justify-content: space-between; 
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-img {
    height: 32px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Language Icon - Fixed for both EN/AR */
.lang-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    /* margin-inline-start is the key for RTL/LTR compatibility */
    margin-inline-start: 1rem; 
}

.lang-icon:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.05);
    border-color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border-light); }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); background: var(--accent); }


/* Hero Section */
.hero {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, var(--accent), var(--white));
    text-align: center;
}

.hero .container {
    max-width: 800px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    background: rgba(120, 154, 146, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero h1{
    font-size: 3.5rem;
    font-weight: 600;

}    
.hero p{
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s ease-out, opacity 0.4s ease-out;
    animation: rollDown 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes rollDown {
    0% {
        max-height: 0;
        opacity: 0;
        margin: 0 auto;
    }
    100% {
        max-height: 100px;
        opacity: 1;
        margin: 0 auto 2.5rem;
    }
}
 


.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 2rem 2rem;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Cards */
.card {
    background: var(--white);
    padding: 1rem 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}



.icon img {
    width: 50px;   /* عرض الأيقونة */
    height: 50px;  /* ارتفاع الأيقونة */
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.card p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* About Section */
.about-section {
    padding: 2rem 2rem;
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-quote-mark {
    font-size: 6rem;
    line-height: 1;
    color: var(--secondary);
    opacity: 0.2;
    font-family: serif;
    margin-bottom: -2rem;
}

.about-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 2rem;
    position: relative;
}

.about-text strong {
    color: var(--primary);
    font-weight: 700;
}

.about-signature {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
}

.who-we-are {
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Why Us Section */
.why-us-section {
    background-color: var(--accent);
    padding: 4rem 2rem;
}

.why-us-section .card {
    border-top: 4px solid var(--secondary);
}

/* Contact Info Section */
.contact-info-section {
    padding: 4rem 2rem;
    background: var(--white);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--accent);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.contact-icon {
    font-size: 2rem;
    color: var(--secondary);
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--secondary);
}

/* Social Media Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

/* Page Header */
.page-header {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, var(--accent), var(--white));
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Services Page */

/* Services Page and Pricing Cards - For Services Page */
.pricing-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.pricing-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1.5rem 0;
    line-height: 1.2;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.pricing-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-card .btn {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .service-detail .service-features {
        grid-template-columns: 1fr;
    }
    
    .pricing-card .price {
        font-size: 2rem;
    }
}

/* Portfolio Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.portfolio-image {
    height: 240px;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

.portfolio-image a, img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.portfolio-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}



.tag {
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contact Page */
.contact-page {
    padding: 4rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: "Inter", sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(120, 154, 146, 0.1);
}

.contact-info-side {
    padding: 2rem;
}

.contact-info-side h3 {
    margin-bottom: 2rem;
}

.info-list {
    list-style: none;
    margin-bottom: 3rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1rem;
    text-align: center;
}

.footer p {
    color: var(--accent);
    margin-bottom: 1rem;
}

.copyright {
    color: var(--accent);
    font-size: 0.875rem;
    padding-top: 0.5rem;
    
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .lang-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        font-size: 1.25rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-side {
        text-align: center;
    }

    .info-list li {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-nav {
        gap: 0.75rem;
    }
    
    .header-inner {
        padding: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
section {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--accent);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection color */
::selection {
    background: var(--secondary);
    color: var(--white);
}

/* ===== FORM DESIGN Order Now page ===== */

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form div {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  transition: 0.3s;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4A5759;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 87, 89, 0.2);
}

textarea {
  resize: vertical;
}

/* ===== CARD تحسين ===== */
.card {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* ===== PRICE STYLE ===== */
.price {
  font-size: 1.6rem;
  font-weight: bold;
  color: #4A5759;
  margin-top: 10px;
}

/* ===== BUTTON FULL WIDTH ===== */
.btn-block {
  width: 100%;
  text-align: center;
}

/* ===== SELECT STYLE ===== */
select {
  cursor: pointer;
}

/* ===== HOVER EFFECT ===== */
.card:hover {
  transform: translateY(-3px);
  transition: 0.3s;
}

/* ===== SUCCESS PAGE ===== */
body {
  font-family: 'Cairo', sans-serif;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}


/* ===============================
   MOBILE MENU OVERRIDES
================================= */
.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1100;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Shown on mobile */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--accent);
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    /* This is the class the JS toggles! */
    .main-nav.active {
        display: flex; 
    }

    .main-nav a {
        margin: 15px 0;
        display: block;
    }
}