/* Q Ceramic - Industrial Theme */
:root {
  --brand-deep: #480e24;
  --brand-mid: #7b2f34;
  --brand-gold: #d28746;
  --brand-blend: #9a4f3a;
  --primary: #d28746;
  --primary-dark: #b86f38;
  --dark: #480e24;
  --dark-2: #7b2f34;
  --dark-3: #5a2430;
  --text: #666;
  --text-light: #999;
  --white: #fff;
  --light-bg: #f5f0eb;
  --border: #e5e5e5;
  --font: 'Barlow', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  color: var(--text);
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

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

/* Top Bar */
.top-bar {
  background: #000;
  padding: 10px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left { display: flex; align-items: center; gap: 20px; }
.top-bar-right { display: flex; align-items: center; gap: 15px; }

.top-bar a { color: rgba(255,255,255,0.7); }
.top-bar a:hover { color: var(--primary); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 12px;
}
.social-links a:hover { border-color: var(--primary); color: var(--primary); }

/* Header */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

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

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 1px;
}

.logo-text span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 35px; }

.nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  position: relative;
  padding: 5px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after { width: 100%; }

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

.header-actions { display: flex; align-items: center; gap: 15px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* Hero Slider */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(72,14,36,0.82) 0%, rgba(123,47,52,0.65) 50%, rgba(210,135,70,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
  margin-left: max(20px, calc((100% - 1200px) / 2 + 20px));
  color: var(--white);
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 15px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active { background: var(--primary); border-color: var(--primary); }

.scroll-more {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-more::after {
  content: '';
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.5);
}

/* About Section */
.about-section { padding: 100px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-badge {
  z-index: 3;
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 25px 30px;
  text-align: center;
}

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

.about-image-badge .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--dark);
}

.about-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.call-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.call-icon {
  width: 50px;
  height: 50px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
}

.call-box .label { font-size: 12px; color: var(--text); text-transform: uppercase; }
.call-box .number { font-size: 18px; font-weight: 700; color: var(--dark); }

.ltr-text {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

html[dir="rtl"] .ltr-input {
  direction: ltr;
  text-align: left;
}

/* Feature Cards */
.features-bar {
  background: var(--dark);
  padding: 0;
}

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

.feature-card {
  padding: 40px 30px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.feature-card:last-child { border-right: none; }

.feature-card:hover { background: var(--primary); }

.feature-card .icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
  transition: var(--transition);
}

.feature-card:hover .icon { color: var(--white); }

.feature-card h5 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.feature-card:hover p { color: rgba(255,255,255,0.9); }

/* Feature section background on card hover */
.features-stats-section {
  transition: background 0.55s ease;
  background-size: cover;
  background-position: center;
}

html.snap-scroll .features-stats-section:has(.feature-card--porcelain:hover) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(72, 14, 36, 0.72)),
    url('../assets/images/01.png');
  background-size: cover;
  background-position: center;
}

html.snap-scroll .features-stats-section:has(.feature-card--automated:hover) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(72, 14, 36, 0.72)),
    url('../assets/images/02.png');
  background-size: cover;
  background-position: center;
}

html.snap-scroll .features-stats-section:has(.feature-card--qatar:hover) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(72, 14, 36, 0.72)),
    url('../assets/images/03.png');
  background-size: cover;
  background-position: center;
}

.features-stats-section:has(.feature-card--porcelain:hover) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(72, 14, 36, 0.72)),
    url('../assets/images/01.png');
}

.features-stats-section:has(.feature-card--automated:hover) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(72, 14, 36, 0.72)),
    url('../assets/images/02.png');
}

.features-stats-section:has(.feature-card--qatar:hover) {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(72, 14, 36, 0.72)),
    url('../assets/images/03.png');
}

/* Stats */
.stats-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item .label {
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* Services */
.services-section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  padding: 35px 25px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 800;
  color: rgba(210,135,70,0.2);
  line-height: 1;
  margin-bottom: 15px;
}

.service-card h5 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p { font-size: 14px; }

.cert-service-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card--cert {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 0;
}

