/* Main Styles for Ahyushya Hospital Website */

/* Base Styles */
:root {
  --primary-color: #0e4c92;
  --secondary-color: #e63946;
  --accent-color: #00b4d8;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #333333;
  --border-color: #dee2e6;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* For better touch interactions and form elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea,
button {
  -webkit-appearance: none; /* Remove default iOS styling */
  appearance: none;
  border-radius: 5px;
}

/* Fix for input zooming on iOS */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  width: 100%;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

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

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

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

.btn-light:hover {
  background-color: transparent;
  color: white;
}

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

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

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

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

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  min-height: 80px;
}

.logo img {
  height: 120px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

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

.nav-links a.active:after,
.nav-links a:hover:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(14, 76, 146, 0.05) 0%, rgba(230, 57, 70, 0.05) 100%);
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero-content h1 {
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h1 span {
  display: block;
  color: var(--secondary-color);
}

.hero-content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #666;
}

.hero-cta {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Section Styling */
section {
  padding: 80px 0;
}

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

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: #666;
}

/* Services Summary */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(14, 76, 146, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--primary-color);
}

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

/* Doctors Highlight */
.doctors-highlight {
  background-color: #f8f9fa;
}

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

.doctor-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.doctor-card:hover {
  transform: translateY(-10px);
}

.doctor-image {
  height: 250px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.doctor-info {
  padding: 20px;
}

.doctor-specialty {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 10px;
}

.doctor-bio {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

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

/* Testimonials */
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: block;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: #fff;
  padding: 60px 0 0;
}

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

.footer-logo img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

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

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

.footer-links a {
  color: #ccc;
}

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

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.contact-info li i {
  margin-right: 10px;
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Appointment Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  border-radius: 10px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .logo img {
    height: 100px; /* Slightly smaller on tablets */
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  
  .logo img {
    height: 80px; /* Adjust logo size for mobile */
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 99;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: 10px 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .header-cta {
    margin-left: auto;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Improve service cards on mobile */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
  }

  /* Improve doctor cards on mobile */
  .doctors-grid {
    grid-template-columns: 1fr;
  }

  /* Adjust testimonials on mobile */
  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  /* Adjust form fields for better touch interaction */
  input, select, textarea, button {
    padding: 12px;
    font-size: 16px; /* Prevent auto-zoom on iPhone */
  }

  /* Adjust footer layout */
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  section {
    padding: 50px 0;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .logo img {
    height: 60px; /* Even smaller logo on very small screens */
  }
  
  /* Ensure touch targets are at least 44px */
  .nav-links li a, 
  .footer-links li a,
  .social-links a {
    padding: 10px 0;
    display: inline-block;
  }

  /* Make WhatsApp button more accessible on mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
}

/* Additional touch device optimizations */
.touch-device .btn,
.touch-device .nav-links a,
.touch-device .footer-links a {
  padding: 12px 16px; /* Larger touch targets */
}

.touch-device .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Use vh units safely with CSS variable fallback */
.modal-content {
  max-height: calc(100vh - 60px);
  max-height: calc(var(--vh, 1vh) * 100 - 60px);
  overflow-y: auto;
}

/* Fix image aspect ratios on mobile */
img {
  max-width: 100%;
  height: auto;
}

/* Improve form element spacing on mobile */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 16px;
  }
  
  .btn {
    margin-top: 8px;
  }
  
  /* Prevent accidental zooming */
  .modal-content {
    -webkit-overflow-scrolling: touch;
  }

  /* Adjust spacing for mobile */
  section {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 30px;
  }

  /* Ensure all interactive elements have proper spacing */
  .nav-links a, 
  .btn,
  .footer-links a,
  .social-links a,
  form button,
  input[type=submit] {
    padding: 10px 15px;
  }
  
  /* Ensure proper menu display */
  .header-inner {
    position: relative;
  }
} 