/* Main Styles */

:root {
    --whatsapp-green: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --whatsapp-btn: #25D366;
    --whatsapp-btn-hover: #128C7E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #128C7E;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--whatsapp-btn);
    color: white;
}

.btn-primary:hover {
    background: var(--whatsapp-btn-hover);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid.grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 768px) {
    .grid.grid-cols-2,
    .grid.grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5em;
}

p {
    line-height: 1.6;
    color: #4b5563;
}

a {
    color: #25D366;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #128C7E;
}

/* Sections */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Direction aware helpers */
[dir="rtl"] .text-right { text-align: left; }
[dir="rtl"] .text-left { text-align: right; }

/* Ensure fixed social links don't overlap on small screens */
@media (max-width: 640px) {
    .fixed.top-1\/2 { display: none; }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #6b7280;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-2xl {
    border-radius: 16px;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.transition {
    transition: all 0.3s ease;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.badge-warning {
    background-color: rgba(251, 146, 60, 0.1);
    color: #fb923c;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    .no-print {
        display: none;
    }
}

/* Landing page: adjust vertical padding for large screens */
@media (min-width: 1024px) {
    /* Target the hero section which uses the Tailwind-like `py-20` utility */
    #hero.py-20 {
        padding-top: 5rem;
        padding-bottom: 10rem;
    }
}
