/* ============================================
   HTMS Enhanced Stylesheet
   Healthtech Management Services
   ============================================ */

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

html { 
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #003366;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #003366;
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

/* Links */
a { 
  color: #0077cc; 
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { 
  color: #005fa3;
  text-decoration: underline; 
}

/* ============================================
   ENHANCED HEADER / NAVBAR
   ============================================ */

.navbar {
  background: #ffffff;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid #0077cc;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 20px;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

/* Navigation Links */
.navbar nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links { 
  list-style: none; 
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a { 
  color: #003366; 
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 15px;
  display: block;
  transition: all 0.3s ease;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-links a:hover { 
  color: #0077cc;
  background: #f0f8ff;
  text-decoration: none;
}

.nav-links a.active {
  color: #0077cc;
  background: #e6f2ff;
  border-bottom: 3px solid #0077cc;
}

/* Emergency Phone in Header */
.emergency-phone {
  background: #d32f2f;
  color: white !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emergency-phone:hover {
  background: #b71c1c;
  transform: scale(1.05);
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

.emergency-phone::before {
  content: "📞";
  font-size: 1.1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #003366;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

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

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

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

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

footer {
  background: linear-gradient(135deg, #003366 0%, #004488 100%);
  color: white;
  padding: 3rem 20px 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.footer-section h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #0077cc;
  padding-bottom: 0.5rem;
}

.footer-section p,
.footer-section li {
  color: #e0e0e0;
  line-height: 1.8;
}

.footer-section a {
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #66b3ff;
  text-decoration: none;
}

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

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

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: "▶";
  font-size: 0.7rem;
  color: #0077cc;
}

/* Service Areas List */
.service-areas {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-areas li {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #0077cc;
  transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.footer-legal-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.hero {
  position: relative;
  color: white;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
              url('Servicing Diagnostic Imaging - Xray.png') center/cover no-repeat;
}

.hero-contact,
.hero-quote,
.hero-about,
.hero-services,
.hero-industries,
.hero-ai {
  height: 70vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
  z-index: 1;
}

.hero-content { 
  position: relative;
  z-index: 2;
  max-width: 800px; 
  padding: 20px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ============================================
   CONTAINERS & SECTIONS
   ============================================ */

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 20px; 
}

.intro, .services, .industries, .form-section, .contact-info, .testimonials, .cta {
  padding: 80px 20px;
}

.intro { background: #f0f8ff; }
.services { background: white; }
.form-section { background: #f0f8ff; }
.contact-info { background: white; }
.testimonials { background: white; }
.cta { background: #005577; color: white; }
.cta-secondary { background: #e6f2ff; color: #003366; }

.intro h2, .services h2, .form-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* ============================================
   SERVICE GRID
   ============================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background: #ffffff;
  padding: 35px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
  border-top: 4px solid #0077cc;
}

.service-item:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-top-color: #005fa3;
}

.service-item h3 {
  color: #003366;
  margin-bottom: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary { 
  background-color: #0077cc; 
  color: white;
  box-shadow: 0 4px 6px rgba(0, 119, 204, 0.3);
}

.btn-primary:hover { 
  background-color: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 119, 204, 0.4);
  text-decoration: none;
}

.btn-secondary { 
  background-color: transparent; 
  border: 2px solid white; 
  color: white;
}

.btn-secondary:hover { 
  background-color: white; 
  color: #003366;
  text-decoration: none;
}

/* ============================================
   FORMS
   ============================================ */

.contact-form,
.quote-form {
  max-width: 700px;
  margin: 2rem auto 0;
}

.form-group { 
  text-align: left;
  margin-bottom: 1.5rem;
}

.form-group label { 
  display: block; 
  font-weight: 600; 
  margin-bottom: 0.5rem;
  color: #003366;
}

.required {
  color: #d32f2f;
}

.form-group input, 
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.1);
}

.form-group textarea { 
  resize: vertical;
  min-height: 120px;
}

.contact-form button,
.quote-form button { 
  background-color: #003366; 
  color: white; 
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  padding: 15px;
}

.contact-form button:hover,
.quote-form button:hover { 
  background-color: #005599;
  transform: translateY(-2px);
}

/* Visually Hidden (Accessibility & Honeypot) */
.visually-hidden {
  position: absolute !important;
  height: 1px; 
  width: 1px;
  overflow: hidden; 
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap; 
  border: 0; 
  padding: 0; 
  margin: 0;
}

/* ============================================
   CONTACT DETAILS
   ============================================ */

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0077cc;
}

.contact-icon {
  flex-shrink: 0;
  color: #0077cc;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-item {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid #0077cc;
  position: relative;
}

.testimonial-item::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #0077cc;
  opacity: 0.2;
}

.testimonial-item p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-item strong {
  color: #003366;
  font-style: normal;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .nav-links a {
    font-size: 0.9rem;
    padding: 8px 10px;
  }
  
  .emergency-phone {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    overflow-y: auto;
  }
  
  .navbar nav.active {
    left: 0;
  }
  
  .nav-links {
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 0;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  
  .nav-links a {
    padding: 15px;
    width: 100%;
  }
  
  .emergency-phone {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .emergency-phone::before {
    font-size: 0.9rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

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

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  
  .hero-content {
    animation: none;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .navbar, .mobile-menu-toggle, .emergency-phone,
  footer, .cta, .btn-primary, .btn-secondary {
    display: none;
  }
  
  body {
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}
