/* === VARIABLES === */
:root {
    --primary: #234e52;
    --secondary: #7f1102;
    --third: #d4a373;
    --fourth: #a3be8c;
    --white: #ffffff;
    --light: #f8f5f2;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --font-primary: 'Philosopher', sans-serif;
    --font-arabic: 'Amiri', serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* === FOOTER STYLES === */
.iw-footer {
    background: linear-gradient(135deg, var(--primary), #1a3c3f);
    color: var(--light);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.iw-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(35,78,82,0.8)"/><path d="M0,0 L0,100 L100,100 Z" fill="rgba(127,17,2,0.8)"/></svg>');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.iw-footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.iw-footer-column {
    padding: 20px;
}

.iw-logo img {
    max-width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.iw-footer-about {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.85);
}

.iw-social-links {
    display: flex;
    gap: 15px;
}

.iw-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    font-size: 18px;
}

.iw-social-links a:hover {
    background: var(--fourth);
    transform: translateY(-3px);
}

.iw-footer-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: 700;
    color: var(--white);
}

.iw-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--fourth);
    border-radius: 2px;
}

.iw-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iw-footer-links li {
    margin-bottom: 12px;
}

.iw-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
    display: block;
    padding: 5px 0;
    position: relative;
}

.iw-footer-links a::before {
    content: "•";
    color: var(--fourth);
    display: inline-block;
    margin-right: 10px;
    transition: var(--transition);
}

.iw-footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.iw-footer-links a:hover::before {
    margin-right: 15px;
    color: var(--third);
}

.iw-contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.iw-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.iw-contact-info i {
    color: var(--fourth);
    margin-right: 15px;
    font-size: 18px;
    min-width: 20px;
}

.iw-contact-form input,
.iw-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.iw-contact-form input::placeholder,
.iw-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.iw-contact-form input:focus,
.iw-contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px var(--fourth);
}

.iw-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.iw-btn-form {
    background: linear-gradient(135deg, var(--secondary), #6a0e01);
    border: none;
    color: var(--white);
    padding: 12px 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 5px;
    width: 100%;
    font-size: 1rem;
}

.iw-btn-form:hover {
    background: linear-gradient(135deg, #9a1503, #8a1302);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(127, 17, 2, 0.3);
}

.iw-footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 25px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.iw-copyright, .iw-credits {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 5px 0;
}

.iw-credits {
    color: var(--fourth);
    font-weight: 600;
}

.iw-payment-methods {
    display: flex;
    gap: 15px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
}

.iw-go-top {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 10;
}

.iw-top-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--fourth);
    color: var(--primary);
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.iw-top-link:hover {
    background: var(--third);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Arabic typography */
.iw-arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.2rem;
    direction: rtl;
    margin-top: 15px;
    line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .iw-footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .iw-footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .iw-footer-top {
        grid-template-columns: 1fr;
    }
    
    .iw-footer-column {
        padding: 15px 0;
    }
    
    .iw-go-top {
        right: 15px;
    }
}