/* ======================================================================
   ALYAF NEMOUNE — Premium Industrial Website
   Design System + All Sections
   Colors: Aqua #CAE9E6 · Gold #AA9164 · Dark #1A2B32
   ====================================================================== */

/* ---------- Local Fonts ---------- */

/* Inter Latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}

/* Outfit Latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/outfit-latin-700-normal.woff2') format('woff2');
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand */
  --aqua: #CAE9E6;
  --aqua-light: #E8F6F4;
  --aqua-dark: #9DC5C0;
  --gold: #AA9164;
  --gold-light: #C4AD84;
  --gold-dark: #8A7550;
  --gold-50: rgba(170, 145, 100, .08);
  --gold-100: rgba(170, 145, 100, .15);

  /* Neutrals */
  --dark: #1A2B32;
  --dark-700: #2A3E47;
  --dark-500: #4A6670;
  --dark-300: #7A9AA5;
  --gray-100: #F7F9FA;
  --gray-200: #EDF1F2;
  --gray-300: #D5DCDF;
  --gray-400: #9EA8AC;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-y: clamp(80px, 10vw, 140px);
  --container: min(1240px, 92vw);
  --gap: clamp(20px, 3vw, 40px);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Shadow */
  --shadow-card: 0 4px 24px rgba(26, 43, 50, .06), 0 1px 4px rgba(26, 43, 50, .04);
  --shadow-lg: 0 12px 48px rgba(26, 43, 50, .1), 0 2px 8px rgba(26, 43, 50, .04);
  --shadow-gold: 0 4px 24px rgba(170, 145, 100, .18);

  /* Transitions */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --duration: .4s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease-out);
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

/* ---------- Utility ---------- */
.container {
  width: var(--container);
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--dark-500);
  line-height: 1.7;
  max-width: 600px;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center !important;
  white-space: nowrap !important;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 60px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(170, 145, 100, .3);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .4);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* ======================================================================
   1. HEADER
   ====================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 clamp(24px, 4vw, 48px);
  transition: background var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    padding var(--duration) var(--ease-out);
}

.header.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(26, 43, 50, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.header.scrolled .header-inner {
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.logo-text span {
  font-size: 11px;
  color: var(--dark-300);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-500);
  border-radius: var(--radius-sm);
  transition: all .25s var(--ease-out);
  position: relative;
  white-space: nowrap !important;
}

.nav a:hover,
.nav a.active {
  color: var(--dark);
  background: var(--gold-50);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* Mega menu */
.nav-item {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .3s var(--ease-out);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.mega-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark-500);
}

.mega-menu a:hover {
  background: var(--aqua-light);
  color: var(--dark);
}

.mega-menu a .mega-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 60px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-500);
}

.lang-switcher a {
  padding: 4px 8px;
  border-radius: 20px;
  transition: all .2s;
}

.lang-switcher a.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.lang-switcher a:hover:not(.active) {
  color: var(--dark);
}

.header .btn-primary {
  padding: 10px 24px;
  font-size: 13px;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s var(--ease-out);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ======================================================================
   2. HERO
   ====================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(165deg, var(--white) 0%, var(--aqua-light) 45%, var(--aqua) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(202, 233, 230, .4) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  padding: clamp(40px, 5vw, 60px) 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  padding: 8px 18px;
  background: var(--gold-50);
  border-radius: 60px;
  border: 1px solid var(--gold-100);
}

.hero-label svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-title .highlight {
  color: var(--gold);
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  color: var(--dark-500);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 43, 50, .06);
  border-radius: 60px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-700);
}

.hero-spec-tag svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
}

.hero-desc {
  font-size: 15px;
  color: var(--dark-500);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-main {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.hero-image-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* Floating cards */
.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, .6);
  animation: float 6s ease-in-out infinite;
}

.hero-float-card .stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.hero-float-card .stat-label {
  font-size: 12px;
  color: var(--dark-300);
  font-weight: 500;
  line-height: 1.4;
  margin-top: 2px;
}

.hero-float-card .stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 16px;
}

.float-card-1 {
  top: 8%;
  right: -5%;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 22%;
  left: -8%;
  animation-delay: 2s;
}

.float-card-3 {
  bottom: 5%;
  right: 5%;
  animation-delay: 4s;
}

.float-card-4 {
  top: 35%;
  left: -12%;
  animation-delay: 1s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  pointer-events: none;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  top: -50px;
  right: -50px;
}

