/* ============================================================
   Homepage V2 — Variant A (Editorial)
   ============================================================ */

:root {
  --hv2-blue: #2B7ACC;
  --hv2-blue-light: #4A9FE5;
  --hv2-blue-pale: #E8F1FA;
  --hv2-text-body: #111111;
  --hv2-text-heading: #3F4153;
  --hv2-text-muted: #8B8C8D;
  --hv2-white: #FFFFFF;
  --hv2-off-white: #F9F9F9;
  --hv2-light-gray: #F2F2F2;
  --hv2-border: #D5D5D5;
  --hv2-border-light: #EBEBEB;
  --hv2-green: #26AD61;
  --hv2-gold: #C6B49C;
  --hv2-font-display: 'DM Sans', system-ui, sans-serif;
  --hv2-font-body: 'DM Sans', system-ui, sans-serif;
}

/* Hide parent theme elements not needed on this template */
body.homepage-v2 .kl-slideshow,
body.homepage-v2 .page-subheader,
body.homepage-v2 .cihos-breadcrumb-bar {
  display: none !important;
}

/* --- HERO — ASYMMETRIC --- */
.hv2-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 0;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.hv2-hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--hv2-light-gray);
}

.hv2-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv2-hero-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hv2-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hv2-hero-sidebar {
  padding-top: 8px;
}

.hv2-hero-sidebar h1 {
  font-family: var(--hv2-font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hv2-text-heading);
  margin-bottom: 16px;
}

.hv2-hero-sidebar h1 em {
  color: var(--hv2-blue);
  font-style: normal;
}

.hv2-hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--hv2-text-muted);
  margin-bottom: 32px;
}

/* --- TRUST BAR --- */
.hv2-trust-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 0;
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
}

.hv2-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hv2-text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.hv2-trust-icon {
  width: 40px;
  height: 40px;
  background: var(--hv2-blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hv2-blue);
  flex-shrink: 0;
}

.hv2-trust-divider {
  width: 1px;
  height: 32px;
  background: var(--hv2-border-light);
}

/* --- SECTION HELPERS --- */
.hv2-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px;
}

.hv2-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hv2-blue);
  margin-bottom: 8px;
}

.hv2-section-title {
  font-family: var(--hv2-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--hv2-text-heading);
  margin-bottom: 12px;
}

.hv2-section-subtitle {
  font-size: 16px;
  color: var(--hv2-text-muted);
  max-width: 520px;
}

.hv2-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.hv2-section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--hv2-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hv2-section-link:hover {
  text-decoration: underline;
}

/* --- SERVICES --- */
.hv2-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hv2-service-card {
  background: var(--hv2-white);
  border: 1px solid var(--hv2-border-light);
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.hv2-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hv2-blue);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.hv2-service-card:hover::before { transform: scaleX(1); }
.hv2-service-card:hover {
  border-color: var(--hv2-blue);
  box-shadow: 0 8px 24px rgba(43,122,204,0.08);
  transform: translateY(-2px);
}

.hv2-service-icon {
  width: 48px;
  height: 48px;
  background: var(--hv2-blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.hv2-service-card h3 {
  font-family: var(--hv2-font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--hv2-text-heading);
  margin-bottom: 8px;
}

.hv2-service-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hv2-text-muted);
}

/* --- ARTICLES --- */
.hv2-articles-section {
  background: var(--hv2-off-white);
  border-top: 1px solid var(--hv2-border-light);
  border-bottom: 1px solid var(--hv2-border-light);
}

.hv2-articles-section > .hv2-section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.hv2-articles-section .hv2-section-header {
  margin-bottom: 20px;
}

.hv2-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hv2-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: background 0.2s;
  overflow: hidden;
}

.hv2-article-body {
  padding: 14px 4px 4px;
  min-width: 0;
}

.hv2-article-card:hover { background: var(--hv2-white); }

/* Featured card: same size as others on desktop */
.hv2-article-featured {
  grid-column: auto;
}

.hv2-article-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--hv2-light-gray);
}

.hv2-article-featured .hv2-article-img {
  aspect-ratio: 16/10;
}

.hv2-article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv2-article-card h3 {
  font-family: var(--hv2-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--hv2-text-heading);
  line-height: 1.35;
  margin-bottom: 4px;
}

.hv2-article-featured h3 {
  font-size: 15px;
}

.hv2-article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.hv2-article-date {
  font-size: 12px;
  color: var(--hv2-text-muted);
}

