/* CSS Variables */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(210, 40%, 8%);
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215, 16%, 47%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(210, 40%, 8%);
  --border: hsl(214, 32%, 91%);
  --input: hsl(214, 32%, 91%);
  --primary: hsl(177, 70%, 41%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 40%, 96%);
  --secondary-foreground: hsl(222, 84%, 5%);
  --graviton-teal: hsl(177, 70%, 41%);
  --graviton-dark-teal: hsl(177, 80%, 25%);
  --medical-blue: hsl(213, 78%, 38%);
  --medical-light-blue: hsl(213, 78%, 48%);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

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

.nav-mobile {
  display: block;
}

@media (min-width: 1024px) {
  .nav-mobile {
    display: none;
  }
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: white;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.mobile-quote-btn {
  margin-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) * 2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

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

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

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

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-gray {
  background-color: var(--muted);
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.text-teal {
  color: var(--graviton-teal);
}

/* Featured Image Section */
.featured-image-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-image-content {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-image-wrapper:hover {
    transform: translateY(-5px);
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem 2rem 2rem;
    color: white;
}

.featured-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.featured-description {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Responsive design for featured image */
@media (max-width: 768px) {
    .featured-image-section {
        padding: 2rem 0;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-image-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .featured-image {
        height: 250px;
    }
    
    .featured-image-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--medical-blue), var(--graviton-teal));
  color: white;
  padding: 8rem 0 5rem;
  margin-top: 80px;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  text-align: left;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-card {
  position: relative;
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-transparent {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--card-foreground);
}

.card-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.hero-icon {
  width: 4rem;
  height: 4rem;
  color: var(--graviton-teal);
  margin: 0 auto 1rem;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  color: var(--graviton-teal);
  margin: 0 auto 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about-content {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 2fr 1fr;
  }
}

.about-item {
  margin-bottom: 2rem;
}

.about-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.about-description {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  padding-left: 0;
}

.about-list li {
  color: var(--muted-foreground);
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.about-list li:before {
  content: "✓";
  color: var(--graviton-teal);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.about-stats {
  display: grid;
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  color: var(--graviton-teal);
  margin: 0 auto 1rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  color: var(--graviton-teal);
  margin: 0 auto 1.5rem;
  background-color: rgba(33, 150, 243, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  width: 2rem;
  height: 2rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Products Grid */
.products-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.product-icon {
  width: 3rem;
  height: 3rem;
  color: var(--graviton-teal);
  margin-bottom: 1.5rem;
  background-color: rgba(33, 150, 243, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon i {
  width: 1.5rem;
  height: 1.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.product-list {
  list-style: none;
  padding-left: 0;
}

.product-list li {
  color: var(--muted-foreground);
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.product-list li:before {
  content: "•";
  color: var(--graviton-teal);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-description {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Contact Section */
.contact-content {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hours-list {
  margin-bottom: 1.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.hours-day {
  color: var(--muted-foreground);
}

.hours-time {
  color: var(--foreground);
  font-weight: 500;
}

.emergency-notice {
  background-color: rgba(33, 150, 243, 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.emergency-icon {
  width: 1rem;
  height: 1rem;
  color: var(--graviton-teal);
  flex-shrink: 0;
}

.emergency-text {
  font-size: 0.875rem;
  color: var(--foreground);
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--graviton-teal);
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-text p {
  color: var(--muted-foreground);
  margin: 0;
}

.contact-text a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.contact-text a:hover {
  color: var(--graviton-teal);
}

/* Contact Form */
.contact-form-container {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--graviton-teal);
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

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

/* Footer */
.footer {
  background-color: var(--foreground);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

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

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.875rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-list a:hover {
  color: var(--graviton-teal);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  width: 1rem;
  height: 1rem;
  color: var(--graviton-teal);
  flex-shrink: 0;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--graviton-teal);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
}

.toast-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--graviton-teal);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.toast-text {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.toast-close:hover {
  color: var(--foreground);
}

.toast-close i {
  width: 1rem;
  height: 1rem;
}

/* Error state for toast */
.toast.error .toast-icon {
  color: hsl(0, 84%, 60%);
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.loading {
  position: relative;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav-content {
    height: 70px;
  }
  
  .hero-section {
    padding: 6rem 0 4rem;
    margin-top: 70px;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .service-card,
  .product-card {
    padding: 1.5rem;
  }
}