/* SYLICO Website - Pure CSS3 Styles */
/* Design System based on PRD v3.0 */

:root {
    /* Colors */
    --primary-green: #1B4D3E;
    --accent-gold: #D4A373;
    --action-red: #C1121F;
    --bg-light: #F8F9FA;
    --text-dark: #2B2B2B;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    
    /* Fonts */
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-ar);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
}

/* RTL/LTR Support */
[dir="rtl"] {
    font-family: var(--font-ar);
}

[dir="ltr"] {
    font-family: var(--font-en);
}

[dir="rtl"] body {
    text-align: right;
}

[dir="ltr"] body {
    text-align: left;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    min-height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__logo-img {
    height: 50px;
    width: auto;
}

.nav__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.nav__toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--primary-green);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
}

.nav__toggle-bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-green);
    margin: 5px 0;
}

.nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link:hover {
    color: var(--primary-green);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

[dir="rtl"] .nav__link::after {
    right: 0;
}

[dir="ltr"] .nav__link::after {
    left: 0;
}

.nav__link:hover::after {
    width: 100%;
}

.lang-switch {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switch:hover {
    background-color: #14382e;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background-color: var(--action-red);
    color: var(--white);
}

.btn--primary:hover {
    background-color: #a00f19;
    box-shadow: 0 4px 12px rgba(193, 18, 31, 0.3);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn--outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn--full {
    width: 100%;
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section--alt {
    background-color: var(--bg-light);
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section__divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-green), var(--accent-gold));
    margin: 0 auto 1rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05) 0%, rgba(212, 163, 115, 0.05) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    width: 100%;
}

.hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__logo {
    height: 100px;
    width: auto;
    margin-bottom: 2rem;
}

.hero__title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero__capital {
    background-color: var(--white);
    display: inline-flex;
    flex-direction: column;
    padding: 1.5rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border-top: 3px solid var(--accent-gold);
}

.hero__capital-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero__capital-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-green);
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.about__intro {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.about__intro-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.9;
}

.about__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.about__card {
    background-color: var(--white);
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--accent-gold);
}

.about__icon {
    color: var(--primary-green);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.about__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
}

.about__card-text {
    color: var(--text-dark);
    line-height: 1.7;
}

.about__info {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 4px;
    max-width: 900px;
    margin: 0 auto;
}

.about__info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-align: center;
}

.about__info-grid {
    display: grid;
    gap: 0.75rem;
}

.about__info-item {
    text-align: center;
}

.about__info-label {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Sectors Section */
.sectors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.sector-card {
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.sector-card__image {
    width: 100%;
    height: 220px;
    background-color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

.sector-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.sector-card:hover .sector-card__image img {
    transform: scale(1.05);
}

.sector-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.sector-card__content {
    padding: 1.5rem;
}

.sector-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sector-card__icon {
    color: var(--primary-green);
    flex-shrink: 0;
}

.sector-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.sector-card__location {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.sector-card__location svg {
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.sector-card__desc {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Contact Section */
.contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact__info-icon {
    color: var(--primary-green);
    background-color: rgba(27, 77, 62, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.contact__info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.contact__info-text {
    color: var(--text-dark);
}

.contact__form-wrapper {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form__label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form__input,
.form__textarea {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    background-color: var(--white);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__status {
    text-align: center;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    display: none;
}

.form__status--success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form__status--error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 2rem 0 1rem;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer__top {
    text-align: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer__logo {
    height: 60px;
    width: auto;
}

.footer__brand-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer__bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav__toggle {
        display: block;
    }
    
    .nav__menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        gap: 0;
        display: none;
    }
    
    .nav__menu.active {
        display: flex;
    }
    
    .nav__item {
        width: 100%;
        text-align: center;
        border-top: 1px solid var(--border-color);
    }
    
    .nav__link {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .nav__link::after {
        display: none;
    }
    
    .nav__item--lang {
        padding: 1rem;
    }
    
    .hero__title {
        font-size: 2.25rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 3.5rem 0;
    }
    
    html {
        scroll-padding-top: 80px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero__title {
        font-size: 1.875rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .hero__capital-value {
        font-size: 1.5rem;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__actions .btn {
        width: 100%;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .contact__form-wrapper {
        padding: 1.5rem;
    }
    
    .sectors__grid,
    .about__content {
        grid-template-columns: 1fr;
    }
}