.service-card-cert-image {
  flex: 0 0 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-cert-image img {
  max-width: 120px;
  max-height: 120px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.service-card-cert-body {
  flex: 1;
  min-width: 0;
}

html[dir="rtl"] .service-card--cert {
  flex-direction: row-reverse;
}

@media (max-width: 576px) {
  .service-card--cert {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .service-card--cert {
    flex-direction: column;
  }
}

/* Timeline */
.timeline-section {
  padding: 100px 0;
  background: var(--dark);
  color: var(--white);
}

.timeline-section .section-title { color: var(--white); }

.timeline-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.timeline-tab {
  padding: 15px 25px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-width: 120px;
}

.timeline-tab .year { display: block; font-size: 20px; font-weight: 800; }
.timeline-tab .stage { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.timeline-tab:hover,
.timeline-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.timeline-content { display: none; }
.timeline-content.active { display: block; }

.timeline-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.timeline-panel img { border-radius: 4px; width: 100%; }

.timeline-panel h3 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 15px;
}

.timeline-panel p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

/* Why Us */
.why-section { padding: 100px 0; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--light-bg);
  transition: var(--transition);
}

.value-card:hover { background: var(--primary); color: var(--white); }
.value-card:hover h5,
.value-card:hover p { color: var(--white); }

.value-card .icon { font-size: 36px; color: var(--primary); margin-bottom: 15px; }
.value-card:hover .icon { color: var(--white); }
.value-card h5 { font-size: 16px; margin-bottom: 8px; }
.value-card p { font-size: 13px; }

/* Counter Section */
.counter-section {
  padding: 80px 0;
  background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
    url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1600') center/cover;
  color: var(--white);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.counter-item .number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  color: var(--primary);
}

.counter-item .label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

/* Process Flow */
.process-section { padding: 100px 0; background: var(--light-bg); }

.process-values-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 50px;
}

/* Products Gallery */
.products-section { padding: 100px 0; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.85));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  color: var(--white);
}

.product-overlay h5 { color: var(--white); font-size: 18px; margin-bottom: 5px; }
.product-overlay p { font-size: 13px; color: rgba(255,255,255,0.7); }

a.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.collection-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.product-overlay .collection-link {
  color: var(--primary);
}

/* Collections grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.collection-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.collection-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.collection-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.collection-card-body {
  padding: 25px;
}

.collection-card-body h5 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark);
}

.collection-card-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* Collection detail — PDF always on the left */
.collection-page > .container-wide {
  max-width: min(1596px, calc(100% - 40px));
  margin-left: 20px;
  margin-right: auto;
}

.collection-detail {
  display: grid;
  grid-template-columns: minmax(0, 3.04fr) minmax(240px, 0.84fr);
  grid-template-areas: "viewer details";
  gap: 32px;
  align-items: start;
  justify-items: start;
  margin-top: 40px;
  direction: ltr;
}

.collection-pdf {
  grid-area: viewer;
  justify-self: stretch;
  align-self: start;
  border: 1px solid var(--border);
  background: var(--light-bg);
  overflow: hidden;
  width: 100%;
  text-align: left;
}

.collection-detail-info {
  grid-area: details;
  justify-self: stretch;
  width: 100%;
}

html[dir="rtl"] .collection-page > .container-wide {
  margin-left: auto;
  margin-right: 20px;
}

html[dir="rtl"] .collection-detail {
  direction: ltr;
  grid-template-areas: "viewer details";
  overflow: visible;
}

html[dir="rtl"] .collection-pdf {
  grid-area: viewer;
  position: relative;
  transform: translateX(-18.432%);
  z-index: 1;
}

html[dir="rtl"] .collection-detail-info {
  grid-area: details;
  direction: rtl;
  text-align: right;
}

.collection-pdf-view {
  max-height: calc(80vh * 1.521);
  min-height: calc(560px * 1.521);
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
}

.collection-pdf-page {
  display: block;
  width: 100%;
  height: auto;
}

.collection-pdf-page + .collection-pdf-page {
  border-top: 1px solid var(--border);
}

.collection-pdf-loading,
.collection-pdf-error {
  padding: 40px 16px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
}

.collection-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  border-top: 1px solid var(--border);
  background: var(--white);
}

.collection-pdf-link:hover {
  color: var(--primary);
}

.collection-detail-info .section-title {
  text-align: left;
  margin-bottom: 15px;
}

html[dir="rtl"] .collection-detail-info .section-title {
  text-align: right;
}

html[dir="rtl"] .collection-detail-info .section-label,
html[dir="rtl"] .collection-detail-info p,
html[dir="rtl"] .collection-detail-info .collection-grade {
  text-align: right;
}

html[dir="rtl"] .collection-variants-table-wrap {
  direction: rtl;
  margin-left: auto;
}

.collection-grade {
  margin: 15px 0;
  font-size: 14px;
}

