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

body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.8;
  direction: rtl;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 15px;
  flex-wrap: wrap;
}

.brand h1 {
  font-size: 1.3rem;
  color: #1e3a8a;
  font-weight: 800;
}

.brand p {
  font-size: 0.82rem;
  color: #64748b;
}

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

.menu a {
  padding: 8px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
}

.menu a:hover, .menu a.active {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
}

.btn-call {
  background: #16a34a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-call:hover {
  background: #15803d;
}

/* Hero Section */
.hero {
  padding: 55px 0;
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  color: #ffffff;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.hero .actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: #f59e0b;
  color: #111827;
}

.btn.primary:hover {
  background: #d97706;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn.rubika {
  background: #8b5cf6;
  color: #ffffff;
}

/* Common Section */
.section {
  padding: 50px 0;
}

.section-title {
  font-size: 1.55rem;
  color: #1e3a8a;
  margin-bottom: 10px;
  font-weight: 800;
}

.section-desc {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 0.98rem;
}

/* Card Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card .body {
  padding: 18px;
}

.card .body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.card .body p {
  font-size: 0.92rem;
  color: #475569;
}

/* Image Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.gallery figure {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.gallery img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.gallery figcaption {
  padding: 12px 14px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  background: #ffffff;
}

/* Contact Form */
.form-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.input-group label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e293b;
}

.input-group input, .input-group textarea, .input-group select {
  font-family: inherit;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.95rem;
  outline: none;
}

.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
  border-color: #0284c7;
}

.input-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 25px;
  margin-top: 40px;
}

.footer .cols {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.footer p {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.footer a {
  color: #38bdf8;
}

.small {
  border-top: 1px solid #334155;
  margin-top: 25px;
  padding-top: 15px;
  font-size: 0.85rem;
  text-align: center;
  color: #94a3b8;
}

/* Sticky Bottom Mobile Call */
.sticky-call {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #16a34a;
  text-align: center;
  padding: 14px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.sticky-call a {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: block;
}

@media(min-width: 768px) {
  .sticky-call {
    display: none;
  }
}
