/* ============================================
   AMCARE Medical Group — Global Site Design System
   Premium Women's & Children's Healthcare
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* AMCARE Warm Rose Palette */
  --primary: #C06B6B;
  --primary-light: #D89494;
  --primary-dark: #A05555;
  --primary-bg: #FDF8F6;

  /* Accent: Warm Gold */
  --accent: #D4A574;
  --accent-light: #E8CBA8;
  --accent-dark: #B8845A;

  /* Neutrals */
  --bg: #FDF8F6;
  --bg-card: #ffffff;
  --bg-alt: #F9F0ED;
  --text: #2D2A2E;
  --text-light: #6B6668;
  --text-muted: #A09994;
  --border: #E8DDD8;
  --border-light: #F0E8E4;

  /* Semantic */
  --success: #7BAF5E;
  --warning: #D4A574;
  --danger: #C75050;

  /* Radius & Shadows */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(192,107,107,0.06), 0 1px 2px rgba(192,107,107,0.04);
  --shadow: 0 4px 16px rgba(192,107,107,0.08), 0 2px 6px rgba(192,107,107,0.04);
  --shadow-lg: 0 12px 40px rgba(192,107,107,0.12), 0 4px 12px rgba(192,107,107,0.06);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; line-height: 1.7; }

.bg-white { background: var(--bg-card); }
.bg-alt { background: var(--bg-alt); }
.bg-primary { background: var(--primary); color: #fff; }
.bg-primary h2, .bg-primary h3 { color: #fff; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}
.nav-links .btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  font-weight: 600;
}
.nav-links .btn-nav:hover {
  background: var(--primary-dark);
}
.nav-links .nav-back {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.nav-links .nav-back:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none; border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #C06B6B 0%, #D89494 50%, #E8A090 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 36px;
  line-height: 1.8;
  font-weight: 400;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--bg-alt);
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.trust-icon {
  font-size: 1.2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--bg-alt);
  color: var(--primary-dark);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  gap: 28px;
}
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 56px; height: 56px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--primary);
}
.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.card-link:hover {
  color: var(--primary-dark);
}

/* --- Service Cards --- */
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card-body {
  padding: 32px;
}
.service-card-body h3 {
  margin-bottom: 12px;
  color: var(--primary);
}
.service-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.7;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  margin-bottom: 12px;
  background: var(--bg-alt);
  color: var(--primary);
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all var(--transition);
}
.process-step:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}
.process-step-number {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.process-step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--primary);
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Page Hero --- */
.page-hero {
  padding: 60px 0 48px;
  background: linear-gradient(135deg, #C06B6B 0%, #D89494 100%);
  color: #fff;
}
.page-hero h1 {
  color: #fff;
  margin-bottom: 12px;
}
.page-hero p {
  opacity: 0.95;
  font-size: 1.1rem;
}

/* --- Footer --- */
.footer {
  background: #2D2A2E;
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer a:hover {
  color: var(--accent-light);
}
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.brand-x {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 2px;
}
.brand-jingdu {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- Service Card Icon Backgrounds --- */
.service-card-icon-obstetrics {
  background: linear-gradient(135deg, rgba(192,107,107,0.12), rgba(192,107,107,0.06)) !important;
}
.service-card-icon-ivf {
  background: linear-gradient(135deg, rgba(74,144,217,0.12), rgba(74,144,217,0.06)) !important;
}
.service-card-icon-pediatrics {
  background: linear-gradient(135deg, rgba(123,104,238,0.12), rgba(123,104,238,0.06)) !important;
}
.service-card-icon-aesthetic {
  background: linear-gradient(135deg, rgba(255,107,107,0.12), rgba(255,107,107,0.06)) !important;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  background: var(--bg-card);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192,107,107,0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
button[type="submit"] {
  background: var(--primary);
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  font-family: var(--font);
  transition: all var(--transition);
}
button[type="submit"]:hover {
  background: var(--primary-dark);
}

/* --- Animations --- */
.animate {
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .cards-grid-2,
  .cards-grid-3 { grid-template-columns: 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* --- Service Card Icon Variants --- */
.service-card-icon-obstetrics,
.service-card-icon-ivf,
.service-card-icon-pediatrics,
.service-card-icon-aesthetic {
  padding: 40px;
  text-align: center;
  font-size: 48px;
}
.service-card-icon-obstetrics { background: linear-gradient(135deg, #C06B6B20, #C06B6B10); }
.service-card-icon-ivf        { background: linear-gradient(135deg, #4A90D920, #4A90D910); }
.service-card-icon-pediatrics { background: linear-gradient(135deg, #7B68EE20, #7B68EE10); }
.service-card-icon-aesthetic  { background: linear-gradient(135deg, #FF6B6B20, #FF6B6B10); }

/* --- CTA Section --- */
.section.bg-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff;
}
.section.bg-primary .section-header h2,
.section.bg-primary h2 { color: #fff; }
.section.bg-primary .section-header p,
.section.bg-primary p { color: rgba(255,255,255,0.9); }
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.cta-buttons .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.cta-buttons .btn-primary:hover {
  background: rgba(255,255,255,0.9);
}
.cta-buttons .btn-outline {
  border-color: #fff;
  color: #fff;
}
.cta-buttons .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* --- Footer inline overrides (remove need for style attr) --- */
.footer-col p { margin-bottom: 10px; }
.footer-col .btn { margin-top: 10px; }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-15 { margin-top: 15px; }
