/* ======================================
   TAMR OUR STORY PAGE
   File: tamr-story.css
   ====================================== */

/* — Hide Elementor/Astra default content — */
.tamr-story-page .entry-content>.elementor,
.tamr-story-page .entry-content>.e-con,
.tamr-story-page .entry-content>.wp-block-group,
.tamr-story-page .entry-content>section:not([class*="tamr-story"]),
.tamr-story-page .entry-content>div:not([class*="tamr-story"]):not(.reemco-footer) {
    display: none !important;
}

/* ==========================================
   HERO
   ========================================== */
.tamr-story-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

.tamr-story-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tamr-story-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tamr-story-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(61, 43, 31, 0.92) 0%,
            rgba(44, 32, 24, 0.8) 50%,
            rgba(26, 23, 20, 0.7) 100%);
    z-index: 1;
}

.tamr-story-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
}

.tamr-story-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(198, 169, 108, 0.15);
    border: 1px solid rgba(198, 169, 108, 0.4);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 25px;
    color: #C6A96C;
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeInDown 0.8s ease;
}

.tamr-story-hero__content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.tamr-story-hero__content h1 em {
    font-style: normal;
    color: #C6A96C;
}

.tamr-story-hero__content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ==========================================
   COMMON
   ========================================== */
.tamr-story-section {
    padding: 80px 0;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

.tamr-story-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.tamr-story-eyebrow {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.tamr-story-eyebrow span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #C6A96C;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.tamr-story-eyebrow span::before,
.tamr-story-eyebrow span::after {
    content: '';
    width: 30px;
    height: 1px;
    background: #C6A96C;
}

.tamr-story-section__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tamr-text, #2C2420);
    text-align: center;
    margin-bottom: 50px;
}

/* ==========================================
   INTRO
   ========================================== */
.tamr-story-intro {
    background: #FAF7F2;
}

.tamr-story-intro__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.tamr-story-intro__text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tamr-text, #2C2420);
    margin-bottom: 20px;
}

.tamr-story-intro__text p {
    font-size: 1rem;
    color: #555;
    line-height: 2;
    margin-bottom: 15px;
}

.tamr-story-intro__visual img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   TIMELINE
   ========================================== */
.tamr-story-timeline {
    background: #fff;
}

.tamr-story-timeline__track {
    position: relative;
    padding: 20px 0;
}

/* Vertical line */
.tamr-story-timeline__track::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--tamr-gold), var(--tamr-primary));
    transform: translateX(50%);
    border-radius: 3px;
}

.tamr-story-timeline__item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}

/* Right-side items (default) */
.tamr-story-timeline__item .tamr-story-timeline__card {
    width: 42%;
    margin-right: auto;
    margin-left: 8%;
}

/* Left-side items (alternate) */
.tamr-story-timeline__item--alt .tamr-story-timeline__card {
    width: 42%;
    margin-left: auto;
    margin-right: 8%;
    text-align: left;
}

.tamr-story-timeline__dot {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C6A96C, #A88B4A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(198, 169, 108, 0.4);
}

.tamr-story-timeline__card {
    background: #FAF7F2;
    border-radius: 14px;
    padding: 30px;
    border: 1px solid rgba(198, 169, 108, 0.15);
    transition: all 0.3s ease;
}

.tamr-story-timeline__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border-color: rgba(198, 169, 108, 0.4);
}

.tamr-story-timeline__year {
    display: inline-block;
    background: rgba(198, 169, 108, 0.12);
    color: #C6A96C;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tamr-story-timeline__card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tamr-text, #2C2420);
    margin-bottom: 10px;
}

.tamr-story-timeline__card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.9;
}

/* ==========================================
   VALUES
   ========================================== */
.tamr-story-values {
    background: #FAF7F2;
}

.tamr-story-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tamr-story-values__card {
    background: #fff;
    border-radius: 14px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tamr-story-values__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    border-color: rgba(198, 169, 108, 0.3);
}

.tamr-story-values__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(198, 169, 108, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #C6A96C;
    margin: 0 auto 18px;
}

.tamr-story-values__card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tamr-text, #2C2420);
    margin-bottom: 10px;
}

.tamr-story-values__card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

/* ==========================================
   VISION & MISSION
   ========================================== */
.tamr-story-vm {
    background: linear-gradient(135deg, var(--tamr-primary) 0%, var(--tamr-primary-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tamr-story-vm::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 169, 108, 0.08) 0%, transparent 70%);
}

.tamr-story-vm__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.tamr-story-vm__card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 45px 35px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.tamr-story-vm__card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(198, 169, 108, 0.3);
    transform: translateY(-4px);
}

.tamr-story-vm__icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(198, 169, 108, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #C6A96C;
    margin: 0 auto 20px;
}

.tamr-story-vm__card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.tamr-story-vm__card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

/* ==========================================
   CTA
   ========================================== */
.tamr-story-cta {
    background: linear-gradient(135deg, #C6A96C 0%, #A88B4A 50%, #8A7238 100%);
    text-align: center;
    padding: 80px 0;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

.tamr-story-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.tamr-story-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.tamr-story-cta__buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.tamr-story-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tamr-story-cta__btn--primary {
    background: #fff;
    color: var(--tamr-text, #2C2420);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tamr-story-cta__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tamr-story-cta__btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.tamr-story-cta__btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .tamr-story-intro__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tamr-story-values__grid {
        grid-template-columns: 1fr 1fr;
    }
    .tamr-story-vm__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tamr-story-hero { min-height: 60vh; }
    .tamr-story-hero__content h1 { font-size: 2rem; }
    .tamr-story-section { padding: 60px 0; }
    .tamr-story-section__title { font-size: 1.7rem; }
    .tamr-story-values__grid { grid-template-columns: 1fr; }

    /* Timeline stacked */
    .tamr-story-timeline__track::before { right: 25px; transform: none; }
    .tamr-story-timeline__dot {
        right: 25px;
        transform: translateX(50%);
    }
    .tamr-story-timeline__item .tamr-story-timeline__card,
    .tamr-story-timeline__item--alt .tamr-story-timeline__card {
        width: calc(100% - 70px);
        margin-right: 70px;
        margin-left: 0;
        text-align: right;
    }
    .tamr-story-cta h2 { font-size: 1.6rem; }
    .tamr-story-cta__buttons { flex-direction: column; align-items: center; }
}
