/* Rabiyah Medical - Modern Medical Co. WordPress Theme */

/* Theme Header */
/*
Theme Name: Rabiyah Medical
Theme URI: https://rabiyahmedical.com
Author: Rabiyah Medical
Description: Modern Rabiyah Medical Company - Medical Supply & Distribution in Saudi Arabia
Version: 1.0.0
*/

/* Custom Properties */
:root {
    --teal: #008c9b;
    --teal-light: #e6f4f6;
    --teal-mid: #00a8ba;
    --teal-dark: #006d79;
    --navy: #13385e;
    --navy-light: #1d4a7a;
    --navy-dark: #0c2440;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
    background-color: #ffffff;
    color: #13385e;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.grad {
    background: linear-gradient(135deg, #13385e 0%, #0e5a75 45%, #008c9b 100%);
}

.grad-text {
    background: linear-gradient(90deg, #008c9b, #00c2d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Card Hover Effects */
.card-h {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-h:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -14px rgba(0, 140, 155, 0.35);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* Dropdown */
.dd {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.22s ease;
}

.has-dd:hover .dd,
.has-dd:focus-within .dd {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* FAQ Accordion */
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-a {
    max-height: 300px;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    transition: transform 0.3s;
}

/* Background Patterns */
.dot-grid {
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
}

.world-bg {
    background-image: url("assets/world.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(1400px, 110%) auto;
    opacity: 0.12;
    filter: brightness(0) invert(1);
}

/* News Card */
.news-card .news-img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.06);
}

/* Client Card */
.client-card {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 1.25rem;
    padding: 0.6rem 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -12px rgba(19, 56, 94, 0.25);
    border-color: #c7ece9;
}

.client-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.client-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 640px) {
    .client-card {
        height: 100px;
        padding: 0.4rem 0.6rem;
    }
}

/* Product Card */
.prod-card .prod-img {
    transition: transform 0.6s ease;
}

.prod-card:hover .prod-img {
    transform: scale(1.07);
}

/* Selection */
::selection {
    background: #008c9b;
    color: #fff;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
}

[dir="ltr"] {
    direction: ltr;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .text-3xl {
        font-size: 1.875rem;
    }
    
    .text-4xl {
        font-size: 2.25rem;
    }
}