/* Joe's Welding And Machine Company - Main Stylesheet */
/* Pure.css Framework Integration + Custom Welding Theme */

/* Import Pure.css */
@import url('https://unpkg.com/purecss@2.0.6/build/pure-min.css');
@import url('https://unpkg.com/purecss@2.0.6/build/grids-responsive-min.css');

/* Root Variables for Consistent Design */
:root {
  --primary-color: #1a365d;      /* Deep steel blue */
  --secondary-color: #c53030;    /* Industrial red */
  --accent-color: #d69e2e;       /* Welding yellow/gold */
  --text-primary: #1a202c;       /* Dark text */
  --text-secondary: #4a5568;     /* Medium gray */
  --text-light: #ffffff;         /* White text */
  --bg-light: #f7fafc;          /* Light background */
  --bg-dark: #1a202c;           /* Dark background */
  --border-color: #e2e8f0;      /* Border gray */
  --shadow-color: rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Global Reset and Typography */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Force strong/b to inherit color from parent (Anti-Inheritance Rule) */
[class*="text-"] strong,
[class*="text-"] b,
[style*="color"] strong,
[style*="color"] b,
.text-white strong, .text-white b,
.text-light strong, .text-light b {
  color: inherit;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  /* color: var(--text-primary); */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
  /* color: var(--text-primary); */
}

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

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

/* Container and Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

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

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

/* Header Styles */
.header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

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

/* Navigation Styles */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
  color: var(--text-light);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

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

.hero h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Buttons Container */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  box-shadow: 0 4px 6px var(--shadow-color);
}

.btn-primary:hover {
  background-color: #9b2c2c;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--shadow-color);
}

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

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

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

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

/* FAQ Styles */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px var(--shadow-color);
}

.faq-question {
  background: var(--bg-light);
  padding: 1.5rem;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.faq-question:hover {
  background: #edf2f7;
}

.faq-question:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 30px;
  text-align: center;
}

.faq-answer {
  padding: 1.5rem;
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  display: none;
}

.faq-answer.active {
  display: block;
}

/* Service Cards */
.service-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--primary-color);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-color);
}

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

.service-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #ffffff;
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

/* Contact Info Cards */
.contact-info {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px var(--shadow-color);
  margin-bottom: 2rem;
}

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

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* Testimonials */
.testimonial {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px var(--shadow-color);
  text-align: center;
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem 0;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 2rem;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px var(--shadow-color);
  z-index: 10000;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.cookie-banner-content {
  margin-bottom: 1rem;
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner-buttons .btn {
  flex: 1;
  min-width: 120px;
}

.cookie-banner-buttons .btn:first-child {
  background-color: var(--secondary-color);
}

.cookie-banner-buttons .btn:first-child:hover {
  background-color: #9b2c2c;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 1rem;
    display: none;
    box-shadow: 0 4px 6px var(--shadow-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
  }
  
  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .cookie-banner-buttons {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-menu a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Animation classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* Print styles */
@media print {
  .header,
  .mobile-menu-toggle,
  .cookie-consent-banner,
  .btn {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}