/* ===========================
   Alluvi - Inner Pages Styles
   =========================== */

/* === Page Hero Banner === */
.page-hero {
    background: var(--secondary);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.1) 0%, transparent 50%);
}

.page-hero__title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.page-hero__breadcrumb {
    position: relative;
    z-index: 1;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.page-hero__breadcrumb a {
    color: var(--primary);
}

.page-hero__breadcrumb span {
    margin: 0 8px;
}

/* === Page Content === */
.page-content {
    padding: 80px 0;
    background: var(--bg-cream);
}

.page-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
}

.page-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.page-content p {
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* === About Page === */
.about-story {
    padding: 80px 0;
    background: var(--bg-cream);
}

.about-story__content {
    max-width: 900px;
    margin: 0 auto;
}

.about-story__block {
    margin-bottom: 50px;
}

.about-story__block h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.about-story__block .subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.about-story__block p {
    color: var(--text-light);
    line-height: 2;
    font-size: 1rem;
}

/* Vision 2030 Banner */
.vision-banner {
    background: var(--secondary);
    padding: 60px 0;
    margin: 50px 0;
    text-align: center;
}

.vision-banner h2 {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.vision-banner p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 2;
}

/* Mission & Vision Cards */
.mv-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.mv-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.mv-card h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--text-light);
    line-height: 2;
}

/* Goals Grid */
.goals-section {
    padding: 80px 0;
    background: var(--white);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.goal-card {
    background: var(--bg-cream);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.goal-card__icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-card__icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.goal-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.goal-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* === Leadership Page === */
.leaders-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.leader-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    align-items: start;
}

.leader-card__image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
}

.leader-card__name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 5px;
}

.leader-card__role {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.leader-card__bio {
    color: var(--text-light);
    line-height: 2;
    font-size: 0.95rem;
}

/* === Certificates Page === */
.certificates-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.certificates-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.certificates-intro h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}

.certificates-intro p {
    color: var(--text-light);
    line-height: 2;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.cert-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cert-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card__icon svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
}

.cert-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* === Services Page === */
.services-page {
    padding: 80px 0;
    background: var(--bg-cream);
}

.services-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-page-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.service-page-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-page-card:hover img {
    transform: scale(1.08);
}

.service-page-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(11, 37, 51, 0.85) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 50%;
}

.service-page-card__title {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 5px;
}

/* === Projects Page === */
.projects-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.projects-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.project-cat-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
}

.project-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-cat-card__content {
    z-index: 2;
    color: var(--white);
    padding: 30px;
}

.project-cat-card__title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.project-cat-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-family);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.project-cat-card__btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Project Items Grid */
.project-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-item__image {
    height: 220px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
}

.project-item__info {
    padding: 25px;
}

.project-item__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.project-item__link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* === Contact Page === */
.contact-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-form p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-cream);
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.btn--submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn--submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.4);
}

/* Contact Info Side */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info__card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-info__card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-info__item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    align-items: flex-start;
}

.contact-info__item strong {
    color: var(--secondary);
    min-width: 100px;
}

.contact-map {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === Suppliers Page === */
.suppliers-section {
    padding: 80px 0;
    background: var(--bg-cream);
}

.suppliers-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.suppliers-form h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.suppliers-form p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* === Project Detail Page === */
.project-detail {
    padding: 80px 0;
    background: var(--bg-cream);
}

.project-detail__header {
    text-align: center;
    margin-bottom: 50px;
}

.project-detail__header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}

.project-detail__header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-gallery__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-gallery__item:hover img {
    transform: scale(1.05);
}

.project-gallery__item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    filter: grayscale(1) brightness(10);
    transition: var(--transition);
    pointer-events: none;
    z-index: 2;
}

.project-gallery__item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.project-gallery__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 37, 51, 0);
    transition: var(--transition);
    z-index: 1;
}

.project-gallery__item:hover::before {
    background: rgba(11, 37, 51, 0.3);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox__close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox__nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.lightbox__nav--prev {
    right: 30px;
}

.lightbox__nav--next {
    left: 30px;
}

/* === Responsive for Inner Pages === */
@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 50px;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .leader-card {
        grid-template-columns: 1fr;
    }

    .leader-card__image {
        aspect-ratio: 16/9;
        max-height: 250px;
    }

    .mv-cards {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .projects-categories {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .services-page__grid {
        grid-template-columns: 1fr;
    }

    .project-items-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .suppliers-form {
        padding: 30px 20px;
    }
}