/* ============================================
   CRITICAL CSS - Above the fold styles only
   Optimized for performance and CLS prevention
   ============================================ */

/* ---- FONT FACE ---- */
@font-face {
  font-family: 'IRANSansX';
  src: url('/assets/fonts/1-IranSansWeb/IRANSansWeb.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

/* ---- BASE RESETS ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: url('/images/background/bg_img.webp') center center / cover fixed;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body {
  font-family: 'IRANSansWeb', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  direction: rtl;
  margin: 0;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

#bg {
  background: transparent;
}

/* ---- PAGE STRUCTURE ---- */
.page-wraper {
  min-height: 100vh;
  position: relative;
  overflow: visible;
  height: auto;
}

/* ---- CONTAINER & GRID ---- */
.container, .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-lg-8 {
  flex: 0 0 66.667%;
  max-width: 66.667%;
  padding: 0 15px;
}

.col-lg-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}

.align-items-center {
  align-items: center;
}

.h-100 {
  height: 100%;
}

/* ---- HEADER STYLES ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 72px;
  width: 100%;
}

.main-bar {
  padding: 10px 0;
  min-height: 72px;
}

.main-bar-wraper {
  width: 100%;
}

.inner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-header img {
  height: 60px;
  width: auto;
  max-height: none;
  display: block;
  aspect-ratio: auto;
}

.toggler1, .navicon {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  width: 30px;
  height: 25px;
  cursor: pointer;
  gap: 4px;
}

.toggler1 span, .navicon span {
  width: 100%;
  height: 3px;
  background: #333;
  transition: 0.3s ease;
}

/* ---- NAVIGATION ---- */
.header-nav {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.navbar-nav li {
  margin: 0;
}

.navbar-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease;
  display: inline-block;
}

.navbar-nav a:hover {
  color: #667eea;
}

/* ---- HERO BANNER ---- */
.hero-banner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  margin-top: 72px;
}

.hero-banner-section {
  background-image: url('/images/hero-banner/img1.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll;
  position: relative;
  min-height: 70vh;
}

@media (max-width: 768px) {
  .hero-banner-section {
    min-height: 40vh !important;
  }
  
  .hero-banner-section .row {
    min-height: 40vh !important;
  }
}

.dz-bnr-inr {
  background-image: url('/images/banner/bnr1.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll;
  position: relative;
}

.overlay-black-middle {
  background-color: rgba(6, 10, 20, 0.6) !important;
  background-blend-mode: normal !important;
}

.dz-bnr-inr-md {
  min-height: 400px;
}

.dz-bnr-inr-entry {
  display: table-cell;
  vertical-align: middle;
  padding: 60px 0;
}

.inner-wrapper {
  width: 100%;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-content .title {
  font-size: 50px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.content-bx.style-2 {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1;
  text-align: center;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd8;
  transform: translateY(-2px);
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-square {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-white {
  background: white;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-shadow {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-rounded {
  border-radius: 50px;
}

/* ---- AVATAR GROUP ---- */
.avatar-group {
  display: flex;
  align-items: center;
  margin-right: 50px;
  gap: -10px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  position: relative;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.avatar-lg {
  width: 60px;
  height: 60px;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* ---- RATING WIDGET ---- */
.item1 {
  position: absolute;
  bottom: 100px;
  left: 50px;
  z-index: 3;
}

.widget-rating1, .widget-rating3 {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.star-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.star-list li {
  color: #ffa500;
  font-size: 14px;
}

.rating {
  font-weight: 600;
  color: #667eea;
}

.text {
  color: #666;
  font-size: 14px;
}

/* ---- INSTAGRAM ITEM ---- */
.item5 {
  position: absolute;
  top: 50px;
  left: -50px;
  z-index: 2;
}

.word-rotate-box {
  background: white;
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.word-rotate-box img {
  width: 30px;
  height: 30px;
}

/* ---- SOCIAL VERTICAL ---- */
.vertical-info.left {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-list li {
  margin: 20px 0;
}

.social-list a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.social-list a:hover {
  color: #667eea;
}

.social-list img {
  width: 20px;
  height: 20px;
}

/* ---- IMAGE OPTIMIZATION ---- */
img[alt="درباره مرکز زیبایی دکتر مرجان خلیلی"],
img[src*="/images/about/img1.webp"] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 530 / 505;
  object-fit: cover;
}

/* ---- CONTENT INNER ---- */
.content-inner {
  padding: 60px 0;
}

.content-inner-1 {
  padding: 40px 0;
}

.section-head {
  margin-bottom: 30px;
}

.section-head.style-1 h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 15px;
}

/* ---- FAQ & ACCORDION ---- */
.faq-answer,
.faq-item .answer,
.accordion-body,
.accordion-collapse.show,
.collapse.show {
  color: #00FFD5 !important;
}

/* ---- FORM STYLES ---- */
.form-control {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

/* ---- UTILITIES ---- */
.m-b15 {
  margin-bottom: 15px;
}

.m-b20 {
  margin-bottom: 20px;
}

.m-b30 {
  margin-bottom: 30px;
}

.m-b40 {
  margin-bottom: 40px;
}

.m-r20 {
  margin-right: 20px;
}

.p-4 {
  padding: 20px;
}

.ps-4 {
  padding-left: 20px;
}

.mb-4 {
  margin-bottom: 20px;
}

.ms-2 {
  margin-left: 8px;
}

.me-2 {
  margin-right: 8px;
}

.gap {
  gap: 15px;
}

.text-center {
  text-align: center;
}

.text-white {
  color: white;
}

.bg-white {
  background: white;
}

.bg-light {
  background: #f8f9fa;
}

.bg-primary {
  background: #667eea;
}

.border {
  border: 1px solid #ddd;
}

.border-secondary {
  border-color: #ccc !important;
}

.bg-transparent {
  background: transparent;
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1199px) {
  .navbar-nav {
    display: none;
  }
  
  .navicon {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-content .title {
    font-size: 28px !important;
  }
  
  .content-bx.style-2 {
    font-size: 16px;
  }
  
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-lg-8,
  .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .avatar-group {
    margin-right: 0;
    margin-top: 20px;
  }
  
  .item1 {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 20px;
  }
  
  .vertical-info.left {
    display: none;
  }
  
  .hero-banner {
    padding: 100px 0 60px;
  }
}

@media (max-width: 480px) {
  .hero-content .title {
    font-size: 24px !important;
  }
  
  .btn-lg {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .container, .container-fluid {
    padding: 0 10px;
  }
  
  .row {
    margin: 0 -10px;
  }
  
  .col-md-6,
  .col-lg-8,
  .col-lg-4,
  .col-12 {
    padding: 0 10px;
  }
}

/* ---- HIDE PRELOADER & OVERLAYS ---- */
.preloader,
#preloader,
.mm-ocd,
.overlay-menu {
  display: none !important;
}

/* ---- PREVENT LAYOUT SHIFT ---- */
html, body {
  height: auto !important;
  min-height: 100vh !important;
}

html.no-skrollr,
html.no-skrollr body {
    overflow-y:auto !important;
    overflow-x:hidden !important;
    height:auto !important;
    min-height:100vh !important;
}

/* ---- HERO one-image fix (global, except landing/about) ---- */
body:not(.page-home):not(.page-about) .dz-bnr-inr{
  background-repeat:no-repeat !important;
  background-size:cover !important;
  background-position:center !important;
  background-attachment:scroll !important;
}
body:not(.page-home):not(.page-about) .dz-bnr-inr .dz-media{
  display:none !important;
}
/* guard: never tile anywhere */
.dz-bnr-inr{ background-repeat:no-repeat !important; }

