/* MRO Supply - Professional Website Styles */

/* ========== CSS Variables ========== */
:root {
  --primary-color: #8B0000;
  --primary-hover: #6B0000;
  --text-dark: #011627;
  --text-muted: rgba(1, 22, 39, 0.75);
  --text-light: #ffffff;
  --bg-dark: #8B0000;
  --bg-light: #f9f8f8;
  --bg-white: #ffffff;
  --border-color: #eaeaea;
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

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

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  background-color: var(--bg-white);
}

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

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

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

ul {
  list-style: none;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.4;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.5;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.5;
}

h5 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

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

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 60px 0;
}

.section-lg {
  padding: 100px 0;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

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

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

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

/* ========== Header & Navigation ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  padding: 15px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.02em;
}

.header.scrolled .logo-text {
  color: var(--text-dark);
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
  position: relative;
}

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

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

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

.header.scrolled .nav-link {
  color: var(--text-muted);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
}

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

.header.scrolled .menu-toggle span {
  background-color: var(--text-dark);
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.85) 0%, rgba(74, 0, 0, 0.9) 100%), url('../images/hero-industrial.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.hero h5 {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========== About Section ========== */
.about-section {
  background-color: var(--bg-white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ========== Products/Services Section ========== */
.products-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #4a0000 100%);
  color: var(--text-light);
}

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

.products-list h5 {
  color: rgba(255, 255, 255, 0.7);
}

.products-list h3 {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.product-item {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-item h4 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.product-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.product-item.coming-soon h4::after {
  content: ' (Coming Soon)';
  font-size: 0.75rem;
  color: var(--primary-color);
}

.products-cta {
  text-align: center;
}

.products-cta h2 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ========== Industries Section ========== */
.industries-section {
  background-color: var(--bg-light);
}

.industries-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.industry-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-dark);
  transition: var(--transition);
}

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

.industry-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: var(--transition);
}

.industry-card:hover .industry-card-bg {
  opacity: 0.8;
  transform: scale(1.05);
}

.industry-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(1, 22, 39, 0.9), transparent);
}

.industry-card h4 {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Industry card backgrounds */
.industry-electronics .industry-card-bg {
  background: url('../images/electronics-industry.jpg');
  background-size: cover;
  background-position: center;
}

.industry-semiconductor .industry-card-bg {
  background: url('../images/semiconductor.jpg');
  background-size: cover;
  background-position: center;
}

.industry-automotive .industry-card-bg {
  background: url('../images/automotive.jpg');
  background-size: cover;
  background-position: center;
}

/* ========== CTA Banner ========== */
.cta-banner {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-content h3 {
  margin-bottom: 0;
}

/* ========== Footer ========== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 80px;
}

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

.footer-brand .tagline {
  font-style: italic;
  font-size: 0.9375rem;
}

.footer h5 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-light);
  padding-left: 5px;
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ========== Page Headers ========== */
.page-header {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.85) 0%, rgba(74, 0, 0, 0.9) 100%), url('../images/hero-industrial.jpg');
  background-size: cover;
  background-position: center;
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== About Page ========== */
.about-intro {
  background-color: var(--bg-white);
}

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

.about-intro-text h2 {
  margin-bottom: 1.5rem;
}

.about-image-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mv-card {
  background-color: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.mv-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

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

.value-card {
  text-align: center;
  padding: 30px 20px;
}

.value-icon {
  width: 70px;
  height: 70px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.value-card h4 {
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ========== Services Page ========== */
.services-intro {
  background-color: var(--bg-white);
  text-align: center;
}

.services-intro p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

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

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even) > * {
  direction: ltr;
}

.service-item:last-child {
  border-bottom: none;
}

.service-content h3 {
  margin-bottom: 1rem;
}

.service-content p {
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.service-image-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  border-radius: 12px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ========== Contact Page ========== */
.contact-section {
  background-color: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-item h4 {
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-form {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(216, 71, 52, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ========== Utilities ========== */
.text-center {
  text-align: center;
}

.text-white {
  color: var(--text-light) !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 1rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }

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

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--text-dark);
    font-size: 1.125rem;
  }

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

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .products-grid,
  .about-intro-content,
  .mv-grid,
  .contact-grid,
  .service-item,
  .service-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-item:nth-child(even) > * {
    direction: ltr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100svh;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
  }
}
