/* ============================================ */
/* ATF & BRAKE FLUID PAGE - COMPLETE STYLES */
/* ============================================ */

/* Hero Section - Crimson Red Theme */
.atf-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #f8f6f2 0%, #ffffff 100%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.atf-hero-bg-gradient {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(181, 91, 74, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.atf-hero-bg-shape-1 {
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 40%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(44, 110, 158, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 50%;
}

.atf-hero-bg-shape-2 {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(181, 91, 74, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 50%;
  filter: blur(40px);
}

.atf-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.atf-hero-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease forwards;
}

.atf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.atf-hero-dot {
  width: 7px;
  height: 7px;
  background: var(--crimson-red);
  border-radius: 50%;
}

.atf-hero-badge {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-text);
}

.atf-hero-title {
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--soft-black);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.atf-hero-title span {
  color: var(--crimson-red);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.atf-hero-title span::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(181, 91, 74, 0.25);
  z-index: -1;
}

.atf-hero-divider {
  width: 60px;
  height: 2px;
  background: var(--crimson-red);
  margin: 0 auto 1.2rem;
  border-radius: 2px;
}

.atf-hero-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 1.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.atf-hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  justify-content: center;
  flex-wrap: wrap;
}

.atf-hero-stat {
  text-align: center;
}

.atf-hero-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--crimson-red);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.atf-hero-stat-label {
  font-size: 0.7rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.atf-hero-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.atf-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--crimson-red);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
}

.atf-hero-link svg {
  transition: transform 0.3s ease;
  stroke: var(--crimson-red);
}

.atf-hero-link:hover {
  gap: 0.75rem;
  border-bottom-color: var(--crimson-red);
}

.atf-hero-link:hover svg {
  transform: translateX(4px);
}

/* Product Showcase Section */
.atf-products-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--bg-white);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.atf-products-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 2rem 2rem;
  width: 100%;
  flex: 1;
}

.atf-section-header {
  text-align: center;
  margin-bottom: 2rem;
  flex-shrink: 0;
}

.atf-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  justify-content: center;
}

.atf-section-dot {
  width: 7px;
  height: 7px;
  background: var(--crimson-red);
  border-radius: 50%;
}

.atf-section-badge {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-text);
}

.atf-section-title {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--soft-black);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.atf-section-title span {
  color: var(--crimson-red);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.atf-section-title span::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(181, 91, 74, 0.25);
  z-index: -1;
}

.atf-section-divider {
  width: 50px;
  height: 2px;
  background: var(--crimson-red);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.atf-section-subtitle {
  font-size: 0.9rem;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Product Grid - ALWAYS 3 COLUMNS */
.atf-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.atf-product-card {
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-medium);
  display: flex;
  flex-direction: column;
}

.atf-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  border-color: rgba(181, 91, 74, 0.3);
}

.atf-product-image {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f6f2 0%, #ffffff 100%);
  padding: 1.5rem;
}

.atf-product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.atf-product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--crimson-red);
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.atf-product-content {
  padding: 1.2rem;
  flex: 1;
}

.atf-product-type {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--crimson-red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.atf-product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--soft-black);
  margin-bottom: 0.4rem;
}

.atf-product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.atf-product-specs span {
  font-size: 0.55rem;
  padding: 0.15rem 0.5rem;
  background: var(--gray-light);
  color: var(--gray-dark);
  border-radius: 20px;
  font-weight: 500;
}

.atf-product-description {
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--gray-text);
  margin-bottom: 0.8rem;
}

.atf-product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.atf-product-features span {
  font-size: 0.55rem;
  color: var(--gray-text);
  background: rgba(181, 91, 74, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.atf-product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--crimson-red);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.atf-product-link:hover {
  gap: 0.6rem;
  border-bottom-color: var(--crimson-red);
}

/* Technical Specs Section */
.atf-specs-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--bg-alt);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.atf-specs-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 2rem 2rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Table Wrapper for Horizontal Scroll */
.atf-specs-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 24px;
}

