/*
Theme Name: Shashwat IVF Theme
Theme URI: http://localhost/loader/sivf_wp
Description: Custom theme for Shashwat IVF & Women's Hospital matching the React site design.
Version: 1.0.0
Author: Harshit
Text Domain: sivf-theme
*/

/* ─── Brand Tokens ─────────────────────────────────────── */
:root {
  --color-teal:      #0891b2;
  --color-teal-dark: #0e7490;
  --color-teal-soft: #e6fffa;
  --color-coral:     #f97316;
  --color-ink:       #0f172a;
  --color-muted:     #64748b;
  --color-lavender:  #a855f7;
  --color-bg:        #fafbfc;
  --color-white:     #ffffff;
  --color-border:    #e5e7eb;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07);
  --shadow-lg:  0 10px 25px rgba(0,0,0,.1);
  --radius:     0.75rem;
  --radius-sm:  0.375rem;
  --max-w:      80rem;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Layout Helpers ───────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }
.section--sm { padding-block: 3rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: 3rem; }
}

/* ─── Typography ───────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(8,145,178,.15);
  box-shadow: 0 1px 3px rgba(8,145,178,.05);
  border-radius: 9999px;
  padding: .25rem 1rem;
  font-size: .6875rem;          /* 11px */
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 1rem;
}

.section-title span { color: var(--color-teal); }

.section-desc {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 42rem;
  margin-bottom: 3rem;
}

.text-center { text-align: center; }
.text-center .section-desc { margin-inline: auto; }
.text-center .section-label { margin-inline: auto; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;       /* default: px-6 py-3 */
  font-size: .875rem;           /* text-sm */
  border-radius: 9999px;        /* rounded-full */
  font-family: var(--font-body);
  font-weight: 500;             /* font-medium */
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s ease;
  outline: none;
}

/* Primary — coral (matches React `variant="primary"`) */
.btn-primary {
  background: var(--color-coral);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,.07);
}
.btn-primary:hover {
  background: #ea6a0a;
  box-shadow: 0 10px 15px rgba(0,0,0,.1);
  transform: translateY(-1px);
  color: #fff;
}

/* Secondary — teal (matches React `variant="secondary"`) */
.btn-secondary {
  background: var(--color-teal);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,.07);
}
.btn-secondary:hover {
  background: var(--color-teal-dark);
  box-shadow: 0 10px 15px rgba(0,0,0,.1);
  transform: translateY(-1px);
  color: #fff;
}

/* Outline — teal border (matches React `variant="outline"`) */
.btn-outline {
  background: transparent;
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
}
.btn-outline:hover {
  background: var(--color-teal);
  color: #fff;
}

/* Ghost — teal text (matches React `variant="ghost"`) */
.btn-ghost {
  background: transparent;
  color: var(--color-teal);
  border: none;
}
.btn-ghost:hover { background: var(--color-teal-soft); }

/* White — on dark/teal backgrounds (matches React `variant="white"`) */
.btn-white {
  background: #fff;
  color: var(--color-ink);
  box-shadow: 0 4px 6px rgba(0,0,0,.07);
}
.btn-white:hover {
  background: #f9fafb;
  box-shadow: 0 10px 15px rgba(0,0,0,.1);
  transform: translateY(-1px);
}

/* Outline-white — on dark backgrounds */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 9999px;
  padding: .75rem 1.5rem;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* Sizes */
.btn-sm { padding: .5rem 1rem;   font-size: .875rem; }
.btn-lg { padding: 1rem 2rem;    font-size: 1rem; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.125rem; }

/* ─── Cards ────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-body { padding: 1.5rem; }

/* ─── Badges ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-teal { background: rgba(8,145,178,.1); color: var(--color-teal); }
.badge-coral { background: rgba(249,115,22,.1); color: var(--color-coral); }

/* ─── Divider ──────────────────────────────────────────── */
.divider {
  width: 3rem;
  height: 3px;
  background: var(--color-teal);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.text-center .divider { margin-inline: auto; }

/* ─── Stat Block ───────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-item { text-align: center; padding: 1.5rem; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-teal);
  display: block;
}
.stat-label { font-size: .875rem; color: var(--color-muted); margin-top: .25rem; }

/* ─── Page Hero ────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 60%, #eff6ff 100%);
  padding-block: 5rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { color: var(--color-ink); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.page-hero p { color: var(--color-muted); font-size: 1.125rem; max-width: 40rem; margin-inline: auto; }
.page-hero .section-label { margin-bottom: 1rem; }

/* ─── Form Elements ────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; color: var(--color-ink); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,.1);
}

/* ─── Pagination ───────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; padding-top: 3rem; }
.pagination a, .pagination span {
  padding: .5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--color-muted);
}
.pagination .current { background: var(--color-teal); color: #fff; border-color: var(--color-teal); }
.pagination a:hover { border-color: var(--color-teal); color: var(--color-teal); }
