/* =============================================
   MADER Clinic — Global Stylesheet
   CI Colors: Sky Blue #29b6f6 | Navy #1565c0 | White #ffffff
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;600;700&family=Prompt:wght@600;700;800&display=swap');

:root {
  --blue:        #29b6f6;
  --blue-mid:    #039be5;
  --blue-dark:   #1565c0;
  --blue-navy:   #0d2137;
  --blue-light:  #e1f5fe;
  --blue-pale:   #f0f8ff;
  --pink:        #e91e63;
  --pink-light:  #fce4ec;
  --yellow:      #ffd600;
  --white:       #ffffff;
  --text:        #1a1a2e;
  --text-light:  #5a6a7a;
  --shadow:      0 4px 20px rgba(21, 101, 192, 0.14);
  --shadow-lg:   0 8px 40px rgba(21, 101, 192, 0.22);
  --radius:      14px;
  --radius-sm:   8px;
}

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

body {
  font-family: 'Sarabun', 'Segoe UI', Tahoma, sans-serif;
  color: var(--text);
  background: var(--blue-pale);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Navbar ─────────────────────────────────── */
.navbar {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  box-shadow: 0 2px 12px rgba(3, 155, 229, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .brand {
  font-family: 'Prompt', sans-serif;
  font-size: 1.35rem;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .brand .logo-circle {
  width: 36px;
  height: 36px;
  background: var(--blue-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  flex-shrink: 0;
}

.navbar .brand span {
  font-family: 'Sarabun', sans-serif;
  font-size: 0.68rem;
  display: block;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav-links .btn-nav {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(3, 155, 229, 0.3);
}

.nav-links .btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(3, 155, 229, 0.4);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(3, 155, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 155, 229, 0.45);
}

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

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

.btn-messenger {
  background: linear-gradient(135deg, #0084ff, #0050c8);
  color: var(--white);
}

.btn-messenger:hover {
  background: linear-gradient(135deg, #0066cc, #003a9e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 80, 200, 0.3);
}

.btn-pink {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.45);
}

/* ── Section ─────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-title {
  font-family: 'Prompt', sans-serif;
  font-size: 1.9rem;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 44px;
}

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* ── Badge ─────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.badge-pink {
  background: var(--pink-light);
  color: var(--pink);
}

/* ── Footer ─────────────────────────────────── */
footer {
  background: var(--blue-navy);
  color: rgba(255,255,255,0.82);
  text-align: center;
  padding: 40px 24px;
  font-size: 0.9rem;
}

footer a { color: var(--blue); text-decoration: none; }
footer a:hover { color: var(--white); }

footer .footer-grid {
  max-width: 900px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: left;
}

footer h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }

footer ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }

footer .copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 20px; gap: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .section { padding: 50px 16px; }
  .section-title { font-size: 1.5rem; }
}
