/* ==========================================================================
   Driven Computer Repair DFW — Website Stylesheet
   SEO-optimized, mobile-responsive, clean tech aesthetic
   ========================================================================== */

/* CSS Variables */
:root {
  --primary: #1e3a8a;
  --primary-dark: #1e3a5a;
  --secondary: #3b82f6;
  --accent: #10b981;
  --accent-dark: #047857;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f3f4f6;
  --bg-white: #ffffff;
  --border: #e5e7eb;
  --max-width: 1200px;
  --header-height: 140px;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

ul, ol {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

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

.section-subtitle {
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Breadcrumb Navigation */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline;
}

.breadcrumbs li a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs li a:hover {
  text-decoration: underline;
}

.breadcrumbs li span {
  color: var(--text-light);
  font-weight: 600;
}

.breadcrumbs li.separator {
  color: var(--text-light);
}

/* Nearby Cities Section */
.nearby-cities {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  margin: 40px 0;
}

.nearby-cities h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 1.25rem;
}

.nearby-cities .cities-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.nearby-cities .city-chip {
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo-img {
  width: auto;
  height: 140px;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

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

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: white !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Navigation */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  z-index: 999;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Hero Section — Animated with Real Computer Repair Imagery
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.65) 0%, rgba(44, 82, 130, 0.65) 100%), url('../images/hero-repair.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  animation: heroShine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  animation: heroContentFade 1.2s ease-out;
}

@keyframes heroContentFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

.btn-primary {
  background: var(--accent);
  color: white !important;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(4, 120, 87, 0.4);
}

.btn-outline {
  background: transparent;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: var(--transition);
}

/* Google Business Profile Buttons */
.google-links {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4285F4;
  color: white !important;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none !important;
}

.btn-google:hover {
  background: #3367D6;
  transform: translateY(-2px);
}

.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EA4335;
  color: white !important;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none !important;
}

.btn-review:hover {
  background: #D93025;
  transform: translateY(-2px);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Trust Bar */
.trust-bar {
  background: white;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-top: -1px;
}

.trust-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.trust-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

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

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

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}

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

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.service-link:hover {
  color: var(--primary);
}

/* Cities Section */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.city-chip {
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.city-chip:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-dark);
}

.about-text ul {
  margin-top: 20px;
  margin-left: 20px;
}

.about-text li {
  margin-bottom: 8px;
  color: var(--text-dark);
}

.about-text li::before {
  content: "✓";
  color: var(--accent);
  font-weight: bold;
  margin-right: 8px;
}

/* CTA Section */
.cta-section {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 60px 0;
  border-radius: var(--radius);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 24px;
  opacity: 0.9;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

.nap {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* Individual Page Header */
.page-header {
  background: var(--bg-light);
  padding: 160px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Service Detail Page */
.service-detail {
  max-width: 800px;
  margin: 0 auto;
}

.service-detail h2 {
  font-size: 1.75rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--primary);
}

.service-detail p {
  margin-bottom: 16px;
}

.service-detail ul {
  margin: 16px 0 24px 24px;
  list-style: disc;
}

.service-detail li {
  margin-bottom: 8px;
}

.service-features {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.service-features h3 {
  margin-bottom: 16px;
  color: var(--primary);
}

.service-features ul {
  list-style: none;
  margin-left: 0;
}

.service-features li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.service-features li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* City Page */
.city-intro {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.city-intro h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.city-intro p {
  margin-bottom: 16px;
}

.city-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.city-service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.city-service-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}

.city-service-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.city-service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* FAQ */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  background: var(--bg-light);
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: #e5e7eb;
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-light);
}

.faq-answer p {
  margin-bottom: 16px;
  padding-bottom: 20px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item div h4 {
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contact-item div p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  ring-color: var(--primary);
}

.btn-submit {
  background: var(--primary);
  color: white !important;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 120px;
  }

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

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

  .page-header h1 {
    font-size: 2rem;
  }

  .trust-bar .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

/* Structured data hidden */
.schema-json {
  display: none;
}