.collection-colors,
.collection-specs,
.collection-sizes,
.collection-variants {
  margin: 25px 0;
}

.collection-colors h4,
.collection-specs h4,
.collection-sizes h4,
.collection-variants h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--dark);
}

.collection-variants-table-wrap {
  overflow-x: auto;
  width: 160%;
  max-width: 160%;
}

.collection-variants-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.collection-variants-table th,
.collection-variants-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.collection-variants-table th {
  background: var(--light-bg);
  font-weight: 600;
  color: var(--dark);
}

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

.color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 18px;
}

.color-swatch {
  text-align: center;
}

.color-swatch-image {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--light-bg);
  margin-bottom: 10px;
}

.color-swatch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.color-swatch:hover .color-swatch-image img {
  transform: scale(1.06);
}

.color-swatch-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.color-tags,
.size-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.color-tags li,
.size-tags li {
  padding: 6px 14px;
  background: var(--light-bg);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.spec-list {
  list-style: none;
}

.spec-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.spec-list li i {
  color: var(--primary);
  margin-right: 8px;
}

html[dir="rtl"] .spec-list li i {
  margin-right: 0;
  margin-left: 8px;
}

.size-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-light);
}

/* Certifications */
.cert-section { padding: 100px 0; background: var(--dark); }
.cert-section .section-title { color: var(--white); }
.cert-section .section-desc { color: rgba(255,255,255,0.6); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.cert-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
}

.cert-card:hover { border-color: var(--primary); background: rgba(210,135,70,0.12); }

.cert-card .cert-icon {
  margin-bottom: 15px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card .cert-image {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cert-card h5 { color: var(--white); font-size: 14px; margin-bottom: 8px; }
.cert-card p { font-size: 12px; color: rgba(255,255,255,0.5); }

/* Blog */
.blog-section { padding: 100px 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.blog-card {
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.blog-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.blog-card img { width: 100%; height: 220px; object-fit: cover; }

.blog-card-body { padding: 25px; }

.blog-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.blog-card:hover h4 { color: var(--primary); }

.read-more {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

/* Contact CTA */
.cta-section {
  padding: 80px 0;
  background: var(--primary);
  text-align: center;
  color: var(--white);
}

.cta-section h2 { color: var(--white); font-size: 36px; margin-bottom: 15px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 30px; max-width: 500px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 14px;
  outline: none;
}

.newsletter-form button {
  padding: 16px 30px;
  background: var(--dark);
  color: var(--white);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover { background: #333; }

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding-top: 80px;
}

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

.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin: 20px 0; font-size: 14px; line-height: 1.8; }

.footer h5 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--primary); }

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 14px;
}

.footer-contact .icon { color: var(--primary); min-width: 20px; }

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

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--primary); }

/* Page Header */
.page-header {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('https://images.unsplash.com/photo-1615873968403-89e068629265?w=1600') center/cover;
  padding: 120px 0 80px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* Inner Page Content */
.page-content { padding: 80px 0; }

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.sidebar-widget {
  background: var(--light-bg);
  padding: 30px;
  margin-bottom: 30px;
}

.sidebar-widget h5 {
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: var(--primary);
  color: var(--white);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  scroll-margin-top: 130px;
}

.team-card.is-selected,
.team-card:target {
  border: 2px solid var(--primary);
  box-shadow: 0 12px 36px rgba(210, 135, 70, 0.28);
}

.team-card.is-selected .team-img,
.team-card:target .team-img {
  background: rgba(210, 135, 70, 0.12);
  color: var(--primary);
  opacity: 0.55;
}

.team-card.is-selected .team-card-body,
.team-card:target .team-card-body {
  background: rgba(210, 135, 70, 0.06);
}

.team-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.team-card .team-img {
  height: 280px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.3;
}

.team-card-body { padding: 25px; }
.team-card h5 { font-size: 18px; margin-bottom: 5px; }
.team-card .role { font-size: 13px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Organizational chart (Stack Overflow nested tree pattern) */
.org-tree-wrap {
  --tree-gap: 36px;
  margin: 40px auto 0;
  padding: 0 10px 40px;
  overflow-x: auto;
  direction: ltr;
  text-align: center;
}

.org-tree-wrap .tree {
  display: inline-block;
  text-align: center;
}

.org-tree-wrap .tree,
.org-tree-wrap .tree ul {
  padding-top: var(--tree-gap);
  position: relative;
  transition: all 0.5s;
}

.org-tree-wrap .tree ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.org-tree-wrap .tree > ul {
  padding-top: 0;
  display: inline-block;
}

.org-tree-wrap .tree ul ul ul::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(var(--tree-gap) * -1);
  border-left: 1px solid var(--border);
  height: var(--tree-gap);
}

.org-tree-wrap .tree li {
  float: left;
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: var(--tree-gap) 14px 0;
  transition: all 0.5s;
}

.org-tree-wrap .tree li::before,
.org-tree-wrap .tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1px solid var(--border);
  width: 50%;
  height: var(--tree-gap);
}

