/* ============================================
   DOCTOR LOCKOUT - Main Stylesheet
   Mobile-First Responsive Design
   ============================================ */

/* CSS Variables */
:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --secondary: #dc2626;
  --secondary-dark: #b91c1c;
  --accent: #f59e0b;
  --dark: #111827;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --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);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

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

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

.btn-emergency {
  background: var(--secondary);
  color: var(--white);
  font-size: 1.125rem;
}

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

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

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

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

.btn-white:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar a {
  color: var(--white);
}

.top-bar a:hover {
  color: var(--accent);
}

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

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Main Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: none;
}

.nav ul {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--gray-700);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav .btn {
  margin-top: 15px;
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  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"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 200px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.hero-badge .pulse {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 25px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-phone {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  background: var(--gray-100);
  padding: 20px 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header p {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.75rem;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-bottom: 15px;
}

.service-card a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Why Choose Us */
.why-us {
  background: var(--gray-100);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.why-item {
  display: flex;
  gap: 15px;
}

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

.why-item h4 {
  margin-bottom: 5px;
}

.why-item p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin: 0;
}

/* Service Areas */
.areas-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.areas-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.areas-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  background: var(--gray-100);
  border-radius: 8px;
  color: var(--gray-700);
  font-weight: 500;
  transition: all 0.3s ease;
}

.areas-list a:hover {
  background: var(--primary);
  color: var(--white);
}

.areas-list a::before {
  content: '📍';
}

.areas-map {
  background: var(--gray-100);
  border-radius: 12px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

/* Testimonials */
.testimonials {
  background: var(--primary);
  color: var(--white);
}

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

.testimonials p {
  opacity: 0.9;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 25px;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 1rem;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-location {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* CTA Section */
.cta-section {
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

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

.cta-phone {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin: 20px 0;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

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

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
  color: var(--gray-500);
}

.faq-item.active .faq-answer {
  display: block;
}

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

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--gray-300);
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 25px 0;
  text-align: center;
  font-size: 0.875rem;
}

/* Sticky Mobile CTA */
.mobile-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--secondary);
  color: var(--white);
  text-align: center;
  padding: 15px 20px;
  font-size: 1.125rem;
  font-weight: 700;
  z-index: 999;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

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

/* Add padding to body for sticky CTA */
body {
  padding-bottom: 60px;
}

/* ============================================
   TABLET STYLES (768px+)
   ============================================ */

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  section { padding: 80px 0; }
  
  .top-bar-left { gap: 30px; }
  
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 2.75rem; }
  .hero-buttons { flex-direction: row; }
  .hero-phone { font-size: 2rem; }
  
  .trust-items { grid-template-columns: repeat(4, 1fr); }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  
  .areas-content { grid-template-columns: 1fr 1fr; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  
  .cta-buttons { flex-direction: row; }
  
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  
  .menu-toggle { display: none; }
  
  .nav { display: block; }
  
  .header-cta { display: block; }
  
  .hero h1 { font-size: 3.25rem; }
  .hero { padding: 100px 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }

/* ============================================
   SERVICE PAGES
   ============================================ */

.content-section {
  padding: 60px 0;
  background: var(--white);
}

.service-content {
  max-width: 900px;
  margin: 0 auto;
}

.service-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.service-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.service-content p {
  margin-bottom: 1rem;
}

.service-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.service-content li {
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #666;
}

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

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

.cta-box {
  background: #f5f5f5;
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
  margin: 2rem 0;
}

.cta-box p {
  margin: 0;
}

.cta-box p:first-child {
  font-weight: 600;
}

.cta-box p:last-child {
  margin-top: 0.5rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card-mini {
  background: var(--white);
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.service-card-mini h3 {
  margin-top: 0;
}

.service-card-mini h3 a {
  color: var(--secondary);
  text-decoration: none;
}

.service-card-mini h3 a:hover {
  text-decoration: underline;
}

.service-card-mini p {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .content-section {
    padding: 80px 0;
  }
}

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

.footer-phone {
  text-align: center;
  margin: 2rem 0;
}

.footer-phone a {
  font-size: 1.5rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
}

.footer-phone a:hover {
  color: var(--secondary-dark);
}

.two-column-list {
  column-count: 1;
  column-gap: 2rem;
}

@media (min-width: 768px) {
  .two-column-list {
    column-count: 2;
  }
}

.cta-box-red {
  background: var(--secondary);
  color: white;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  margin: 2rem 0;
}

.cta-box-red h3 {
  color: white;
  margin-top: 0;
}

.cta-box-red p {
  margin: 1rem 0;
}

.cta-box-red .btn {
  display: inline-block;
  background: white;
  color: var(--secondary);
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 1rem;
}

.cta-box-red .btn:hover {
  background: var(--gray-100);
}
