@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

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

:root {
  --primary: #1a5276;
  --primary-dark: #0e3450;
  --primary-light: #2980b9;
  --accent: #c0392b;
  --accent-gold: #b7950b;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --bg: #fafafa;
  --bg-alt: #ecf0f1;
  --white: #ffffff;
  --border: #d5dbdb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 6px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

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

address {
  font-style: normal;
  line-height: 2;
}

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.license {
  background: rgba(255,255,255,0.1);
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 11px;
}

/* Header */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 52px;
  height: 52px;
  color: var(--primary);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-name {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.logo-tagline {
  display: block;
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 400;
}

.main-nav {
  display: flex;
  gap: 6px;
}

.main-nav a {
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: var(--white);
}

/* Notice Banner */
.notice-banner {
  background: linear-gradient(90deg, #f39c12, #e67e22);
  color: var(--white);
  padding: 12px 0;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
}

.notice-banner p {
  margin: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 480px;
  background: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1400&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,52,80,0.88) 0%, rgba(26,82,118,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 60px 20px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero h1 span {
  color: #f1c40f;
  font-weight: 600;
}

.hero-content > p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f1c40f;
}

.stat span {
  font-size: 13px;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 14px;
}

.text-center {
  text-align: center;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Tours */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.tour-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.tour-card:hover {
  transform: translateY(-3px);
}

.tour-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
}

.tour-body {
  padding: 22px;
}

.tour-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.tour-body h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.tour-body > p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.tour-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.tour-price {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.tour-status {
  display: block;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 3px;
  text-align: center;
  background: #fadbd8;
  color: #922b21;
}

.tour-status.available {
  background: #d5f5e3;
  color: #1e8449;
}

/* News */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border-right: 4px solid var(--primary);
}

.news-item time {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 6px;
}

.news-item h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.news-item p {
  font-size: 13.5px;
  color: var(--text-light);
}

/* Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cert-item {
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.cert-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cert-item h4 {
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.cert-item p {
  font-size: 12px;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.85;
  font-size: 14px;
}

.breadcrumb {
  font-size: 13px;
  margin-top: 12px;
  opacity: 0.7;
}

.breadcrumb a {
  color: rgba(255,255,255,0.9);
}

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

.about-text h2 {
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 14.5px;
}

.about-image {
  height: 350px;
  background: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=700&q=80') center/cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  filter: saturate(0.9);
}

.timeline {
  margin-top: 40px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.timeline-year {
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  height: fit-content;
}

.timeline-content h4 {
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 13.5px;
  color: var(--text-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.team-member {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-alt);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--primary);
}

.team-member h4 {
  color: var(--primary-dark);
  font-size: 14px;
}

.team-member p {
  font-size: 12px;
  color: var(--text-light);
}

/* Tours Page */
.tour-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.address-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-right: 4px solid var(--primary);
}

.address-card h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-card .badge {
  font-size: 10px;
  background: var(--accent-gold);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
}

.address-card address,
.address-card p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 2;
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-disabled-notice {
  background: #fdebd0;
  color: #7d6608;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.map-placeholder {
  background: var(--bg-alt);
  height: 300px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  border: 2px dashed var(--border);
  margin-top: 30px;
  flex-direction: column;
  gap: 8px;
}

.map-placeholder span {
  font-size: 3rem;
  opacity: 0.4;
}

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

.gallery-item {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: default;
  filter: saturate(0.8);
}

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 30px 16px 12px;
  font-size: 13px;
}

/* Footer */
.main-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}

.footer-col p,
.footer-col address {
  font-size: 13px;
  line-height: 2;
  opacity: 0.85;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

.footer-col ul a:hover {
  color: #f1c40f;
}

.social-links {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

.social-links span {
  font-size: 1.4rem;
  cursor: default;
  opacity: 0.7;
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
}

.footer-bottom p {
  opacity: 0.7;
  margin: 4px 0;
}

.last-update {
  font-size: 11px !important;
  opacity: 0.5 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav a {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
}
