/* ============================================================
   Swastya SADAN — Component Styles
   All section-specific and component-level styling
   ============================================================ */

/* ---------------------------------------------------------
   1. TOPBAR
   --------------------------------------------------------- */
.topbar {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 0;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  z-index: calc(var(--z-navbar) + 1);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar a {
  color: var(--color-white);
  transition: opacity var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.topbar a:hover {
  opacity: 0.85;
  color: var(--color-white);
}

.topbar a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.topbar-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------------------
   2. NAVBAR
   --------------------------------------------------------- */
.navbar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  background-color: transparent;
  transition: background-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  position: fixed;
  top: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow);
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.2;
  transition: color var(--transition);
  z-index: calc(var(--z-navbar) + 2);
}

.nav-logo span {
  display: block;
}

.nav-logo-main {
  color: inherit;
}

.nav-logo-sub {
  color: var(--color-accent);
  font-size: 0.65em;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
}

.navbar.scrolled .nav-logo {
  color: var(--color-primary);
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
}

.nav-links.active {
  display: flex;
}

.nav-links li {
  width: 100%;
}

.nav-links a {
  display: block;
  padding: 0.875rem var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--color-dark);
  transition: color var(--transition),
              background-color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background-color: rgba(26, 107, 74, 0.05);
}

.nav-links a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition),
              transform var(--transition);
  min-height: 44px;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.nav-cta:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: calc(var(--z-navbar) + 2);
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition),
              opacity var(--transition),
              background-color var(--transition);
  border-radius: 2px;
}

.hamburger-line + .hamburger-line {
  margin-top: 6px;
}

.navbar.scrolled .hamburger-line {
  background-color: var(--color-dark);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------------------------------------------------------
   3. HERO SECTION
   --------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 107, 74, 0.92) 0%,
    rgba(20, 86, 57, 0.88) 40%,
    rgba(28, 43, 43, 0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
  padding: 6rem var(--space-2) var(--space-5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-3);
}

.hero-title .highlight {
  color: var(--color-accent);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--lh-body);
  margin-bottom: var(--space-4);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* Glucose Wave — decorative SVG background */
.glucose-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  z-index: 1;
  opacity: 0.07;
  pointer-events: none;
  animation: wave 20s linear infinite;
}

.glucose-wave svg {
  width: 200%;
  height: 100%;
}

/* ---------------------------------------------------------
   4. TRUST BAR
   --------------------------------------------------------- */
.trust-bar {
  background-color: rgba(26, 107, 74, 0.06);
  border-top: 1px solid rgba(26, 107, 74, 0.1);
  border-bottom: 1px solid rgba(26, 107, 74, 0.1);
  padding: var(--space-3) 0;
  overflow: hidden;
  white-space: nowrap;
}

.trust-bar-track {
  display: inline-flex;
  width: max-content;
  animation: scroll-trust 30s linear infinite;
}

.trust-bar-track:hover {
  animation-play-state: paused;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 calc(var(--space-4) / 2);
}

@keyframes scroll-trust {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.5rem 0;
}

.trust-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.trust-item-content {
  display: flex;
  flex-direction: column;
}

.trust-item-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  line-height: 1.2;
}

.trust-item-text {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: 1.3;
}

/* ---------------------------------------------------------
   5. SERVICE CARDS
   --------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.service-card {
  background-color: var(--color-card-bg);
  border-radius: var(--card-radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 107, 74, 0.08);
  color: var(--color-primary);
  border-radius: 12px;
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
}

.service-card-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--fw-semi);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.service-card-desc {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  transition: gap var(--transition),
              color var(--transition);
  min-height: 44px;
}

.service-card-link:hover {
  color: var(--color-primary-dark);
  gap: 0.625rem;
}

.service-card-link::after {
  content: "→";
  transition: transform var(--transition);
}

.service-card-link:hover::after {
  transform: translateX(3px);
}

/* ---------------------------------------------------------
   6. WHY US
   --------------------------------------------------------- */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.why-us-item {
  text-align: center;
  padding: var(--space-3);
}

