/* Best Tire Inflators Website Styles */

:root {
  --primary: #ff7a00;
  --primary-dark: #d96700;
  --primary-black: #0f2a43;
  --secondary-gray: #4a5a6a;
  --light-gray: #eef2f6;
  --white: #ffffff;
  --text-dark: #1d2b38;
  --border-color: #dbe2ea;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--primary-black);
  padding: 0.5rem 1rem;
  z-index: 2000;
}

.skip-link:focus {
  left: 0;
}

/* Header & Navigation */
header {
  background: var(--primary-black);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f2a43 0%, #1c4a73 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #d6e0ea;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.prose {
  max-width: 800px;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  color: var(--primary-black);
}

.prose p,
.prose ul {
  margin-bottom: 1rem;
  color: var(--secondary-gray);
}

.prose ul {
  padding-left: 1.5rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--secondary-gray);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: var(--light-gray);
}

.product-info {
  padding: 1.5rem;
}

.product-badge {
  display: inline-block;
  background: var(--primary-black);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-info h3 a {
  color: var(--primary-black);
  text-decoration: none;
}

.product-info p {
  color: var(--secondary-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

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

.button-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

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

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

/* Product Detail Page */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--secondary-gray);
  margin-bottom: 1.5rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.main-image {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--light-gray);
}

.product-details h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

.product-details .price {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.product-description {
  margin-bottom: 2rem;
  line-height: 1.8;
  color: var(--secondary-gray);
}

.features-list {
  margin-bottom: 2rem;
}

.features-list h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-black);
}

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

.features-list li {
  padding: 0.5rem 0;
  color: var(--secondary-gray);
}

.features-list li::before {
  content: "\2022  ";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

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

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--secondary-gray);
}

.spec-table th {
  width: 40%;
  color: var(--primary-black);
}

/* Brand Story Section */
.brand-story {
  background: var(--light-gray);
  padding: 4rem 2rem;
}

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

.brand-story h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-black);
}

.brand-story p {
  font-size: 1.1rem;
  color: var(--secondary-gray);
  margin-bottom: 1.25rem;
}

/* Footer */
footer {
  background: var(--primary-black);
  color: #c4d0dc;
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

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

footer p {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    position: relative;
    padding: 0 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    background: var(--primary-black);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }

  nav ul.nav-open {
    display: flex;
  }

  nav li a {
    display: block;
    padding: 0.75rem 0;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .section-header h1,
  .section-header h2,
  .brand-story h2 {
    font-size: 1.9rem;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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