/* Luis Construction - Professional Construction & Contracting Website */
/* Mobile-First Responsive Design | 2026 */

:root {
  --primary: #c45c26;
  --primary-dark: #9a471e;
  --primary-light: #e07a3d;
  --dark: #1a1a1a;
  --dark-soft: #2d2d2d;
  --gray: #4a4a4a;
  --gray-light: #6b6b6b;
  --light: #f5f5f5;
  --white: #ffffff;
  --accent: #ff8c42;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--primary);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--dark);
  padding: 2rem;
  transform: translateY(-150%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  box-shadow: var(--shadow-lg);
}

.nav-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--white);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-cta {
  margin-top: 1rem;
}

.nav-cta a {
  display: inline-block;
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
}

.nav-cta a:hover {
  background: var(--primary-light);
  color: var(--white) !important;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 50%, #3d2a1f 100%);
  color: var(--white);
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c45c26' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(196, 92, 38, 0.3);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(196, 92, 38, 0.5);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Touch-friendly tap targets (min 44px for mobile) */
@media (max-width: 767px) {
  .nav-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  a[href^="tel:"] {
    min-height: 48px;
    padding: 0.5rem 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 92, 38, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
}

.section-header .accent {
  color: var(--primary);
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Stats */
.stats {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.stat h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--primary);
}

.cta-banner .btn:hover {
  background: var(--light);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer a {
  display: block;
  padding: 0.25rem 0;
  opacity: 0.85;
}

.footer a:hover {
  opacity: 1;
  color: var(--primary);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-bottom a {
  display: inline;
  padding: 0;
}

/* Page Header */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: var(--white);
  padding: 7rem 1.5rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1rem;
  color: var(--gray);
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

/* Contact Form */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 220px;
  background: linear-gradient(135deg, var(--dark-soft) 0%, var(--gray) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  opacity: 0.9;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.project-content p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* About */
.about-content {
  display: grid;
  gap: 2rem;
}

.about-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--gray);
}

.about-features {
  display: grid;
  gap: 1rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Tablet and up */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: none;
  }

  .nav-menu a {
    border-bottom: none;
    padding: 0;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
