/* ==========================================
   1. GLOBAL & RESET STYLES
   ========================================== */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

:where(.wp-site-blocks) > * {
  margin-block-start: 0 !important;
}

/* ==========================================
   2. SCROLLABLE & STICKY SECTIONS (P1 - P4)
   ========================================== */
/* Section 1 */
.scrollable-main-content {
  position: relative;
  height: 300vh;
  background-color: #f5f5f7;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}

.sticky-box,
.p3-sticky-box,
.p4-sticky-box {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.p3-sticky-box {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.image-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  will-change: transform;
}

.image-box img,
.p2-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-box {
  position: absolute;
  width: min(38%, 450px);
  opacity: 0;
  z-index: 2;
}

.content-left {
  left: 8%;
  transform: translateX(-50px);
}

.content-right {
  right: 8%;
  transform: translateX(50px);
}

.text-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Section 2 */
.content-box-2 {
  position: absolute;
  width: min(90vw, 1000px);
  z-index: 3;
  will-change: transform, width;
}

#p2-text {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 60px;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
  text-align: left;
  width: auto;
  height: 75%;
  transition: none;

}

.p2-image {
  position: absolute;
  width: 25%;
  height: 80vh;
  opacity: 0;
  z-index: 2;
  border-radius: 44px;
  overflow: hidden;
  will-change: transform, opacity;
}

.p2-image img {
  object-position: center 20%;
}

.p2-contact-btn {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important; 
  justify-content: flex-start !important;
  margin-top: 20px !important;
  flex-wrap: wrap !important;
}

.p2-contact-btn div {
  padding-inline: 10px;
}
.content-box-2 .p2-text-card ul li p {
 white-space: normal; 
  word-break: keep-all; 
  line-height: 1.6;

  font-size: 0.95rem; /* کمی کوچک‌تر کردن فونت جهت جا شدن بهتر */
  line-height: 1.4;   /* فشرده‌تر کردن فاصله بین خطوط */
  margin: 0 !important;
}

.p2-text-card {
  padding: 24px !important; /* کاهش پدینگ داخلی card */
}
.wp-block-buttons.p2-contact-btn .p2-btn-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.content-box-2 ul {
  margin: 10px 0 !important;
  padding-right: 20px !important;
}

.content-box-2 ul li {
  margin-bottom: 6px !important; /* کاهش فاصله بین آیتم‌های لیست */
}

/* Section 3 */
.p3-scrollable {
  position: relative;
  height: 180vh;
  background-color: #f5f5f7;
  width: 100vw;
}

.p3-section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.reveal-image-wrapper {
  width: 100%;
  height: 65vh;
  border-radius: 20px;
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  will-change: clip-path;
}

.reveal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.bottom-text-box {
  margin-top: 30px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.bottom-text-box h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.bottom-text-box p {
  font-size: 18px;
  color: #86868b;
  max-width: 600px;
}

/* Section 4 */
.p4-scrollable {
  position: relative;
  height: 220vh;
  background-color: #ffffff;
  width: 100vw !important;
  left: 50% !important;
  margin-left: -50vw !important;
}

.trust-section {
  width: 100%;
  max-width: 1200px;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-title {
  font-size: 42px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 10px 0;
}

.trust-subtitle {
  font-size: 18px;
  color: #86868b;
  margin-bottom: 50px;
}

.trust-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.trust-logo-item {
  width: 100%;
  height: 120px;
  background: #f5f5f7;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.3);
  will-change: transform, opacity;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.trust-logo-item:hover img {
  filter: grayscale(0%);
}

.trust-logo-item:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px) scale(1.03) !important;
}

/* ==========================================
   3. COMPONENTS & FORM SECTIONS
   ========================================== */
.subscribe {
  margin: 2% 10%;
  display: flex;
  align-items: center;
  gap: 50px;
}

.subscribe p {
  margin: 0;
  white-space: nowrap;
}

.service-main {
  position: relative;
  width: 100%;
  max-width: 70%;
  min-height: 250px;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  margin: 0 auto;
}

.service-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://aureatextilia.com/wp-content/uploads/2026/08/bg-services.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
  border-radius: inherit;
}

.service-main h3,
.service-main p {
  padding: 3%;
  margin: 2% auto;
  text-align: center;
}

.brochure-form {
  width: min(100%, 600px);
  padding: 20px;
  margin: 0 auto;
}

.about-main {
  position: relative;
  width: 100%;
  max-width: 80%;
  min-height: 400px;
  padding: 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  margin: 0 auto;
}

.about-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://aureatextilia.com/wp-content/uploads/2026/08/bg-contact.webp');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: cover;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

.about-main > * {
  position: relative;
  z-index: 2;
}

.about-main h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.about-main p {
  font-size: 16px;
  color: #86868b;
  margin-bottom: 24px;
}

/* Company Details Table */
.company-details-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  overflow-x: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.company-details-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e5e7;
}

.company-details-table th,
.company-details-table td {
  padding: 16px 20px;
  text-align: left;
}

.company-details-table th {
  background-color: #f5f5f7;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid #e5e5e7;
}

.company-details-table td {
  font-size: 14px;
  color: #424245;
  border-bottom: 1px solid #f0f0f2;
}

.company-details-table tr:last-child td {
  border-bottom: none;
}

.company-details-table tr:nth-child(even) {
  background-color: #fafafa;
}

.company-details-table tr:hover {
  background-color: #f0f4f8;
  transition: background-color 0.2s ease;
}

/* Contact Section */
.contact-main {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact-content {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.contact-form-body {
  display: flex;
  justify-content: center;
  padding: 10px 20px;
  background-color: #f5f5f7;
}

.contact-form {
  margin: 0 auto;
  padding: 20px 40px;
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.contact-info {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-badge {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #86868b;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-info h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 12px 0;
}

.contact-desc {
  font-size: 15px;
  color: #515154;
  line-height: 1.5;
  margin-bottom: 30px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #1d1d1f;
}

.info-item svg {
  color: #0066cc;
}

.info-item a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.info-item a:hover {
  text-decoration: underline;
}

.contact-map {
  flex: 1;
  min-height: 320px;
}

/* Legal Container */
.legal-container{
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.legal-card {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.legal-badge {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #86868b;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.legal-card h1 {
  font-size: 36px;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 6px 0;
}

.legal-updated {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 40px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 20px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 15px;
  color: #515154;
  line-height: 1.6;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.legal-section li {
  font-size: 15px;
  color: #1d1d1f;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.legal-section a {
  color: #0066cc;
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Submenu Overrides */
ul.wp-block-navigation__submenu-container {
  background-color: #c5a059 !important;
  border-radius: 12px !important;
  width: max-content !important;
  min-width: auto !important;
  max-width: none !important;
  padding: 8px 0 !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
}

ul.wp-block-navigation__submenu-container li.wp-block-navigation-item {
  width: 100% !important;
}

ul.wp-block-navigation__submenu-container a.wp-block-navigation-item__content {
  white-space: nowrap !important;
  padding: 8px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #000000 !important;
}

ul.wp-block-navigation__submenu-container a.wp-block-navigation-item__content:hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
}
.small-intro {
  background-image: url('https://aureatextilia.com/wp-content/uploads/2026/08/bg-services.webp');
 
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow: hidden; 
  font-family: system-ui, -apple-system, sans-serif;
}


.main-card {
  width: 100%;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  margin-bottom: 30px;
  
  
  animation: slideInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.main-card h3 {
  font-size: 1.8rem;
  line-height: 1.4;
  color: #2c3e50;
  margin-top: 0;
}

.main-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  margin: 20px 0 30px 0;
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.btn-primary {
  background-color: #1a1a1a;
  color: #ffffff;
}

.btn-secondary {
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  background-color: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.italic {
  font-style: italic;
  color: #777;
  font-weight: 400;
  margin-bottom: 0;
}


.sub-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.sub-card {
  background-color: #ffffff;
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  opacity: 0; 
  
  
  animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}


.sub-card.delay-1 { animation-delay: 0.3s; }
.sub-card.delay-2 { animation-delay: 0.5s; }
.sub-card.delay-3 { animation-delay: 0.7s; }

.sub-card h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-top: 0;
  margin-bottom: 12px;
}

.sub-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}


@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================
   4. MOBILE OPTIMIZATIONS (< 768px)
   ========================================== */
@media (max-width: 768px) {
  .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay){

    background: none;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  }
  .wp-block-navigation__responsive-container.is-menu-open:where(:not(.disable-default-overlay)) .wp-block-navigation__responsive-container-content{
    align-items:center;
  } 
  /* Scroll Sections Adjustments */
  .content-box {
    width: 90%;
    left: 5% !important;
    right: 5% !important;
  }

  .text-card {
    padding: 20px;
  }

  #p2-text {
    background: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 30px 20px;
  }

#p2-image {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
  }

  .reveal-image-wrapper {
    height: 40vh;
  }

  .bottom-text-box h3 {
    font-size: 22px;
  }

  .bottom-text-box p {
    font-size: 15px;
  }

  /* Grid & Layout Adjustments */
  .trust-title {
    font-size: 28px;
  }

  .trust-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .trust-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .trust-logo-item {
    height: 90px;
    padding: 10px;
  }

  /* Components Responsive */
  .subscribe {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px 5%;
    gap: 15px;
  }

  .subscribe p {
    white-space: normal;
  }

  .service-main,
  .about-main {
    max-width: 95%;
    padding: 24px 16px;
  }

  .brochure-form {
    width: 100%;
    padding: 10px 0;
  }

  .contact-main,
  .contact-form-body,
  .legal-container {
    padding: 30px 10px;
  }

  .contact-content {
    flex-direction: column;
  }

  .contact-form {
    padding: 20px;
    width: 100%;
  }

  .contact-info {
    padding: 20px;
  }

  .contact-map {
    height: 250px;
    min-height: auto;
  }

  .legal-card {
    padding: 25px 15px;
  }

  .legal-card h1 {
    font-size: 26px;
  }
  .sub-cards-container {
    grid-template-columns: 1fr; 
  }

  .main-card {
    padding: 25px 20px;
  }

  .main-card h3 {
    font-size: 1.4rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    box-sizing: border-box;
  }
}