/* ========================================
   Pain.com.my - Main Stylesheet
   Modern Medical Pain Clinic Website
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --primary: #0066CC;
  --primary-dark: #004E9A;
  --primary-light: #E8F4FF;
  --secondary: #00B894;
  --secondary-dark: #009B7D;
  --accent: #6C5CE7;
  --dark: #1A1A2E;
  --dark-2: #2D2D44;
  --gray-900: #1a1a1a;
  --gray-800: #333333;
  --gray-700: #4a4a4a;
  --gray-600: #666666;
  --gray-500: #888888;
  --gray-400: #aaaaaa;
  --gray-300: #cccccc;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --danger: #e74c3c;
  --warning: #f39c12;
  --success: #27ae60;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}

/* Global thin grey scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #f3f4f6;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: #f3f4f6;
}

*::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 9999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Subtle horizontal scrollbar for chip/filter rows */
.subtle-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 114, 128, 0.5) transparent;
}

.subtle-scrollbar::-webkit-scrollbar {
  height: 6px;
}

.subtle-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
}

.subtle-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(107, 114, 128, 0.45);
  border-radius: 9999px;
}

.subtle-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.7);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.3;
  font-weight: 700;
}

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

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

/* Override for buttons/links with white text */
a.text-white:hover,
a[class*="text-white"]:hover,
button.text-white:hover,
button[class*="text-white"]:hover {
  color: var(--white) !important;
}

/* Override for gradient buttons (red, blue, etc.) to keep white text */
a[class*="bg-gradient"]:hover,
a[class*="from-red"]:hover,
a[class*="from-blue"]:hover,
button[class*="bg-gradient"]:hover,
button[class*="from-red"]:hover,
button[class*="from-blue"]:hover {
  color: var(--white) !important;
}

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

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

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

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

.top-bar-left {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar span i {
  color: var(--primary);
  margin-right: 6px;
}

/* ---- Navbar ---- */
.navbar {
  background: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-heading);
  text-decoration: none;
}

.logo-pain {
  color: var(--primary);
}

.logo-dot {
  color: var(--dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 5px;
}

.nav-link {
  padding: 10px 18px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.btn-nav {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: var(--radius-xl) !important;
  padding: 10px 24px !important;
}

.btn-nav:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Flash Messages ---- */
.flash-message {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.flash-success {
  background: #d4edda;
  color: #155724;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
}

.flash-message .container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

.flash-close:hover {
  opacity: 1;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-xl);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 102, 204, 0.3);
}

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

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

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

.btn-white:hover {
  background: var(--gray-100);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---- Section Styles ---- */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-600);
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 50%, #dce8f7 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.06) 0%, transparent 70%);
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 40px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--warning);
}

.hero-text h1 {
  font-size: 56px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--dark);
}

.hero-text p {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  text-align: center;
  max-width: 350px;
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  z-index: -1;
  opacity: 0.15;
}

.hero-card-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: var(--primary);
}

.hero-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.hero-card p {
  color: var(--gray-500);
}

