.ihs-home {
  --page-gutter: max(18px, calc((100% - 1160px) / 2));
  --nav-height: 76px;
  font: 1rem/1.65 system-ui, sans-serif;
}

.ihs-home :is(main, section[id], main [id]) { scroll-margin-top: calc(var(--nav-height) + 12px); }
.ihs-home :where(a, button, input, select, summary, textarea):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
.ihs-home :where(.site-footer, .contact-info, .diagnostic-result) a:focus-visible { outline-color: var(--accent-light); }

.ihs-home .nav-shell { min-height: var(--nav-height); }
.ihs-home .brand span { display: block; }
.ihs-home .brand-logo { width: 86px; height: 42px; padding: 3px; border: 0; }
.ihs-home .nav-links { font-size: .9rem; }
.ihs-home .nav-toggle { width: 46px; height: 46px; cursor: pointer; }
.ihs-home .nav-cta { padding: 10px 18px !important; }
.ihs-home .nav-cta:hover, .ihs-home .btn.primary:hover { background: var(--primary-dark); }

.ihs-home .hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: 0;
  padding: clamp(38px, 6vw, 88px) var(--page-gutter);
  color: var(--ink);
  background: var(--surface-soft);
}
.ihs-home .hero-content { order: initial; width: 100%; min-width: 0; padding: 0; }
.ihs-home .eyebrow { color: var(--primary); letter-spacing: .09em; }
.ihs-home .hero h1 {
  font-size: clamp(2.55rem, 5.1vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -.052em;
}
.ihs-home .hero h1 span { color: var(--primary); }
.ihs-home .hero-lead { max-width: 45ch; margin-top: 20px; color: var(--muted); font-size: 1.1rem; }
.ihs-home .hero-actions { margin-top: 26px; }
.ihs-home .hero .btn.secondary { color: var(--primary-dark); background: #fff; border: 1px solid #c8b4a9; }
.ihs-home .hero .btn.secondary:hover { background: #f9e7dd; }

.ihs-home .hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  background: var(--charcoal);
}
.ihs-home .hero-visual img { width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 42%; }
.ihs-home .hero-visual figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 20px 16px;
  color: #fff;
  background: linear-gradient(transparent, #211f20ee);
  font-size: .9rem;
  font-weight: 650;
}

.ihs-home .section {
  width: 100%;
  padding: clamp(42px, 6vw, 82px) var(--page-gutter);
}
.ihs-home .section-heading { display: block; margin-bottom: clamp(22px, 3vw, 36px); }
.ihs-home .section-heading h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.035em; }
.ihs-home .section-lead { max-width: 65ch; }
.ihs-home .services-band, .ihs-home .resources-band, .ihs-home .clients, .ihs-home .faq-band { background: #fff; }
.ihs-home .apps-band { background: var(--charcoal); }
.ihs-home .apps-band .section-heading { color: #fff; }
.ihs-home .apps-band .eyebrow, .ihs-home .apps-band .section-lead { color: #ffd8c2; }
.ihs-home .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ihs-home .service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 12px;
  border-top: 3px solid var(--primary);
  box-shadow: none;
}
.ihs-home .service-card:hover { transform: none; border-color: var(--primary); }
.ihs-home .service-card h3 { margin-top: 0; }
.ihs-home .service-card p { margin-bottom: 16px; }
.ihs-home .service-link { margin-top: auto; }
.ihs-home :where(.service-link, .text-link, .team-link, .resource-card a) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.ihs-home .text-link { font-weight: 700; }
.ihs-home .section-note { max-width: 72ch; margin: 22px 0 6px; color: var(--muted); }

.ihs-home .app-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ihs-home .app-showcase-card {
  display: flex;
  align-items: stretch;
  padding: clamp(18px, 2.4vw, 28px);
  gap: 20px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
}
.ihs-home .app-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.ihs-home .app-copy img {
  width: auto;
  max-width: 135px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  object-fit: contain;
  object-position: left center;
}
.ihs-home .app-category { margin: 14px 0 5px; color: var(--primary-dark); font-size: .78rem; letter-spacing: .025em; }
.ihs-home .app-showcase-card h3 { margin: 0 0 10px; font-size: 1.45rem; line-height: 1.2; }
.ihs-home .app-showcase-card p { margin: 0 0 14px; color: var(--muted); font-size: 1rem; }
.ihs-home .app-actions { margin-top: auto; padding-top: 8px; }
.ihs-home .store-button { padding: 8px 12px; border: 1px solid var(--primary); font-size: .88rem; font-weight: 700; }
.ihs-home .store-button:hover { color: #fff; background: var(--primary-dark); }
.ihs-home .store-button.dark { color: var(--primary-dark); background: #fff; }
.ihs-home .store-button.dark:hover { background: #f9e7dd; }
.ihs-home .app-showcase-card .app-trial { margin: 12px 0 0; font-size: .84rem; }
.ihs-home .invitation-app { grid-column: 1 / -1; align-items: center; }
.ihs-home .invitation-preview-gallery { display: block; flex: 0 0 30%; min-width: 0; padding: 0; background: none; border: 0; }
.ihs-home .invitation-video-preview { min-height: 0; aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 10px; box-shadow: none; }
.ihs-home .invitation-video-play { width: 42px; height: 42px; top: 40%; }
.ihs-home .invitation-video-play::before { border-block-width: 8px; border-left-width: 13px; }
.ihs-home .invitation-video-label { min-height: 32px; bottom: 8px; background: #124b9c; }
.ihs-home .invitation-video-preview img { height: 100%; object-position: center 30%; }

.ihs-home .clients { padding-block: 40px; }
.ihs-home .clients h2 { font-size: 1.65rem; }
.ihs-home .client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  padding: 0;
  gap: 10px;
  background: none;
  border: 0;
  box-shadow: none;
}
.ihs-home .client-logo-card { min-height: 95px; padding: 14px 8px; }
.ihs-home .client-logo-card img { max-width: 100%; height: 42px; }
.ihs-home .client-logo-card span { overflow-wrap: anywhere; }
.ihs-home .team-card { border-radius: 12px; box-shadow: none; }
.ihs-home .team-photo { height: 230px; }
.ihs-home .team-card:hover .team-photo { transform: none; }
.ihs-home .method-panel { margin-top: 32px; padding: clamp(20px, 4vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ihs-home .method-panel h3 { margin: 0; font-size: 1.4rem; }
.ihs-home .method-panel ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 16px 0 0; padding-left: 1.4em; }
.ihs-home .method-panel li::marker { color: var(--primary); font-weight: 700; }
.ihs-home .method-panel span { display: block; color: var(--muted); }

.ihs-home .diagnostic-result strong { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.ihs-home .resource-card { border-radius: 12px; box-shadow: none; }
.ihs-home :where(.resource-card span, .team-kicker) { color: var(--primary-dark); }
.ihs-home .faq-band { padding-top: 0; }
.ihs-home .faq-list { grid-template-columns: 1fr; gap: 10px; }
.ihs-home .faq-list details { padding: 0 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; }
.ihs-home .faq-list summary { padding-block: 13px; cursor: pointer; font-weight: 700; }
.ihs-home .faq-list p { max-width: 80ch; margin: 0 0 16px; color: var(--muted); }
.ihs-home .contact { background: var(--surface-soft); }
.ihs-home .contact-info, .ihs-home .contact-form { border-radius: 12px; }
.ihs-home .contact-info { align-self: start; }
.ihs-home .contact-logo { width: min(190px, 100%); height: auto; }
.ihs-home .footer-brand img { height: auto; }
.ihs-home .contact-info a { overflow-wrap: anywhere; }
.ihs-home .contact-info .whatsapp-link { background: #a7f0cc; color: #103b31; }
.ihs-home .contact-info a:not(.whatsapp-link), .ihs-home .contact-privacy a { text-decoration: underline; text-underline-offset: .2em; }
.ihs-home .contact-form { background: #fff; }
.ihs-home .contact-form :is(h3, p) { margin: 0; }
.ihs-home .contact-form .btn { justify-self: start; }
.ihs-home .site-footer { padding-inline: var(--page-gutter); }
.ihs-home .footer-links a { font-size: .9rem; }

@media (max-width: 1000px) {
  .ihs-home .app-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ihs-home :is(.service-grid, .method-panel ol) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ihs-home { --nav-height: 68px; }
  .ihs-home .nav-links { top: 100%; max-height: calc(100dvh - var(--nav-height)); overflow: auto; }
  .ihs-home .nav-links.is-open { gap: 4px; }
  .ihs-home .nav-links a { display: flex; align-items: center; min-height: 44px; }
  .ihs-home .nav-links .nav-cta { width: 100%; justify-content: center; }
  .ihs-home .team-photo { height: 260px; }
}
@media (max-width: 760px) {
  .ihs-home .hero { grid-template-columns: minmax(0, 1fr); }
  .ihs-home .hero h1 { max-width: 15ch; font-size: clamp(1.9rem, 6.8vw, 3rem); }
  .ihs-home .hero-lead { font-size: 1rem; }
  .ihs-home .hero-visual img { aspect-ratio: 16 / 10; }
  .ihs-home .resource-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ihs-home { --page-gutter: clamp(14px, 4.5vw, 18px); }
  .ihs-home :is(.service-grid, .app-showcase-grid, .method-panel ol, .contact-layout, .diagnostic-shell) {
    grid-template-columns: minmax(0, 1fr);
  }
  .ihs-home .nav-shell { width: calc(100% - 36px); }
  .ihs-home .brand small { display: none; }
  .ihs-home .invitation-app { flex-direction: column; align-items: stretch; }
  .ihs-home .hero-actions .btn { flex: 1 1 100%; }
  .ihs-home .store-button { min-height: 44px; }
  .ihs-home .contact-form .btn { justify-self: stretch; }
}

@media (max-width: 860px) {
  .ihs-home .site-header:not(:has(.has-menu-toggle)) { position: static; }
  .ihs-home .nav-shell:not(.has-menu-toggle) { flex-wrap: wrap; padding-block: 10px; }
  .ihs-home .nav-shell:not(.has-menu-toggle) .nav-toggle { display: none; }
  .ihs-home .nav-shell:not(.has-menu-toggle) .nav-links {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

.ihs-home .team-gallery-title { margin: 32px 0 12px; font-size: 1.4rem; }
.ihs-home .team-gallery { margin-top: 0; }
.ihs-home .team-gallery-item { border-radius: 12px; box-shadow: none; }
.ihs-home .team-gallery-item:hover img { transform: none; }
