/* ========================================
   Ironwolf Roofing - Bold & Modern
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #0f2847;
  --primary-dark: #000000;
  --secondary-color: #2563eb;
  --secondary-dark: #1d4ed8;
  --silver: #c0c0c0;
  --text-dark: #0a0a0a;
  --text-light: #6b7280;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border-color: #d1d5db;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  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: var(--text-dark);
  background-color: var(--white);
}

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

ul {
  list-style: none;
}

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

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

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

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

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

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

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

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Base logo-mark/wordmark containers; crops overridden per context below. */
.logo-mark,
.logo-wordmark {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-mark img,
.logo-wordmark img {
  height: auto;
  display: block;
}

/* Footer uses pre-split assets: wolf only + words only. No cropping needed. */
footer .logo-mark {
  width: auto;
  height: auto;
  overflow: visible;
}

footer .logo-mark img {
  height: 90px;
  width: auto;
}

footer .logo-wordmark {
  width: auto;
  height: auto;
  overflow: visible;
}

footer .logo-wordmark img {
  height: 46px;
  width: auto;
}

/* Header uses pre-split assets: wolf only + words only. No cropping needed. */
header .logo-mark {
  width: auto;
  height: auto;
  overflow: visible;
}

header .logo-mark img {
  height: 120px;
  width: auto;
}

header .logo-wordmark {
  width: auto;
  height: auto;
  overflow: visible;
}

header .logo-wordmark img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

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

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--secondary-color);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 5px;
}

.nav-cta:hover {
  background-color: var(--secondary-dark);
}

.nav-cta::after {
  display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 200px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon fill="rgba(255,255,255,0.03)" points="100,0 100,100 0,100"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 200px 0 60px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--primary-color);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

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

/* Features Section */
.features {
  background-color: var(--light-gray);
}

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

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.about-text h2 {
  color: var(--primary-color);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.team-photo {
  height: 250px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.team-info .position {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.gallery-placeholder span {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-gray);
}

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

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--secondary-color);
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
}

.author-info h4 {
  margin-bottom: 0;
  color: var(--primary-color);
}