.org-tree-wrap .tree li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid var(--border);
}

.org-tree-wrap .tree li:only-child::after,
.org-tree-wrap .tree li:only-child::before {
  display: none;
}

.org-tree-wrap .tree li:only-child {
  padding-top: 0;
}

.org-tree-wrap .tree li:first-child::before,
.org-tree-wrap .tree li:last-child::after {
  border: 0 none;
}

.org-tree-wrap .tree li:last-child::before {
  border-right: 1px solid var(--border);
  border-radius: 0 5px 0 0;
}

.org-tree-wrap .tree li:first-child::after {
  border-radius: 5px 0 0 0;
}

.org-tree-wrap .tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1px solid var(--border);
  width: 0;
  height: var(--tree-gap);
}

.org-tree-wrap .tree li a.tree-node {
  border: 1px solid var(--border);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--dark);
  display: inline-block;
  min-width: 200px;
  max-width: 260px;
  background: var(--white);
  border-radius: 4px;
  transition: all 0.5s;
  vertical-align: top;
  cursor: pointer;
}

.org-tree-wrap .tree li a.tree-node.tree-depth-1,
.org-tree-wrap .tree li a.tree-node.tree-depth-2 {
  border-color: var(--primary);
  background: rgba(210, 135, 70, 0.08);
  min-width: 240px;
  max-width: 320px;
}

.org-tree-wrap .tree li a.tree-node .tree-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
  color: var(--dark);
}

.org-tree-wrap .tree li a.tree-node .tree-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
  color: var(--primary);
}

.org-tree-wrap .tree li a.tree-node.is-active,
.org-tree-wrap .tree li a.tree-node.is-active:hover {
  border-color: var(--primary);
  background: rgba(210, 135, 70, 0.18);
  box-shadow: 0 4px 16px rgba(210, 135, 70, 0.22);
}

.org-tree-wrap .tree li a.tree-node:hover,
.org-tree-wrap .tree li a.tree-node:hover + ul li a.tree-node {
  background: rgba(210, 135, 70, 0.14);
  color: var(--dark);
  border-color: var(--primary);
}

.org-tree-wrap .tree li a.tree-node:hover + ul li::after,
.org-tree-wrap .tree li a.tree-node:hover + ul li::before,
.org-tree-wrap .tree li a.tree-node:hover + ul::before,
.org-tree-wrap .tree li a.tree-node:hover + ul ul::before {
  border-color: var(--primary);
}

.org-tree-wrap .tree ul::after {
  content: '';
  display: table;
  clear: both;
}

@media screen and (max-width: 768px) {
  .org-tree-wrap {
    --tree-gap: 28px;
  }

  .org-tree-wrap .tree li {
    padding-left: 10px;
    padding-right: 10px;
  }

  .org-tree-wrap .tree li a.tree-node {
    min-width: 140px;
    max-width: 180px;
    padding: 14px 12px;
  }

  .org-tree-wrap .tree li a.tree-node.tree-depth-1,
  .org-tree-wrap .tree li a.tree-node.tree-depth-2 {
    min-width: 180px;
    max-width: 220px;
  }

  .org-tree-wrap .tree li a.tree-node .tree-name {
    font-size: 13px;
  }

  .org-tree-wrap .tree li a.tree-node .tree-role {
    font-size: 9px;
  }
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--light-bg);
  margin-bottom: 20px;
}

.contact-info-card .icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-card h5 { font-size: 16px; margin-bottom: 5px; }
.contact-info-card p { font-size: 14px; }

.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--primary); }

.contact-form textarea { height: 150px; resize: vertical; }

.contact-form-notice {
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
}

.contact-form-notice--success {
  background: #edf7ed;
  border: 1px solid #b7dfba;
  color: #1b5e20;
}

.contact-form-notice--error {
  background: #fdecea;
  border: 1px solid #f5c6c2;
  color: #b71c1c;
}

