/* MED JUNIX premium top-page layouts shared by the approved homepage and review pages. */

.concept-page,
.home-page--ac {
  --concept-gold: #bda16b;
  --concept-moss: #b7cbbd;
}

.concept-page .site-footer { margin-top: 0; }

.concept-switcher {
  border-bottom: 1px solid rgba(7, 47, 37, .14);
  background: #eef2ee;
}

.concept-switcher__inner {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.concept-switcher__inner > span {
  color: #52635c;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  white-space: nowrap;
}

.concept-switcher nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.concept-switcher a {
  padding: 6px 11px;
  border: 1px solid rgba(7, 47, 37, .16);
  background: #fff;
  color: #17372d;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.concept-switcher a:hover { border-color: #1a654f; background: #e4eee8; }

.concept-header .global-nav ul { gap: 11px; }
.concept-header .global-nav a { font-size: .67rem; }
.concept-header .button--header { padding-inline: 14px; }

.concept-index-hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 100px;
  background: var(--green-950);
  color: #dfeae4;
}

.concept-index-hero::after {
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 480px;
  aspect-ratio: 1;
  background: url("../images/medjunix-clover-transparent.png") center / contain no-repeat;
  content: "";
  filter: grayscale(1) brightness(3);
  opacity: .055;
}

.concept-index-hero .container { position: relative; z-index: 1; }
.concept-index-hero .eyebrow { color: #dfeae4; }
.concept-index-hero h1 { max-width: 850px; margin-bottom: 28px; color: #fff; font-size: clamp(2.5rem, 5vw, 4.9rem); }
.concept-index-hero .lead { max-width: 800px; margin-bottom: 0; color: #dfeae4; }
.concept-index-list { padding-top: 96px; }
.concept-index-list .section-heading { max-width: 820px; }
.concept-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.concept-index-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(5, 40, 30, .08);
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.concept-index-card:visited { color: var(--ink); }
.concept-index-card:hover { color: var(--ink); box-shadow: 0 25px 60px rgba(5, 40, 30, .14); transform: translateY(-5px); }
.concept-index-card figure { margin: 0; overflow: hidden; }
.concept-index-card figure img { width: 100%; aspect-ratio: 1.45; object-fit: cover; transition: transform .5s; }
.concept-index-card:hover figure img { transform: scale(1.025); }
.concept-index-card > div { display: flex; min-height: 330px; padding: 28px; flex: 1; flex-direction: column; }
.concept-index-card > div > p:first-of-type { margin-bottom: 12px; color: var(--green-700); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.concept-index-card h3 { margin-bottom: 16px; font-size: 1.42rem; }
.concept-index-card h3 + p { color: #53615b; font-size: .91rem; }
.concept-index-card b { margin-top: auto; color: var(--green-900); font-size: .76rem; }
.concept-index-card__badge { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 6px 10px; background: #fff; color: var(--green-950); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.concept-index-card--recommended { border-color: #7ca38f; }

.concept-hero { position: relative; overflow: hidden; }
.concept-hero__lead { font-size: 1.02rem; line-height: 2; }

/* Plan A: dental-first, premium split layout */
.concept-a-hero {
  padding: 74px 0 0;
  background: linear-gradient(118deg, #f8f4eb 0 58%, #e7eee9 58%);
}

.concept-a-hero::before {
  position: absolute;
  bottom: 44px;
  left: -200px;
  width: 420px;
  aspect-ratio: 1;
  background: url("../images/medjunix-clover-transparent.png") center / contain no-repeat;
  content: "";
  opacity: .04;
}

.concept-a-hero__grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 68px; align-items: center; }
.concept-a-hero__copy { position: relative; z-index: 2; padding-bottom: 72px; background-color: #f8f4eb; }
.concept-a-hero h1 { margin-bottom: 28px; font-size: clamp(2.7rem, 4.25vw, 4.2rem); line-height: 1.27; }
.concept-a-hero__copy .concept-hero__lead { max-width: 590px; color: #3e4c46; }
.concept-a-hero__copy .text-link { background-color: #f8f4eb; }
.concept-a-hero__visual { position: relative; margin: 0 -9vw 0 0; align-self: stretch; }
.concept-a-hero__visual::before {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 28px;
  width: 82px;
  aspect-ratio: 1;
  background: url("../images/medjunix-clover-transparent.png") center / contain no-repeat;
  content: "";
  opacity: .1;
}
.concept-a-hero__visual img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; object-position: 53% center; }
.concept-a-hero__visual figcaption { position: absolute; z-index: 3; right: 18px; bottom: 18px; max-width: calc(100% - 36px); padding: 10px 14px; background: #072f25; color: #fff; font-size: .68rem; }
.concept-a-hero__visual figcaption span { margin-right: 8px; color: #c5d9ce; font-weight: 800; letter-spacing: .12em; }

@media (min-width: 1181px) {
  .home-ac-hero .concept-a-hero__visual { align-self: center; }
  .home-ac-hero .concept-a-hero__visual img { height: auto; min-height: 0; object-fit: contain; }
}

.concept-proof-rail { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 0; border-top: 1px solid rgba(7, 47, 37, .14); }
.concept-proof-rail span { padding: 17px 18px; color: #33463e; font-size: .72rem; font-weight: 700; text-align: center; }
.concept-proof-rail span + span { border-left: 1px solid rgba(7, 47, 37, .14); }

.concept-fields .section-heading { margin-bottom: 50px; }
.concept-fields__grid { display: grid; gap: 20px; }
.concept-fields__grid--weighted { grid-template-columns: 1.18fr .82fr; align-items: end; }
.concept-field-card { position: relative; display: grid; min-height: 560px; overflow: hidden; background: var(--green-950); color: #fff; text-decoration: none; isolation: isolate; }
.concept-field-card--highskill { min-height: 500px; }
.concept-field-card:visited, .concept-field-card:hover { color: #fff; }
.concept-field-card::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(4, 25, 20, .05) 15%, rgba(4, 32, 24, .94) 92%); content: ""; }
.concept-field-card img { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.concept-field-card--dental img { object-position: 56% center; }
.concept-field-card:hover img { transform: scale(1.025); }
.concept-field-card > div { position: relative; z-index: 2; align-self: end; padding: clamp(28px, 4vw, 48px); }
.concept-field-card__label { display: flex; flex-wrap: wrap; gap: 9px 12px; align-items: center; margin-bottom: 16px; }
.concept-field-card__label span { display: block; margin: 0; color: #c4d9ce; font-size: .65rem; font-weight: 800; letter-spacing: .15em; }
.concept-field-card__label em { display: inline-flex; margin: 0; padding: 5px 10px; border: 1px solid rgba(255,255,255,.52); color: #fff; font-size: .68rem; font-style: normal; font-weight: 800; }
.concept-field-card h3 { margin-bottom: 13px; color: #fff; font-size: clamp(1.65rem, 2.8vw, 2.55rem); }
.concept-field-card p { max-width: 630px; color: #dfe9e4; font-size: 1rem; }
.concept-field-card b { color: #fff; font-size: .76rem; }

.concept-continuation { position: relative; overflow: hidden; padding: 88px 0; background: var(--green-950); color: #dce8e2; }
.concept-continuation::after { position: absolute; right: -100px; bottom: -210px; width: 420px; aspect-ratio: 1; background: url("../images/medjunix-clover-transparent.png") center / contain no-repeat; content: ""; filter: grayscale(1) brightness(3); opacity: .05; }
.concept-continuation__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr auto; gap: 42px; align-items: center; }
.concept-continuation h2 { margin-bottom: 0; color: #fff; font-size: clamp(1.8rem, 3vw, 2.75rem); }
.concept-continuation p:not(.eyebrow) { margin-bottom: 0; }

/* Plan B: two-domain corporate portfolio */
.concept-b-page .header-main { background: #f8f4eb; }
.concept-b-page .utility-bar { background: #133e32; }
.concept-b-hero { min-height: 720px; display: grid; align-items: center; background: #062c22; }
.concept-b-hero__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 53% center; filter: saturate(.78) contrast(1.03); }
.concept-b-hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 35, 27, .95) 0%, rgba(4, 35, 27, .78) 48%, rgba(4, 35, 27, .19) 78%, rgba(4, 35, 27, .08) 100%); content: ""; }
.concept-b-hero__inner { position: relative; z-index: 2; padding: 88px 0; }
.concept-b-hero h1 { max-width: 720px; margin-bottom: 28px; color: #fff; font-size: clamp(3rem, 5.6vw, 5.7rem); line-height: 1.18; }
.concept-b-hero .concept-hero__lead { max-width: 700px; color: #e0eae5; font-size: 1.08rem; }
.concept-b-hero__label { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1120px) / 2)); bottom: 36px; display: grid; min-width: 330px; padding: 19px 22px; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.93); color: var(--green-950); }
.concept-b-hero__label span { color: var(--green-700); font-size: .61rem; font-weight: 900; letter-spacing: .16em; }
.concept-b-hero__label b { margin-top: 4px; font-family: var(--font-serif); font-size: 1.13rem; }
.concept-b-hero__label small { color: #526059; }

.concept-b-heading { max-width: 840px; margin-inline: auto; text-align: center; }
.concept-b-heading > p:last-child { max-width: 720px; margin: 0 auto; color: #526059; }
.concept-b-portfolio { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; }
.concept-b-portfolio__card { position: relative; min-height: 520px; padding: 40px; border: 1px solid var(--line); background: #f5f7f4; }
.concept-b-portfolio__card--medical { display: grid; grid-template-columns: 1fr .72fr; gap: 32px; grid-column: 1 / -1; min-height: 430px; background: #edf2ed; }
.concept-b-portfolio__card:not(.concept-b-portfolio__card--medical) { display: grid; grid-template-columns: 1fr .74fr; gap: 46px; grid-column: 1 / -1; min-height: 380px; align-items: center; }
.concept-b-portfolio__number { position: absolute; top: 24px; right: 28px; color: #64756d; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; }
.concept-b-portfolio__card > div:nth-child(2) { position: relative; z-index: 1; align-self: end; }
.concept-b-portfolio__card span { display: block; margin-bottom: 14px; color: var(--green-700); font-size: .66rem; font-weight: 900; letter-spacing: .14em; }
.concept-b-portfolio__card h3 { max-width: 560px; margin-bottom: 18px; font-size: clamp(1.75rem, 3vw, 2.65rem); }
.concept-b-portfolio__card p { color: #53615b; }
.concept-b-portfolio__card aside { position: relative; z-index: 1; align-self: stretch; padding: 29px; background: var(--green-950); color: #dbe7e1; }
.concept-b-portfolio__card aside em { color: #bdd2c7; font-size: .61rem; font-style: normal; font-weight: 900; letter-spacing: .15em; }
.concept-b-portfolio__card aside b { display: block; margin: 48px 0 16px; color: #fff; font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.55; }
.concept-b-portfolio__card aside p { color: #dbe7e1; font-size: .9rem; }
.concept-b-portfolio__card aside a { color: #fff; font-size: .75rem; font-weight: 800; }
.concept-b-portfolio__card > figure { position: relative; z-index: 1; margin: 0; overflow: hidden; }
.concept-b-portfolio__card > figure img { width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.concept-b-portfolio__card > figure figcaption { padding-top: 7px; color: #526059; font-size: .64rem; text-align: right; }
.concept-b-dental-focus { padding: 96px 0; background: #0b3b2f; color: #dce8e2; }
.concept-b-dental-focus__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.concept-b-dental-focus figure { margin: 0; }
.concept-b-dental-focus figure img { width: 100%; aspect-ratio: 1.35; object-fit: cover; object-position: 58% center; box-shadow: 0 26px 70px rgba(0,0,0,.24); }
.concept-b-dental-focus h2 { color: #fff; }
.concept-b-dental-focus p:not(.eyebrow) { color: #dce8e2; }

/* Plan C: field-proof editorial */
.concept-c-page .utility-bar { background: #244a3c; }
.concept-c-page .header-main { background: #fff; }
.concept-c-hero { padding: 86px 0 94px; background: #f4f0e7; }
.concept-c-hero::before { position: absolute; top: -150px; right: -190px; width: 520px; aspect-ratio: 1; background: url("../images/medjunix-clover-transparent.png") center / contain no-repeat; content: ""; opacity: .045; transform: rotate(8deg); }
.concept-c-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .92fr; gap: 76px; align-items: center; }
.concept-c-hero__focus { display: inline-flex; margin-bottom: 24px; padding: 7px 11px; border: 1px solid #789988; color: #245b47; font-size: .7rem; font-weight: 800; }
.concept-c-hero h1 { margin-bottom: 28px; font-size: clamp(2.45rem, 4.3vw, 4.1rem); line-height: 1.3; }
.concept-c-hero .concept-hero__lead { max-width: 640px; color: #46544e; }
.concept-c-hero__visual { position: relative; margin: 0; padding: 0 0 44px 44px; }
.concept-c-hero__visual::before { position: absolute; top: 35px; right: 35px; bottom: 0; left: 0; border: 1px solid #9daf9f; content: ""; }
.concept-c-hero__visual img { position: relative; z-index: 1; width: 100%; min-height: 560px; object-fit: cover; object-position: center; box-shadow: var(--shadow); }
.concept-c-hero__visual > div { position: absolute; z-index: 2; right: 0; bottom: 0; max-width: 310px; padding: 25px 27px; background: var(--green-950); color: #fff; }
.concept-c-hero__visual span { display: block; margin-bottom: 8px; color: #bad1c6; font-size: .62rem; font-weight: 900; letter-spacing: .15em; }
.concept-c-hero__visual strong { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.55; }

.concept-c-practice { padding: 96px 0 104px; background: var(--green-950); color: #dce8e2; }
.home-ac-practice { position: relative; overflow: hidden; }
.home-ac-practice::after { position: absolute; right: -150px; bottom: -230px; width: 440px; aspect-ratio: 1; background: url("../images/medjunix-clover-transparent.png") center / contain no-repeat; content: ""; filter: grayscale(1) brightness(3); opacity: .045; pointer-events: none; }
.concept-c-practice__intro { display: grid; grid-template-columns: .7fr .92fr 1.1fr; gap: 48px; align-items: start; margin-bottom: 54px; }
.concept-c-practice__intro h2 { margin-bottom: 0; color: #fff; }
.concept-c-practice__intro > p:last-child { color: #dce8e2; }
.concept-c-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); }
.concept-c-steps article { min-height: 280px; padding: 32px; background: #0d4234; }
.concept-c-steps span { color: #8eb4a1; font-family: Georgia, serif; font-size: .8rem; }
.concept-c-steps h3 { margin: 58px 0 14px; color: #fff; font-size: 1.3rem; }
.concept-c-steps p { margin-bottom: 0; color: #d4e2db; font-size: .9rem; }
.concept-c-practice__footer { position: relative; z-index: 1; display: flex; justify-content: flex-end; margin-top: 34px; }
.concept-field-card__note { display: block; margin: 12px 0 15px; color: #cbd9d2; font-size: .66rem; }
.concept-c-scope__grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 18px; }
.concept-c-scope__grid a { display: flex; min-height: 220px; padding: 31px; border: 1px solid var(--line); background: #f3f6f3; color: var(--green-950); text-decoration: none; flex-direction: column; }
.concept-c-scope__grid a:visited, .concept-c-scope__grid a:hover { color: var(--green-950); }
.concept-c-scope__grid .concept-c-scope__primary { grid-row: span 2; min-height: 458px; padding: 44px; background: linear-gradient(160deg, #123f32, #082f25); color: #fff; justify-content: flex-end; }
.concept-c-scope__grid .concept-c-scope__primary:visited, .concept-c-scope__grid .concept-c-scope__primary:hover { color: #fff; }
.concept-c-scope__grid span { color: var(--green-700); font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
.concept-c-scope__primary span { color: #b9d2c5; }
.concept-c-scope__grid h3 { margin: 28px 0 12px; font-size: clamp(1.45rem, 2.6vw, 2.25rem); }
.concept-c-scope__primary h3 { color: #fff; }
.concept-c-scope__primary p { max-width: 520px; color: #dce8e2; }
.concept-c-scope__grid b { margin-top: auto; font-size: .75rem; }

@media (max-width: 1180px) {
  .concept-header .global-nav a { font-size: .88rem; }
  .concept-a-hero { padding-top: 58px; background: #f8f4eb; }
  .concept-a-hero__grid, .concept-c-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .concept-a-hero__copy { max-width: 850px; padding-bottom: 0; }
  .concept-a-hero__visual { margin-right: 0; }
  .concept-a-hero__visual img { min-height: 520px; }
  .concept-b-hero { min-height: 660px; }
  .concept-b-hero__label { right: 24px; }
  .concept-c-hero__copy { max-width: 870px; }
  .concept-c-hero__visual { max-width: 800px; }
}

@media (max-width: 900px) {
  .concept-index-grid, .concept-fields__grid--weighted, .concept-b-portfolio, .concept-b-dental-focus__grid, .concept-c-scope__grid { grid-template-columns: 1fr; }
  .concept-index-card { display: grid; grid-template-columns: .8fr 1.2fr; }
  .concept-index-card > div { min-height: 0; }
  .concept-field-card, .concept-field-card--highskill { min-height: 520px; }
  .concept-continuation__inner { grid-template-columns: 1fr; }
  .concept-b-portfolio__card--medical, .concept-b-portfolio__card:not(.concept-b-portfolio__card--medical) { grid-template-columns: 1fr; }
  .concept-b-portfolio__card { min-height: 0; }
  .concept-b-portfolio__card aside { min-height: 270px; }
  .concept-c-practice__intro { grid-template-columns: 1fr; gap: 26px; }
  .concept-c-steps { grid-template-columns: 1fr; }
  .concept-c-steps article { min-height: 215px; }
  .concept-c-steps h3 { margin-top: 36px; }
  .concept-c-scope__grid .concept-c-scope__primary { grid-row: auto; min-height: 390px; }
}

@media (max-width: 680px) {
  .concept-switcher { overflow: hidden; }
  .concept-switcher__inner { display: block; width: 100%; padding: 10px 16px 11px; }
  .concept-switcher__inner > span { display: block; margin-bottom: 7px; }
  .concept-switcher nav { gap: 5px; overflow-x: auto; padding-bottom: 3px; }
  .concept-switcher a { font-size: .65rem; }
  .concept-index-hero { padding: 66px 0 72px; }
  .concept-index-hero h1 { font-size: clamp(2.05rem, 10vw, 2.8rem); }
  .concept-index-grid { display: grid; grid-template-columns: 1fr; }
  .concept-index-card { display: flex; }
  .concept-index-card figure img { aspect-ratio: 1.35; }
  .concept-index-card > div { min-height: 310px; padding: 25px 22px; }
  .concept-a-hero { padding-top: 44px; }
  .concept-a-hero h1 { font-size: clamp(2.05rem, 10.2vw, 2.7rem); }
  .concept-a-hero__visual img { min-height: 420px; object-position: 57% center; }
  .home-ac-hero .concept-a-hero__visual { overflow: hidden; }
  .home-ac-hero .concept-a-hero__visual img { object-position: 62% center; transform: scale(1.1); }
  .concept-a-hero__visual figcaption { font-size: .61rem; }
  .concept-proof-rail { grid-template-columns: 1fr; padding: 14px 0; }
  .concept-proof-rail span { padding: 7px 10px; text-align: left; }
  .concept-proof-rail span + span { border-left: 0; }
  .concept-proof-rail span::before { margin-right: 8px; color: #557c69; content: "—"; }
  .concept-field-card, .concept-field-card--highskill { min-height: 490px; }
  .concept-field-card > div { padding: 27px 22px; }
  .concept-field-card h3 { font-size: 1.7rem; }
  .concept-continuation { padding: 70px 0; }
  .concept-b-hero { min-height: 650px; align-items: end; }
  .concept-b-hero__background { object-position: 58% center; }
  .concept-b-hero::after { background: linear-gradient(180deg, rgba(4,35,27,.28) 0%, rgba(4,35,27,.9) 58%, rgba(4,35,27,.98) 100%); }
  .concept-b-hero__inner { padding: 82px 0 156px; }
  .concept-b-hero h1 { font-size: clamp(2.5rem, 12.4vw, 3.45rem); }
  .concept-b-hero .concept-hero__lead { font-size: 1rem; }
  .concept-b-hero__label { right: 16px; bottom: 22px; left: 16px; min-width: 0; }
  .concept-b-portfolio__card { padding: 28px 23px; }
  .concept-b-portfolio__number { font-size: 3.4rem; }
  .concept-b-portfolio__card aside { padding: 25px 22px; }
  .concept-b-portfolio__card aside b { margin-top: 35px; }
  .concept-b-dental-focus { padding: 76px 0; }
  .concept-c-hero { padding: 62px 0 72px; }
  .concept-c-hero h1 { font-size: clamp(1.9rem, 8.9vw, 2.5rem); }
  .concept-c-hero__visual { padding: 0 0 34px 24px; }
  .concept-c-hero__visual img { min-height: 420px; }
  .concept-c-hero__visual > div { max-width: 255px; padding: 20px 22px; }
  .concept-c-practice { padding: 74px 0; }
  .concept-c-practice__footer { justify-content: flex-start; }
  .concept-c-steps article { min-height: 205px; padding: 27px 23px; }
  .concept-c-scope__grid .concept-c-scope__primary { min-height: 350px; padding: 30px 25px; }
  .concept-c-scope__grid a { min-height: 205px; padding: 27px 23px; }
}