/* ---- Services Grid ---- */
.services-section {
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.services-grid-lg {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: var(--transition);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-family: var(--font-primary);
  font-weight: 700;
}

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

.service-link {
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.service-link:hover {
  gap: 10px;
}

.service-link i {
  font-size: 12px;
  transition: var(--transition);
}

/* ---- About Preview ---- */
.about-preview {
  background: var(--white);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-preview-content h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.text-primary {
  color: var(--primary);
}

.about-preview-content>p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 36px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
}

.about-feature h4 {
  font-size: 17px;
  font-family: var(--font-primary);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 14px;
  color: var(--gray-500);
}

.about-image-wrapper {
  position: relative;
}

.about-image-bg {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #d4e8ff 100%);
  border-radius: var(--radius-lg);
  position: relative;
}

.about-image-bg::before {
  content: '🏥';
  font-size: 120px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.about-image-card {
  position: absolute;
  bottom: -30px;
  left: -20px;
  right: -20px;
}

.about-stats-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  justify-content: space-around;
}

.about-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.about-stat-item i {
  color: var(--primary);
  font-size: 20px;
}

/* ---- Doctors ---- */
.doctors-section {
  background: var(--gray-100);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.doctor-image {
  height: 280px;
  background: linear-gradient(135deg, var(--primary-light), #c8e0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.doctor-placeholder {
  font-size: 80px;
  color: var(--primary);
  opacity: 0.3;
}

.doctor-info {
  padding: 28px;
}

.doctor-info h3 {
  font-size: 22px;
  margin-bottom: 4px;
  font-family: var(--font-primary);
}

.doctor-title {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.doctor-spec {
  color: var(--gray-500);
  font-size: 14px;
}

.doctor-bio {
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 12px;
  line-height: 1.6;
}

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

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--gray-100);
  padding: 36px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--warning);
  margin-bottom: 16px;
  font-size: 16px;
}

.testimonial-stars i {
  margin-right: 2px;
}

.testimonial-content {
  font-size: 16px;
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  color: var(--dark);
  font-size: 16px;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: var(--white);
  font-size: 40px;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 15px;
  color: var(--gray-400);
  position: relative;
  z-index: 1;
}

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

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

.breadcrumb span {
  margin: 0 8px;
}

/* ---- Service Detail ---- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 30px;
}

.service-detail-image {
  margin-bottom: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-detail-image img {
  width: 100%;
  border-radius: var(--radius-md);
}

.service-detail-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-700);
}

.sidebar-card {
  background: var(--gray-100);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-family: var(--font-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card h3 i {
  color: var(--primary);
}

.sidebar-card p {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 20px;
}

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

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.contact-info>p {
  color: var(--gray-600);
  margin-bottom: 30px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
}

.contact-card h4 {
  font-family: var(--font-primary);
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--gray-600);
  font-size: 14px;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 24px;
  margin-bottom: 24px;
  font-family: var(--font-primary);
}

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

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--gray-800);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* ---- Map ---- */
.map-section {
  line-height: 0;
}

.map-section iframe {
  filter: grayscale(30%);
}

/* ---- About Page ---- */
.about-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-lead {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  background: var(--gray-100);
  padding: 28px;
  border-radius: var(--radius-md);
}

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

.mv-card h3 {
  font-size: 18px;
  font-family: var(--font-primary);
  margin-bottom: 8px;
}

.mv-card p {
  font-size: 14px;
  color: var(--gray-600);
}

.about-image-block {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--primary-light), #c8deff);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-experience-badge {
  background: var(--primary);
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.exp-number {
  font-size: 48px;
  font-weight: 800;
  display: block;
  font-family: var(--font-heading);
}

.exp-text {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Values */
.values-section {
  background: var(--gray-100);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin: 0 auto 20px;
}

.value-card h3 {
  font-size: 20px;
  font-family: var(--font-primary);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--gray-600);
}

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

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-list {
  margin-top: 30px;
}

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

.why-icon {
  color: var(--secondary);
  font-size: 24px;
  margin-top: 2px;
}

.why-item h4 {
  font-family: var(--font-primary);
  font-size: 17px;
  margin-bottom: 4px;
}

.why-item p {
  font-size: 14px;
  color: var(--gray-600);
}

.why-image-block {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-light), #c8deff);
  border-radius: var(--radius-lg);
  position: relative;
}

.why-image-block::before {
  content: '⚕️';
  font-size: 80px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

/* ---- Error Page ---- */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, #fef2f2 0%, #fff 40%);
}

.error-content {
  max-width: 520px;
  margin: 0 auto;
}

.error-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fecaca;
  color: #dc2626;
  border-radius: 50%;
  font-size: 32px;
}

.error-code {
  font-size: clamp(80px, 18vw, 140px);
  font-weight: 800;
  color: #dc2626;
  opacity: 0.95;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.error-content .error-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  line-height: 1.3;
}

.error-content .error-desc {
  color: #6b7280;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.error-btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.error-btn-primary:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.error-btn-secondary {
  background: #fff;
  color: #dc2626;
  border: 2px solid #fecaca;
}

.error-btn-secondary:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  position: relative;
  padding-top: 60px;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  color: var(--white);
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  height: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 40px 0;
}

.footer-logo {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
  display: inline-block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 18px;
  font-family: var(--font-primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

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

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

.footer-col ul li a {
  color: var(--gray-400);
  font-size: 14px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

.footer-contact i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text p {
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview-grid,
  .about-main-grid,
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .service-detail {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .top-bar-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    z-index: 999;
    align-items: stretch;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: 14px 16px;
    font-size: 16px;
  }

  .btn-nav {
    text-align: center;
    justify-content: center;
  }

  .hero {
    min-height: 70vh;
    padding: 60px 0;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 24px;
  }

  .section {
    padding: 60px 0;
  }

  .services-grid,
  .services-grid-lg {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

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

  .contact-form-wrapper {
    padding: 24px;
  }
}

/* ---- Centre Cards ---- */
.centres-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.centre-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.centre-card .flex {
  height: 100%;
  align-items: stretch;
}

.centre-card-image {
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: stretch;
}

.centre-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .centre-card {
    flex-direction: row;
  }

  .centre-card-image {
    min-height: auto;
    height: auto;
  }
}

/* Mobile bottom nav: force consistent spacing regardless global link styles */
@media (max-width: 1023px) {
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-bottom-nav-inner {
    width: min(calc(100%), 500px);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 72px;
    padding: 0 6px;
  }

  .mobile-bottom-nav-item {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    color: inherit;
  }

  .mobile-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .mobile-bottom-nav-item span {
    font-size: 11px;
    line-height: 1.1;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }
}

/* Public pages: reduce double horizontal gutters on mobile
   (many sections already use Tailwind px-4) */
@media (max-width: 767px) {
  .public-site main .container {
    padding-left: 0;
    padding-right: 0;
  }
}