.hero-shape-2 {
  width: 180px;
  height: 180px;
  background: var(--aqua-dark);
  bottom: 60px;
  left: -40px;
}

/* ======================================================================
   3. TRUST METRICS
   ====================================================================== */
.trust-section {
  padding: var(--section-y) 0;
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.trust-card {
  padding: 36px 28px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.trust-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.trust-card:hover::before {
  transform: scaleX(1);
}

.trust-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--aqua-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--duration) var(--ease-out);
}

.trust-card:hover .trust-icon {
  background: var(--aqua);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--dark-500);
  stroke-width: 1.5;
  fill: none;
}

.trust-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--dark-300);
  line-height: 1.6;
}

/* ======================================================================
   4. ABOUT
   ====================================================================== */
.about-section {
  padding: var(--section-y) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.about-image-badge .badge-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.about-image-badge .badge-text {
  font-size: 13px;
  color: var(--dark-500);
  font-weight: 500;
  line-height: 1.4;
}

.about-content .section-label {
  margin-bottom: 16px;
}

.about-content .section-title {
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: var(--dark-500);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-700);
}

.about-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--dark-700);
  stroke-width: 2;
  fill: none;
}

/* Award ribbon */
.about-awards {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.about-award-img {
  width: 64px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  padding: 6px;
}

/* ======================================================================
   5. PRODUCTS
   ====================================================================== */
.products-section {
  padding: var(--section-y) 0;
  background: var(--aqua-light);
  position: relative;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(202, 233, 230, .5) 0%, transparent 60%);
  pointer-events: none;
}

.products-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  position: relative;
  z-index: 2;
}

.products-header .section-label {
  justify-content: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  position: relative;
  z-index: 2;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 43, 50, .04);
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

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

.product-card-image {
  height: 260px;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-image .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-radius: 60px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 28px;
}

.product-card-body h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.product-card-body p {
  font-size: 14px;
  color: var(--dark-300);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.product-spec {
  padding: 5px 12px;
  background: var(--gray-100);
  border-radius: 60px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark-500);
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  transition: gap .3s var(--ease-out);
}

.product-card:hover .product-card-link {
  gap: 14px;
}

.product-card-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
}

/* ======================================================================
   6. TECHNICAL CAPABILITIES
   ====================================================================== */
.tech-section {
  padding: var(--section-y) 0;
  background: var(--white);
}

.tech-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.tech-header .section-label {
  justify-content: center;
}

.denier-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
  position: relative;
  padding: 0 40px;
}

.denier-scale::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--gray-200);
  transform: translateY(-50%);
  border-radius: 2px;
  z-index: 0;
}

.denier-scale::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--aqua-dark), var(--gold));
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  border-radius: 2px;
  z-index: 1;
  animation: scaleIn 1.5s var(--ease-out) forwards;
  animation-play-state: paused;
}

.denier-scale.animate::after {
  animation-play-state: running;
}

@keyframes scaleIn {
  to {
    transform: translateY(-50%) scaleX(1);
  }
}

.denier-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.denier-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-300);
  transition: all .4s var(--ease-spring);
  transition-delay: calc(var(--i, 0) * .15s);
}

.denier-scale.animate .denier-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(170, 145, 100, .15);
}

.denier-value {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.denier-label {
  font-size: 12px;
  color: var(--dark-300);
  text-align: center;
}

.tech-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.tech-feature {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  transition: all var(--duration) var(--ease-out);
}

.tech-feature:hover {
  background: var(--aqua-light);
  transform: translateY(-4px);
}

.tech-feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.tech-feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.tech-feature h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.tech-feature p {
  font-size: 13px;
  color: var(--dark-300);
  line-height: 1.6;
}

/* ======================================================================
   7. APPLICATIONS
   ====================================================================== */
.applications-section {
  padding: var(--section-y) 0;
  background: var(--aqua-light);
}

.applications-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.applications-header .section-label {
  justify-content: center;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.application-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease-out);
  cursor: default;
}

.application-card:hover {
  border-color: var(--gold-100);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.application-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease-out);
}

.application-card:hover .application-icon {
  background: var(--gold);
  transform: scale(1.08);
}

.application-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--dark-700);
  stroke-width: 1.5;
  fill: none;
  transition: stroke var(--duration) var(--ease-out);
}

.application-card:hover .application-icon svg {
  stroke: var(--white);
}