.why-us-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 107, 74, 0.08);
  color: var(--color-primary);
  border-radius: 50%;
  margin: 0 auto var(--space-3);
  font-size: 1.75rem;
  transition: background-color var(--transition),
              color var(--transition),
              transform var(--transition);
}

.why-us-item:hover .why-us-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.08);
}

.why-us-heading {
  font-size: var(--text-lg);
  font-weight: var(--fw-semi);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.why-us-text {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: var(--lh-body);
}

/* ---------------------------------------------------------
   7. DOCTOR CARDS
   --------------------------------------------------------- */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.doctor-card {
  background-color: var(--color-card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: border-color var(--transition),
              box-shadow var(--transition);
}

.doctor-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: rgba(26, 107, 74, 0.06);
}

.doctor-info {
  padding: var(--space-3);
}

.doctor-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.doctor-credentials {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-1);
}

.doctor-specialty {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.doctor-schedule {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background-color: rgba(26, 107, 74, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
}

/* ---------------------------------------------------------
   8. APPOINTMENT SECTION
   --------------------------------------------------------- */
.appointment-section {
  background-color: var(--color-white);
}

.appointment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.appointment-form {
  padding: var(--space-4);
  background-color: var(--color-bg);
  border-radius: var(--card-radius);
}

.appointment-form-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.sidebar-hours h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: var(--fw-medium);
  color: var(--color-dark);
}

.hours-time {
  color: var(--color-primary);
}

.appointment-cta-panel {
  padding: var(--space-4);
  background-color: var(--color-primary);
  border-radius: var(--card-radius);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.appointment-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
}

.appointment-cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
  line-height: var(--lh-body);
}

.appointment-phone-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem var(--space-2);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  transition: background-color var(--transition);
  min-height: 48px;
}

.appointment-phone-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

.appointment-phone-btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.appointment-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem var(--space-2);
  background-color: #25D366;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: var(--fw-semi);
  transition: background-color var(--transition),
              transform var(--transition);
  min-height: 48px;
}

.appointment-whatsapp-btn:hover {
  background-color: #20BD5A;
  color: var(--color-white);
  transform: translateY(-1px);
}

.appointment-whatsapp-btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.appointment-hours {
  padding: var(--space-2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.appointment-hours-title {
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  color: var(--color-white);
}

.appointment-hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.appointment-hours-row .time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

/* ---------------------------------------------------------
   9. TESTIMONIALS
   --------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.testimonial-card {
  background-color: var(--color-card-bg);
  border-radius: var(--card-radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  font-size: 1.125rem;
}

.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-dark);
  line-height: var(--lh-body);
  font-style: italic;
  margin-bottom: var(--space-3);
  flex-grow: 1;
  position: relative;
  padding-left: var(--space-3);
}

.testimonial-quote::before {
  content: """;
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
}

.testimonial-name {
  font-weight: var(--fw-semi);
  font-size: var(--text-base);
  color: var(--color-dark);
}

.testimonial-condition {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

/* ---------------------------------------------------------
   10. VISIT SCHEDULE TABLE
   --------------------------------------------------------- */
.schedule-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-card-bg);
}

.schedule-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.schedule-table thead {
  background-color: var(--color-primary);
}

.schedule-table th {
  padding: 1rem 0.75rem;
  color: var(--color-white);
  font-weight: var(--fw-semi);
  font-size: var(--text-sm);
  text-align: center;
  white-space: nowrap;
}

.schedule-table th:first-child {
  text-align: left;
  padding-left: var(--space-3);
}

.schedule-table td {
  padding: 0.875rem 0.75rem;
  font-size: var(--text-sm);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-dark);
  vertical-align: top;
}

.schedule-table td:first-child {
  text-align: left;
  padding-left: var(--space-3);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  color: var(--color-primary);
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background-color: rgba(26, 107, 74, 0.03);
}

.schedule-table .today {
  background-color: rgba(26, 107, 74, 0.08);
  font-weight: var(--fw-semi);
}

.schedule-table th.today {
  background-color: var(--color-primary-dark);
  position: relative;
}

.schedule-table th.today::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.schedule-doctor-name {
  font-weight: var(--fw-medium);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.schedule-timing {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-muted);
  margin-top: 0.125rem;
}