.hv2-article-meta .hv2-article-date::after {
  content: '·';
  margin-left: 6px;
  color: var(--hv2-text-muted);
}

.hv2-article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--hv2-blue);
  background: var(--hv2-blue-pale);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: normal;
}

.hv2-article-excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--hv2-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- HOSPITALS --- */
.hv2-hospitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hv2-hospital-card {
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--hv2-white);
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hv2-hospital-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hv2-gold), #d4c4a8);
  z-index: 2;
  border-radius: 14px 14px 0 0;
}

.hv2-hospital-card:hover {
  box-shadow: 0 16px 40px rgba(43,122,204,0.10), 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-5px);
}

.hv2-hospital-img {
  aspect-ratio: 3/2;
  background: var(--hv2-light-gray);
  overflow: hidden;
  position: relative;
}

.hv2-hospital-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.08), transparent);
  pointer-events: none;
}

.hv2-hospital-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hv2-hospital-card:hover .hv2-hospital-img img {
  transform: scale(1.06);
}

.hv2-hospital-info {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hv2-hospital-info h3 {
  font-family: var(--hv2-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--hv2-text-heading);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hv2-hospital-loc {
  font-size: 12px;
  color: var(--hv2-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hv2-hospital-loc svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.55;
}

/* --- CTA BANNER --- */
.hv2-cta-banner {
  background: #2d3748 url('../img/pattern-bg.webp') no-repeat center center;
  background-size: cover;
  width: 100%;
  border-radius: 0;
  color: white;
}

.hv2-cta-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.hv2-cta-banner h2 {
  font-family: var(--hv2-font-display);
  font-size: 26px;
  font-weight: 700;
  max-width: 480px;
  line-height: 1.3;
  color: #ffffff !important;
}

.hv2-cta-banner-actions {
  display: flex;
  gap: 12px;
}

.hv2-btn-cta-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--hv2-green);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}

.hv2-btn-cta-wa:hover { background: #1f9653; color: white; }

.hv2-btn-cta-phone {
  padding: 14px 24px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}

.hv2-btn-cta-phone:hover { background: rgba(255,255,255,0.25); color: white; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hv2-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 24px 0;
  }
  .hv2-services-grid,
  .hv2-hospitals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hv2-articles-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hv2-cta-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .hv2-hero { padding: 16px 16px 0; }
  .hv2-hero-sidebar h1 { font-size: 28px; margin-bottom: 10px; }
  .hv2-hero-description { margin-bottom: 0; }
  .hv2-section { padding: 28px 16px; }
  .hv2-section-title { font-size: 24px; margin-bottom: 8px; }
  .hv2-section-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .hv2-trust-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 16px 0;
    justify-content: flex-start;
  }
  .hv2-trust-divider { display: none; }
  .hv2-trust-item { gap: 8px; font-size: 12px; }
  .hv2-trust-icon { width: 34px; height: 34px; border-radius: 8px; }
  .hv2-services-grid,
  .hv2-hospitals-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hv2-service-card { padding: 20px 18px; }
  .hv2-articles-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hv2-article-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--hv2-border-light);
  }
  .hv2-article-body { padding: 0; }
  .hv2-article-card:last-child { border-bottom: none; }
  .hv2-article-card:hover { background: transparent; }
  .hv2-article-featured {
    grid-column: auto;
    grid-template-columns: none;
  }
  .hv2-article-img {
    width: 96px;
    min-width: 96px;
    height: 72px;
    aspect-ratio: auto;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .hv2-article-featured .hv2-article-img {
    aspect-ratio: auto;
    width: 96px;
    min-width: 96px;
    height: 72px;
  }
  .hv2-article-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.35; }
  .hv2-article-featured h3 { font-size: 15px; }
  .hv2-article-meta { margin-bottom: 4px; }
  .hv2-article-date { font-size: 12px; }
  .hv2-article-tag { font-size: 11px; padding: 1px 6px; }
  .hv2-article-excerpt { font-size: 13px; -webkit-line-clamp: 2; }
  .hv2-hospital-info { padding: 16px 18px 18px; }
  .hv2-cta-banner-inner { padding: 24px 20px; }
  .hv2-cta-banner h2 { font-size: 20px; }
  .hv2-cta-banner-actions { flex-direction: column; width: 100%; }
  .hv2-btn-cta-wa { justify-content: center; text-align: center; }
}