.atf-specs-table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.atf-specs-table-wrapper::-webkit-scrollbar-track {
  background: var(--gray-medium);
  border-radius: 3px;
}

.atf-specs-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--crimson-red);
  border-radius: 3px;
}

.atf-specs-table {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-medium);
  min-width: 700px;
}

.atf-specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.atf-specs-table th,
.atf-specs-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-medium);
}

.atf-specs-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--soft-black);
  font-size: 0.85rem;
}

.atf-specs-table td {
  font-size: 0.8rem;
  color: var(--gray-text);
}

.atf-specs-table tr:last-child td {
  border-bottom: none;
}

/* CTA Section */
.atf-cta {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f6f2 100%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.atf-cta::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(181, 91, 74, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.atf-cta::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(
    circle,
    rgba(44, 110, 158, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
  border-radius: 50%;
}

.atf-cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.atf-cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease forwards;
}

.atf-cta-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--soft-black);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.atf-cta-subtitle {
  font-size: 1rem;
  color: var(--gray-text);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.atf-cta-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.atf-cta-btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: var(--crimson-red);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 2px;
  border: 1px solid transparent;
}

.atf-cta-btn-primary:hover {
  background: #8a3a2f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(181, 91, 74, 0.3);
}

.atf-cta-btn-secondary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: transparent;
  color: var(--soft-black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1.5px solid var(--gray-medium);
  border-radius: 2px;
}

.atf-cta-btn-secondary:hover {
  border-color: var(--crimson-red);
  color: var(--crimson-red);
  transform: translateY(-2px);
}

/* Pagination Styles */
.atf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-medium);
  flex-wrap: wrap;
}

.atf-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1.5px solid var(--gray-medium);
  border-radius: 40px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.atf-pagination-btn:hover:not(:disabled) {
  border-color: var(--crimson-red);
  color: var(--crimson-red);
  transform: translateY(-2px);
}

.atf-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.atf-pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.atf-page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.8rem;
  background: transparent;
  border: 1.5px solid var(--gray-medium);
  border-radius: 40px;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.atf-page-number:hover {
  border-color: var(--crimson-red);
  color: var(--crimson-red);
}

.atf-page-number.active {
  background: var(--crimson-red);
  border-color: transparent;
  color: white;
}

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

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .atf-products-grid {
    gap: 1rem;
  }

  .atf-product-image {
    height: 180px;
  }

  .atf-product-content {
    padding: 1rem;
  }

  .atf-hero-title {
    font-size: 2.5rem;
  }

  .atf-products-container,
  .atf-specs-container {
    padding: 80px 1.5rem 1.5rem;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .atf-hero,
  .atf-products-section,
  .atf-specs-section,
  .atf-cta {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .atf-hero-container,
  .atf-products-container,
  .atf-specs-container,
  .atf-cta-container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .atf-hero-container {
    padding: 0 1rem;
  }

  .atf-hero-title {
    font-size: 1.8rem;
  }

  .atf-hero-title span::before {
    bottom: 4px;
    height: 5px;
  }

  .atf-hero-description {
    font-size: 0.85rem;
  }

  .atf-hero-stats {
    gap: 1rem;
  }

  .atf-hero-stat-number {
    font-size: 1.3rem;
  }

  .atf-products-container,
  .atf-specs-container {
    padding: 80px 1rem 1.5rem;
  }

  .atf-section-header {
    margin-bottom: 1rem;
  }

  .atf-section-title {
    font-size: 1.5rem;
  }

  .atf-section-subtitle {
    font-size: 0.75rem;
  }

  .atf-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .atf-product-image {
    height: 130px;
    padding: 0.8rem;
  }

  .atf-product-badge {
    font-size: 0.45rem;
    padding: 0.15rem 0.5rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  .atf-product-content {
    padding: 0.8rem;
  }

  .atf-product-type {
    font-size: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .atf-product-title {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }

  .atf-product-specs {
    gap: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .atf-product-specs span {
    font-size: 0.45rem;
    padding: 0.1rem 0.35rem;
  }

  .atf-product-description {
    font-size: 0.55rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .atf-product-features {
    gap: 0.25rem;
    margin-bottom: 0.6rem;
  }

  .atf-product-features span {
    font-size: 0.45rem;
    padding: 0.1rem 0.35rem;
  }

  .atf-product-link {
    font-size: 0.55rem;
  }

  .atf-specs-table th,
  .atf-specs-table td {
    padding: 0.6rem 0.8rem;
    font-size: 0.65rem;
  }

  .atf-pagination {
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .atf-pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }

  .atf-page-number {
    min-width: 32px;
    height: 32px;
    padding: 0 0.6rem;
    font-size: 0.7rem;
  }

  .atf-cta-title {
    font-size: 1.4rem;
  }

  .atf-cta-subtitle {
    font-size: 0.8rem;
  }

  .atf-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .atf-cta-btn-primary,
  .atf-cta-btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .atf-hero-title {
    font-size: 1.5rem;
  }

  .atf-hero-description {
    font-size: 0.75rem;
  }

  .atf-hero-stat-number {
    font-size: 1.1rem;
  }

  .atf-products-container,
  .atf-specs-container {
    padding: 75px 0.8rem 1rem;
  }

  .atf-section-title {
    font-size: 1.3rem;
  }

  .atf-products-grid {
    gap: 0.6rem;
  }

  .atf-product-image {
    height: 105px;
    padding: 0.5rem;
  }

  .atf-product-content {
    padding: 0.6rem;
  }

  .atf-product-type {
    font-size: 0.45rem;
  }

  .atf-product-title {
    font-size: 0.6rem;
  }

  .atf-product-specs span {
    font-size: 0.4rem;
    padding: 0.08rem 0.3rem;
  }

  .atf-product-description {
    font-size: 0.5rem;
  }

  .atf-product-features span {
    font-size: 0.4rem;
    padding: 0.08rem 0.3rem;
  }

  .atf-product-link {
    font-size: 0.5rem;
  }

  .atf-specs-table th,
  .atf-specs-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.6rem;
  }

  .atf-pagination-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
  }

  .atf-page-number {
    min-width: 28px;
    height: 28px;
    padding: 0 0.5rem;
    font-size: 0.65rem;
  }

  .atf-cta-title {
    font-size: 1.3rem;
  }

  .atf-cta-subtitle {
    font-size: 0.75rem;
  }
}

/* Extra Small Mobile (380px and below) */
@media (max-width: 380px) {
  .atf-hero-title {
    font-size: 1.3rem;
  }

  .atf-hero-stat-number {
    font-size: 1rem;
  }

  .atf-products-container,
  .atf-specs-container {
    padding: 70px 0.6rem 0.8rem;
  }

  .atf-section-title {
    font-size: 1.2rem;
  }

  .atf-products-grid {
    gap: 0.5rem;
  }

  .atf-product-image {
    height: 90px;
  }

  .atf-product-title {
    font-size: 0.55rem;
  }

  .atf-product-description {
    font-size: 0.45rem;
  }

  .atf-specs-table th,
  .atf-specs-table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.55rem;
  }

  .atf-cta-title {
    font-size: 1.2rem;
  }
}

/* RTL Support */
html[dir="rtl"] .atf-hero-title span::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .atf-hero-link svg {
  transform: rotate(180deg);
}

html[dir="rtl"] .atf-hero-link:hover svg {
  transform: rotate(180deg) translateX(-4px);
}

html[dir="rtl"] .atf-product-link svg {
  transform: rotate(180deg);
}

html[dir="rtl"] .atf-product-link:hover svg {
  transform: rotate(180deg) translateX(-4px);
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .atf-hero-content,
  .atf-product-card,
  .atf-product-image img,
  .atf-product-link {
    animation: none !important;
    transition: none !important;
  }

  .atf-product-card:hover {
    transform: none;
  }

  .atf-product-card:hover .atf-product-image img {
    transform: none;
  }
}