.application-card span {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

/* ======================================================================
   8. QUALITY CONTROL
   ====================================================================== */
.quality-section {
  padding: var(--section-y) 0;
  background: var(--white);
}

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.quality-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.quality-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.quality-content .section-title {
  margin-bottom: 24px;
}

.quality-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quality-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease-out);
  border: 1px solid transparent;
}

.quality-item:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-card);
  transform: translateX(6px);
}

.quality-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration) var(--ease-out);
}

.quality-item:hover .quality-check {
  background: var(--gold);
}

.quality-check svg {
  width: 14px;
  height: 14px;
  stroke: var(--dark-700);
  stroke-width: 2.5;
  fill: none;
  transition: stroke var(--duration) var(--ease-out);
}

.quality-item:hover .quality-check svg {
  stroke: var(--white);
}

.quality-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-700);
}

/* ======================================================================
   9. SUSTAINABILITY
   ====================================================================== */
.sustainability-section {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, var(--aqua-light) 0%, var(--aqua) 100%);
  position: relative;
  overflow: hidden;
}

.sustainability-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .3) 0%, transparent 70%);
  pointer-events: none;
}

.sustainability-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.sustainability-inner .section-label {
  justify-content: center;
}

.sustainability-inner .section-title {
  margin-bottom: 20px;
}

.sustainability-inner .section-subtitle {
  margin: 0 auto 50px;
  text-align: center;
}

.sustainability-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  min-width: 160px;
  transition: all var(--duration) var(--ease-out);
}

.flow-step:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.flow-step-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--aqua);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--dark-700);
  stroke-width: 1.5;
  fill: none;
}

.flow-step span {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.flow-arrow {
  font-size: 24px;
  color: var(--dark-300);
  padding: 0 10px;
}

.sustainability-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--dark-500);
  line-height: 1.8;
}

/* ======================================================================
   10. EXPORT MARKETS
   ====================================================================== */
.export-section {
  padding: var(--section-y) 0;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.export-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(202, 233, 230, .08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(170, 145, 100, .06) 0%, transparent 40%);
  pointer-events: none;
}

.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.export-content .section-label {
  color: var(--aqua-dark);
}

.export-content .section-label::before {
  background: var(--aqua-dark);
}

.export-content .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.export-content p {
  color: rgba(255, 255, 255, .6);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.export-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.export-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 60px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  transition: all .3s var(--ease-out);
}

.export-country:hover {
  background: rgba(170, 145, 100, .15);
  border-color: var(--gold);
  color: var(--gold-light);
}

.export-country .country-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Map visual */
.export-map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-map svg {
  width: 100%;
  max-width: 500px;
  height: auto;
  opacity: .3;
}

.export-map .iran-map-outline {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  opacity: .78;
}

.map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(170, 145, 100, .3);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(170, 145, 100, .3);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(170, 145, 100, .1);
  }
}

/* Simplified map pins */
.map-pin-1 {
  top: 10%;
  left: 34%;
  animation-delay: 0s;
}

.map-pin-2 {
  top: 21%;
  left: 15%;
  animation-delay: .3s;
}

.map-pin-3 {
  top: 34%;
  left: 10%;
  animation-delay: .6s;
}

.map-pin-4 {
  top: 12%;
  left: 82%;
  animation-delay: .9s;
}

.map-pin-5 {
  top: 40%;
  left: 90%;
  animation-delay: 1.2s;
}
.map-pin-6 { top: 28%; left: 19%; animation-delay: 1.5s; }
.map-pin-7 { top: 28%; left: 92%; animation-delay: 1.8s; }
.map-pin-8 { top: 67%; left: 10%; animation-delay: 2.1s; }
.map-pin-9 { top: 74%; left: 88%; animation-delay: 2.4s; }

/* ======================================================================
   10.5. OUR TEAM
   ====================================================================== */
.team-section {
  padding: var(--section-y) 0;
  background: var(--dark-900);
}

.team-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.team-info {
  display: flex;
  flex-direction: column;
}

.team-info .section-label {
  justify-content: flex-start;
}

.team-info .section-title {
  color: var(--white);
  margin: 16px 0 20px;
}

.team-info .section-subtitle {
  color: var(--dark-300);
  margin-top: 0;
  max-width: 100%;
}

.team-stats-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--dark-700);
  padding-top: 32px;
  margin-top: 8px;
}