/* ---------------------------------------------------------
   11. MAP SECTION
   --------------------------------------------------------- */
.map-section {
  width: 100%;
  background-color: var(--color-border);
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 40%;
  min-height: 300px;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------
   12. FAQ
   --------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semi);
  color: var(--color-dark);
  line-height: 1.5;
  gap: var(--space-2);
  min-height: 44px;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  color: var(--color-muted);
}

.faq-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.faq-answer-inner {
  padding-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: var(--lh-body);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ---------------------------------------------------------
   13. BLOG PREVIEW
   --------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

.blog-card {
  background-color: var(--color-card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition),
              box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: rgba(26, 107, 74, 0.06);
}

.blog-content {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(26, 107, 74, 0.08);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semi);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
  line-height: 1.35;
  transition: color var(--transition);
}

.blog-card:hover .blog-title {
  color: var(--color-primary);
}

.blog-excerpt {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--space-2);
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.blog-date {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-family: var(--font-mono);
}

.blog-read-more {
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition),
              color var(--transition);
  min-height: 44px;
}

.blog-read-more:hover {
  gap: 0.5rem;
  color: var(--color-primary-dark);
}

.blog-read-more::after {
  content: "→";
}

/* ---------------------------------------------------------
   14. FOOTER
   --------------------------------------------------------- */
.footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-6) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--lh-body);
  margin-bottom: var(--space-3);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-semi);
  color: var(--color-white);
  margin-bottom: var(--space-2);
  position: relative;
  padding-bottom: var(--space-1);
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition),
              padding-left var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 0.5rem;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--color-accent);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  gap: var(--space-2);
}

.footer-hours-row .day {
  flex-shrink: 0;
}

.footer-hours-row .time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-align: right;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-2);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.125rem;
  transition: background-color var(--transition),
              transform var(--transition);
}

.footer-social a:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-social a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.footer-legal p {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-legal-links a:hover {
  color: var(--color-accent);
}

/* ---------------------------------------------------------
   15. WHATSAPP FLOAT
   --------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-whatsapp);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;
  color: var(--color-white);
  border-radius: 50%;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition),
              box-shadow var(--transition);
  animation: pulse 3s ease-in-out infinite;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  color: var(--color-white);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.whatsapp-float svg,
.whatsapp-float img {
  width: 32px;
  height: 32px;
}

/* ---------------------------------------------------------
   16. SCROLL TOP BUTTON
   --------------------------------------------------------- */
.scroll-top-btn {
  position: fixed;
  bottom: 6.5rem;
  right: 1.5rem;
  z-index: calc(var(--z-whatsapp) - 1);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition),
              visibility var(--transition),
              transform var(--transition),
              background-color var(--transition);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--color-primary-dark);
}

.scroll-top-btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

.scroll-top-btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ---------------------------------------------------------
   17. MOBILE CALL BAR
   --------------------------------------------------------- */
.mobile-call-bar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-navbar) + 2);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem var(--space-2);
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
}

.mobile-call-bar a {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  transition: opacity var(--transition);
}

.mobile-call-bar a:hover {
  opacity: 0.85;
  color: var(--color-white);
}

.mobile-call-bar a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.mobile-call-divider {
  width: 1px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------------------
   18. OPEN / CLOSED BADGE
   --------------------------------------------------------- */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(39, 174, 96, 0.12);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
}

.open-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.closed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(192, 57, 43, 0.12);
  color: var(--color-alert);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
}

.closed-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--color-alert);
  border-radius: 50%;
}

/* ---------------------------------------------------------
   19. PAGE HEADER (inner pages)
   --------------------------------------------------------- */
.page-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 6rem 0 var(--space-5);
  text-align: center;
}

.page-header-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-current {
  color: var(--color-white);
  font-weight: var(--fw-medium);
}

/* ---------------------------------------------------------
   20. KEYFRAME ANIMATIONS
   --------------------------------------------------------- */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }

  .open-badge::before {
    animation: none;
  }

  .glucose-wave {
    animation: none;
  }

  .faq-answer {
    transition: none;
  }
}
