/* ===================================
   DAVE'S ROCK BLASTING & CONSTRUCTION
   Main Stylesheet
   =================================== */

/* -------------------------
   RESET & BASE STYLES
--------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* -------------------------
   HEADER & NAVIGATION
--------------------------- */
.header {
  background-color: #1a1a1a;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  background-color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header .logo {
  width: 350px;
  height: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links li a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #FFA500;
}

/* -------------------------
   HERO SECTION
--------------------------- */
.hero {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}

.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;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: #FFA500;
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.cta-button:hover {
  background-color: #FF8C00;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* -------------------------
   HERO SECTION (ALT)
--------------------------- */
.hero-section {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* -------------------------
   SERVICES PREVIEW
--------------------------- */
.services-preview {
  padding: 4rem 0;
  background-color: #fff;
}

.services-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1a1a1a;
}

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

.service-card {
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #FFA500;
}

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

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.service-card p {
  color: #555;
  line-height: 1.8;
}

/* -------------------------
   CONTENT SECTIONS
--------------------------- */
.content-section {
  padding: 4rem 0;
  background-color: #fff;
}

.content-section:nth-child(even) {
  background-color: #f9f9f9;
}

.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
  text-align: center;
}

.content-section h3 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.content-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.content-section ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.1rem;
  color: #555;
}

.content-section ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #FFA500;
  font-weight: bold;
}

/* -------------------------
   CTA SECTION
--------------------------- */
.cta-section {
  background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-section .cta-button {
  background-color: #1a1a1a;
  color: #fff;
}

.cta-section .cta-button:hover {
  background-color: #2c3e50;
}

/* -------------------------
   ABOUT SECTION
--------------------------- */
.about-intro {
  padding: 4rem 0;
  background-color: #fff;
}

.about-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

/* -------------------------
   CONTACT SECTION
--------------------------- */
.contact-section {
  padding: 4rem 0;
  background-color: #fff;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFA500;
}

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

.submit-button {
  background-color: #FFA500;
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
}

.submit-button:hover {
  background-color: #FF8C00;
}

.contact-details {
  padding: 4rem 0;
  background-color: #f9f9f9;
  text-align: center;
}

.contact-details h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1a1a1a;
}

.contact-details p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #555;
}

/* -------------------------
   FOOTER
--------------------------- */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* -------------------------
   RESPONSIVE DESIGN
--------------------------- */
@media screen and (max-width: 768px) {
  .header .logo {
    width: 280px;
  }
  
  .logo-container {
    margin-bottom: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .nav-links {
    gap: 1rem;
    justify-content: center;
  }
  
  .hero h1,
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero p,
  .hero-section p {
    font-size: 1rem;
  }
  
  .services-preview h2,
  .content-section h2,
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .services-cards {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .hero h1,
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