.team-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.team-stat-number {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.team-stat-label {
  font-size: 12px;
  color: var(--dark-300);
  font-weight: 500;
  line-height: 1.4;
}

.team-image-box {
  width: 100%;
}

.team-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.team-image-wrap img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.team-image-wrap:hover img {
  transform: scale(1.03);
}

@media (max-width: 991px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .team-info .section-label {
    justify-content: center;
  }
  
  .team-info .section-title,
  .team-info .section-subtitle {
    text-align: center;
  }
  
  .team-stat {
    align-items: center;
    text-align: center;
  }
  
  .team-stats-box {
    margin-top: 16px;
  }

  .team-image-wrap img {
    height: 350px;
  }
}

  .team-stat-label {
    font-size: 11px;
  }
}

/* ======================================================================
   11. CTA BANNER
   ====================================================================== */
.cta-section {
  padding: var(--section-y) 0;
  background: var(--white);
}

.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px) clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 130%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .08) 0%, transparent 60%);
  pointer-events: none;
}

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

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-buttons .btn-white {
  background: var(--white);
  color: var(--gold-dark);
  font-weight: 700;
}

.cta-buttons .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
}

/* ======================================================================
   12. FOOTER
   ====================================================================== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .6);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand .logo-text strong {
  color: var(--white);
}

.footer-brand .logo-text span {
  color: rgba(255, 255, 255, .4);
}

.footer-brand .footer-tagline {
  font-family: var(--font-heading);
  font-size: 15px;
  font-style: italic;
  color: var(--gold-light);
  margin-top: 20px;
  line-height: 1.6;
}

.footer-brand .footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
  color: rgba(255, 255, 255, .4);
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  transition: all .25s var(--ease-out);
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.6;
}

.footer-contact-item a {
  color: var(--gold-light);
}

.footer-contact-item a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .4);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* ======================================================================
   STICKY / FLOATING ELEMENTS
   ====================================================================== */
.sticky-inquiry {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.whatsapp-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: all .3s var(--ease-spring);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .5);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.sticky-quote-btn {
  display: none;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .lang-switcher {
    display: flex;
    font-size: 11px;
    padding: 4px 8px;
  }

  .lang-switcher span {
    display: none;
  }

  .lang-switcher a {
    padding: 2px 6px;
  }

  .header .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  /* Mobile nav */
  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    padding: 100px 32px 40px;
    gap: 4px;
    z-index: 999;
  }

  .nav.mobile-open a {
    padding: 14px 16px;
    font-size: 18px;
    border-radius: var(--radius-sm);
  }

  .nav.mobile-open .mobile-cta {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-specs {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-main {
    max-width: 360px;
  }

  .hero-image-main img {
    height: 380px;
  }

  .hero-float-card {
    display: none;
  }

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

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

  .about-image-wrap img {
    height: 360px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .tech-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .applications-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .quality-image-wrap {
    order: -1;
  }

  .quality-image-wrap img {
    height: 320px;
  }

  .export-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .export-countries {
    justify-content: center;
  }

  .export-map {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-quote-btn {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gold);
    color: var(--white);
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    z-index: 800;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .1);
  }

  .sticky-inquiry {
    bottom: 76px;
  }
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .tech-features {
    grid-template-columns: 1fr;
  }

  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .denier-scale {
    flex-wrap: wrap;
    gap: 16px;
  }

  .denier-scale::before,
  .denier-scale::after {
    display: none;
  }

  .sustainability-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .export-countries {
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(32px, 8vw, 44px);
  }
}

/* ---------- Counter animation ---------- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ---------- Loading screen ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity .6s var(--ease-out), visibility .6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 64px;
  height: 64px;
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: .7;
  }
}

/* ---------- Smooth scrollbar visual ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-300);
}

/* Vazirmatn Farsi */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/Vazirmatn-Black.woff2') format('woff2');
}

html[dir="rtl"] {
  --font-heading: 'Vazirmatn', sans-serif;
  --font-body: 'Vazirmatn', sans-serif;
}

html[dir="rtl"] body {
  text-align: right;
}

/* Float card positioning overrides in Hero section */
html[dir="rtl"] .float-card-1 {
  right: auto;
  left: -5%;
}

html[dir="rtl"] .float-card-2 {
  left: auto;
  right: -8%;
}

html[dir="rtl"] .float-card-3 {
  right: auto;
  left: 5%;
}

html[dir="rtl"] .float-card-4 {
  left: auto;
  right: -12%;
}

