/* ==========================================================================
   Riegel Fasteners India Pvt. Ltd. - Core Stylesheet
   ========================================================================== */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens / Variables --- */
:root {
  /* Colors */
  --primary: #003087;      /* Navy Blue */
  --primary-dark: #002260;
  --primary-light: #e6ebf5;
  --accent: #FF6200;       /* Orange */
  --accent-dark: #cc4e00;
  --accent-light: #fff0e6;
  --dark: #1e2530;         /* Charcoal */
  --dark-light: #2c3545;
  --gray-dark: #4a5568;    /* Slate Gray */
  --gray: #718096;
  --gray-light: #e2e8f0;
  --bg-light: #f7fafc;     /* Soft White */
  --white: #ffffff;
  
  /* Typography */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Animation / Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Container Widths */
  --max-width: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --- Common Layout Elements --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 80px 0;
}

.section-bg-light {
  background-color: var(--bg-light);
}

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

.section-bg-dark h2 {
  color: var(--white);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.section-desc {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--gray);
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-headings);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 98, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 98, 0, 0.4);
}

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

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

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

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

/* --- Navigation Header --- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 5px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.logo-img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

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

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

.nav-link {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  padding: 5px 0;
}

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

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

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

.nav-cta {
  display: flex;
  align-items: center;
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

/* Mobile Overlay Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 37, 48, 0.98);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition-fast);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent);
  transform: scale(1.05);
}

.mobile-cta {
  margin-top: 10px;
}

/* Close Button on Mobile Overlay */
.mobile-menu-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-fast);
}

.mobile-menu-close:hover {
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 48, 135, 0.92) 0%, rgba(30, 37, 48, 0.95) 100%), url('../images/hero-bg.webp') no-repeat center center/cover;
  padding: 120px 0;
  color: var(--white);
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-subheading {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Trust Strip --- */
.trust-strip {
  background-color: var(--white);
  padding: 30px 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 15px;
  border-right: 1px solid var(--gray-light);
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon-box {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon-box svg {
  width: 24px;
  height: 24px;
}

.trust-text-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
}

.trust-text-box p {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

/* --- Why Choose Us Section --- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.usp-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border-top: 4px solid var(--primary);
  position: relative;
}

.usp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-top-color: var(--accent);
}

.usp-icon-wrap {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition-normal);
}

.usp-card:hover .usp-icon-wrap {
  background-color: var(--accent-light);
  color: var(--accent);
}

.usp-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.usp-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.usp-card p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

/* --- Product Categories Section --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.category-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.category-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0, 48, 135, 0.4) 100%);
}

.category-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-info p {
  color: var(--gray-dark);
  font-size: 0.925rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.category-link {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.category-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}

.category-card:hover .category-link {
  color: var(--accent-dark);
}

.category-card:hover .category-link svg {
  transform: translateX(5px);
}

/* --- Industries We Serve Section --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 25px 20px;
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.industry-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  background-color: var(--accent-light);
}

.industry-icon-box {
  background-color: var(--bg-light);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: var(--transition-normal);
}

.industry-card:hover .industry-icon-box {
  background-color: var(--white);
  color: var(--accent);
}

.industry-icon-box svg {
  width: 24px;
  height: 24px;
}

.industry-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.industry-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.4;
}

/* --- About Preview Section --- */
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-preview-img-wrap {
  position: relative;
}

.about-preview-img-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-preview-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--accent);
  color: var(--white);
  padding: 20px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 200px;
}

.about-preview-badge .number {
  font-family: var(--font-headings);
  font-size: 2.25rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.about-preview-badge .label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.about-preview-content h2 {
  font-size: 2.25rem;
  margin-bottom: 25px;
}

.about-preview-text {
  color: var(--gray-dark);
  margin-bottom: 30px;
}

.about-preview-bullets {
  margin-bottom: 30px;
}

.about-preview-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--dark);
}

.about-preview-bullets svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Quality & Certification Strip --- */
.quality-strip {
  padding: 40px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  background-color: var(--bg-light);
}

.quality-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.quality-badge-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quality-badge-icon {
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quality-badge-icon svg {
  width: 20px;
  height: 20px;
}

.quality-badge-text {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 98, 0, 0.15) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--gray-light);
  margin-bottom: 35px;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark);
  color: var(--gray-light);
  padding: 80px 0 30px;
  border-top: 5px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col-about h2 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-col-about h2 span {
  color: var(--accent);
}

.footer-col-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #a0aec0;
}

.footer-certs-row {
  display: flex;
  gap: 15px;
}

.footer-cert-badge {
  background-color: var(--dark-light);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.05);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: #a0aec0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

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

