/* ================================================
   INTERNATIONAL HAIR TRANSPLANT CLINIC
   Shared CSS - Header, Footer, Reset, Common Elements
   ================================================ */

/* === CSS RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #006BFF;
  --cyan: #0AE8F0;
  --success: #059669;
  --dark: #1f2937;
  --text: #374151;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-lighter: #f0f4f8;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 20px rgba(0,0,0,0.15);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* === HEADER === */
header {
  background-color: #ffffff;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

header .logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

header img {
  height: 45px;
}

header .clinic-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.2;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-phone {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-phone i {
  color: #10b981;
}

.header-phone:hover {
  color: #006BFF;
}

@media (max-width: 768px) {
  .header-contact {
    display: none;
  }
}

/* === CONTACT BUTTON GRID (2×2) === */
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 24px auto 0 auto;
}

/* === BUTTONS === */
.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn i {
  font-size: 1.2rem;
}

.btn.whatsapp {
  background-color: #25d366;
}

.btn.whatsapp:hover {
  background-color: #1ebe5d;
  transform: translateY(-2px);
}

.btn.sms {
  background-color: #6366f1;
}

.btn.sms:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
}

.btn.messenger {
  background-color: #0084ff;
}

.btn.messenger:hover {
  background-color: #006fe0;
  transform: translateY(-2px);
}

.btn.call {
  background-color: #10b981;
}

.btn.call:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

.btn-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  background: linear-gradient(135deg, #006BFF, #0AE8F0);
  transition: all 0.3s ease;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,107,255,0.3);
}

.btn-booking:hover {
  background: linear-gradient(135deg, #0052CC, #08C5D1);
  box-shadow: 0 6px 16px rgba(0,107,255,0.4);
  transform: translateY(-2px);
}

.btn-success-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-success-wa:hover {
  background: #1da851;
}

.btn-success-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #006BFF, #0AE8F0);
  color: white;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn-success-call:hover {
  opacity: 0.88;
}

/* === FOOTER === */
footer {
  background-color: #1f2937;
  color: #9ca3af;
  padding: 45px 20px 0 20px;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto 30px auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 600px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  line-height: 2;
  color: #9ca3af;
  text-decoration: none;
  display: block;
  margin: 0;
}

.footer-col a:hover {
  color: #0AE8F0;
}

.footer-col i {
  width: 18px;
  color: #0AE8F0;
  margin-right: 8px;
}

/* Medical disclaimer */
.medical-disclaimer {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid #374151;
  padding: 20px 0;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
}

.medical-disclaimer strong {
  color: #9ca3af;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 0 25px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-bottom a {
  color: #6b7280;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #0AE8F0;
}

/* === BREADCRUMB === */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 9px 30px;
  font-size: 0.83rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #006BFF;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
}

/* === COMMON UTILITIES === */
.inner,
.container,
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

section {
  padding: 60px 20px;
}

/* ================================================
   STICKY WHATSAPP BUTTON (circle, bottom-right)
   ================================================ */
.sticky-wa,
.sticky-whatsapp {
  position: fixed;
  bottom: 90px;        /* above mobile bottom bar */
  right: 20px;
  z-index: 9998;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wa-pulse 2.5s infinite;
}

.sticky-wa i,
.sticky-whatsapp i {
  font-size: 1.7rem;
  color: white;
}

.sticky-wa:hover,
.sticky-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37,211,102,0.6);
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* On desktop, keep button closer to bottom (no mobile bar) */
@media (min-width: 601px) {
  .sticky-wa,
  .sticky-whatsapp {
    bottom: 28px;
  }
}

/* ================================================
   MOBILE STICKY BOTTOM CTA BAR
   (WhatsApp + Call — only on phones)
   ================================================ */
.mobile-cta-bar {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.13);
  padding: 10px 14px;
  gap: 10px;
}

.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: white;
  min-height: 50px;
  transition: opacity 0.2s;
}

.mobile-cta-bar a:active {
  opacity: 0.85;
}

.mobile-cta-bar .mob-wa {
  background: #25D366;
}

.mobile-cta-bar .mob-call {
  background: linear-gradient(135deg, #006BFF, #0AE8F0);
}

.mobile-cta-bar i {
  font-size: 1.1rem;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  /* Show sticky bottom bar */
  .mobile-cta-bar {
    display: flex;
  }

  /* Room for sticky bar */
  body {
    padding-bottom: 74px;
  }

  /* Header */
  header {
    padding: 8px 14px;
  }

  header img {
    height: 38px;
  }

  header .clinic-name {
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  /* Reduce section breathing room */
  section {
    padding: 40px 16px;
  }

  /* Full-width CTA buttons */
  .btn-booking,
  .btn-success-wa,
  .btn-success-call {
    width: 100%;
    justify-content: center;
  }

  /* Larger tap targets */
  .btn-booking,
  .btn,
  .submit-btn {
    min-height: 52px;
    font-size: 1rem;
  }

  /* Hero headings — prevent overflow on small screens */
  .hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }

  .hero p,
  .hero .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  /* Section headings */
  h2 {
    font-size: 1.6rem !important;
  }

  /* Breadcrumb — hidden on mobile */
  .breadcrumb {
    display: none;
  }

  /* Footer padding */
  footer {
    padding: 35px 16px 0;
  }

  /* Cost/comparison tables — enable horizontal scroll */
  .cost-table-wrap,
  .comparison-table-wrap,
  table {
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
  }
}
