/*
Theme Name: My Custom Theme
Author: Shima Rezai
Description: A custom WordPress theme built from Figma.
Version: 1.0
*/

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

html {
  direction: rtl;
}

body {
  font-family: 'Vazir', 'IRANSans', sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  color: #222222;
  font-weight: 700;
  margin-bottom: 15px;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 40px;
  background-color: #c40018;
  color: #ffffff;
  font-weight: 700;
  border-radius: 50px;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(196, 0, 24, 0.25);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background-color: #a50013;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(196, 0, 24, 0.35);
  color: #ffffff;
}

/* Header Styles */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.site-header--scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.logo-img {
  height: 70px;
  width: auto;
}

.main-nav .menu {
  display: flex;
  list-style: none;
  gap: 45px;
}

.main-nav .menu a {
  color: #333333;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav .menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background-color: #c40018;
  transition: width 0.3s ease;
}

.main-nav .menu a:hover {
  color: #c40018;
}

.main-nav .menu a:hover::after {
  width: 100%;
}

.header-contact .phone-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c40018;
  font-weight: 700;
  font-size: 18px;
  padding: 10px 20px;
  background-color: rgba(196, 0, 24, 0.1);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.header-contact .phone-link:hover {
  background-color: rgba(196, 0, 24, 0.2);
  transform: translateY(-3px);
}

.phone-icon {
  width: 26px;
  height: 26px;
}

/* Mobile Menu Toggle */
.mobile-menu__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-menu__toggle-bar {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero__section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 42, 120, 0.85) 0%, rgba(196, 0, 24, 0.75) 100%);
  z-index: -1;
}

.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero__content {
  flex: 0 0 50%;
  color: #ffffff;
}

.hero__title {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero__subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero__button {
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero__image {
  flex: 0 0 40%;
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.8s ease;
}

.hero__image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero__image-main {
  width: 100%;
  height: auto;
  display: block;
}

.hero__decorative {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.hero__decorative--red {
  width: 180px;
  height: 180px;
  background-color: rgba(196, 0, 24, 0.7);
  top: -40px;
  left: -40px;
  animation: float 6s ease-in-out infinite;
}

.hero__decorative--blue {
  width: 120px;
  height: 120px;
  background-color: rgba(30, 42, 120, 0.7);
  bottom: 30px;
  right: -30px;
  animation: float 8s ease-in-out infinite 1s;
}

/* About Section */
.about__section {
  padding: 120px 0;
  background-color: #f8f8f8;
  position: relative;
  overflow: hidden;
}

.about__section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/sth-blue.svg');
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  opacity: 0.05;
  z-index: 0;
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.about__content {
  flex: 0 0 48%;
}

.about__title {
  font-size: 42px;
  margin-bottom: 30px;
  color: #1e2a78;
  position: relative;
  font-weight: 800;
}

.about__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #c40018;
  margin: 20px 0 0;
  border-radius: 2px;
}

.about__description {
  font-size: 18px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 30px;
}

.about__features {
  margin-bottom: 40px;
}

.about__features-list {
  list-style: none;
  padding: 0;
}

.about__feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
}

.about__feature-icon {
  margin-left: 15px;
  flex-shrink: 0;
}

.about__manager-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  display: inline-block;
}

.about__manager-info {
  display: flex;
  align-items: center;
}

.about__manager-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  flex-shrink: 0;
}

.about__manager-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1e2a78;
}

.about__manager-position {
  font-size: 14px;
  color: #777777;
}

.about__image {
  flex: 0 0 45%;
}

.about__image-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(5deg);
  transition: transform 0.8s ease;
}

.about__image-container:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.about__image img {
  width: 100%;
  height: 15rem;
  display: block;
  object-fit: cover;
}

/* Products Section */
.products__section {
  padding: 120px 0;
  background-color: #ffffff;
}

.products__title {
  text-align: center;
  font-size: 44px;
  margin-bottom: 70px;
  color: #222222;
  position: relative;
  font-weight: 800;
}

.products__title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #c40018;
  margin: 20px auto 0;
  border-radius: 2px;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.product__card {
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product__card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product__image {
  height: 220px;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

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

.product__title {
  font-size: 22px;
  padding: 25px 25px 15px;
  color: #1e2a78;
  font-weight: 700;
  text-align: center;
}

.product__features {
  padding: 0 25px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product__features-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 0;
  transition: background-color 0.3s ease;
}

.product__features-header:hover {
  background-color: #f0f0f0;
}

.product__features-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.product__features-arrow--active {
  transform: rotate(180deg);
}

.product__features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.product__features-list--active {
  max-height: 300px;
  padding: 15px 0;
}

.product__feature-item {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #555555;
}

.product__feature-item:last-child {
  border-bottom: none;
}

.product__actions {
  padding: 25px;
  text-align: center;
}

.product__button {
  width: 100%;
}

/* Catalog CTA Section */
.catalog__cta {
  padding: 120px 0;
  background: linear-gradient(135deg, #c40018 0%, #1e2a78 100%);
  position: relative;
  overflow: hidden;
}

.catalog__cta::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  opacity: 0.05;
  z-index: 0;
}

.catalog__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.catalog__content {
  flex: 0 0 48%;
  color: #ffffff;
}

.catalog__title {
  font-size: 42px;
  margin-bottom: 25px;
  font-weight: 800;
}

.catalog__subtitle {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.9;
}

.catalog__button {
  background-color: #ffffff;
  color: #c40018;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.25);
}

.catalog__button:hover {
  background-color: #f8f8f8;
  color: #a50013;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
}

.catalog__image {
  flex: 0 0 45%;
  animation: float 6s ease-in-out infinite;
}

.catalog__image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}



/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero__content {
    flex: 0 0 100%;
    margin-bottom: 50px;
  }
  
  .hero__image {
    flex: 0 0 80%;
  }
  
  .hero__title {
    font-size: 42px;
  }
  
  .about__container {
    flex-direction: column;
  }
  
  .about__content, .about__image {
    flex: 0 0 100%;
  }
  
  .about__image {
    margin-top: 40px;
  }
  
  .catalog__container {
    flex-direction: column;
  }
  
  .catalog__content, .catalog__image {
    flex: 0 0 100%;
  }
  
  .catalog__image {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  
  .mobile-menu__toggle {
    display: flex;
  }
  
  .main-nav.mobile-menu__active {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
  }
  
  .main-nav.mobile-menu__active .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .hero__title {
    font-size: 36px;
  }
  
  .hero__subtitle {
    font-size: 18px;
  }
  
  .products__grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .hero__section {
    padding: 80px 0;
  }
  
  .hero__title {
    font-size: 30px;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .about__section, .products__section, .catalog__cta {
    padding: 80px 0;
  }
  
  .about__title, .catalog__title {
    font-size: 32px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
