@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #0f5132;        /* Forest Green */
  --primary-hover: #0a3622;
  --accent: #d97706;         /* Safety/Call-To-Action Orange */
  --accent-hover: #b45309;
  --accent-light: #fef3c7;   /* Amber Light Tint */
  --neutral-dark: #1e293b;   /* Slate 800 */
  --neutral-light: #f8fafc;  /* Slate 50 */
  --neutral-border: #e2e8f0; /* Slate 200 */
  --white: #ffffff;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1100px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

/* Header */
header {
  background-color: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.logo-subtext {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neutral-dark);
  display: block;
  margin-top: -4px;
}

.phone-cta-wrapper {
  text-align: right;
}

.phone-cta-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.phone-cta-button {
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 0 var(--accent-hover);
  transition: all 0.1s ease;
}

.phone-cta-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-hover);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #061c10 100%);
  color: var(--white);
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 55%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-content {
  text-align: left;
}

.hero-tagline {
  background-color: var(--accent);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-bullets {
  list-style: none;
  margin-top: 1.5rem;
}

.hero-bullets li {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-bullets li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Quote Form Card */
.form-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  color: var(--neutral-dark);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-border);
}

.form-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: #64748b;
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #475569;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--neutral-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  background-color: var(--neutral-light);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.15);
}

/* Modern Client-Side Validation styling via :user-valid / :user-invalid */
.form-input:user-invalid, .form-select:user-invalid, .form-textarea:user-invalid {
  border-color: #ef4444; /* red */
  background-color: #fef2f2;
}

.form-input:user-valid, .form-select:user-valid, .form-textarea:user-valid {
  border-color: #22c55e; /* green */
}

.error-message {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

.form-input:user-invalid + .error-message {
  display: block;
}

.form-submit-btn {
  width: 100%;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.9rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--accent-hover);
  transition: all 0.1s ease;
  margin-top: 0.5rem;
}

.form-submit-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-hover);
}

.form-submit-btn:disabled {
  background-color: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.form-terms {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}

/* Main Layout Grid */
main {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1rem;
}

.section-title {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 0.75rem auto 0 auto;
  border-radius: 2px;
}

/* Trust Badges / Stats */
.badges-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .badges-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.badge-card {
  background-color: var(--white);
  border: 1px solid var(--neutral-border);
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.badge-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.badge-desc {
  font-size: 0.8rem;
  color: #64748b;
}

/* Service Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.service-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: rgba(15, 81, 50, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.service-desc {
  font-size: 0.9rem;
  color: #475569;
  flex-grow: 1;
}

/* Orkin Comparison Section (SEO Brand Target) */
.comparison-section {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--neutral-border);
  margin-bottom: 4rem;
}

.comparison-header {
  text-align: center;
  margin-bottom: 2rem;
}

.comparison-intro {
  max-width: 700px;
  margin: 0.5rem auto 0 auto;
  color: #475569;
  font-size: 0.95rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

table.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

table.comparison-table th, table.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--neutral-border);
}

table.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary);
  background-color: var(--neutral-light);
}

table.comparison-table tr:hover {
  background-color: #f8fafc;
}

table.comparison-table td strong {
  color: var(--primary);
}

.check-icon {
  color: #22c55e;
  font-weight: bold;
  font-size: 1.1rem;
}

.cross-icon {
  color: #ef4444;
  font-weight: bold;
  font-size: 1.1rem;
}

/* FAQs */
.faq-container {
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  outline: none;
}

/* Custom indicator icon */
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}

/* Sticky Footer Call-To-Action for Mobile */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  z-index: 99;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none; /* Hide on desktop */
  }
}

.sticky-call-btn {
  width: 100%;
  max-width: 400px;
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 4px 0 var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.sticky-call-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-hover);
}

/* Footer */
footer {
  background-color: #0b1a11;
  color: #94a3b8;
  padding: 3rem 1rem;
  font-size: 0.85rem;
  border-top: 5px solid var(--accent);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  text-align: center;
}

/* Success Message Box */
.success-box {
  background-color: var(--accent-light);
  border: 2px solid var(--accent);
  color: var(--neutral-dark);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

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