/* =====================================================
   CABINET ZERAIMI - STYLES CSS
   ===================================================== */

/* CSS Variables */
:root {
    /* Light Mode Colors */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #ecfdf5;
    --accent: #10b981;
}

body.dark {
    --bg-main: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --primary-light: rgba(5, 150, 105, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 48px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-alt);
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

body:not(.dark) .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 0 48px;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 16px;
}

@media (min-width: 1024px) {
    .nav-actions {
        display: flex;
    }
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--border-color);
}

body.dark .theme-toggle {
    color: #fbbf24;
}

body.dark .icon-moon,
body:not(.dark) .icon-sun {
    display: none;
}

body.dark .icon-sun,
body:not(.dark) .icon-moon {
    display: block;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-alt);
    border-radius: 50px;
    padding: 4px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 50px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-hover);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-btn .icon-close {
    display: none;
}

.mobile-menu-btn.active .icon-menu {
    display: none;
}

.mobile-menu-btn.active .icon-close {
    display: block;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 12px 0;
    font-weight: 500;
    color: var(--text-muted);
}

.mobile-menu a:hover {
    color: var(--accent);
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    padding: 120px 0 80px;
    background: var(--bg-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

body:not(.dark) .hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
}

.hero-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4.5rem;
    }
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-image img {
        height: 500px;
    }
}

.hero-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--bg-card);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .hero-card {
        display: flex;
    }
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.hero-card-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.hero-card-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* =====================================================
   MISSIONS SECTION
   ===================================================== */
.missions {
    padding: 80px 0;
    background: var(--bg-alt);
}

@media (min-width: 768px) {
    .missions {
        padding: 120px 0;
    }
}

.services-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 24px;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .service-card {
        padding: 40px;
    }
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .service-content h3 {
        font-size: 1.5rem;
    }
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* =====================================================
   TEAM SECTION
   ===================================================== */
.team {
    padding: 80px 0;
    background: var(--bg-main);
}

@media (min-width: 768px) {
    .team {
        padding: 120px 0;
    }
}

.team-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: scale(1.02);
}

.team-photo {
    aspect-ratio: 4/5;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo svg {
    width: 80px;
    height: 80px;
    color: var(--border-color);
}

.team-info {
    padding: 24px;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.team-info p {
    color: var(--accent);
    font-weight: 500;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    padding: 80px 0;
    background: var(--bg-alt);
}

@media (min-width: 768px) {
    .about {
        padding: 120px 0;
    }
}

.about-grid {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .about-image img {
        height: 500px;
    }
}

.about-image-decoration {
    position: absolute;
    z-index: -1;
    bottom: -32px;
    right: -32px;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    border-radius: 16px;
    display: none;
}

@media (min-width: 1024px) {
    .about-image-decoration {
        display: block;
    }
}

.about-content .section-label {
    text-align: left;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .about-content h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .about-content h2 {
        font-size: 3rem;
    }
}

.about-content > p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-main);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

body.dark .stat-card {
    background: var(--bg-card);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
    padding: 80px 0;
    background: var(--bg-main);
}

@media (min-width: 768px) {
    .contact {
        padding: 120px 0;
    }
}

.contact-grid {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}

@media (min-width: 768px) {
    .contact-form-card {
        padding: 40px;
    }
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

input, textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
}

body.dark input,
body.dark textarea {
    background: var(--bg-main);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 150px;
    resize: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-card-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-card-content strong {
    display: block;
    color: var(--text-main);
}

.contact-card-content span {
    color: var(--text-muted);
}

.contact-card-content a {
    color: var(--text-main);
    transition: color 0.2s ease;
}

.contact-card-content a:hover {
    color: var(--accent);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #0f172a;
    padding: 80px 0 0;
    color: white;
}

body.dark .footer {
    background: #020617;
}

.footer-grid {
    display: grid;
    gap: 48px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 24px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 400px;
    line-height: 1.7;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: white;
}

.footer ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #94a3b8;
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.footer-contact a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-services {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.875rem;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}
