/* Modern Style for buymywrx.com 2.0 */

/* Color Variables */
:root {
  --primary: #1E5899; /* Subaru Blue */
  --primary-dark: #17447A;
  --primary-light: #2C7BD9;
  --accent: #FF5A00; /* Orange accent for CTAs */
  --light: #F8FAFC;
  --dark: #1A202C;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --text: #334155;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 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);
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --transition: all 0.2s ease-in-out;
  --max-width: 1280px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  max-width: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Layout */
.navbar {
  background: linear-gradient(to right, var(--primary-dark), var(--primary));
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  position: relative; /* Ensure positioned elements inside work correctly */
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo:hover {
  color: white;
  text-decoration: none;
}

.logo img {
  height: 2rem;
  margin-right: 0.75rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.nav-links a {
  color: white;
  opacity: 0.9;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  border-bottom-color: white;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 15px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin-bottom: 5px;
  border-radius: 3px;
  transition: all 0.3s;
}

/* Header/Hero */
.hero {
  position: relative;
  background: linear-gradient(rgba(26, 32, 44, 0.7), rgba(26, 32, 44, 0.5)), 
              url('../images/02_exterior_passenger_front_bumper.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
  background: var(--primary-light);
  color: white;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-outline {
  background: transparent;
  border: 1px solid white;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: #e05000;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
}

/* Card Components */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card-header {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card-subtitle {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.card-body {
  margin-bottom: 1rem;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.col {
  flex: 1 0 0%;
  padding: 0 0.75rem;
  margin-bottom: 1.5rem;
}

.col-12 { width: 100%; }
.col-6 { width: 50%; }
.col-4 { width: 33.333333%; }
.col-3 { width: 25%; }
.col-8 { width: 66.666667%; }

/* Specific Components */

/* Feature Icons */
.feature-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  margin-right: 1rem;
}

.feature-content {
  flex: 1;
}

/* Specs List */
.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list .specs-label {
  color: var(--gray-600);
}

.specs-list .specs-value {
  font-weight: 600;
  text-align: right;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  list-style: none;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 7px;
  top: 5px;
  bottom: 0;
  width: 2px;
  background: var(--gray-300);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  top: 0.25rem;
  z-index: 2;
}

.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* Image Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  height: 0;
  padding-bottom: 66.67%; /* 3:2 aspect ratio */
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ */
.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1.5rem;
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.faq-answer {
  color: var(--gray-700);
}

/* Contact Form */
.contact-methods {
  display: flex;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.contact-method {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 1.5rem;
  margin: 0.5rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-method h3 {
  margin-bottom: 0.5rem;
}

/* Section Spacing */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--gray-100);
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  z-index: 1;
}

.section-title:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.pb-5 { padding-bottom: 3rem; }
.pt-5 { padding-top: 3rem; }

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 0;
}

.footer a {
  color: var(--gray-300);
}

.footer a:hover {
  color: white;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-section h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-light);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--gray-700);
  color: var(--gray-400);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.lightbox-prev, .lightbox-next {
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
@media screen and (max-width: 768px) {
  /* Show hamburger */
  .hamburger {
    display: flex;
  }
  
  /* Hide nav links by default */
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    flex-direction: column;
    background: var(--primary-dark);
    padding: 2rem;
    z-index: 99;
    overflow-y: auto;
  }
  
  /* Show nav links when active */
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 1rem 0;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    color: white;
  }
  
  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
  }
  
  .col-6, .col-4, .col-3, .col-8 {
    width: 100%;
  }
}

/* Additional responsive fixes */
@media screen and (max-width: 480px) {
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
}