/* Process Detail */
.process-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  align-items: center;
}

.process-detail-grid:nth-child(even) { direction: rtl; }
.process-detail-grid:nth-child(even) > * { direction: ltr; }

.process-detail-grid img { border-radius: 4px; width: 100%; }

.process-detail-grid h3 { font-size: 24px; margin-bottom: 15px; }

/* Responsive */
@media (max-width: 1024px) {
  .about-grid, .why-grid, .timeline-panel, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  html.snap-scroll .about-grid,
  html.snap-scroll .timeline-panel {
    grid-template-columns: 1fr !important;
  }
  html.snap-scroll .about-image-frame,
  html.snap-scroll .timeline-panel img {
    max-height: none;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .features-bar-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .process-values-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-detail-grid:nth-child(even) { direction: ltr; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0;
  }

  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: flex; }
  .header .btn-primary { display: none; }

  .hero { height: 70vh; min-height: 450px; }

  html.snap-scroll .hero.snap-section {
    height: 70vh;
    min-height: 450px;
    max-height: none;
  }
  .services-grid, .products-grid, .blog-grid { grid-template-columns: 1fr; }
  .collections-grid { grid-template-columns: 1fr; }
  .collection-detail { grid-template-columns: 1fr; }
  .stats-grid, .counter-grid, .values-grid { grid-template-columns: 1fr; }
  .process-values-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .about-image-badge { right: 10px; bottom: -10px; }
  .newsletter-form { flex-direction: column; }
  .timeline-tabs { flex-direction: column; align-items: stretch; }
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.lang-switcher a {
  color: rgba(255,255,255,0.6);
  padding: 2px 6px;
  transition: var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--primary);
}

.lang-divider {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
}

/* RTL Support */
html[dir="rtl"] body,
body.rtl {
  font-family: 'Cairo', 'Barlow', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6 {
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .hero-content {
  margin-left: 0;
  margin-right: max(20px, calc((100% - 1200px) / 2 + 20px));
  text-align: right;
}

html[dir="rtl"] .nav a::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .scroll-more {
  right: auto;
  left: 40px;
}

html[dir="rtl"] .about-image-badge {
  right: auto;
  left: -20px;
}

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

html[dir="rtl"] .call-box,
html[dir="rtl"] .contact-info-card {
  text-align: right;
}

html[dir="rtl"] .breadcrumb {
  direction: rtl;
}

html[dir="rtl"] .process-detail-grid:nth-child(even) {
  direction: ltr;
}

html[dir="rtl"] .process-detail-grid:nth-child(even) > * {
  direction: rtl;
}

html[dir="rtl"] .btn .fa-arrow-right::before {
  content: "\f060";
}

html[dir="rtl"] .read-more .fa-arrow-right::before {
  content: "\f060";
}

html[dir="rtl"] .section-header,
html[dir="rtl"] .section-desc,
html[dir="rtl"] .page-header,
html[dir="rtl"] .cta-section,
html[dir="rtl"] .stat-item,
html[dir="rtl"] .counter-item {
  text-align: center;
}

html[dir="rtl"] .about-text,
html[dir="rtl"] .timeline-panel > div,
html[dir="rtl"] .service-card,
html[dir="rtl"] .blog-card-body,
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .content-grid > div:first-child {
  text-align: right;
}

html[dir="rtl"] .top-bar .container {
  direction: rtl;
}

html[dir="rtl"] .top-bar-left,
html[dir="rtl"] .top-bar-right {
  flex-direction: row;
}

html[dir="rtl"] .header .container {
  flex-direction: row-reverse;
}

html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  html[dir="rtl"] .about-image-badge {
    left: 10px;
    right: auto;
  }
}

/* Section-by-section scroll (homepage) */
html.snap-scroll {
  scroll-snap-type: y mandatory;
  scroll-behavior: auto;
  scroll-padding-top: 0;
}

html.snap-scroll.is-scrolling {
  scroll-snap-type: none;
}

html.snap-scroll body {
  overflow-x: hidden;
}

/* Keep top bar + header visible over snap sections (hero = section 1) */
html.snap-scroll .top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1101;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

html.snap-scroll .header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1100;
  background: transparent;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

/* Transparent nav over hero */
html.snap-scroll:not(.nav-solid) .nav a {
  color: rgba(255, 255, 255, 0.92);
}

html.snap-scroll:not(.nav-solid) .nav a:hover,
html.snap-scroll:not(.nav-solid) .nav a.active {
  color: var(--primary);
}

html.snap-scroll:not(.nav-solid) .menu-toggle span {
  background: var(--white);
}

/* Solid nav after scroll */
html.snap-scroll.nav-solid .top-bar {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.snap-scroll.nav-solid .header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  padding: 0 !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Inner scroll area — explicit horizontal centering */
html.snap-scroll .snap-section > .container,
html.snap-scroll .snap-section > .container-wide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 110px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

html.snap-scroll .snap-section > .container-wide {
  max-width: 1400px;
}

/* Hero — full viewport, full width */
html.snap-scroll .hero.snap-section {
  width: 100%;
  align-self: stretch;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  max-height: 100vh;
}

html.snap-scroll .snap-section > .container::-webkit-scrollbar,
html.snap-scroll .snap-section > .container-wide::-webkit-scrollbar {
  width: 4px;
}

html.snap-scroll .snap-section > .container::-webkit-scrollbar-thumb,
html.snap-scroll .snap-section > .container-wide::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* Features + Stats merged section */
html.snap-scroll .features-stats-section {
  padding: 0 !important;
}

html.snap-scroll .features-stats-inner {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 40px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

html.snap-scroll .features-stats-section .features-bar-grid {
  width: 100%;
}

html.snap-scroll .features-stats-section .features-bar {
  flex-shrink: 0;
}

html.snap-scroll .features-stats-section .stats-section-merged {
  padding: 50px 0 0;
  background: transparent;
  flex-shrink: 0;
}

/* ── Brand gradient backgrounds per section ── */
html.snap-scroll .hero.snap-section {
  background: #000;
}

html.snap-scroll .hero .hero-bg::after {
  background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.78) 50%, rgba(0,0,0,0.88) 100%);
}

html.snap-scroll .about-section {
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-mid) 55%, var(--brand-blend) 100%);
}

