/*
Theme Name: Codic Solutions
Theme URI: https://codic.solutions
Author: Codic Solutions
Author URI: https://codic.solutions
Description: قالب عربي لمتجر وخدمات الاستضافة وتصميم المواقع والمتاجر الإلكترونية، بهيكل تجاري مشابه لشركات الاستضافة الحديثة. بدون نظام دفت.
Version: 2.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: codic-solutions
*/

:root {
  --bg: #ffffff;
  --ink: #101218;
  --muted: #5c6574;
  --line: #e7e9ef;
  --soft: #f5f6fa;
  --hero: #07090f;
  --hero-2: #10131c;
  --accent: #6b4cff;
  --accent-2: #8b6cff;
  --pink: #ff4d8d;
  --blue-card: #e8f1ff;
  --gold-card: #fff4cc;
  --cyan-card: #dff8ff;
  --green-card: #e4fbe8;
  --shadow: 0 18px 50px rgba(16, 18, 24, .08);
  --radius: 22px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Cairo", "Tajawal", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 14px; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 16px; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--hero); color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid rgba(16,18,24,.06);
}
body.admin-bar .site-header { top: 32px; }
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 11px;
  font-weight: 800;
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.primary-menu a {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { background: var(--soft); }
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-light { color: var(--ink); background: #fff; }
.btn-accent { color: #fff; background: var(--accent); }
.btn-ghost { color: #fff; background: #1a1d27; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(107,76,255,.18), transparent 28%),
    linear-gradient(180deg, var(--hero) 0%, var(--hero-2) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 36px;
}
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 14ch;
}
.hero-kicker {
  margin-bottom: 10px;
  color: #d7dbe6;
  font-size: 28px;
  font-weight: 800;
}
.hero-copy .lead {
  max-width: 46ch;
  color: #c5cbd8;
  font-size: 16px;
}
.hero-note {
  max-width: 42ch;
  color: #e8ebf3;
  font-size: 17px;
  font-weight: 700;
}
.accent-line {
  display: inline-block;
  width: 92px;
  height: 4px;
  margin: 10px 0 16px;
  background: var(--accent);
  border-radius: 999px;
}
.feature-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 22px;
  max-width: 460px;
}
.feature-pills span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 14px;
  background: #161922;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.hero-visual { position: relative; }
.phone-frame {
  width: min(100%, 430px);
  margin-inline: auto;
  padding: 14px;
  background: #11141c;
  border: 1px solid #2a2f3c;
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.phone-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 24px;
  background: #fff;
}

.offer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 0 42px;
}
.offer-card {
  position: relative;
  min-height: 168px;
  padding: 22px 20px 20px;
  border-radius: 26px;
  overflow: hidden;
}
.offer-card.blue { background: var(--blue-card); }
.offer-card.gold { background: var(--gold-card); }
.offer-card.cyan { background: var(--cyan-card); }
.offer-card.green { background: var(--green-card); }
.offer-card h3 { font-size: 20px; }
.offer-card .was {
  color: #7b8494;
  font-size: 13px;
  text-decoration: line-through;
}
.offer-card .now {
  font-size: 28px;
  font-weight: 800;
}
.offer-card .off {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 64px;
  padding: 10px 8px 14px;
  color: #fff;
  background: var(--pink);
  border-end-end-radius: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--muted); max-width: 52ch; }
.section-head.center p { margin-inline: auto; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
  background: #efeaff;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
}
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--muted); font-size: 14px; min-height: 66px; }
.service-card .from { color: var(--accent); font-size: 13px; font-weight: 800; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.plan-card.featured {
  color: #fff;
  background: var(--hero);
  border-color: transparent;
}
.plan-card .price { font-size: 42px; font-weight: 800; }
.plan-card .price small { font-size: 16px; font-weight: 700; color: var(--muted); }
.plan-card.featured .price small { color: #b7bdd0; }
.plan-card p { color: var(--muted); }
.plan-card.featured p { color: #c9cfde; }
.plan-card li {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.plan-card.featured li { border-top-color: rgba(255,255,255,.08); }
.plan-card li::before { content: "+"; color: var(--accent); font-weight: 800; }
.free-box {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  background: #fff;
  border-radius: 24px;
}
.free-box ul { display: grid; gap: 10px; }
.free-box li { font-weight: 700; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.checklist { display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.checklist li::before {
  content: "+";
  color: var(--accent);
  font-weight: 800;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  padding: 28px 22px;
  background: #161922;
  border-radius: 22px;
}
.stat strong { display: block; font-size: 36px; }

.why-grid, .faq-list, .review-grid { display: grid; gap: 14px; }
.why-item, .faq-item, .review-card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq-item p { margin-top: 12px; color: var(--muted); }
.review-card p { color: var(--muted); }
.review-card strong { display: block; margin-top: 10px; }

.page-hero {
  padding: 64px 0 48px;
  color: #fff;
  background: linear-gradient(180deg, var(--hero), #141824);
}
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.page-hero p { max-width: 54ch; color: #d5dae6; }

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
}
.contact-card, .contact-form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.form-field { margin-bottom: 14px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 800; font-size: 14px; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(107,76,255,.25);
  border-color: var(--accent);
}
.notice-ok { padding: 12px 14px; margin-bottom: 14px; background: #e8f8ee; border-radius: 12px; }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer {
  color: #c5cbd8;
  background: var(--hero);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 28px;
}
.site-footer h2 { color: #fff; font-size: 16px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.woocommerce ul.products li.product img { margin: 0 0 14px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button { margin-inline: 16px; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button {
  color: #fff !important;
  background: var(--ink) !important;
  border-radius: 999px !important;
}
.woocommerce div.product { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none; width: 100%; }

@media (max-width: 1024px) {
  .hero-grid, .offer-row, .service-grid, .plan-grid, .split, .contact-grid, .footer-grid, .stat-row, .woocommerce ul.products, .woocommerce div.product {
    grid-template-columns: 1fr 1fr;
  }
  .offer-row { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 18px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .primary-menu { display: grid; }
  .header-cta { display: none; }
  .hero-grid, .offer-row, .service-grid, .plan-grid, .split, .free-box, .contact-grid, .footer-grid, .stat-row, .woocommerce ul.products, .woocommerce div.product {
    grid-template-columns: 1fr;
  }
  .feature-pills { grid-template-columns: 1fr 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
}
