/* ══════════════════════════════════════════════════════════
   CarLinkTech — Shared Design System
   ══════════════════════════════════════════════════════════ */

:root {
  --primary: #0D47A1;
  --primary-light: #1976D2;
  --primary-lighter: #42A5F5;
  --accent: #FF6D00;
  --accent-light: #FFA726;
  --dark: #0A1929;
  --dark-2: #132F4C;
  --text: #263238;
  --text-light: #546E7A;
  --muted: #90A4AE;
  --bg: #F5F7FA;
  --border: #ECEFF1;
  --success: #2E7D32;
  --danger: #C62828;
  --warn: #F9A825;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(13,71,161,.08);
  --shadow: 0 10px 30px rgba(13,71,161,.12);
  --shadow-lg: 0 20px 60px rgba(13,71,161,.18);
  --hero-gradient: linear-gradient(135deg, #0A1929 0%, #0D47A1 50%, #1565C0 100%);
  --accent-gradient: linear-gradient(135deg, #FF6D00, #FFA726);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 { font-weight: 800; color: var(--primary); line-height: 1.3; }
h1 { font-size: 44px; letter-spacing: -.5px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p  { color: var(--text-light); }
a  { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 32px; margin-bottom: 14px; }
.section-sub { text-align: center; font-size: 16px; color: var(--text-light); max-width: 640px; margin: 0 auto 56px; }

/* ══════ Navigation ══════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 25, 41, .96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.nav-brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.78); font-weight: 500; font-size: 14px;
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: var(--accent-gradient); color: #fff !important;
  padding: 9px 20px; border-radius: 999px; font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(255,109,0,.35);
}
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* ══════ Buttons ══════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700; font-family: inherit;
  transition: all .2s; text-decoration: none;
}
.btn-primary {
  background: var(--accent-gradient); color: #fff;
  box-shadow: 0 8px 20px rgba(255,109,0,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,109,0,.45); color: #fff; }
.btn-outline {
  background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-light:hover { box-shadow: var(--shadow); color: var(--primary); transform: translateY(-1px); }

/* ══════ Hero ══════ */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  padding: 80px 24px 110px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,109,0,.12), transparent 70%);
  pointer-events: none;
}
.hero::before { width: 500px; height: 500px; top: -150px; right: -150px; }
.hero::after  { width: 400px; height: 400px; bottom: -200px; left: -100px;
                background: radial-gradient(circle, rgba(66,165,245,.15), transparent 70%); }
.hero-pattern {
  position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image:
    linear-gradient(30deg, #fff 1px, transparent 1px),
    linear-gradient(150deg, #fff 1px, transparent 1px);
  background-size: 40px 70px;
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.hero-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}
.hero h1 { color: #fff; font-size: 54px; margin-bottom: 18px; }
.hero .sub { font-size: 20px; opacity: .9; margin-bottom: 32px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-phone {
  width: 280px; height: auto; border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  border: 6px solid rgba(255,255,255,.1);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; background: #4CAF50; border-radius: 50%;
                   box-shadow: 0 0 10px #4CAF50; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ══════ Cards ══════ */
.card {
  background: #fff; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* ══════ Feature cards ══════ */
.feature {
  background: #fff; border-radius: var(--radius);
  padding: 32px 28px; border: 1px solid var(--border);
  transition: all .2s; position: relative; overflow: hidden;
}
.feature::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 18px;
}
.feature h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary); }
.feature p  { font-size: 14px; color: var(--text-light); line-height: 1.75; }

/* ══════ Steps ══════ */
.step {
  background: #fff; border-radius: var(--radius);
  padding: 32px 26px; text-align: center;
  border: 1px solid var(--border); position: relative;
  transition: all .2s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff; font-size: 20px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: 0 8px 20px rgba(255,109,0,.35);
}
.step h4 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.step p { font-size: 14px; color: var(--text-light); }

/* ══════ CTA section ══════ */
.cta-section {
  background: var(--hero-gradient);
  color: #fff;
  border-radius: var(--radius); padding: 56px 40px;
  text-align: center; position: relative; overflow: hidden;
  margin: 40px 0;
}
.cta-section::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,109,0,.25), transparent 70%);
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 28px; }
.cta-section .ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ══════ Footer ══════ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 60px 24px 30px;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-gradient);
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid;
                grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand span { font-size: 20px; font-weight: 800; color: #fff; }
.footer-desc { font-size: 14px; line-height: 1.8; max-width: 340px; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: 14px;
                padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
                 border-top: 1px solid rgba(255,255,255,.08);
                 display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
                 font-size: 13px; color: rgba(255,255,255,.5); }

/* ══════ Badges ══════ */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px;
}
.badge-accent { background: rgba(255,109,0,.15); color: var(--accent); }
.badge-primary { background: rgba(13,71,161,.1); color: var(--primary); }
.badge-success { background: #E8F5E9; color: var(--success); }

/* ══════ Skeleton ══════ */
.skeleton {
  background: linear-gradient(90deg, #ECEFF1 0%, #F5F7FA 50%, #ECEFF1 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% {background-position: 200% 0} 100% {background-position: -200% 0} }

/* ══════ Accordion (for FAQ) ══════ */
.accordion-item {
  background: #fff; border-radius: var(--radius-sm);
  border: 1px solid var(--border); margin-bottom: 12px;
  overflow: hidden;
}
.accordion-q {
  padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--primary);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; background: #fff; border: 0; width: 100%;
  text-align: inherit; font-family: inherit;
}
.accordion-q::after {
  content: '+'; font-size: 24px; color: var(--accent); font-weight: 400;
  transition: transform .2s;
}
.accordion-item.open .accordion-q::after { transform: rotate(45deg); }
.accordion-a {
  max-height: 0; overflow: hidden; transition: max-height .3s;
  padding: 0 22px; color: var(--text-light); font-size: 14px;
}
.accordion-item.open .accordion-a { max-height: 400px; padding: 0 22px 20px; }

/* ══════ Form ══════ */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600;
                     color: var(--text); margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit;
  background: #fff; transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--primary-light);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* ══════ Mobile ══════ */
@media (max-width: 860px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .hero { padding: 50px 20px 70px; }
  .hero h1 { font-size: 36px; }
  .hero .sub { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-phone { width: 220px; margin: 0 auto; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
               background: var(--dark); flex-direction: column; padding: 20px;
               gap: 14px; border-top: 1px solid rgba(255,255,255,.05); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .cta-section { padding: 40px 24px; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