.author-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.stars {
  color: #ffc107;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  color: var(--primary-color);
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background-color: var(--secondary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.contact-item p {
  margin-bottom: 0;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

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

.contact-form .btn {
  width: 100%;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
footer {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  color: var(--text-light);
}

.footer-column h4 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Instant Estimate Section */
.instant-estimate,
.inspection-request {
  background: linear-gradient(135deg, var(--light-gray) 0%, #e8ecf1 100%);
  padding: 80px 0;
}

.inspection-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.inspection-form .req {
  color: var(--secondary-color);
}

.inspection-form input[aria-invalid="true"],
.inspection-form textarea[aria-invalid="true"] {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.inspection-form .field-error {
  display: block;
  color: var(--secondary-color);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  min-height: 1.1em;
}

.inspection-form .form-status {
  margin-top: 1rem;
  font-weight: 500;
  min-height: 1.2em;
}

.inspection-form button[type="submit"] {
  width: 100%;
}

/* Google Places Autocomplete dropdown — must sit above fixed header (z-index 1000). */
.pac-container {
  z-index: 10000 !important;
}

.estimate-tool {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: var(--shadow-hover);
  margin-bottom: 3rem;
}

.address-input-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.address-input-wrapper label {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.address-input-group {
  display: flex;
  gap: 1rem;
}

.address-input-group input {
  flex: 1;
  padding: 15px 20px;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
}

.address-input-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15);
}

.input-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* Results Grid */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.map-container {
  position: relative;
}

.satellite-map {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary-dark);
}

.map-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.map-placeholder span {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Estimate Details */
.estimate-details h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.estimate-card {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.estimate-row:last-child {
  border-bottom: none;
}

.estimate-label {
  color: var(--text-light);
  font-weight: 500;
}

.estimate-value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.estimate-value.highlight {
  color: var(--secondary-color);
  font-size: 1.3rem;
}

/* Price Estimate */
.price-estimate {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 10px;
  padding: 1.5rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 1.5rem;
}

.price-estimate h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
}

.price-range {
  font-size: 2rem;
  font-weight: 700;
}

.price-note {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Estimate Actions */
.estimate-actions {
  display: flex;
  gap: 1rem;
}

.estimate-actions .btn {
  flex: 1;
  text-align: center;
}

/* Error State */
.estimate-error {
  text-align: center;
  padding: 3rem;
}

.error-content {
  max-width: 400px;
  margin: 0 auto;
}

.error-icon {
  font-size: 3rem;
  color: #e74c3c;
}

.error-content h4 {
  color: var(--primary-color);
  margin: 1rem 0 0.5rem;
}

.error-content p {
  margin-bottom: 1.5rem;
}

/* Estimate Info */
.estimate-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-item {
  text-align: center;
  padding: 1.5rem;
}

.info-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.info-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Report Styles */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.report-title h3 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 1.75rem;
}

.report-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.report-address {
  text-align: right;
}

.report-address .label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
}

.report-address #reportAddress {
  font-weight: 600;
  color: var(--text-dark);
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.report-left,
.report-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-card {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 1.5rem;
}

.report-card h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.map-container h4 {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

/* Summary Grid */
.summary-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
}

.summary-card h4 {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.2);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.summary-item {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

.summary-item.primary {
  background: rgba(255,255,255,0.2);
}

.summary-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
}

.summary-item.primary .summary-value {
  font-size: 2rem;
  color: var(--secondary-color);
}

.summary-label {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Complexity Meter */
.complexity-meter {
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.complexity-bar {
  height: 100%;
  background: linear-gradient(90deg, #27ae60, #f1c40f, #e67e22, #e74c3c);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.complexity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.complexity-description {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 500;
}

/* Waste Factor */
.waste-factor {
  text-align: center;
}

.waste-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.waste-factor p {
  font-size: 0.85rem;
  margin: 0;
}

/* Pitch Table */
.pitch-table {
  max-height: 200px;
  overflow-y: auto;
}

.pitch-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pitch-row:last-child {
  border-bottom: none;
}

.pitch-row .facet-name {
  font-weight: 500;
  color: var(--text-dark);
}

.pitch-row .facet-details {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.pitch-row .facet-details span {
  color: var(--text-light);
}

.pitch-row .facet-details strong {
  color: var(--primary-color);
}

/* Linear Measurements Grid */
.linear-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.linear-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border-radius: 5px;
}

.linear-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.linear-value {
  font-weight: 600;
  color: var(--primary-color);
}

.linear-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0.75rem 0 0 0;
  font-style: italic;
}

/* Material Grid */
.material-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.material-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border-radius: 5px;
}

.material-label {
  color: var(--text-light);
  font-size: 0.85rem;
}

.material-value {
  font-weight: 600;
  color: var(--secondary-color);
}

.material-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0.75rem 0 0 0;
  font-style: italic;
}

/* Price Estimate Full */
.price-estimate-full {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 10px;
  padding: 1.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.price-header h4 {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.25rem;
}

.price-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

.price-item.featured {
  background: var(--secondary-color);
  transform: scale(1.05);
}

.price-label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.price-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.price-item.featured .price-value {
  font-size: 1.75rem;
}

.price-estimate-full .price-note {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 1rem 0 0 0;
}

/* Report Actions */
.report-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Report Disclaimer */
.report-disclaimer {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 1rem;
}

.report-disclaimer p {
  font-size: 0.85rem;
  color: #856404;
  margin: 0;
}

/* Print Styles */
@media print {
  header, footer, .nav-links, .hero, .services, .features,
  .about, .testimonials, .cta, .estimate-info, .report-actions,
  .address-input-wrapper, .estimate-input-section {
    display: none !important;
  }

  .instant-estimate {
    padding: 0;
  }

  .estimate-tool {
    box-shadow: none;
    padding: 0;
  }

  .report-card {
    break-inside: avoid;
  }

  .satellite-map {
    height: 250px;
  }
}

/* Responsive Report */
@media (max-width: 992px) {
  .report-grid {
    grid-template-columns: 1fr;
  }

  .price-breakdown {
    grid-template-columns: 1fr;
  }

  .price-item.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .report-header {
    flex-direction: column;
    text-align: center;
  }

  .report-address {
    text-align: center;
  }

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

  .linear-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .report-actions {
    flex-direction: column;
  }

  .pitch-row .facet-details {
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
  }
}

/* Loading State */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Estimate Section */
@media (max-width: 992px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .estimate-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .address-input-group {
    flex-direction: column;
  }

  .estimate-tool {
    padding: 1.5rem;
  }

  .estimate-actions {
    flex-direction: column;
  }

  .price-range {
    font-size: 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}
