/* ============================================
   CITY PAGE REDESIGN - HVAC LANDING PAGES
   Gravity HVAC - High impact city/service pages
   ============================================ */

/* City Hero - Full Width, Two Column */
.city-hero {
  position: relative;
  min-height: 75vh;
  width: 100%;
  background-color: var(--g-dark);
  background-image: url('../img/hero-plumber.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.city-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.85) 0%, rgba(26, 26, 26, 0.5) 50%, transparent 100%);
  z-index: 1;
}

.city-hero-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

.city-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.city-hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.city-hero-subheader {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.gradient-text {
  background: var(--g-gradient-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.city-hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.city-hero-emergency-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.city-hero-emergency-signals span {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.city-hero-form-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 2.5rem;
  color: var(--g-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.city-hero-form-panel h3 {
  color: var(--g-dark);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.city-hero-form-panel .form-group label {
  color: var(--g-dark);
  font-weight: 600;
}

.city-hero-form-panel .form-helper {
  font-size: 0.875rem;
  color: var(--g-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

@media (max-width: 968px) {
  .city-hero {
    min-height: auto;
    padding: 3rem 0;
  }
  .city-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .city-hero-ctas {
    flex-direction: column;
  }
  .city-hero-emergency-signals {
    justify-content: center;
  }
}

/* Trust Strip */
.trust-strip {
  background: var(--g-light-bg);
  border-top: 1px solid var(--g-border);
  border-bottom: 1px solid var(--g-border);
  padding: 2.5rem 0;
}

.trust-strip-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.trust-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--g-gradient-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
}

.trust-text strong {
  display: block;
  color: var(--g-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.trust-text span {
  color: var(--g-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .trust-strip-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Common Emergencies - HVAC / heating-cooling focus */
.emergencies-section {
  padding: 0;
}

.emergency-item {
  padding: 4rem 0;
  position: relative;
}

.emergency-item:nth-child(even) {
  background: var(--g-light-bg);
}

.emergency-item:nth-child(odd) {
  background: white;
}

.emergency-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.emergency-item h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  background: var(--g-gradient-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.emergency-what {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--g-text);
}

.emergency-actions h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--g-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emergency-actions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.emergency-actions li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--g-text);
}

.emergency-actions li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--g-primary);
  font-weight: bold;
}

.emergency-call {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(219, 5, 69, 0.05);
  border-left: 4px solid var(--g-primary);
  border-radius: 4px;
}

.emergency-call strong {
  color: var(--g-primary);
}

@media (max-width: 768px) {
  .emergency-item {
    padding: 3rem 0;
  }
  .emergency-content {
    padding: 0 1rem;
  }
}

/* Local Areas */
.local-areas-section {
  padding: 4rem 0;
  background: white;
}

.local-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

.local-area-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--g-border);
}

.local-area-item:last-child {
  border-bottom: none;
}

.local-area-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--g-dark);
  margin-bottom: 0.5rem;
}

.local-area-item p {
  font-size: 0.9rem;
  color: var(--g-muted);
  margin: 0.25rem 0;
  line-height: 1.5;
}

.local-areas-divider {
  width: 100%;
  height: 2px;
  background: var(--g-gradient-light);
  margin: 3rem auto;
  max-width: 200px;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .local-areas-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Process Timeline - HVAC service flow */
.process-section {
  padding: 4rem 0;
  background: var(--g-light-bg);
}

.process-timeline {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--g-gradient-light);
  opacity: 0.3;
}

.process-step {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 3rem;
}

.process-step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--g-gradient-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(219, 5, 69, 0.3);
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--g-dark);
}

.process-step p {
  color: var(--g-text);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .process-timeline {
    padding: 0 1rem;
  }
  .process-timeline::before {
    left: 1rem;
  }
  .process-step {
    padding-left: 3rem;
  }
  .process-step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* FAQ Accordion */
.faq-accordion {
  padding: 4rem 0;
  background: white;
}

.faq-accordion-item {
  border-bottom: 1px solid var(--g-border);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-accordion-button {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--g-dark);
  transition: color 0.2s;
}

.faq-accordion-button:hover {
  color: var(--g-primary);
}

.faq-accordion-button::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--g-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-accordion-button[aria-expanded="true"]::after {
  content: '−';
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-accordion-content-inner {
  padding: 0 0 1.5rem 0;
  color: var(--g-text);
  line-height: 1.7;
}

.faq-accordion-item[aria-expanded="true"] .faq-accordion-content {
  max-height: 500px;
}

@media (max-width: 768px) {
  .faq-accordion-item {
    padding: 0 1rem;
  }
  .faq-accordion-button {
    font-size: 1rem;
    padding: 1.25rem 0;
  }
}

/* Final CTA Section */
.city-final-cta {
  background: var(--g-gradient-dark);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.city-final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.city-final-cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.city-final-cta p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.city-final-cta .btn-primary {
  font-size: 1.375rem;
  padding: 1.25rem 3rem;
  margin-bottom: 1.5rem;
}

.city-final-cta-link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.2s;
}

.city-final-cta-link:hover {
  color: white;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--g-border) 50%, transparent 100%);
  margin: 4rem 0;
}
