/* Denney's Roofing - Variant A: Trusted Local (Deep Green + Burnt Orange) */
:root {
  --primary-nav: #1a4d2e;
  --primary-nav-hover: #0f3620;
  --accent-orange: #c85a28;
  --accent-orange-hover: #a84620;
  --text-dark: #1f1f1f;
  --text-light: #666;
  --bg-light: #f9f9f9;
  --white: #fff;
  --border-light: #e0e0e0;
  --success-green: #2ecc71;
  --danger-red: #e74c3c;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--primary-nav);
  overscroll-behavior-y: none;
}

body {
  overscroll-behavior-y: none;
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Navigation */
nav {
  background-color: var(--primary-nav);
  color: var(--white);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--white);
}

.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  display: inline-block;
}

nav .nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.8;
}

nav .nav-cta {
  background-color: var(--accent-orange);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

nav .nav-cta:hover {
  background-color: var(--accent-orange-hover);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 767px) {
  nav .nav-links {
    display: none;
  }
  nav .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: block;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 99;
  padding-top: 80px;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 24px;
}

.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(26,77,46,0.88) 0%, rgba(15,54,32,0.88) 100%), url('/images/roofing-hero.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 100px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 90, 40, 0.3);
}

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

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

/* Section Spacing */
section {
  padding: 60px 24px;
}

section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
  color: var(--text-dark);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: var(--bg-light);
  padding: 32px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

/* Services Section */
.services-section {
  background-color: var(--bg-light);
}

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

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border-left: 4px solid var(--accent-orange);
  transition: all 0.3s ease;
}

.service-card-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
}

.service-card-body {
  padding: 24px;
}

.service-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
  background-color: var(--white);
}

.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-light);
  padding: 16px 24px;
  border-radius: 8px;
  margin: 0 auto;
}

.review-badge .stars {
  font-size: 18px;
  color: #ffc107;
}

.review-badge .count {
  font-weight: 600;
  color: var(--text-dark);
}

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: var(--bg-light);
  border-radius: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--text-dark);
}

input,
textarea {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(200, 90, 40, 0.1);
}

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

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-group {
    grid-template-columns: 1fr;
  }
}

button[type='submit'] {
  padding: 12px 32px;
  background-color: var(--accent-orange);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

button[type='submit']:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-2px);
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  padding: 16px;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
  display: none;
  margin-bottom: 16px;
}

.form-success.show {
  display: block;
}

.demo-notice-banner {
  background-color: var(--accent-orange);
  color: var(--white);
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
  text-align: center;
}

.contact-method h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.contact-method p {
  font-size: 16px;
  color: var(--text-light);
}

.contact-method a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact-method a:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: var(--primary-nav);
  color: var(--white);
  padding: 48px 24px 24px;
  text-align: center;
}

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

footer p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

footer a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 767px) {
  nav {
    padding: 12px 16px;
  }

  nav .container {
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  section {
    padding: 40px 16px;
  }

  section h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 24px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}

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

.mt-32 {
  margin-top: 32px;
}

.mb-32 {
  margin-bottom: 32px;
}