/* Hero shapes overrides */
html[dir="rtl"] .hero-shape-1 {
  right: auto;
  left: -50px;
}

html[dir="rtl"] .hero-shape-2 {
  left: auto;
  right: -40px;
}

/* Section label line offset */
html[dir="rtl"] .section-label::before {
  margin-left: 10px;
  margin-right: 0;
}

/* About image badge mirror */
html[dir="rtl"] .about-image-badge {
  left: auto;
  right: 24px;
}

/* About features layout alignment */
html[dir="rtl"] .about-features .about-feature {
  flex-direction: row;
}

html[dir="rtl"] .about-features .about-feature-icon {
  margin-right: 0;
  margin-left: 10px;
}

/* Product badge position override */
html[dir="rtl"] .product-card-image .product-badge {
  left: auto;
  right: 16px;
}

/* Denier scale transform-origin mirroring */
html[dir="rtl"] .denier-scale::after {
  transform-origin: right;
}

/* Sticky floating elements position mirror */
html[dir="rtl"] .sticky-inquiry {
  right: auto;
  left: 28px;
  align-items: flex-start;
}

/* SVGs and arrows mirroring */
html[dir="rtl"] .product-card-link svg,
html[dir="rtl"] .cta-buttons svg,
html[dir="rtl"] .sticky-quote-btn svg,
html[dir="rtl"] .hero-buttons svg {
  transform: scaleX(-1);
}

/* Footer contact items spacing */
html[dir="rtl"] .footer-contact-item svg {
  margin-right: 0;
  margin-left: 12px;
}

/* Typography and font weighting overrides for Persian (FA) */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-title {
  font-weight: 900 !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
}

html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  font-weight: 800 !important;
  letter-spacing: normal !important;
  line-height: 1.45 !important;
}

html[dir="rtl"] .section-title {
  font-size: clamp(34px, 4.5vw, 50px) !important;
}

html[dir="rtl"] .hero-title {
  font-size: clamp(40px, 6vw, 64px) !important;
  line-height: 1.25 !important;
}

html[dir="rtl"] .section-label {
  font-weight: 800 !important;
  letter-spacing: normal !important;
}

html[dir="rtl"] .nav a {
  font-weight: 700 !important;
}

html[dir="rtl"] .btn {
  font-weight: 800 !important;
}

/* ---------- Gutenberg Blocks Styling Overrides ---------- */

/* Table Block */
.wp-block-table {
  margin: 32px 0;
  width: 100%;
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--dark-500);
}

.wp-block-table th,
.wp-block-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
}

html[dir="rtl"] .wp-block-table th,
html[dir="rtl"] .wp-block-table td {
  text-align: right;
}

html[dir="ltr"] .wp-block-table th,
html[dir="ltr"] .wp-block-table td {
  text-align: left;
}

.wp-block-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  border-bottom: 2px solid var(--gold);
}

.wp-block-table tr:hover {
  background: var(--gray-100);
}

/* Gallery Block */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 0;
  list-style: none;
}

.wp-block-gallery .wp-block-image {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.wp-block-gallery .wp-block-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.wp-block-gallery .wp-block-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Responsive Blog Grid */
.blog-grid-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .blog-grid-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .blog-grid-list {
    grid-template-columns: 1fr !important;
  }
}

/* Color Carousel Styles */
.color-carousel-container {
  margin: 50px 0 20px;
  position: relative;
}

.color-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 15px 5px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.color-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.color-carousel-track::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.color-carousel-track::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.color-carousel-item {
  flex: 0 0 140px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.color-carousel-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.color-swatch-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-card);
  margin: 0 auto 12px;
  transition: transform 0.3s;
}

.color-carousel-item:hover .color-swatch-wrapper {
  transform: scale(1.08);
}

/* Hide mobile CTA button on desktop */
.mobile-cta {
  display: none !important;
}

/* Show mobile CTA inside open nav drawer */
.nav.mobile-open .mobile-cta {
  display: inline-flex !important;
}

/* Card Carousel Styles */
.card-carousel-container {
  margin: 40px 0 20px;
  position: relative;
  width: 100%;
}

.card-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 15px 5px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.card-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.card-carousel-track::-webkit-scrollbar-track {
  background: var(--gray-100);
}

.card-carousel-track::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 10px;
}

.card-carousel-item {
  flex: 0 0 300px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-carousel-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
  .card-carousel-item {
    flex: 0 0 260px;
  }
}

