/* ============ Reset & Base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
  background: #f5f6f8;
  color: #1a1f2c;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ============ Color Palette (FILPA SOLGI) ============ */
:root {
  --filpa-red: #c9202b;
  --filpa-red-dark: #a01620;
  --solgi-blue: #1a4fb0;
  --solgi-blue-dark: #103a85;
  --dark: #11151c;
  --dark-2: #1c2230;
  --gray-bg: #f5f6f8;
  --line: #e3e6ec;
  --muted: #6b7280;
  --wa-green: #25d366;
}

/* ============ Top Bar ============ */
.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  border-bottom: 1px solid #000;
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding: 10px 24px;
}
.top-bar-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-bar-info span { color: #d8dde7; }
.tb-main-phone { font-weight: 700; color: #fff; }
.tb-main-phone:hover { color: var(--filpa-red); }
.btn-whatsapp-mini {
  background: var(--wa-green);
  color: #fff !important;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s;
}
.btn-whatsapp-mini:hover { background: #1ebe5a; }
.top-bar-social { display: flex; gap: 6px; flex-wrap: wrap; }
.soc-icon {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2a303d;
  letter-spacing: .3px;
}
.soc-ig { color: #e1306c; }
.soc-tg { color: #2aabee; }
.soc-fb { color: #1877f2; }
.soc-rb { color: #fa3434; }
.soc-ei { color: #ff8a00; }
.soc-bl { color: #008cff; }

/* ============ Header ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 19px; color: var(--solgi-blue); }
.brand-text span { font-size: 12px; color: var(--muted); }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  border-radius: 8px;
  color: var(--dark-2);
  transition: all .2s;
  font-size: 14px;
}
.main-nav a:hover, .main-nav a.active { background: var(--gray-bg); color: var(--filpa-red); }
.header-cta { padding: 10px 20px; font-size: 14px; }
.mobile-toggle {
  display: none;
  background: var(--dark); color: #fff;
  border: 0; padding: 10px 14px;
  border-radius: 8px; font-size: 18px; cursor: pointer;
}
.mobile-nav { display: none; background: var(--dark); }
.mobile-nav ul { padding: 10px 24px; }
.mobile-nav a {
  display: block; padding: 12px 4px; color: #fff;
  border-bottom: 1px solid #2a303d;
  font-weight: 600;
}
.mobile-nav.open { display: block; }

/* ============ Buttons ============ */
.btn-primary {
  display: inline-block;
  background: var(--filpa-red);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .2s;
  border: 2px solid var(--filpa-red);
}
.btn-primary:hover { background: var(--filpa-red-dark); border-color: var(--filpa-red-dark); transform: translateY(-2px); }
.btn-whatsapp {
  display: inline-block;
  background: var(--wa-green);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, transform .2s;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid #fff;
  transition: background .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(circle at 80% 0%, rgba(201,32,43,.18), transparent 40%),
    radial-gradient(circle at 20% 100%, rgba(26,79,176,.20), transparent 40%),
    linear-gradient(135deg, #11151c 0%, #1c2230 100%);
  color: #fff;
  padding: 80px 0 90px;
}
.hero-inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(201,32,43,.18);
  color: #ff6373;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(201,32,43,.35);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 18px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--filpa-red); }
.hero p { color: #d8dde7; font-size: 16px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 38px;
}
.hero-stats li {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  padding: 18px; border-radius: 12px;
  text-align: center;
}
.hero-stats strong { display: block; font-size: 28px; color: var(--filpa-red); }
.hero-stats span { color: #d8dde7; font-size: 13px; }
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.hero-card img { max-width: 220px; margin: 0 auto 12px; }
.hero-card p { color: #c9d0db; font-size: 13px; }

/* ============ Sections ============ */
section { padding: 70px 0; }
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.kicker {
  display: inline-block;
  background: rgba(26,79,176,.10);
  color: var(--solgi-blue);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 32px; font-weight: 800; color: var(--dark);
}
.section-desc {
  max-width: 640px; margin: 12px auto 0; color: var(--muted);
}

/* ============ Features ============ */
.features { background: #fff; }
.feature-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  padding: 28px 22px; border-radius: 14px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(17,21,28,.08);
  border-color: var(--filpa-red);
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--filpa-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--dark); }
.feature-card p { color: var(--muted); font-size: 14px; }

/* ============ Products Highlight ============ */
.products-highlight { background: var(--gray-bg); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(17,21,28,.08);
  border-color: var(--solgi-blue);
}
.product-card .product-img {
  height: 180px;
  background: linear-gradient(135deg, #1c2230 0%, #2a3142 100%);
  position: relative;
}
.product-card .product-img::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(201,32,43,.25), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(26,79,176,.25), transparent 50%);
}
.product-card h3 {
  font-size: 17px; padding: 18px 18px 4px; color: var(--dark);
}
.product-card .spec {
  display: block; padding: 0 18px 18px;
  color: var(--solgi-blue); font-size: 13px; font-weight: 700;
}
.center-cta { text-align: center; margin-top: 36px; }

/* ============ Locations ============ */
.locations { background: #fff; }
.location-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.loc-card {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  padding: 28px; border-radius: 14px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.loc-card:hover { border-color: var(--solgi-blue); transform: translateY(-3px); }
.loc-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--solgi-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 14px;
}
.loc-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--dark); }
.loc-card p { color: var(--muted); font-size: 14px; min-height: 50px; }
.loc-tag {
  display: inline-block; margin-top: 8px;
  background: rgba(26,79,176,.10); color: var(--solgi-blue);
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}

/* ============ CTA ============ */
.contact-cta {
  background: linear-gradient(135deg, var(--filpa-red) 0%, var(--filpa-red-dark) 100%);
  color: #fff; padding: 50px 0;
}
.cta-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.contact-cta h2 { font-size: 26px; margin-bottom: 6px; }
.contact-cta p { color: #ffd6d9; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Footer ============ */
.site-footer {
  background: var(--dark);
  color: #c9d0db;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr 1.3fr;
  gap: 24px;
}
.footer-col h4 {
  color: #fff; font-size: 15px; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid #2a303d;
}
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.footer-col ul li a:hover { color: var(--filpa-red); }
.footer-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.footer-brand img { height: 44px; }
.footer-brand h3 { color: #fff; font-size: 17px; }
.footer-addr li, .footer-contact li { line-height: 1.9; }
.footer-contact .primary-label {
  display: block; color: var(--filpa-red);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  margin-top: 4px;
}
.footer-contact a { font-weight: 600; }
.wa-mini {
  display: inline-block; margin-top: 4px;
  background: var(--wa-green); color: #fff !important;
  padding: 3px 10px; border-radius: 999px; font-size: 12px;
}
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.soc-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1c2230;
  font-size: 13px; font-weight: 600;
  border: 1px solid #2a303d;
  transition: all .2s;
}
.soc-card:hover { background: #2a3142; transform: translateX(-3px); }
.soc-emoji { font-size: 18px; }
.muted { color: #8a93a6; font-size: 12px; margin-bottom: 10px; }
.footer-bottom {
  text-align: center; padding: 20px 0; margin-top: 30px;
  border-top: 1px solid #2a303d; font-size: 12px;
}

/* ============ Floating WhatsApp ============ */
.wa-float {
  position: fixed; bottom: 24px; left: 24px;
  width: 56px; height: 56px;
  background: var(--wa-green); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  z-index: 100;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ============ Page Hero ============ */
.page-hero {
  background: linear-gradient(135deg, #11151c 0%, #1c2230 100%);
  color: #fff; padding: 60px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 36px; margin: 6px 0 12px; font-weight: 800;
}
.page-hero p { color: #d8dde7; max-width: 600px; margin: 0 auto; }

/* ============ About Page ============ */
.about-page { background: #fff; }
.about-inner {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 40px; align-items: start;
}
.about-inner h2 { color: var(--solgi-blue); font-size: 24px; margin-bottom: 14px; }
.about-inner p { margin-bottom: 12px; color: #3a4252; }
.about-pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.pillar {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 18px;
}
.pillar h3 { color: var(--filpa-red); font-size: 15px; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 13px; }

/* ============ Contact Page ============ */
.contact-page { background: var(--gray-bg); }
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px; padding: 22px;
}
.contact-card.highlight {
  background: linear-gradient(135deg, var(--solgi-blue) 0%, var(--solgi-blue-dark) 100%);
  color: #fff; border-color: transparent;
}
.contact-card h3 { font-size: 16px; margin-bottom: 10px; }
.contact-card.highlight h3 { color: #fff; }
.contact-card p { color: var(--muted); font-size: 14px; }
.contact-card.highlight p { color: #d8e1f3; }
.big-phone {
  display: block; font-size: 28px; font-weight: 800; color: #fff;
  margin: 6px 0 12px;
}
.phone-list { display: flex; flex-wrap: wrap; gap: 10px; }
.phone-list a {
  background: var(--gray-bg); padding: 8px 14px; border-radius: 8px;
  font-weight: 700; font-size: 14px; color: var(--dark);
  border: 1px solid var(--line);
  transition: all .2s;
}
.phone-list a:hover { background: var(--filpa-red); color: #fff; border-color: var(--filpa-red); }
.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.contact-form-card h3 { color: var(--solgi-blue); margin-bottom: 8px; font-size: 20px; }
.contact-form-card > p { color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--dark-2);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit; font-size: 14px;
  background: var(--gray-bg);
  transition: border-color .2s;
  direction: rtl;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--filpa-red);
  background: #fff;
}
.contact-form button { margin-top: 6px; cursor: pointer; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.contact-also { margin-top: 18px; text-align: center; }

/* ============ After Sales ============ */
.after-sales-page { background: #fff; }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.service-card {
  background: var(--gray-bg);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 28px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--filpa-red); transform: translateY(-3px); }
.service-icon {
  width: 64px; height: 64px; border-radius: 14px;
  background: var(--solgi-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 14px;
}
.service-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--dark); }
.service-card p { color: var(--muted); font-size: 14px; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: inline-block; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .section-head h2 { font-size: 24px; }
  .page-hero h1 { font-size: 26px; }
  .feature-grid, .product-grid, .about-pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .top-bar-info, .top-bar-social { font-size: 12px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats strong { font-size: 22px; }
  section { padding: 50px 0; }
}
