/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #b71c1c;
  --secondary-color: #8b1515;
  --accent-color: #d32f2f;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Header and Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: block;
  text-decoration: none;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
}

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

nav ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  background-image:
    linear-gradient(135deg, rgba(183, 28, 28, 0.85) 0%, rgba(139, 21, 21, 0.85) 100%),
    url('assets/laser-cleaning-hero1_169.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 1rem;
}

.cta-button-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

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

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--primary-color);
}

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

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

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.service-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card a:hover {
  gap: 0.75rem;
}

/* Benefits Section */
.benefits {
  background-color: var(--bg-light);
  padding: 4rem 2rem;
}

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

.benefit-item {
  text-align: center;
  padding: 1.5rem;
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.benefit-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.benefit-item p {
  color: var(--text-light);
}

/* Content Pages */
.page-header {
  background-image:
    linear-gradient(135deg, rgba(183, 28, 28, 0.85) 0%, rgba(139, 21, 21, 0.85) 100%),
    url('assets/laser-cleaning-hero1_169.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.content-section {
  padding: 3rem 0;
}

.content-section ul {
  margin-left: 2rem;
  margin-top: 1rem;
}

.content-section li {
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 3rem auto;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

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

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

.submit-button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  width: 100%;
}

.submit-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
}

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

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

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

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

/* Responsive Design */

/* Tablet devices (portrait) */
@media (max-width: 992px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem;
  }

  .page-header {
    padding: 4rem 1.5rem;
  }

  .container {
    padding: 3rem 1.5rem;
  }

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

/* Mobile devices */
@media (max-width: 768px) {
  /* Header and Navigation */
  .header-container {
    padding: 0.75rem 1rem;
  }

  .logo img {
    height: 50px;
  }

  .mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    font-size: 1.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  nav ul li a {
    padding: 0.75rem;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
    background-color: var(--bg-light);
  }

  .dropdown-content a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hero Sections */
  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .page-header {
    padding: 3rem 1rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .page-header p {
    font-size: 1rem;
  }

  /* Buttons */
  .cta-button {
    width: 100%;
    padding: 1rem;
    min-height: 48px;
    font-size: 1rem;
  }

  .cta-button-secondary {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .submit-button {
    min-height: 48px;
    font-size: 1rem;
  }

  /* Typography */
  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Grids and Cards */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .service-card {
    padding: 1.5rem;
  }

  /* Container */
  .container {
    padding: 2rem 1rem;
  }

  .content-section {
    padding: 2rem 0;
  }

  /* Forms */
  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  footer {
    padding: 2rem 1rem 1rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .logo img {
    height: 45px;
  }

  .service-card {
    padding: 1.25rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Ensure all interactive elements are touch-friendly */
  a, button, input, select, textarea {
    min-height: 44px;
  }

  .dropdown-content a {
    padding: 1rem 1.5rem;
  }
}

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

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

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