/**
 * About Page & Top Banner Styles - Improved UI/UX
 * NutraMEA Theme v3.4
 */

/* ============================================
   TOP BANNER - IMPROVED WITH GRADIENT
   ============================================ */
.top-banner {
    background: var(--gradient-primary);
    padding: 0.875rem 0;
    position: relative;
    z-index: 51;
    box-shadow: 0 2px 8px rgba(38, 164, 187, 0.15);
}

@media (min-width: 768px) {
    .top-banner {
        padding: 1rem 0;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .banner-content {
        justify-content: flex-start;
        text-align: left;
    }
}

html[dir="rtl"] .banner-content {
    justify-content: flex-end;
    text-align: right;
}

@media (min-width: 768px) {
    html[dir="rtl"] .banner-content {
        text-align: right;
    }
}

.banner-slogan {
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .banner-slogan {
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .banner-slogan {
        font-size: 0.9375rem;
        text-transform: none;
        font-weight: 600;
    }
}

@media (min-width: 1024px) {
    .banner-slogan {
        font-size: 1rem;
    }
}

/* ============================================
   ABOUT PAGE - IMPROVED HERO SECTION
   ============================================ */
.about-header {
    background: var(--gradient-hero);
    padding: 3.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .about-header {
        padding: 5rem 0 7rem;
    }
}

@media (min-width: 1024px) {
    .about-header {
        padding: 6rem 0 8rem;
    }
}

.about-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(38, 164, 187, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(225, 183, 56, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-header .page-title,
.about-header .page-subtitle {
    position: relative;
    z-index: 1;
}

/* ============================================
   ABOUT CONTENT SECTION
   ============================================ */
.about-content {
    max-width: 56rem;
}

.about-text {
    animation: fade-in 0.6s ease;
}

.content-block {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--foreground);
}

.content-block p {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .content-block {
        font-size: 1.125rem;
        line-height: 2;
    }
    
    .content-block p {
        margin-bottom: 1.75rem;
    }
}

/* ============================================
   MISSION & VISION - IMPROVED CARDS
   ============================================ */
.mission-vision-grid {
    display: grid;
    gap: 2rem;
    animation: fade-in 0.8s ease 0.2s both;
}

@media (min-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .mission-vision-grid {
        gap: 3rem;
    }
}

.mission-card,
.vision-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .mission-card,
    .vision-card {
        padding: 3rem;
    }
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .mission-card::before,
html[dir="rtl"] .vision-card::before {
    transform-origin: right;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.mission-card:hover::before,
.vision-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 8px 16px rgba(38, 164, 187, 0.25);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .icon-wrapper {
        width: 4.5rem;
        height: 4.5rem;
        margin-bottom: 1.75rem;
    }
}

.mission-card:hover .icon-wrapper,
.vision-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .mission-card h3,
    .vision-card h3 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
}

.mission-card p,
.vision-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted-foreground);
    margin: 0;
}

@media (min-width: 768px) {
    .mission-card p,
    .vision-card p {
        font-size: 1.0625rem;
        line-height: 1.9;
    }
}

/* ============================================
   WHAT WE OFFER - IMPROVED GRID
   ============================================ */
.offer-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
    animation: fade-in 0.8s ease 0.4s both;
}

@media (min-width: 768px) {
    .offer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        margin-top: 3.5rem;
    }
}

.offer-card {
    background: white;
    padding: 2.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .offer-card {
        padding: 2.5rem;
    }
}

.offer-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.offer-card:hover::after {
    transform: scaleX(1);
}

.offer-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--turquoise-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .offer-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
    }
}

.offer-card:hover .offer-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.offer-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.875rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .offer-card h4 {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }
}

.offer-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin: 0;
}

@media (min-width: 768px) {
    .offer-card p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* ============================================
   CORE VALUES - NUMBERED CARDS
   ============================================ */
.values-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
    animation: fade-in 0.8s ease 0.6s both;
}

@media (min-width: 640px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        margin-top: 3.5rem;
    }
}

.value-item {
    background: white;
    padding: 2rem 1.75rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

@media (min-width: 768px) {
    .value-item {
        padding: 2.25rem 2rem;
    }
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.value-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .value-number {
        font-size: 3.5rem;
        margin-bottom: 1.25rem;
    }
}

.value-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .value-item h4 {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }
}

.value-item p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--muted-foreground);
    margin: 0;
}

@media (min-width: 768px) {
    .value-item p {
        font-size: 0.9375rem;
        line-height: 1.75;
    }
}

/* ============================================
   CTA BOX - IMPROVED DESIGN
   ============================================ */
.cta-box {
    background: linear-gradient(135deg, var(--turquoise-light) 0%, var(--gold-light) 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: fade-in 0.8s ease 0.8s both;
}

@media (min-width: 768px) {
    .cta-box {
        padding: 4rem 3rem;
    }
}

@media (min-width: 1024px) {
    .cta-box {
        padding: 5rem 4rem;
    }
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--foreground);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .cta-box h2 {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
}

.cta-box p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .cta-box p {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.cta-buttons .btn {
    min-width: 200px;
}

@media (min-width: 768px) {
    .cta-buttons .btn {
        min-width: 220px;
    }
}

/* Staggered animation for about page sections */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) { animation: fade-in-up 0.6s ease 0.1s both; }
.section:nth-child(2) { animation: fade-in-up 0.6s ease 0.2s both; }
.section:nth-child(3) { animation: fade-in-up 0.6s ease 0.3s both; }
.section:nth-child(4) { animation: fade-in-up 0.6s ease 0.4s both; }
.section:nth-child(5) { animation: fade-in-up 0.6s ease 0.5s both; }
