:root {
  --green: #00cc00;
  --font-body: "Segoe UI", Arial, sans-serif;
}

/* ===== General Styles ===== */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

main {
  padding-bottom: 50px;
}

/* ===== Header Wrapper ===== */
.header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* ===== Header Layout ===== */
.top-bar, .middle-bar {
  background-color: #fff;
}

.top-content,
.middle-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== آدرس چپ و تلفن راست ===== */
.address {
  justify-content: flex-start;
}

.phone {
  justify-content: flex-end;
  text-align: right;
}

/* ===== لوگو سمت چپ ===== */
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box .logo {
  height: 70px;
}

.brand-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--green);
}

/* ===== منوی ناوبری سمت راست ===== */
.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: bold;
  color: black;
  font-size: 15px;
  transition: color 0.3s;
}

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

/* ===== Hero Section ===== */
.home-hero {
  background-image: url('../images/Background1.bmp');
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.home-hero h1 {
  color: var(--green);
  font-size: 2.8rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.home-hero p {
  font-size: 1.2rem;
}

/* ===== Content ===== */
.home-content {
  padding: 60px 20px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Contact/About Hero Shared Styles ===== */
.page-hero {
  position: relative;
  text-align: center;
  margin: 30px auto;
  max-width: 1000px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-hero img {
  width: 100%;
  height: 350px; /* ارتفاع ثابت برای هر دو صفحه */
  object-fit: cover;
  display: block;
}

.page-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* ===== About Page Styles ===== */
.about-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}


.about-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
}

.about-content {
  margin-top: 30px;
  padding: 0 20px 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

/* ===== Contact Info Grid ===== */
.contact-info-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 50px auto;
  max-width: 1100px;
}

.contact-card {
  background-color: #ffffff;
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 25px;
  width: 260px;
  box-shadow: 0 6px 18px rgba(0, 204, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 204, 0, 0.2);
}

.contact-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 15px;
  filter: invert(48%) sepia(99%) saturate(500%) hue-rotate(90deg) brightness(100%) contrast(95%);
}

.contact-card h3 {
  color: var(--green);
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-card p {
  margin: 4px 0;
  font-size: 14px;
  color: #444;
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

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

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

.submit-btn {
  background-color: var(--green);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #009900;
}

/* ===== Google Map ===== */
.map-container {
  margin-top: 40px;
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-main-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
}

.footer-columns {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column h3 {
  color: var(--green);
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-column ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: 70px;
  margin-bottom: 10px;
}

.footer-phone {
  color: var(--green);
  font-weight: bold;
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 15px;
  color: #888;
}

.footer-social {
  margin-top: 15px;
}

.footer-social a {
  display: inline-block;
  margin-right: 10px;
}

.footer-social .social-icon {
  width: 24px;
  height: 24px;
  transition: opacity 0.3s;
}

.footer-social .social-icon:hover {
  opacity: 0.7;
}

/* ===== Social Icons ===== */
.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.social-icon {
  width: 54px;
  height: auto;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}



/* ===== Responsive ===== */
@media (max-width: 768px) {
  .top-header .container,
  .middle-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .contact-info-grid {
    flex-direction: column;
    align-items: center;
  }

  .home-hero h1 {
    font-size: 2rem;
  }

  .home-hero p {
    font-size: 1rem;
  }

  .footer-main-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}
