/* ===========================
   GLOBAL MEDIC — Custom Styles
   =========================== */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

/* ===== SOCIAL ICON BUTTONS ===== */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.social-btn:hover {
  opacity: 0.75;
}

/* ===== NAVIGATION ===== */
.nav-link {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #1d3461;
}
.nav-link.active {
  color: #1d3461;
  font-weight: 700;
}
.nav-sep {
  color: #bbb;
  font-size: 14px;
  margin: 0 2px;
}

/* ===== PAGE ACCENT LINE ===== */
.page-accent-line {
  height: 3px;
  background: linear-gradient(to right, #6b0000, #cc3333, #6b0000);
}

/* ===== BREADCRUMB TABS ===== */
.breadcrumb-tabs {
  display: inline-flex;
  border: 1px solid #ddd;
  margin-bottom: 2rem;
}
.breadcrumb-tab {
  padding: 0.35rem 1rem;
  font-size: 13px;
  text-decoration: none;
  color: #444;
  background: #f2f2f2;
  border-right: 1px solid #ddd;
}
.breadcrumb-tab:last-child {
  border-right: none;
}
.breadcrumb-tab.active {
  background: #1d3461;
  color: #fff;
  font-weight: 600;
}

/* ===== HERO SWIPER ===== */
.hero-swiper-section {
  position: relative;
}
.hero-swiper {
  width: 100%;
  height: 500px;
}
.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.08) 65%);
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}
.hero-slide-content h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.hero-slide-content p {
  color: #d8e4f0;
  font-size: 0.92rem;
  max-width: 500px;
  line-height: 1.65;
}
.hero-btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.65rem 1.8rem;
  background: #1d3461;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.5);
  transition: background 0.25s, border-color 0.25s;
}
.hero-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
/* Swiper nav overrides */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0,0,0,0.35);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s;
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: rgba(29,52,97,0.85);
}
.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 15px;
  font-weight: 900;
}
.hero-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.55);
  opacity: 1;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ===== CONTACT INFO BAR ===== */
.contact-bar-wrapper {
  margin: 2.5rem 0;
}
.contact-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.contact-bar-item {
  padding: 2rem 1.5rem;
  text-align: center;
}
.contact-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.6rem;
}
.contact-bar-dark .contact-icon {
  color: #7a9bc4;
}
.contact-bar-light .contact-icon {
  color: #cc3333;
}
.contact-bar-dark {
  background: #1d3461;
  color: #fff;
}
.contact-bar-light {
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.contact-bar-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 0.25rem;
}
.contact-bar-dark .contact-bar-title {
  color: #fff;
}
.contact-bar-light .contact-bar-title {
  color: #cc3333;
}
.contact-bar-text {
  font-size: 12px;
  display: block;
  line-height: 1.6;
}
.contact-bar-dark .contact-bar-text {
  color: #a8bed8;
}
.contact-bar-light .contact-bar-text {
  color: #0066cc;
}

/* ===== IMAGE GALLERY ===== */
.gallery-grid-wrapper {
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.gallery-img-wrapper {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-img-wrapper:hover .gallery-img {
  transform: scale(1.06);
}

/* ===== SERVICE TABS ===== */
.service-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 3px solid #1d3461;
}
.service-tab-btn {
  padding: 0.55rem 1.4rem;
  border: none;
  background: #e0e0e0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  transition: background 0.2s, color 0.2s;
}
.service-tab-btn:hover {
  background: #ccc;
}
.service-tab-btn.active {
  background: #1d3461;
  color: #fff;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ===== SERVICE CATEGORIES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-bottom: 3rem;
}
.service-category h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d3461;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #999;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.service-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-category ul li {
  font-size: 13px;
  color: #444;
  padding: 2px 0;
}
.service-category ul li a {
  color: #0066cc;
  text-decoration: none;
}
.service-category ul li a:hover {
  text-decoration: underline;
}

/* ===== QUIROFANO FEATURES ===== */
.quirofano-section {
  background: #f8f9fb;
  border-top: 2px solid #e5e7eb;
  padding: 2.5rem 0;
  margin-top: 1rem;
}
.quirofano-section h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d3461;
  margin-bottom: 1.5rem;
}
.quirofano-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}
.quirofano-features li {
  list-style: none;
  font-size: 13px;
  color: #0066cc;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 1rem;
}
.about-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1d3461;
  margin-bottom: 1.2rem;
}
.about-content p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.6rem;
}
.about-content .highlight {
  color: #0066cc;
}
.about-content .extras {
  margin-top: 1rem;
  font-weight: 700;
  font-size: 13px;
  color: #333;
}
.about-content .extras span {
  display: block;
  font-weight: 700;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}
.about-images img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
  padding: 2rem 1rem 3rem;
  max-width: 600px;
}
.contact-form-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #888;
  margin-bottom: 1.2rem;
}
.form-group {
  margin-bottom: 0.85rem;
}
.form-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 0.3rem;
}
.form-label .required {
  color: #cc3333;
}
.form-input,
.form-textarea {
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  padding: 0.45rem 0.6rem;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #1d3461;
}
.form-textarea {
  height: 90px;
  resize: vertical;
}
.btn-send {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.btn-send:hover {
  color: #1d3461;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 2rem;
}
.site-footer img {
  height: 70px;
  margin: 0 auto;
}
.footer-name {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #666;
  letter-spacing: 0.01em;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.65rem;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-social-link:hover {
  opacity: 0.8;
}
.footer-fb { background: #1877f2; }
.footer-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 1rem;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: #1d3461;
  font-weight: 600;
}

/* ===== HEMODIALYSIS TAB CONTENT ===== */
.hemo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hemo-content p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.6rem;
}
.hemo-content img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-swiper { height: 320px; }
  .hero-slide-content h1 { font-size: 1.35rem; }
  .hero-slide-content p { font-size: 0.82rem; }
  .contact-bar { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-images { grid-template-columns: 1fr; }
  .hemo-content { grid-template-columns: 1fr; }
  .service-tabs { flex-wrap: wrap; }
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
}
@media (min-width: 769px) {
  .menu-toggle { display: none; }
}
