/*
Theme Name: Talen Aluminum
Theme URI: https://talen.ly
Description: قالب مخصص لشركة تالين للألمونيوم والمقاولات
Version: 2.0.0
Author: Talen Team
*/

/* الألوان والهوية البصرية */
:root {
--color-primary: #06542C;
--color-primary-dark: #043d20;
--color-secondary: #d4af37;
--color-text: #1f1f1f;
--color-text-light: #666;
--color-bg: #ffffff;
--color-bg-light: #f8f9fa;
--color-border: #e0e0e0;
--shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
--shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--color-text);
background: var(--color-bg);
direction: rtl;
text-align: right;
}

/* Header & Navigation */
header {
background: var(--color-bg);
box-shadow: var(--shadow-sm);
position: sticky;
top: 0;
z-index: 1000;
}

nav {
max-width: 1200px;
margin: 0 auto;
padding: 0.5rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo img {
height: 80px;
width: auto;
transition: transform 0.3s;
}

.logo img:hover {
transform: scale(1.05);
}

.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}

.nav-links a {
color: var(--color-text);
text-decoration: none;
font-weight: 600;
transition: color 0.3s;
padding: 0.5rem;
font-size: 1.1rem;
}

.nav-links a:hover,
.nav-links a.active {
color: var(--color-primary);
border-bottom: 2px solid var(--color-secondary);
}

.menu-toggle {
display: none;
background: none;
border: none;
font-size: 2rem;
cursor: pointer;
color: var(--color-primary);
}

/* Hero Slider */
.slider-container {
position: relative;
width: 100%;
height: 600px;
overflow: hidden;
}

.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 1s ease-in-out;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}

.slide.active {
opacity: 1;
}

.slide::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1;
}

.slide-content {
position: relative;
z-index: 2;
color: white;
max-width: 800px;
padding: 2rem;
animation: slideUp 1s ease-out;
}

@keyframes slideUp {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

.slide h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
font-weight: 800;
}

.slide p {
font-size: 1.5rem;
margin-bottom: 2rem;
opacity: 0.9;
}

.slider-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
font-size: 2rem;
padding: 1rem;
cursor: pointer;
z-index: 10;
transition: background 0.3s;
border-radius: 50%;
}

.slider-btn:hover {
background: rgba(6, 84, 44, 0.8);
}

.prev-btn {
left: 20px;
}

.next-btn {
right: 20px;
}

.cta-button {
background: var(--color-secondary);
color: var(--color-text);
padding: 1rem 3rem;
border: none;
border-radius: 50px;
font-size: 1.2rem;
font-weight: 700;
cursor: pointer;
transition: transform 0.3s;
text-decoration: none;
display: inline-block;
}

.cta-button:hover {
transform: translateY(-3px) scale(1.05);
background: white;
color: var(--color-primary);
}

/* General Layout */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 4rem 2rem;
}

.section-title {
text-align: center;
margin-bottom: 4rem;
}

.section-title h2 {
font-size: 2.5rem;
color: var(--color-primary);
margin-bottom: 1rem;
}

.section-title .underline {
width: 100px;
height: 4px;
background: var(--color-secondary);
margin: 0 auto;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2.5rem;
}

.card {
background: white;
border-radius: 15px;
overflow: hidden;
box-shadow: var(--shadow-sm);
transition: transform 0.3s;
border: 1px solid #eee;
}

.card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-md);
}

.card-image-top {
width: 100%;
height: 250px;
object-fit: cover;
}

.card-body {
padding: 1.5rem;
text-align: center;
}

.card h3 {
color: var(--color-primary);
margin-bottom: 1rem;
font-size: 1.4rem;
}

/* About Section */
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}

.stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
margin-top: 3rem;
}

.stat-item {
text-align: center;
padding: 2rem;
background: var(--color-bg-light);
border-radius: 15px;
border-bottom: 4px solid var(--color-secondary);
}

.stat-number {
font-size: 3rem;
font-weight: 800;
color: var(--color-primary);
display: block;
margin-bottom: 0.5rem;
}

/* Gallery */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}

.gallery-item {
position: relative;
border-radius: 15px;
overflow: hidden;
height: 300px;
cursor: pointer;
}

.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}

.gallery-item:hover img {
transform: scale(1.1);
}

/* Contact Page */
.contact-container {
max-width: 1000px;
margin: 0 auto;
}

.contact-map {
width: 100%;
height: 400px;
border-radius: 20px;
overflow: hidden;
box-shadow: var(--shadow-md);
margin-bottom: 3rem;
border: 5px solid white;
}

.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
background: white;
padding: 3rem;
border-radius: 20px;
box-shadow: var(--shadow-sm);
}

.contact-info-item {
display: flex;
align-items: center;
gap: 1.5rem;
margin-bottom: 2rem;
}

.contact-icon-box {
width: 60px;
height: 60px;
background: var(--color-bg-light);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-primary);
font-size: 1.5rem;
flex-shrink: 0;
}

.form-group {
margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
width: 100%;
padding: 1rem;
border: 2px solid #eee;
border-radius: 10px;
font-family: inherit;
transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
border-color: var(--color-primary);
outline: none;
}

.submit-btn {
width: 100%;
padding: 1rem;
background: var(--color-primary);
color: white;
border: none;
border-radius: 10px;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
transition: background 0.3s;
}

.submit-btn:hover {
background: var(--color-primary-dark);
}

/* Footer */
footer {
background: var(--color-primary-dark);
color: white;
padding: 4rem 2rem 1rem;
margin-top: 5rem;
}

.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
max-width: 1200px;
margin: 0 auto 3rem;
}

.footer-col h4 {
color: var(--color-secondary);
margin-bottom: 1.5rem;
font-size: 1.3rem;
}

.footer-col a {
color: #ccc;
text-decoration: none;
display: block;
margin-bottom: 0.8rem;
transition: color 0.3s;
}

.footer-col a:hover {
color: white;
padding-right: 5px;
}

.copyright {
text-align: center;
border-top: 1px solid rgba(255,255,255,0.1);
padding-top: 2rem;
color: #999;
}

/* Mobile */
@media (max-width: 768px) {
.nav-links {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: white;
flex-direction: column;
padding: 2rem;
display: none;
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.nav-links.active {
display: flex;
}

.menu-toggle {
display: block;
}

.about-content,
.contact-grid {
grid-template-columns: 1fr;
}

.slider-container {
height: 500px;
}

.slide h1 {
font-size: 2.5rem;
}
}