html.snap-scroll .features-stats-section {
  background: linear-gradient(180deg, var(--brand-blend) 0%, var(--brand-mid) 45%, var(--brand-deep) 100%);
}

html.snap-scroll .services-section {
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand-gold) 100%);
}

html.snap-scroll .timeline-section {
  background: linear-gradient(180deg, var(--brand-deep) 0%, var(--brand-mid) 60%, var(--brand-blend) 100%);
}

html.snap-scroll .why-section {
  background: linear-gradient(145deg, var(--brand-deep) 0%, var(--brand-mid) 50%, var(--brand-gold) 100%);
}

html.snap-scroll .counter-section {
  background: linear-gradient(135deg, rgba(72,14,36,0.93) 0%, rgba(123,47,52,0.88) 45%, rgba(210,135,70,0.8) 100%),
    url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=1600') center/cover;
  background-size: cover;
  background-position: center;
}

html.snap-scroll .process-section {
  background: linear-gradient(180deg, var(--brand-gold) 0%, var(--brand-blend) 55%, var(--brand-mid) 100%);
}

html.snap-scroll .products-section {
  background: linear-gradient(135deg, var(--brand-mid) 0%, var(--brand-deep) 100%);
}

html.snap-scroll .cert-section {
  background: linear-gradient(180deg, var(--brand-deep) 0%, #3a0b1c 40%, var(--brand-mid) 100%);
}

html.snap-scroll .blog-section {
  background: linear-gradient(145deg, var(--brand-mid) 0%, var(--brand-gold) 70%, #e0a060 100%);
}

html.snap-scroll .footer-cta-section {
  background: var(--brand-deep);
}

/* Transparent inner blocks — show section gradient */
html.snap-scroll .features-stats-section .features-bar {
  background: transparent;
}

/* Dark-section text (deep / mid backgrounds) */
html.snap-scroll .about-section .section-title,
html.snap-scroll .about-section .about-text p,
html.snap-scroll .about-section .about-features li,
html.snap-scroll .about-section .call-box .number,
html.snap-scroll .about-section .call-box .label,
html.snap-scroll .products-section .section-title,
html.snap-scroll .products-section .section-desc,
html.snap-scroll .why-section .section-title,
html.snap-scroll .why-section .section-desc,
html.snap-scroll .why-section .why-grid > div > p,
html.snap-scroll .services-section .section-title,
html.snap-scroll .services-section .section-desc,
html.snap-scroll .services-section .section-label {
  color: rgba(255,255,255,0.92);
}

html.snap-scroll .about-section .section-label,
html.snap-scroll .products-section .section-label,
html.snap-scroll .why-section .section-label,
html.snap-scroll .timeline-section .section-label,
html.snap-scroll .cert-section .section-label {
  color: var(--brand-gold);
}

html.snap-scroll .features-stats-section .stat-item .number,
html.snap-scroll .counter-section .counter-item .number {
  color: var(--brand-gold);
}

html.snap-scroll .features-stats-section .stat-item .label {
  color: rgba(255,255,255,0.8);
}

/* Warm-section text (gold backgrounds) */
html.snap-scroll .process-section .section-title,
html.snap-scroll .process-section .section-desc,
html.snap-scroll .blog-section .section-title,
html.snap-scroll .blog-section .section-desc {
  color: var(--brand-deep);
}

html.snap-scroll .process-section .section-label,
html.snap-scroll .blog-section .section-label {
  color: var(--brand-mid);
}

/* Cards on colored backgrounds */
html.snap-scroll .services-section .service-card {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(4px);
}

html.snap-scroll .services-section .service-card h5 {
  color: var(--white);
}

html.snap-scroll .services-section .service-card p {
  color: rgba(255,255,255,0.82);
}

html.snap-scroll .services-section .service-number {
  color: rgba(255,255,255,0.18);
}

html.snap-scroll .why-section .value-card,
html.snap-scroll .process-section .value-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
}

html.snap-scroll .why-section .value-card h5,
html.snap-scroll .process-section .value-card h5 {
  color: var(--white);
}

html.snap-scroll .why-section .value-card p,
html.snap-scroll .process-section .value-card p {
  color: rgba(255,255,255,0.75);
}

html.snap-scroll .why-section .value-card .icon,
html.snap-scroll .process-section .value-card .icon {
  color: var(--brand-gold);
}

html.snap-scroll .why-section .value-card:hover,
html.snap-scroll .process-section .value-card:hover {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}

html.snap-scroll .why-section .value-card:hover .icon,
html.snap-scroll .process-section .value-card:hover .icon {
  color: var(--white);
}

html.snap-scroll .blog-section .blog-card {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 30px rgba(72,14,36,0.12);
}

html.snap-scroll .feature-card:hover {
  background: var(--brand-gold);
}

/* Keep centered headers & grids inside snap sections */
html.snap-scroll .section-header {
  margin-bottom: 35px;
  text-align: center;
}

html.snap-scroll .section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

html.snap-scroll .stats-grid,
html.snap-scroll .counter-grid,
html.snap-scroll .services-grid,
html.snap-scroll .cert-grid,
html.snap-scroll .blog-grid,
html.snap-scroll .values-grid,
html.snap-scroll .process-values-grid {
  margin-left: auto;
  margin-right: auto;
}

html.snap-scroll .section-title {
  font-size: clamp(24px, 3.5vw, 36px);
}

html.snap-scroll .about-grid {
  gap: 40px;
  grid-template-columns: 0.93fr 0.87fr;
}

html.snap-scroll .about-image-frame {
  max-height: 56vh;
  width: 100%;
}

html.snap-scroll .about-image-frame img {
  max-height: none;
}

html.snap-scroll .services-grid {
  gap: 20px;
}

html.snap-scroll .service-card {
  padding: 25px 20px;
}

html.snap-scroll .service-number {
  font-size: 44px;
  margin-bottom: 10px;
}

html.snap-scroll .timeline-tabs {
  margin-bottom: 30px;
}

html.snap-scroll .timeline-panel {
  gap: 30px;
  grid-template-columns: 0.93fr 0.87fr;
}

html.snap-scroll .timeline-panel img {
  max-height: 56vh;
  width: 100%;
  object-fit: cover;
}

html.snap-scroll .values-grid {
  gap: 15px;
}

html.snap-scroll .value-card {
  padding: 20px 15px;
}

html.snap-scroll .process-values-grid {
  margin-top: 30px;
  gap: 15px;
}

html.snap-scroll .products-grid {
  gap: 15px;
  margin-top: 30px;
}

html.snap-scroll .product-card {
  aspect-ratio: 16/10;
}

html.snap-scroll .cert-grid {
  margin-top: 30px;
  gap: 15px;
}

html.snap-scroll .cert-card {
  padding: 20px 15px;
}

html.snap-scroll .blog-grid {
  margin-top: 30px;
  gap: 20px;
}

html.snap-scroll .blog-card img {
  height: 160px;
}

/* Newsletter CTA + Footer merged section */
html.snap-scroll .footer-cta-section {
  width: 100%;
  align-self: stretch;
  align-items: stretch;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  padding: 0 !important;
}

html.snap-scroll .footer-cta-section.footer {
  padding-top: 0;
}

html.snap-scroll .footer-cta-inner {
  width: 100%;
  flex: 1;
  min-height: 100%;
  height: 100%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 110px;
  padding-bottom: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

html.snap-scroll .cta-section-merged {
  padding: 40px 0;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--brand-mid) 0%, var(--brand-gold) 100%);
}

