/*
Theme Name: Company Simple
Theme URI: https://panel04.local/themes/company-simple
Author: Panel04
Author URI: https://panel04.local
Description: قالب شركة بسيط للتجربة — Website Builder demo theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: company-simple
Tags: company, rtl-language-support, one-column, custom-logo
*/

:root {
  --cs-primary: #1764f6;
  --cs-dark: #0f172a;
  --cs-muted: #64748b;
  --cs-bg: #f8fafc;
  --cs-white: #ffffff;
  --cs-radius: 12px;
  --cs-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --cs-font: "Segoe UI", Tahoma, "Alexandria", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--cs-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cs-dark);
  background: var(--cs-bg);
}

a { color: var(--cs-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.cs-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.cs-header {
  background: var(--cs-white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.cs-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cs-dark);
  text-decoration: none;
}

.cs-logo:hover { text-decoration: none; }

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

.cs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.cs-nav a {
  color: var(--cs-muted);
  font-weight: 500;
  text-decoration: none;
}

.cs-nav a:hover,
.cs-nav .current-menu-item a { color: var(--cs-primary); }

/* Hero */
.cs-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 55%, #1764f6 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cs-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 16px;
  line-height: 1.25;
}

.cs-hero p {
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: 0.9;
  font-size: 1.05rem;
}

.cs-btn {
  display: inline-block;
  background: #fff;
  color: var(--cs-primary);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s;
}

.cs-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.cs-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  margin-inline-start: 12px;
}

/* Sections */
.cs-section { padding: 64px 0; }
.cs-section--white { background: var(--cs-white); }

.cs-section__title {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 12px;
}

.cs-section__subtitle {
  text-align: center;
  color: var(--cs-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.cs-card {
  background: var(--cs-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--cs-radius);
  padding: 28px 24px;
  box-shadow: var(--cs-shadow);
}

.cs-card__icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  color: var(--cs-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.cs-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.cs-card p { margin: 0; color: var(--cs-muted); font-size: 0.95rem; }

/* About */
.cs-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cs-about__box {
  background: #eff6ff;
  border-radius: var(--cs-radius);
  padding: 40px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--cs-primary);
}

/* Contact */
.cs-contact {
  background: var(--cs-dark);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}

.cs-contact p { opacity: 0.85; margin: 0 0 8px; }

/* Page content */
.cs-page-content {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: var(--cs-shadow);
}

.cs-page-content h1 { margin-top: 0; }

/* Posts list */
.cs-post-list { list-style: none; padding: 0; margin: 0; }
.cs-post-list li {
  background: var(--cs-white);
  border: 1px solid #e2e8f0;
  border-radius: var(--cs-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.cs-post-list h2 { margin: 0 0 8px; font-size: 1.15rem; }
.cs-post-meta { color: var(--cs-muted); font-size: 0.85rem; margin-bottom: 8px; }

/* Footer */
.cs-footer {
  background: #0a1628;
  color: #94a3b8;
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}

.cs-footer a { color: #cbd5e1; }

@media (max-width: 768px) {
  .cs-about { grid-template-columns: 1fr; }
  .cs-header__inner { flex-direction: column; padding: 16px 0; }
  .cs-btn--outline { margin-inline-start: 0; margin-top: 12px; }
}
