/*
Theme Name: Davis Commercial Roofing
Description: Professional child theme for Davis Commercial Roofing - Built on Divi
Template: Divi
Version: 1.0.0
Author: Custom Design
*/

@import url("../Divi/style.css");

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-orange: #e55100;
  --bright-orange: #ff6d00;
  --dark-gray: #2c2c2c;
  --charcoal: #1a1a1a;
  --light-gray: #f5f5f5;
  --medium-gray: #666666;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== HEADER CUSTOMIZATION ===== */
#main-header {
  background: var(--white);
  box-shadow: var(--shadow-light);
  border-bottom: 3px solid var(--primary-orange);
}

#main-header .container {
  padding: 15px 0;
}

#logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
}

#logo:hover {
  color: var(--primary-orange);
}

/* Navigation Styling */
#top-menu li a {
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  transition: var(--transition);
}

#top-menu li a:hover {
  color: var(--primary-orange);
  background: var(--light-gray);
}

/* CTA Button in Header */
.header-cta {
  background: var(--primary-orange);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.header-cta:hover {
  background: var(--bright-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-gray) 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="roof-pattern" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M0 20L10 10L20 20" stroke="%23ffffff" stroke-width="0.5" fill="none" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23roof-pattern)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  background: var(--primary-orange);
  color: var(--white);
  padding: 18px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: var(--bright-orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--primary-orange);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-orange);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 15px;
}

.service-description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary-orange);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--bright-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  padding: 15px 30px;
  border: 2px solid var(--charcoal);
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
#main-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-widget-area {
  margin-bottom: 40px;
}

.footer-widget h4 {
  color: var(--primary-orange);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-widget a {
  color: #cccccc;
  transition: var(--transition);
}

.footer-widget a:hover {
  color: var(--primary-orange);
}

/* ===== CONTACT FORMS ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--transition);
  margin-bottom: 20px;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--primary-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 81, 0, 0.1);
}

.wpcf7-form input[type="submit"] {
  background: var(--primary-orange);
  color: var(--white);
  padding: 15px 35px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--bright-orange);
  transform: translateY(-2px);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border-left: 5px solid var(--primary-orange);
  margin-bottom: 30px;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  color: var(--charcoal);
}

.testimonial-company {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .service-card {
    margin-bottom: 30px;
  }
  
  #main-header .container {
    padding: 10px 0;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-orange {
  color: var(--primary-orange);
}

.bg-orange {
  background-color: var(--primary-orange);
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }