﻿/* =============================================
   FACILITY PLUS — VITRINE STYLESHEET
   Corporate Industrial SaaS
   Primary #1E3A8A | Accent #16A34A | Dark #0F172A
   ============================================= */

:root {
    --primary:       #1E3A8A;
    --primary-hover: #1e40af;
    --accent:        #16A34A;
    --dark:          #0F172A;
    --text:          #1e293b;
    --text-muted:    #475569;
    --text-light:    #94a3b8;
    --bg:            #f8fafc;
    --bg-white:      #ffffff;
    --border:        #e2e8f0;
    --shadow-sm:     0 1px 3px rgba(15,23,42,.06);
    --shadow-md:     0 6px 20px rgba(15,23,42,.07);
    --shadow-lg:     0 20px 48px rgba(15,23,42,.09);
    --radius:        10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HEADER ───────────────────────────── */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -.01em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.nav-link:hover { color: var(--primary); }

.lang-switch { display:flex; gap:8px; align-items:center; }
.lang-switch .lang-btn { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding:6px 8px; border-radius:6px; font-weight:600; cursor:pointer; }
.lang-switch .lang-btn.active { background: var(--primary); color:#fff; border-color: var(--primary); }

/* RTL adjustments */
[dir="rtl"] .header-inner { direction: rtl; }
[dir="rtl"] .nav { direction: rtl; }
[dir="rtl"] .hero-left { text-align: right; }
[dir="rtl"] .hero-tags { justify-content: flex-end; }
[dir="rtl"] .cap-card, [dir="rtl"] .security-card { text-align: right; }
[dir="rtl"] .contact-row { justify-content: flex-end; }
[dir="rtl"] .hero-grid { grid-template-columns: 480px 1fr; }

/* ── HERO ─────────────────────────────── */
.hero {
    background: var(--bg-white);
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--dark);
    letter-spacing: -.03em;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: .8rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    background: #EFF3FB;
    color: var(--primary);
    border: 1px solid #c7d6f5;
}

.hero-right { display: flex; }

.dashboard-preview {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: #f8fafc;
}

.dashboard-preview svg { display: block; width: 100%; }

/* ── SECTIONS SHARED ──────────────────── */
.section {
    padding: 96px 0;
}

.section-header,
.section-head {
    margin-bottom: 52px;
}

.section-header.centered {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.section-title.sm { font-size: 1.5rem; }

.section-sub,
.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ── CAPABILITIES ─────────────────────── */
.capabilities { background: var(--bg); }

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cap-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow .2s, transform .2s;
}

.cap-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.cap-ico {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #EFF3FB;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.cap-ico svg { width: 20px; height: 20px; }

.cap-card h3,
.cap-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.cap-card p,
.cap-desc {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── OVERVIEW ──────────────────────────── */
.overview-section,
.overview { background: var(--bg-white); }

.overview-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 800px;
}

.overview-visual {
    margin-top: 40px;
}

.overview-visual svg {
    display: block;
    width: 100%;
    max-width: 100%;
}

.overview-frame {
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: #f8fafc;
}

/* ── SECURITY ──────────────────────────── */
.security-section,
.security { background: var(--bg); }

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.security-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.security-ico {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.security-ico svg { width: 20px; height: 20px; }

.security-card h3,
.security-card h4,
.security-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.security-card p,
.security-card-desc {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── CONTACT ───────────────────────────── */
.contact-section,
.contact {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 80px 0;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

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

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: .95rem;
}

.contact-row strong {
    min-width: 80px;
    color: var(--dark);
    font-weight: 600;
}

.contact-ico {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ── FOOTER ────────────────────────────── */
.footer {
    background: var(--dark);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}

.footer-sep { opacity: .4; }

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 1200px) {
    .capabilities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
    .capabilities-grid,
    .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .hero-right { display: none; }
    .contact-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    .nav { display: none; }
    .hero { padding: 64px 0; }
    .section { padding: 64px 0; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .capabilities-grid,
    .security-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
