/* ==========================================================================
   CENTRAL TEXAS HOME SERVICES & REPAIR - DESIGN SYSTEM
   Modern, Ultra-Fast, Mobile-First CSS with Glassmorphism & High Contrast UX
   ========================================================================== */

:root {
  --primary: #0F172A;        /* Deep Slate Navy */
  --primary-light: #1E293B;  /* Lighter Slate */
  --accent: #2563EB;         /* Electric Blue */
  --accent-hover: #1D4ED8;   /* Darker Blue */
  --emerald: #059669;        /* Success Emerald */
  --amber: #D97706;          /* Urgent Warning Amber */
  --bg-light: #F8FAFC;       /* Soft Light Gray */
  --surface: #FFFFFF;        /* Pure White */
  --text-main: #0F172A;      /* High-contrast dark text */
  --text-muted: #64748B;     /* Muted slate text */
  --border: #E2E8F0;         /* Subtle border */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.15);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ==========================================================================
   TOP EMERGENCY BAR & STICKY MOBILE CALL BUTTON
   ========================================================================== */

.top-bar {
  background: linear-gradient(90deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 8px 16px;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-live {
  background-color: var(--emerald);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.top-bar-phone {
  font-weight: 700;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-mobile-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--emerald);
  color: #FFFFFF;
  padding: 14px 20px;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .sticky-mobile-call {
    display: none;
  }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.brand-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.btn-cta {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   HERO SECTION & CALCULATOR WIDGET
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 64px 24px 80px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }
}

.hero-highlight {
  color: #38BDF8;
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94A3B8;
  margin-bottom: 32px;
  max-width: 600px;
}

.city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.city-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #F1F5F9;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* CALCULATOR CARD */

.calc-card {
  background-color: var(--surface);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.calc-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--primary);
}

.calc-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-select, .form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #FAFAFA;
  transition: all 0.2s;
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.price-output-box {
  background-color: #EFF6FF;
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin: 20px 0;
}

.price-output-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-output-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}

/* ==========================================================================
   SERVICES GRID SECTION
   ========================================================================== */

.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px auto;
}

.section-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

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

.service-card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #BFDBFE;
}

.service-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-blue { background-color: #DBEAFE; color: #1E40AF; }
.badge-purple { background-color: #F3E8FF; color: #6B21A8; }

.service-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-metrics {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.metric-item {
  font-size: 0.85rem;
}

.metric-label { color: var(--text-muted); display: block; font-size: 0.75rem; }
.metric-val { font-weight: 800; color: var(--primary); }

.link-arrow {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   FAQ SECTION (GEO STRUCTURED FOR CHATGPT)
   ========================================================================== */

.faq-container {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

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

.faq-question {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: var(--primary);
  color: #94A3B8;
  padding: 60px 24px 30px 24px;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-brand {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}
