/* Main Styles for Prism Specialties DMV Website */

/* Global Styles */
:root {
  --primary-blue: #00a0e3;
  --secondary-dark-gray: #333333;
  --white: #ffffff;
  --black: #000000;
  --light-gray: #f5f5f5;
  --medium-gray: #dddddd;
  --error-red: #e74c3c;
  --success-green: #27ae60;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--black);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
  text-decoration: none;
  transition: top 0.3s ease;
  z-index: 2000;
  border-radius: 4px;
  font-weight: bold;
}

.skip-link:focus {
  top: 6px;
}

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--white);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
}

.contact-info {
  display: flex;
  align-items: center;
}

.contact-info a {
  margin-left: 20px;
  color: var(--black);
  font-weight: bold;
}

.contact-info a:hover {
  color: var(--primary-blue);
}

.phone-number {
  display: flex;
  align-items: center;
}

.phone-number i {
  color: var(--primary-blue);
  margin-right: 5px;
}

/* Navigation Styles */
nav {
  background-color: var(--white);
  border-top: 1px solid var(--medium-gray);
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--secondary-dark-gray);
  margin: 3px 0;
  transition: 0.3s;
  transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
  display: flex;
  justify-content: space-between;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 15px;
  color: var(--black);
  font-weight: bold;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

/* Hero Section - FIXED PATHS */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 120px;
  position: relative;
  background-color: var(--secondary-dark-gray); /* Fallback color */
}

/* EXACT FIX - Replace your .hero-bg section with this */

.hero-bg {
  background-image: url('../img/hero-background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* Changed from fixed - sometimes causes issues */
  background-color: #333; /* Fallback color while image loads */
}

/* Fallback paths - if first doesn't work, try these alternatives */
.hero-bg-alt1 {
  background-image: url('/img/hero-background.jpg');
}

.hero-bg-alt2 {
  background-image: url('./img/hero-background.jpg');
}

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

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  color: #f8f9fa;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f1f3f4;
}

.cta-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cta-buttons .btn {
  min-width: 200px;
  padding: 18px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), #0088c7);
  color: var(--white);
  border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0088c7, #006ba6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Services Section */
.services, .who-we-serve {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.why-choose-us, .contact-form-section {
  padding: 80px 0;
  background-color: var(--white);
}

.damage-types {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.section-title h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary-dark-gray);
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), #0088c7);
  border-radius: 2px;
}

.section-description {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

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

.service-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 160, 227, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 30px 25px;
  text-align: center;
}

.service-content h3 {
  margin-bottom: 15px;
  color: var(--secondary-dark-gray);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.service-content p {
  color: #666;
  line-height: 1.7;
  font-size: 1rem;
}

/* Why Choose Us Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.feature {
  padding: 40px 30px;
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 3.5rem;
  color: var(--primary-blue);
  margin-bottom: 25px;
}

.feature h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-dark-gray);
}

.feature p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

/* Types of Damage Section */
.damage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.damage-card {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  height: 300px;
}

.damage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.damage-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  color: var(--white);
}

.damage-overlay h3 {
  margin-bottom: 10px;
}

/* Contact Form Section */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--secondary-dark-gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--medium-gray);
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--error-red);
}

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

.error-message {
  color: var(--error-red);
  font-size: 0.9em;
  margin-top: 5px;
  display: block;
  min-height: 1.2em;
}

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

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 5px;
  width: auto;
  transform: scale(1.2);
}

.checkbox-group span {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555;
}

/* Footer Styles */
footer {
  background-color: var(--secondary-dark-gray);
  color: var(--white);
  padding: 50px 0 20px;
}

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

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-links h4 {
  margin-bottom: 20px;
  position: relative;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-blue);
}

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

.footer-links ul li a {
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-blue);
  width: 20px;
}

.footer-contact a {
  color: var(--white);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin-bottom: 10px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-legal a {
  color: var(--white);
  transition: all 0.3s ease;
}

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

/* Legal Pages */
.legal-content {
  padding: 150px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: var(--secondary-dark-gray);
}

.legal-content h2 {
  margin: 30px 0 15px;
  color: var(--secondary-dark-gray);
  font-size: 1.5rem;
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 15px;
  padding-left: 30px;
}

.legal-content ul li {
  list-style-type: disc;
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.legal-content a:hover {
  color: #0088c7;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .header-top {
    flex-direction: column;
    padding: 15px 0;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .contact-info {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .contact-info a {
    margin: 5px 10px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .hero {
    height: auto;
    min-height: 70vh;
    padding: 100px 0 80px;
    margin-top: 150px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.5em;
  }
  
  .hero-description {
    font-size: 1.1em;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .section-title h2 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 70vh;
    padding: 100px 0 80px;
    background-attachment: scroll;
    margin-top: 140px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 25px;
  }
  
  .hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 15px;
  }
  
  .hero-description {
    font-size: 1.05em;
    margin-bottom: 35px;
  }
  
  .cta-buttons .btn {
    padding: 16px 30px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1.1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-container {
    padding: 20px;
    margin: 0 10px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 80px 0 60px;
  }
  
  .hero h1 {
    font-size: 1.9rem;
  }
  
  .hero-subtitle {
    font-size: 1.2em;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
    padding: 15px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .services-grid,
  .damage-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
}