/* قرطاج الأولى للصناعات الغذائية - أنماط احترافية */
:root {
    --primary: #c17f3a;
    --primary-dark: #9a6230;
    --primary-light: #e8a85c;
    --accent: #2d5a3d;
    --dark: #1a2e22;
    --light: #f8f5f0;
    --white: #ffffff;
    --text: #2c2c2c;
    --text-muted: #5a5a5a;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: var(--light);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: background 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--dark);
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 1.75rem;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero / Cover */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,46,34,0.85) 0%, rgba(193,127,58,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: var(--white);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.section-title i {
    color: var(--primary);
}

/* حول الشركة */
.about {
    background: var(--white);
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(193,127,58,0.15);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.about-card h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.about-card p {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

/* الرؤية والرسالة والهدف */
.vision-section {
    background: linear-gradient(180deg, var(--light) 0%, #eee8e0 100%);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.vision-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary);
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.vision-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--accent), #3d7a52);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.vision-card h3 {
    font-size: 1.35rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.vision-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* التسويق */
.marketing {
    background: var(--white);
}

.marketing-box {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.marketing-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.marketing-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.marketing-content p {
    margin-bottom: 0.75rem;
    opacity: 0.95;
    line-height: 1.8;
}

.marketing-content p:last-child {
    margin-bottom: 0;
    font-weight: 700;
}

/* معلومات الاتصال */
.contact-info-section {
    background: var(--light);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* فورم اتصل بنا */
.contact-form-section {
    background: var(--white);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

/* Footer */
.footer {
    position: relative;
    background: linear-gradient(180deg, var(--dark) 0%, #0f1f18 100%);
    color: var(--white);
    margin-top: 2rem;
}

.footer-wave {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 80px;
    
    background-size: cover;
}

.footer-main {
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    opacity: 0.9;
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
}

.footer-bottom p {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .marketing-box {
        flex-direction: column;
        text-align: center;
    }
    .marketing-icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand p {
        max-width: none;
    }
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2.5rem 0;
    }
    .hero-content h1 {
        font-size: 1.75rem;
    }
}
