/* Elrod Roofing - Main Stylesheet */

:root {
  --primary: #1a5f7a;
  --primary-dark: #134b61;
  --secondary: #e67e22;
  --secondary-dark: #d35400;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #1a1a1a;
  --border: #e0e0e0;
  --success: #27ae60;
  --warning: #f39c12;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-dark);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.phone-btn {
  background: var(--secondary);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
}

.phone-btn:hover {
  background: var(--secondary-dark);
  color: white;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-secondary {
  border-color: white;
  color: white;
}

.hero .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

/* SOH Banner */
.soh-banner {
  background: var(--success);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.soh-banner h2 {
  margin-bottom: 0.5rem;
}

.soh-banner p {
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.soh-banner .btn {
  background: white;
  color: var(--success);
}

.soh-banner .btn:hover {
  background: var(--bg-light);
}

/* Services Grid */
.services-overview {
  padding: 60px 20px;
}

.services-overview h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

/* Why Us */
.why-us {
  background: var(--bg-light);
  padding: 60px 20px;
}

.why-us h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.benefits-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

.benefits-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.benefits-list li:last-child {
  border-bottom: none;
}

/* Service Area */
.service-area {
  padding: 40px 20px;
  text-align: center;
}

/* CTA Section */
.cta-section {
  background: var(--primary);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
}

.cta-phone {
  margin-top: 1rem;
}

.cta-phone a {
  color: white;
  text-decoration: underline;
}

/* Blog Listing */
.blog-listing {
  padding: 60px 20px;
}

.blog-listing h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.blog-intro {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 3rem;
}

.blog-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.blog-card.featured {
  border-left: 4px solid var(--secondary);
}

.blog-card .tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-card h2 a {
  color: var(--text);
}

.blog-card h2 a:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.blog-card .meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

.blog-cta {
  text-align: center;
  background: var(--bg-light);
  padding: 40px;
  border-radius: 8px;
}

/* Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-post h1 {
  margin-bottom: 0.5rem;
}

.blog-post .post-meta {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.blog-post h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-post ul, .blog-post ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.blog-post li {
  margin-bottom: 0.5rem;
}

.cta-box {
  background: var(--bg-light);
  border: 2px solid var(--secondary);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-page {
  padding: 60px 20px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

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

/* Footer */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

footer a {
  color: white;
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 15px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