.footer-contact-info svg {
  color: var(--accent);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.footer-contact-text {
  color: #a0aec0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: #a0aec0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: #a0aec0;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* --- Floating Action Buttons (FAB) --- */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.fab {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  position: relative;
  transition: var(--transition-normal);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.fab-call {
  background-color: var(--primary);
}

.fab-whatsapp {
  background-color: #25d366;
}

.fab-pdf {
  background-color: var(--accent);
}

.fab svg {
  width: 22px;
  height: 22px;
}

/* Tooltips */
.fab::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  background-color: var(--dark);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  font-family: var(--font-body);
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.fab:hover::before {
  opacity: 1;
  visibility: visible;
}

/* --- Back To Top --- */
.back-to-top {
  position: fixed;
  bottom: 280px; /* Stacked above FABs */
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent);
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- Internal Breadcrumbs --- */
.breadcrumbs-bg {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--gray-light);
  padding: 15px 0;
}

.breadcrumbs {
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
}

.breadcrumbs a {
  color: var(--primary);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 10px;
  color: var(--gray-light);
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
}

/* --- Products Page styles --- */
.products-intro-wrap {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.products-intro {
  font-size: 1.15rem;
  color: var(--gray-dark);
}

/* --- Category Template Styles --- */
.category-intro-section {
  padding: 60px 0;
}

.category-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.category-intro-text p {
  font-size: 1.1rem;
  color: var(--gray-dark);
  margin-bottom: 30px;
}

.specs-table-wrap {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 25px;
  border-left: 4px solid var(--accent);
}

.specs-table-wrap h3 {
  font-size: 1.15rem;
  margin-bottom: 15px;
  color: var(--primary);
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 10px;
}

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

.specs-table td {
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #edf2f7;
}

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

.specs-table .label {
  font-weight: 700;
  color: var(--dark);
  width: 40%;
}

.specs-table .value {
  color: var(--gray-dark);
}

/* Sub-types listed section */
.subtypes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.subtype-card {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  cursor: pointer;
}

.subtype-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.subtype-card-icon {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.subtype-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

/* Dynamic Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
  transition: var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-card-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  background-color: #f7fafc;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.product-card-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.product-card-info p {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px dashed var(--gray-light);
  padding-top: 15px;
}

.product-tag {
  background-color: var(--bg-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-light);
}

/* --- Product Detail Modal --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 37, 48, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrap {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.modal-backdrop.active .modal-content-wrap {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-light);
  color: var(--dark);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--accent);
  color: var(--white);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 400px;
}

.modal-img-column {
  background-color: #f7fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.modal-img-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details-column {
  padding: 40px;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

.modal-desc {
  color: var(--gray-dark);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.modal-specs-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 6px;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.modal-specs-table td {
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #edf2f7;
}

.modal-specs-table .label {
  font-weight: 700;
  color: var(--dark);
  width: 35%;
}

.modal-specs-table .value {
  color: var(--gray-dark);
}

.modal-actions {
  display: flex;
  gap: 15px;
}

/* --- About Page Styles --- */
.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mission-vision-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary);
}

.mission-vision-card-vision {
  border-left-color: var(--accent);
}

.mission-vision-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mission-vision-card h3 svg {
  color: var(--accent);
}

.mission-vision-card-vision h3 svg {
  color: var(--primary);
}

.about-quality-section {
  background-color: var(--bg-light);
}

.quality-process-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.quality-process-text p {
  margin-bottom: 20px;
  color: var(--gray-dark);
}

.quality-badges-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quality-process-badge {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-top: 3px solid var(--accent);
}

.quality-process-badge-primary {
  border-top-color: var(--primary);
}

.quality-process-badge svg {
  color: var(--accent);
  margin-bottom: 12px;
}

.quality-process-badge-primary svg {
  color: var(--primary);
}

.quality-process-badge h4 {
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.quality-process-badge p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* --- Contact Page Styles --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-column h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.contact-intro-text {
  color: var(--gray-dark);
  margin-bottom: 35px;
}

.contact-detail-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.contact-item-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item-row:last-child {
  margin-bottom: 0;
}

.contact-item-icon {
  background-color: var(--white);
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}

.contact-item-text p {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.contact-form-column {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--gray-light);
}

.contact-form-column h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--primary);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark);
  background-color: var(--bg-light);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 98, 0, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-section {
  height: 450px;
  width: 100%;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-whatsapp-strip {
  background-color: var(--bg-light);
  border-top: 1px solid var(--gray-light);
  padding: 30px 0;
  text-align: center;
}

.contact-whatsapp-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-whatsapp-text {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

/* Success/Error Toast Message */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 30px;
  padding: 15px 25px;
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-msg.success {
  background-color: #2b6cb0; /* Deep blue instead of raw green */
}

.toast-msg.error {
  background-color: #c53030;
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  .hero h1 { font-size: 2.75rem; }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item {
    border-right: none;
    padding-bottom: 10px;
  }
  .trust-item:nth-child(1), .trust-item:nth-child(2) {
    border-bottom: 1px solid var(--gray-light);
  }
  
  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-preview-img-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .category-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 0;
  }
  .nav-menu {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  
  .hero {
    padding: 80px 0;
    min-height: auto;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero-subheading {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .usp-grid {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .subtypes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .modal-img-column {
    height: 250px;
  }
  .modal-details-column {
    padding: 25px;
  }
  
  .about-mission-grid {
    grid-template-columns: 1fr;
  }
  
  .quality-process-grid {
    grid-template-columns: 1fr;
  }
  
  .quality-badges-row {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-item {
    border-bottom: 1px solid var(--gray-light) !important;
  }
  .trust-item:last-child {
    border-bottom: none !important;
  }
  
  .industries-grid {
    grid-template-columns: 1fr;
  }
  
  .subtypes-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  .modal-actions .btn {
    width: 100%;
  }
  
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
  
  .back-to-top {
    bottom: 280px;
    right: 20px;
  }
}