html.snap-scroll .cta-section-merged h2 {
  font-size: 28px;
}

html.snap-scroll .footer-main-merged {
  flex-shrink: 0;
  width: 100%;
}

html.snap-scroll .footer-main-merged .container {
  padding-top: 0;
  padding-bottom: 0;
}

html.snap-scroll .footer-cta-section .footer-grid {
  padding-bottom: 40px;
}

html.snap-scroll .footer-cta-section .footer-bottom {
  padding-top: 20px;
  padding-bottom: 0;
}

/* LTR text alignment inside snap sections */
html.snap-scroll[dir="ltr"] .about-text,
html.snap-scroll[dir="ltr"] .timeline-panel > div,
html.snap-scroll[dir="ltr"] .service-card,
html.snap-scroll[dir="ltr"] .blog-card-body {
  text-align: left;
}

html.snap-scroll[dir="ltr"] .section-label {
  display: inline-block;
}

/* Section navigation dots */
.section-nav {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html[dir="rtl"] .section-nav {
  right: auto;
  left: 24px;
}

.section-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.section-nav-dot:hover,
.section-nav-dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

.section-nav-dot.active {
  box-shadow: 0 0 0 3px rgba(210,135,70,0.3);
}

@media (max-width: 768px) {
  html.snap-scroll {
    scroll-snap-type: none;
    scroll-behavior: smooth;
    scroll-padding-top: 0;
  }

  html.snap-scroll .top-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html.snap-scroll .header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html.snap-scroll:not(.nav-solid) .nav a,
  html.snap-scroll.nav-solid .nav a {
    color: var(--dark);
  }

  html.snap-scroll:not(.nav-solid) .nav a:hover,
  html.snap-scroll:not(.nav-solid) .nav a.active,
  html.snap-scroll.nav-solid .nav a:hover,
  html.snap-scroll.nav-solid .nav a.active {
    color: var(--primary);
  }

  html.snap-scroll:not(.nav-solid) .menu-toggle span,
  html.snap-scroll.nav-solid .menu-toggle span {
    background: var(--dark);
  }

  html.snap-scroll.nav-solid .top-bar {
    background: #000;
  }

  html.snap-scroll .snap-section:not(.hero),
  .snap-section:not(.hero) {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    display: block;
    padding: 64px 0 !important;
  }

  html.snap-scroll .hero.snap-section {
    height: 70vh;
    min-height: 450px;
    max-height: none;
    display: flex;
    padding: 0 !important;
  }

  html.snap-scroll .snap-section:not(.hero) > .container,
  html.snap-scroll .snap-section:not(.hero) > .container-wide,
  html.snap-scroll .features-stats-inner,
  html.snap-scroll .footer-cta-inner {
    height: auto;
    max-height: none;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
  }

  html.snap-scroll .features-stats-section,
  html.snap-scroll .footer-cta-section {
    height: auto;
    max-height: none;
  }

  html.snap-scroll .features-stats-section .stats-section-merged {
    padding-top: 48px !important;
  }

  html.snap-scroll .features-stats-section .stat-item {
    padding: 20px 0;
  }

  html.snap-scroll .footer-cta-inner {
    justify-content: flex-start;
  }

  html.snap-scroll .about-grid,
  html.snap-scroll .timeline-panel {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  html.snap-scroll .about-image-frame,
  html.snap-scroll .timeline-panel img {
    max-height: none;
  }

  html.snap-scroll .services-grid,
  html.snap-scroll .products-grid,
  html.snap-scroll .blog-grid,
  html.snap-scroll .values-grid,
  html.snap-scroll .stats-grid,
  html.snap-scroll .counter-grid {
    grid-template-columns: 1fr;
  }

  html.snap-scroll .cert-grid,
  html.snap-scroll .process-values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .section-nav,
  .scroll-more {
    display: none;
  }
}