/* Readable editorial typography: avoid stretched words, especially on narrow screens. */
.post-content-body {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem) !important;
  line-height: 1.85 !important;
  letter-spacing: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.post-content-body p,
.post-content-body h2,
.post-content-body h3,
.post-content-body h4,
.post-content-body ul,
.post-content-body ol {
  text-align: start;
  word-break: normal;
  overflow-wrap: break-word;
}
html[dir="rtl"] .post-content-body {
  direction: rtl;
  text-align: right;
  line-height: 2 !important;
}
html[dir="ltr"] .post-content-body {
  direction: ltr;
  text-align: left;
}
@media (max-width: 640px) { .post-content-body { font-size: 1rem !important; line-height: 1.8 !important; } html[dir="rtl"] .post-content-body { line-height: 1.95 !important; } .post-content-body p { margin-bottom: 1.25em; } }

/* TOC Link Hover Styles */
.post-toc a:hover .toc-link-text {
  color: var(--gold) !important;
  text-decoration: underline !important;
}

/* Separation of Gold Box from Footer */
.cta-section {
  padding: var(--section-y) 0 120px !important;
  background: var(--white);
}

/* CTA Buttons Equal Width on Mobile */
@media (max-width: 640px) {
  .cta-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .cta-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
    display: flex !important;
  }
}

/* Founders Section Responsive Reordering */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .founders-grid {
    display: flex;
    flex-direction: column;
  }
  .founders-grid .ceo-card {
    order: -1; /* CEO card displayed first on mobile */
  }
}

/* CEO Introduction & Message Section */
.ceo-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.ceo-message-box {
  background: var(--gray-100);
  padding: 48px;
  border-radius: var(--radius-lg);
  border-inline-start: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.ceo-quote-symbol {
  position: absolute;
  top: 20px;
  font-size: 80px;
  color: rgba(197, 160, 89, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

html[dir="ltr"] .ceo-quote-symbol {
  right: 30px;
}

html[dir="rtl"] .ceo-quote-symbol {
  left: 30px;
}

.ceo-credential-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.ceo-credential-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ceo-credential-item {
  font-size: 14px;
  color: var(--dark-500);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ceo-credential-bullet {
  color: var(--gold);
  font-weight: bold;
}

@media (max-width: 991px) {
  .ceo-intro-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .ceo-message-box {
    padding: 32px 24px;
  }
}

/* Factory Highlights Section Grid */
.factory-highlights-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  align-items: center;
}

@media (max-width: 991px) {
  .factory-highlights-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 30px;
  }
}

/* Mobile Header Logo & Text Scaling */
.contact-notice { padding: 14px 16px; border-radius: var(--radius-sm); line-height: 1.7; margin: 0 0 20px; transition: opacity .35s ease, transform .35s ease; }
.contact-notice-success { color: #17633d; background: #e8f7ee; border: 1px solid #b7e4c7; }
.contact-notice-error { color: #9b2635; background: #fff0f1; border: 1px solid #f1bcc4; }
.contact-notice.is-hidden { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.alyaf-contact-form button[disabled] { opacity: .7; cursor: wait; transform: none; }
.contact-location-photo { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--radius-sm); display: block; margin: 4px 0 12px; }
.contact-social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-social-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--dark-500); font-weight: 600; font-size: 14px; text-decoration: none; }
.footer-social a { width: 44px !important; height: 44px !important; }
.footer-social a svg { width: 21px; height: 21px; }

/* Contact page: prevent inline desktop layout values from overflowing narrow screens. */
.alyaf-contact-form input,
.alyaf-contact-form textarea { box-sizing: border-box; max-width: 100%; }
@media (max-width: 768px) {
  .contact-page-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; }
  .contact-form-card { padding: 24px !important; }
  .contact-page-grid iframe { height: 180px !important; }
  .contact-page-grid .btn { max-width: 100%; white-space: normal; text-align: center; }
  .contact-social-links { gap: 12px; }
}
@media (max-width: 420px) {
  .contact-form-card { padding: 20px !important; }
  .contact-page-grid iframe { height: 160px !important; }
  .contact-location-photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .header .logo img {
    width: 38px;
    height: 38px;
  }
  .header .logo-text strong {
    font-size: 14px;
  }
  .header .logo-text span {
    font-size: 9px;
    letter-spacing: 0.2px;
  }
  .header .logo {
    gap: 8px;
  }
}
