@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* --- Global Styles & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #5A7345;
    --secondary-color: #a1ce7c;
    --text-color-dark: #2F332C;
    --text-color-light: #5A7345;
    --light-bg: #eef1ff;
    --card-bg: #ffffff;
    --border-color: #dce1e6;
    --dark-bg: #343a40;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.8;
    background-color: var(--light-bg);
    color: var(--text-color-light);
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.3s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'El Messiri', sans-serif;
    line-height: 1.3;
}

p {
    line-height: 1.8;
}

/* --- Header & Navigation --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .logo-image {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    color: var(--text-color-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.cta-header-button {
    background-color: var(--primary-color);
    color: var(--card-bg) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(90, 115, 69, 0.2);
    transition: transform 0.3s ease;
}

.cta-header-button:hover {
    transform: translateY(-2px);
}

/* Hamburger Menu & Mobile Navigation */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 150;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color-dark);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- Contact Page Sections --- */
.contact-hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 100px 20px;
    text-align: center;
    color: #fff;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--text-color-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    flex-wrap: wrap;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    background-color: #f7f9fa;
    padding: 30px;
    border-radius: 15px;
    border-right: 4px solid var(--secondary-color);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.contact-info p, .contact-info a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.contact-info a i, .contact-info p i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-info a:hover {
    color: var(--text-color-dark);
}

.social-icons-contact {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--card-bg) !important;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon-circle:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    color: var(--text-color-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: var(--text-color-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 115, 69, 0.1);
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--card-bg);
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(90, 115, 69, 0.4);
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(90, 115, 69, 0.5);
}

.map-section {
    padding: 0 0 80px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 5rem 5% 3rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-column p {
  font-family: 'Tajawal', sans-serif;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 400;
  font-size: 1.05rem;
}

.footer-column h4 {
  font-family: 'El Messiri', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 1rem;
}

.footer-column ul li a {
  font-family: 'Tajawal', sans-serif;
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 400;
  font-size: 1.05rem;
  padding: 0.3rem 0;
  display: block;
}

.footer-column ul li a:hover {
  color: var(--secondary-color);
  padding-right: 10px;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1.2rem;
  border: 2px solid transparent;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(90, 115, 69, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-500);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
    }
    .cta-header-button {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        max-height: 0; /* Initially collapsed */
        overflow: hidden;
        background-color: var(--card-bg);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        z-index: 99;
        transition: max-height 0.6s cubic-bezier(0.5, 0, 0.3, 1);
        display: flex;
        justify-content: center;
    }
    .nav-menu.active {
        max-height: 500px; /* Expands to show menu */
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
    }
    .nav-links li {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.4s ease;
    }
    .nav-menu.active .nav-links li {
        opacity: 1;
        transform: translateY(0);
    }
    /* Staggered animation effect for each link */
    .nav-menu.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-links li:nth-child(4) { transition-delay: 0.4s; }
    
    .contact-hero {
        padding: 80px 20px;
    }
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    .contact-hero p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info {
        border-right: none;
        border-bottom: 4px solid var(--secondary-color);
    }
    .footer {
        padding: 40px 20px;
    }
    .footer-links, .social-icons, .footer-contact {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
}

/* --- Responsive Styles (Tablet) --- */
@media (max-width: 1024px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info {
        border-right: none;
        border-bottom: 4px solid var(--secondary-color);
    }
}